diff --git a/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxScriptTemplateController.java b/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxScriptTemplateController.java
index e9afb26..f115152 100644
--- a/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxScriptTemplateController.java
+++ b/flossom-modules/flossom-system/src/main/java/com/flossom/system/controller/WxScriptTemplateController.java
@@ -91,7 +91,6 @@ public class WxScriptTemplateController extends BaseController
@PutMapping
public AjaxResult edit(@RequestBody WxScriptTemplate wxScriptTemplate)
{
- System.out.println("标签数组==》"+wxScriptTemplate.getTagIds().toString());
return toAjax(wxScriptTemplateService.updateWxScriptTemplate(wxScriptTemplate));
}
diff --git a/flossom-ui/src/views/system/scriptTag/index.vue b/flossom-ui/src/views/system/scriptTag/index.vue
index 3c49db1..1ecdf3b 100644
--- a/flossom-ui/src/views/system/scriptTag/index.vue
+++ b/flossom-ui/src/views/system/scriptTag/index.vue
@@ -34,7 +34,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:scriptTemplate:add']"
- >新增
+ >添加一级话术
+ 添加二级话术
修改
- 新增
-
+
@@ -116,12 +116,12 @@
-
+
-
+
@@ -154,37 +154,37 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -206,6 +206,7 @@ import { tagTreeSelect } from "@/api/system/wechatTab";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+import {left, right} from "core-js/internals/array-reduce";
export default {
name: "Dept",
@@ -295,6 +296,8 @@ export default {
this.getDeptTree();
},
methods: {
+ right,
+ left,
/** 查询标签列表 */
getList() {
this.loading = true;
@@ -330,7 +333,7 @@ export default {
leader: undefined,
phone: undefined,
email: undefined,
- status: "0"
+ status: "0",
};
this.resetForm("form");
},
@@ -350,13 +353,16 @@ export default {
this.form.parentId = row.id;
if (row.id) {
this.topAdd = false;
+ this.title = "添加二级话术";
+ this.form.type = 0;
} else {
this.topAdd = true;
+ this.title = "添加一级话术";
}
}
this.open = true;
- this.title = "添加标签";
+
listTemplate().then(response => {
this.deptOptions = this.handleTree(response.data, "id");
});
@@ -371,7 +377,11 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
- this.topAdd = false;
+ if(row.parentId == 0) {
+ this.topAdd = true;
+ } else {
+ this.topAdd = false;
+ }
this.reset();
getTemplate(row.id).then(response => {
this.form = response.data;
@@ -380,7 +390,7 @@ export default {
console.log('结果是==>',this.form.tagIdArray)
}
this.open = true;
- this.title = "修改标签";
+ this.title = "修改话术";
});
// listDeptExcludeChild(row.id).then(response => {
// this.deptOptions = this.handleTree(response.data, "id");