Commit c5577538 by 前端

修复bug

1 parent 667ddcea
...@@ -126,7 +126,6 @@ export default { ...@@ -126,7 +126,6 @@ export default {
userName:this.searchForm.userName userName:this.searchForm.userName
} }
this.$apis.collocation.getStaffFriends(params).then(res => { this.$apis.collocation.getStaffFriends(params).then(res => {
console.log(res)
this.tableData = res && res.data this.tableData = res && res.data
this.tableTotal = res && res.count this.tableTotal = res && res.count
// console.log(this.inner) // console.log(this.inner)
...@@ -216,6 +215,7 @@ export default { ...@@ -216,6 +215,7 @@ export default {
this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(this.tableData[i]) this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(this.tableData[i])
} }
}, },
rowClick(row) { rowClick(row) {
this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(row) this.$refs.crowdTable.$refs.crowdlistMutiTable.toggleRowSelection(row)
}, },
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<GLTable :hasNum="false" v-if="dialogVisible" @refreshTable="handleSearch" ref="table" :layout="layout" <GLTable :hasNum="true" v-if="dialogVisible" @refreshTable="handleSearch" ref="table" :layout="layout"
:tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div slot="options" slot-scope="scope"> <div fixed="left" slot="options" slot-scope="scope">
<el-radio :label="scope.scope.idBefEncryption" v-model="selectId"></el-radio> <el-radio :label="scope.scope.idBefEncryption" v-model="selectId"></el-radio>
</div> </div>
</GLTable> </GLTable>
...@@ -44,11 +44,14 @@ export default { ...@@ -44,11 +44,14 @@ export default {
{ {
label: '', label: '',
prop: '', prop: '',
fixed: 'left',
// width:'120',
addHtml: 'options' addHtml: 'options'
}, },
{ {
label: '员工姓名', label: '员工姓名',
prop: 'staffName' prop: 'staffName',
// width:'220',
}, },
{ {
label: '企业微信', label: '企业微信',
......
...@@ -49,8 +49,8 @@ export default { ...@@ -49,8 +49,8 @@ export default {
}, },
// 客户筛选弹窗 // 客户筛选弹窗
selectCustomer() { selectCustomer() {
this.isUpdate = true
const {staffCloudIdList, customerList} = this.basicForm const {staffCloudIdList, customerList} = this.basicForm
console.log()
if (staffCloudIdList.length == 0) { if (staffCloudIdList.length == 0) {
return this.$message({ return this.$message({
type: 'error', type: 'error',
...@@ -307,6 +307,7 @@ export default { ...@@ -307,6 +307,7 @@ export default {
this.basicForm.customerList.splice(index, 1) this.basicForm.customerList.splice(index, 1)
this.getCustomerData(this.basicForm.customerList) this.getCustomerData(this.basicForm.customerList)
this.key = new Date() this.key = new Date()
this.isUpdate = true
}, },
} }
} }
...@@ -99,13 +99,13 @@ ...@@ -99,13 +99,13 @@
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
选择发送人 选择发送人
</el-button> </el-button>
<div class="sale-select" v-show="selectSenderList && selectSenderList.staffName"> <div class="sale-select" v-show="selectSenderList && !!selectSenderList.staffName">
<div class="el-input-tag input-tag-wrapper"> <div class="el-input-tag input-tag-wrapper">
<el-tag effect="plain" type="info" <el-tag effect="plain" type="info"
closable closable
:disable-transitions="false" @close="selectSenderList = null"> :disable-transitions="false" @close="selectSenderList = null">
<i class="el-icon-user-solid"></i> <i class="el-icon-user-solid"></i>
{{ selectSenderList.staffName }} {{ selectSenderList && selectSenderList.staffName }}
</el-tag> </el-tag>
</div> </div>
</div> </div>
...@@ -329,12 +329,12 @@ export default { ...@@ -329,12 +329,12 @@ export default {
this.empErrorShow = false this.empErrorShow = false
}, },
'selectSenderList'(val) { 'selectSenderList'(val) {
if (val.length > 0) { if (val && val.length > 0) {
this.empErrorShowExpediter = false this.empErrorShowExpediter = false
} }
}, },
'basicForm.customerList'(val) { 'basicForm.customerList'(val) {
if (val.length !== 0) { if (val && val.length !== 0) {
this.empErrorShowCustomer = false this.empErrorShowCustomer = false
} }
}, },
......
...@@ -74,13 +74,13 @@ ...@@ -74,13 +74,13 @@
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
选择发送人 选择发送人
</el-button> </el-button>
<div class="sale-select" v-show="selectSenderList && selectSenderList.staffName"> <div class="sale-select" v-show="selectSenderList && !!selectSenderList.staffName">
<div class="el-input-tag input-tag-wrapper"> <div class="el-input-tag input-tag-wrapper">
<el-tag effect="plain" type="info" <el-tag effect="plain" type="info"
closable closable
:disable-transitions="false" @close="selectSenderList = null"> :disable-transitions="false" @close="selectSenderList = null">
<i class="el-icon-user-solid"></i> <i class="el-icon-user-solid"></i>
{{ selectSenderList.staffName }} {{ selectSenderList && selectSenderList.staffName }}
</el-tag> </el-tag>
</div> </div>
</div> </div>
...@@ -383,7 +383,7 @@ export default { ...@@ -383,7 +383,7 @@ export default {
} }
}, },
'selectSenderList'(val) { 'selectSenderList'(val) {
if (val.length > 0) { if (val && val.length > 0) {
this.empErrorShowExpediter = false this.empErrorShowExpediter = false
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!