Commit 53632eb3 by 徐忆琳

Merge branch 'littlexu_dev_v3.5.0' into 'v3.5.0'

修复bug

See merge request !62
2 parents bf1ec8ec 0073b7cb
......@@ -45,13 +45,13 @@ export default {
label: '',
prop: '',
fixed: 'left',
// width:'120',
width:'80',
addHtml: 'options'
},
{
label: '员工姓名',
prop: 'staffName',
// width:'220',
width:'220',
},
{
label: '企业微信',
......
......@@ -41,7 +41,7 @@ export default {
},
'staffCloudIdListStr'(newVal, oldVal) {
this.basicForm.customerList = newVal == oldVal ? this.basicForm.customerList : []
}
},
},
methods: {
getCustomerData(val) {
......
......@@ -329,8 +329,10 @@ export default {
this.empErrorShow = false
},
'selectSenderList'(val) {
if (val && val.length > 0) {
if (val && val.staffCloudIdList) {
this.empErrorShowExpediter = false
}else{
this.basicForm.customerList = []
}
},
'basicForm.customerList'(val) {
......@@ -424,7 +426,7 @@ export default {
return
}
}
if (this.basicForm.managedType == 2 && !this.selectSenderList) {
if (this.basicForm.managedType == 2 && this.selectSenderList && !this.selectSenderList.staffCloudIdList) {
this.empErrorShowExpediter = true
return
}
......@@ -537,6 +539,7 @@ export default {
</script>
<style lang="scss" scoped>
.container {
margin-bottom: 16px;
background: #ffffff;
......
......@@ -99,7 +99,7 @@
</el-tag>
</div>
</div>
<div v-show="empErrorShowCustomer" class="el-form-item__error">请选择客户</div>
<div v-show="empErrorShowCustomer" class="el-form-item__error customer_err">请选择客户</div>
</el-form-item>
</template>
</el-form>
......@@ -145,7 +145,6 @@
<el-button @click="handleCancel('/wechatGroup/index')">取消</el-button>
<el-button type="primary" v-loading="addLoading" @click="handleSubmit">提交</el-button>
</GLFooter>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :resetMerchantId="resetMerchantId"
:dialogVisible="dialogVisible"></SelectLabel>
<SelectCrowd ref="selectCrowd" @crowdData="getCrowdData" :resetMerchantId="resetMerchantId"
......@@ -156,6 +155,8 @@
</div>
</template>
<script>
import {utils} from "glsx-common";
const combineType = {
label: 2,
crowd: 1
......@@ -383,11 +384,17 @@ export default {
//群发内容
this.$refs.welcome.textValue = ''
this.$refs.welcome.previewList = []
this.$refs.welcome.updateList([{
attType:1,
attContent:''
}])
}
},
'selectSenderList'(val) {
if (val && val.length > 0) {
if (val && val.staffCloudIdList) {
this.empErrorShowExpediter = false
} else {
this.basicForm.customerList = []
}
},
'basicForm.customerList'(val) {
......@@ -401,7 +408,7 @@ export default {
handleAddEmp() {
this.$refs.selectEmpForm.init()
},
async handleSubmit() {
handleSubmit: utils.debounce(async function () {
this.$refs.basicForm.validate(valid => {
if (valid) {
if (this.basicForm.managedType == 1) {
......@@ -420,7 +427,7 @@ export default {
return
}
}
if (this.basicForm.managedType == 2 && !this.selectSenderList) {
if (this.basicForm.managedType == 2 && this.selectSenderList && !this.selectSenderList.staffCloudIdList) {
this.empErrorShowExpediter = true
return
}
......@@ -495,11 +502,15 @@ export default {
})
}
})
},
}, 300)
}
}
</script>
<style lang="scss" scoped>
.customer_err {
margin-top: 45px;
}
.container {
margin-bottom: 20px;
background: #ffffff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!