|
|
@@ -427,13 +427,16 @@
|
|
|
},
|
|
|
async openDialog(row, type) {
|
|
|
this.isBindPlan = type;
|
|
|
- if (type == 'edit' || type == 'clone') {
|
|
|
+ if (type == 'edit') {
|
|
|
this.getRuleInfo(row.id, type);
|
|
|
}
|
|
|
if (type == 'add') {
|
|
|
- console.log('add');
|
|
|
this.getOrderCode();
|
|
|
}
|
|
|
+ if (type == 'clone') {
|
|
|
+ this.getOrderCode();
|
|
|
+ this.getRuleInfo(row.id, type);
|
|
|
+ }
|
|
|
|
|
|
this.addMatterDialog = true;
|
|
|
},
|
|
|
@@ -441,6 +444,9 @@
|
|
|
async getRuleInfo(id, type) {
|
|
|
const data = await getDetail(id);
|
|
|
this.formData = deepClone(data);
|
|
|
+ if (this.isBindPlan == 'clone') {
|
|
|
+ this.formData.ruleObjCode = '';
|
|
|
+ }
|
|
|
|
|
|
if (data.actionList && data.actionList.length > 0) {
|
|
|
for (let i = 0; i < data.actionList.length; i++) {
|