Commit c9b6f0d7 by 胡悦

一客一群修复bug

1 parent 19c142cf
......@@ -266,11 +266,10 @@ export default {
this.membersVisible = !this.membersVisible
},
openFollow() {
console.log(this.basicForm.followList)
this.$refs.selectEmpForm.init(this.basicForm.followList)
const checkMember = this.basicForm.userList.length ? this.basicForm.userList.map(i => i.id) : []
this.$refs.selectEmpForm.init(this.basicForm.followList, checkMember)
},
handleSubmit() {
console.log(this.basicForm)
this.$refs.basicForm.validate(valid => {
if (valid) {
const params = {
......
......@@ -11,6 +11,7 @@
</el-form>
<div class="table-box">
<GLTable
:key="key"
v-if="dialogVisible"
ref="table"
:layout="layout"
......@@ -50,6 +51,8 @@ export default {
tableOption: false,
// 行数据的key
mutiSelectUniqueKey: 'id',
checkSelectKey: 'id',
checkSelectVal: [],
// 多选ref的名称
mutiSelectName: 'salelist',
tableColumns: [
......@@ -71,7 +74,9 @@ export default {
tableData: [],
tableTotal: 0,
selectItem: [],
selectEmp: []
selectEmp: [],
checkSelect: [],
key: new Date()
}
},
methods: {
......@@ -97,10 +102,15 @@ export default {
this.selectEmp.splice(index, 1)
}
})
console.log( this.checkSelect)
this.tableParams.checkSelectVal = this.checkSelect
this.key = new Date()
})
})
},
init(item) {
init(item, checkMember) {
console.log(checkMember)
this.checkSelect = checkMember
this.tableSearchForm = {}
this.selectEmp = JSON.parse(JSON.stringify(item))
this.dialogVisible = true
......@@ -119,6 +129,7 @@ export default {
this.handleCancel()
},
rowClick(row) {
if (this.checkSelect.find(i => i == row.id)) return
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(row)
},
handleCancel: utils.debounce(function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!