Commit 38f193b0 by 胡悦

修复联调问题

1 parent c4dab253
...@@ -11,7 +11,7 @@ const URL = '/rop-scrm-entmicro/router' ...@@ -11,7 +11,7 @@ const URL = '/rop-scrm-entmicro/router'
const PATH = 'org.ore.api.one.template.' const PATH = 'org.ore.api.one.template.'
const templateList = params => { const templateList = params => {
params.method = `${PATH}list` params.method = `${PATH}page`
return http({ return http({
url: URL, url: URL,
method: 'GET', method: 'GET',
......
...@@ -17,8 +17,8 @@ import { routes } from '@/router' ...@@ -17,8 +17,8 @@ import { routes } from '@/router'
export async function start() { export async function start() {
if (window.__POWERED_BY_QIANKUN__) return if (window.__POWERED_BY_QIANKUN__) return
const { response, request, sign, secret } = await fetchConfig(true) const { response, request, sign, secret } = await fetchConfig(true)
Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: 'mini-3ab7a37c-3bfa-4a83-bbf8-9e59c6e10330-rop' } }) Vue.prototype.$http = new Http({ response, request, sign, secret, alert: message.error, headers: { token: 'mini-7a3610dc-095c-4e7a-b864-56a1d74af4db-rop' } })
Vue.prototype.$http_common = new Http({ response, signWay: "md5", request: 'http://qcdidicb.glsx.net:7060', sign, secret, alert: message.error, headers: { token: 'mini-3ab7a37c-3bfa-4a83-bbf8-9e59c6e10330-rop' } }) Vue.prototype.$http_common = new Http({ response, signWay: "md5", request: 'http://qcdidicb.glsx.net:7060', sign, secret, alert: message.error, headers: { token: 'mini-7a3610dc-095c-4e7a-b864-56a1d74af4db-rop' } })
Vue.use(GLButton, GLTable, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) Vue.use(GLButton, GLTable, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
render('/', routes) render('/', routes)
......
...@@ -186,9 +186,9 @@ export default { ...@@ -186,9 +186,9 @@ export default {
merchantId: 1 merchantId: 1
} }
params.userList = this.basicForm.userList.map(item => { params.userList = this.basicForm.userList.map(item => {
if (this.basicForm.group.id == item.id) { if (this.basicForm.group.staffId == item.staffId) {
return { return {
staffId: item.id, staffId: item.staffId,
masterStatus: 1 masterStatus: 1
} }
} else { } else {
...@@ -227,7 +227,6 @@ export default { ...@@ -227,7 +227,6 @@ export default {
}, },
getDetail(id) { getDetail(id) {
this.$apis.groupGuest.detail({ id }).then(res => { this.$apis.groupGuest.detail({ id }).then(res => {
console.log(res)
this.basicForm = { this.basicForm = {
orgName: res.orgName, orgName: res.orgName,
groupName: res.groupName, groupName: res.groupName,
...@@ -238,12 +237,13 @@ export default { ...@@ -238,12 +237,13 @@ export default {
} }
this.$refs.welcome.updateList(res.attachmentList) this.$refs.welcome.updateList(res.attachmentList)
this.selectData = res.userList this.selectData = res.userList
// this.$refs.membersForm.selectTable(res.userList) if (this.selectData.find(i => i.masterStatus == 1)) this.basicForm.group = this.selectData.find(i => i.masterStatus == 1)
// this.group = {} // this.group = {}
}) })
}, },
handleCancel() { handleCancel() {
this.$router.go(-1) this.$router.go(-1)
this.basicForm = {}
}, },
remove(val) { remove(val) {
this.$refs.membersForm.remove(val) this.$refs.membersForm.remove(val)
......
...@@ -89,22 +89,25 @@ export default { ...@@ -89,22 +89,25 @@ export default {
this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree) this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
console.log(this.listTree) console.log(this.listTree)
this.selectData.forEach(i => { this.selectData.forEach(i => {
const row = this.getEmployee(this.listTree).find(j => j.id == i.staffId) const row = this.getEmployee(this.listTree).find(j => j.staffId == i.staffId)
console.log(row) console.log(row)
this.clearSelect(row) this.clearSelect(row)
// if (i.masterStatus == 1) this.group = i
}) })
this.$nextTick(() => { this.$nextTick(() => {
document.getElementsByClassName('el-tree-node__expand-icon')[0].click() document.getElementsByClassName('el-tree-node__expand-icon')[0].click()
document.getElementsByClassName('el-tree-node__content')[0].click() document.getElementsByClassName('el-tree-node__content')[0].click()
if (this.selectData.find(i => i.masterStatus == 1)) {
this.group = this.selectData.find(i => i.masterStatus == 1)
this.$emit('group', this.group)
}
}) })
}) })
}, },
clearSelect(row) { clearSelect(row) {
console.log(row, '2222')
this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(row) this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(row)
}, },
clearSelection() { clearSelection() {
console.log(2222)
this.$refs.saleTable.$refs.salelistMutiTable.clearSelection() this.$refs.saleTable.$refs.salelistMutiTable.clearSelection()
}, },
handleNodeClick(data) { handleNodeClick(data) {
......
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
// 表格 // 表格
getListApi: this.$apis.groupGuest.templateList, getListApi: this.$apis.groupGuest.templateList,
tableParams: { tableParams: {
listName: '', listName: 'data',
tableOption: false, tableOption: false,
otherOptions: { otherOptions: {
label: '启用开关' label: '启用开关'
...@@ -176,6 +176,9 @@ export default { ...@@ -176,6 +176,9 @@ export default {
] ]
} }
}, },
mounted() {
this.searchTable()
},
methods: { methods: {
//搜索表格 //搜索表格
searchTable() { searchTable() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!