|
|
@@ -45,7 +45,7 @@
|
|
|
</el-form>
|
|
|
<div slot="footer" class="footer">
|
|
|
<el-button type="primary" @click="submitAssignForm">确 定</el-button>
|
|
|
- <el-button @click="assign.open=false">取 消</el-button>
|
|
|
+ <el-button @click="handleCancel">取 消</el-button>
|
|
|
</div>
|
|
|
|
|
|
<el-dialog :title="companySelect.title" :visible.sync="companySelect.open" width="1000px" append-to-body>
|
|
|
@@ -78,22 +78,24 @@
|
|
|
},
|
|
|
// 表单校验
|
|
|
assignRules: {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
companys:[],
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
- init(customerIds){
|
|
|
- this.customerIds = customerIds;
|
|
|
- this.assignCount=0;
|
|
|
- this.noAssignCount=this.customerIds.length;
|
|
|
- this.companys=[];
|
|
|
- },
|
|
|
+ handleCancel() {
|
|
|
+ this.companys = [];
|
|
|
+ this.noAssignCount = 0;
|
|
|
+ this.assignCount = 0;
|
|
|
+ this.customerIds = [];
|
|
|
+ //关闭弹窗
|
|
|
+ // this.$emit('close');
|
|
|
+ },
|
|
|
changeVal(row) {
|
|
|
this.$forceUpdate();//解决点击计数器失效问题
|
|
|
this.computeCount();
|
|
|
@@ -102,7 +104,7 @@
|
|
|
row.count=0;
|
|
|
this.computeCount();
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
handleRemoveCompany(index){
|
|
|
@@ -199,7 +201,9 @@
|
|
|
});
|
|
|
},
|
|
|
closeAction(){
|
|
|
- //this.$refs.companySelects.companys=[];
|
|
|
+ if (this.$refs.companySelects) {
|
|
|
+ this.$refs.companySelects.clearSelection();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -210,7 +214,7 @@
|
|
|
height: 100%;
|
|
|
background-color: #fff;
|
|
|
padding: 20px;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
.footer{
|
|
|
display: flex;
|