From 5c559f708ff934711d6417ae7909d919f6e3ebf6 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 28 五月 2024 11:37:19 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/templateku/index.vue | 41 ++++++++++++++++++++++++++++++++++++-----
1 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue
index 33bd771..ed0c802 100644
--- a/src/views/repositoryai/templateku/index.vue
+++ b/src/views/repositoryai/templateku/index.vue
@@ -29,7 +29,7 @@
>
<span class="custom-tree-node" slot-scope="{ node, data }">
<span>{{ node.label }}</span>
- <span>
+ <span v-if="data.id > 0">
<el-button
type="text"
icon="el-icon-delete"
@@ -37,6 +37,17 @@
size="mini"
@click="() => remove(node, data)"
>
+ </el-button>
+ </span>
+ <span v-if="data.id > 0">
+ <el-button
+ type="text"
+ circle
+ size="mini"
+ @click="() => altertag(node, data)"
+ ><span class="button-textxg"
+ ><i class="el-icon-edit-outline"></i
+ ></span>
</el-button>
</span>
</span>
@@ -365,7 +376,7 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
+ <el-button @click="getDeptTree()">鍙� 娑�</el-button>
<el-button type="primary" @click="submitsidecolumn">纭� 瀹�</el-button>
</div>
</el-dialog>
@@ -427,6 +438,7 @@
getFollowupclassify,
delFollowupclassify,
addFollowupclassify,
+ editFollowupclassify,
addtargetillness,
getvFollowup,
compileFollowup,
@@ -543,7 +555,7 @@
console.log(this.userList[0].campus.split(","));
});
- listDept(this.queryParams).then((response) => {
+ listDept({ pageNum: 1, pageSize: 10 }).then((response) => {
this.deptList = this.handleTree(response.data, "deptId");
});
},
@@ -612,7 +624,7 @@
handleAdd() {
this.$router.push({
path: "/knowledge/templateku/configurat/",
- query: { id: null },
+ query: { id: null, assortid: this.queryParams.assortid },
});
},
@@ -641,12 +653,21 @@
getDeptTree() {
getFollowupclassify({}).then((res) => {
this.deptOptions = res.rows;
- console.log(res);
+ this.dialogFormVisible = false;
});
},
// 娣诲姞绫诲埆鏍�
submitsidecolumn() {
+ if (this.classifyform.id) {
+ editFollowupclassify(this.classifyform).then((res) => {
+ this.getDeptTree();
+ this.$modal.msgSuccess("淇敼鎴愬姛");
+ this.classifyform = {};
+ this.dialogFormVisible = false;
+ });
+ return;
+ }
let calssvalue = {};
if (
this.classifyform.pid &&
@@ -700,6 +721,16 @@
.catch(() => {});
}
},
+ altertag(a, b) {
+ this.dialogFormVisible = true;
+ if (!b.pid) {
+ this.radio = "涓诲垎绫�";
+ } else {
+ this.radio = "瀛愬垎绫�";
+ }
+ this.classifyform = b;
+ this.dialogFormVisible = true;
+ },
// 绛涢�夎妭鐐�
filterNode(value, data) {
--
Gitblit v1.9.3