Commit 38f193b0 by 胡悦

修复联调问题

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