Commit c9b6f0d7 by 胡悦

一客一群修复bug

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