Commit a9d85a16 by 李伟康

fixed 修复

1 parent 9d9ef1da
...@@ -605,7 +605,7 @@ ...@@ -605,7 +605,7 @@
<div class="common el-form-item__content"> <div class="common el-form-item__content">
<div <div
class="el-input" class="el-input"
ref="groupZhanServerRef" ref="employeeBadgeRef"
> >
<div <div
class="el-input__inner" class="el-input__inner"
...@@ -626,7 +626,7 @@ ...@@ -626,7 +626,7 @@
v-if="!groupHideObj.employeeBadgeReport" v-if="!groupHideObj.employeeBadgeReport"
> >
<gl-select-menu <gl-select-menu
:domEl="domZhanServerEl" :domEl="domemployeeBadgeEl"
@changeStatu="hideSelect" @changeStatu="hideSelect"
> >
<el-form-item class="search-groomname"> <el-form-item class="search-groomname">
...@@ -675,7 +675,7 @@ ...@@ -675,7 +675,7 @@
<div class="group-box"> <div class="group-box">
<div <div
class="input-box" class="input-box"
v-for="(i, k) in groupCofListInput.employeeBadgeValue" v-for="(i, k) in groupCofListInput.employeeBadgeReportValue"
:key="k" :key="k"
> >
<el-select <el-select
...@@ -694,12 +694,12 @@ ...@@ -694,12 +694,12 @@
<i <i
class="el-icon-circle-plus" class="el-icon-circle-plus"
v-if="k == 0" v-if="k == 0"
@click="addGroup(groupCofListInput.employeeBadgeValue)" @click="addGroup(groupCofListInput.employeeBadgeReportValue)"
></i> ></i>
<i <i
class="el-icon-remove" class="el-icon-remove"
v-else v-else
@click="delGroup(groupCofListInput.employeeBadgeValue, k)" @click="delGroup(groupCofListInput.employeeBadgeReportValue, k)"
></i> ></i>
</div> </div>
</div> </div>
...@@ -882,7 +882,7 @@ export default { ...@@ -882,7 +882,7 @@ export default {
// scheduleReportValue: [], // scheduleReportValue: [],
zhanServerReportValue: [], zhanServerReportValue: [],
storeServerReportValue: [], storeServerReportValue: [],
employeeBadgeValue: [], employeeBadgeReportValue: [],
InvoicingReportValue: [] InvoicingReportValue: []
}, },
groupToType: [ groupToType: [
...@@ -1114,7 +1114,10 @@ export default { ...@@ -1114,7 +1114,10 @@ export default {
}, },
domInvoicingServerEl () { domInvoicingServerEl () {
return this.$refs.groupInvoicingServerRef return this.$refs.groupInvoicingServerRef
} },
domemployeeBadgeEl () {
return this.$refs.employeeBadgeRef
},
}, },
watch: { watch: {
filterText (val) { filterText (val) {
...@@ -1222,7 +1225,8 @@ export default { ...@@ -1222,7 +1225,8 @@ export default {
zhanReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }],
zhanServerReportValue: [{ name: '' }], zhanServerReportValue: [{ name: '' }],
storeServerReportValue: [{ name: '' }], storeServerReportValue: [{ name: '' }],
InvoicingReportValue: [{ name: '' }] InvoicingReportValue: [{ name: '' }],
employeeBadgeReportValue: [{ name: '' }]
} }
}) })
}, },
...@@ -1352,6 +1356,7 @@ export default { ...@@ -1352,6 +1356,7 @@ export default {
}) })
return true return true
} }
try {
let isGroupEmpty = Object.keys(this.groupCofList) let isGroupEmpty = Object.keys(this.groupCofList)
.map(item => this.groupCofList[item].length) .map(item => this.groupCofList[item].length)
.every(item => item == 0) .every(item => item == 0)
...@@ -1384,6 +1389,7 @@ export default { ...@@ -1384,6 +1389,7 @@ export default {
params.yqMerchantIdList.push(item.yqMerchantId) params.yqMerchantIdList.push(item.yqMerchantId)
}) })
Object.keys(this.groupCofList).map(item => { Object.keys(this.groupCofList).map(item => {
console.log(item)
// console.log(this.groupCofList[item]) // console.log(this.groupCofList[item])
let type = this.groupToType.find(k => k.attr == item).type let type = this.groupToType.find(k => k.attr == item).type
if (this.groupCofList[item].length) { if (this.groupCofList[item].length) {
...@@ -1418,6 +1424,9 @@ export default { ...@@ -1418,6 +1424,9 @@ export default {
this.clearData() this.clearData()
} }
}) })
} catch (error) {
console.log(error)
}
}, },
handlebattleClose () { handlebattleClose () {
this.battleVisible = false this.battleVisible = false
...@@ -1458,7 +1467,7 @@ export default { ...@@ -1458,7 +1467,7 @@ export default {
// scheduleReportValue: [], // scheduleReportValue: [],
zhanServerReportValue: [], zhanServerReportValue: [],
storeServerReportValue: [], storeServerReportValue: [],
employeeBadgeValue: [], employeeBadgeReportValue: [],
InvoicingReportValue: [] InvoicingReportValue: []
} }
this.battleVisible = true this.battleVisible = true
...@@ -1512,7 +1521,8 @@ export default { ...@@ -1512,7 +1521,8 @@ export default {
// scheduleReportValue: [{ name: '' }], // scheduleReportValue: [{ name: '' }],
zhanServerReportValue: [{ name: '' }], zhanServerReportValue: [{ name: '' }],
storeServerReportValue: [{ name: '' }], storeServerReportValue: [{ name: '' }],
InvoicingReportValue: [{ name: '' }] InvoicingReportValue: [{ name: '' }],
employeeBadgeReportValue: [{ name: '' }]
} }
} }
this.getDepartmentTree() this.getDepartmentTree()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!