'更新营销中心按钮禁用'

This commit is contained in:
2020-04-08 11:31:42 +08:00
parent 0d0e0dcb6f
commit 46f9db9c1c
7 changed files with 44 additions and 8 deletions

View File

@@ -341,7 +341,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button size="small" icon="el-icon-circle-close" @click="callOff2('form')">取消</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-check" @click="submit2('form2')"> </el-button>
<el-button :disabled="addCustomerDisabled" type="distribution" size="small" icon="el-icon-circle-check" @click="submit2('form2')"> </el-button>
<!--<el-button @click="callOff2()">取消</el-button>-->
<!--<el-button type="primary" @click="submit2('form2')"> </el-button>-->
</div>
@@ -358,6 +358,7 @@ export default {
},
data() {
return {
addCustomerDisabled: false,
dialogVisible: false,
treeData: [7],
a: '', // 营销经理地区流水号
@@ -618,6 +619,7 @@ export default {
if (this.AdressID === '' || this.AdressID === null) {
this.$message.warning('请选择一个省份')
} else {
this.addCustomerDisabled = false
this.dialogFormVisible2 = true
this.title2 = '新增客户'
}
@@ -629,6 +631,7 @@ export default {
this.dialogFormVisible2 = false
},
handleEdit(row) {
this.addCustomerDisabled = false
this.dialogFormVisible2 = true
this.title2 = '编辑客户'
this.form2.省份 = row.省份
@@ -646,6 +649,7 @@ export default {
this.form2.开户行 = row.开户行
},
submit2() {
this.addCustomerDisabled = true
function a() {
this.dialogFormVisible2 = false
this.getTable(selectCustomer, [this.AdressID, this.pageCurrent, this.pageSize], ['tableData2', 'total', 'loading2'])