From 841b389629f13bc96652772a25aed7bc1a5eafb9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 29 七月 2024 15:17:30 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/templateku/index.vue | 189 ++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 168 insertions(+), 21 deletions(-)
diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue
index 371522e..22db7a2 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>
@@ -168,7 +179,13 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="50" align="center" />
- <el-table-column label="搴忓彿" fixed align="center" key="id" prop="id" />
+ <el-table-column
+ label="搴忓彿"
+ fixed
+ align="center"
+ key="id"
+ prop="id"
+ />
<el-table-column
label="妯$増鍚嶇О"
fixed
@@ -331,11 +348,16 @@
</div>
</div>
<!-- 娣诲姞绫诲埆寮规 -->
- <el-dialog title="鏂板绫诲埆" width="30%" :visible.sync="dialogFormVisible">
+ <el-dialog
+ :title="title"
+ width="30%"
+ :close-on-click-modal="false"
+ :visible.sync="dialogFormVisible"
+ >
<div style="text-align: center; margin-bottom: 20px">
<el-radio-group v-model="radio">
- <el-radio-button label="涓诲垎绫�"></el-radio-button>
- <el-radio-button label="瀛愬垎绫�"></el-radio-button>
+ <el-radio-button label="涓诲垎绫�" v-show="zifon"></el-radio-button>
+ <el-radio-button label="瀛愬垎绫�" v-show="zufon"></el-radio-button>
</el-radio-group>
</div>
<el-divider></el-divider>
@@ -359,7 +381,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>
@@ -411,6 +433,69 @@
<el-button type="primary" @click="confirmillness">纭� 瀹�</el-button>
</span>
</el-dialog>
+ <!-- 闅忚棰樼洰棰勮 -->
+ <el-dialog title="闅忚棰樼洰棰勮" :visible.sync="topicVisible" width="50%">
+ <div class="preview-left">
+ <!-- 鍗曢�� -->
+ <div
+ class="scriptTopic-dev"
+ v-for="item in topicform.ivrLibaTemplateScriptVOList"
+ :key="item.targetid"
+ v-if="item.valueType == 1"
+ >
+ <div class="dev-text">
+ {{ item.targetid }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span>
+ </div>
+ <div class="dev-xx">
+ <el-radio-group v-model="item.remark">
+ <el-radio
+ v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
+ :key="index"
+ :label="index"
+ >{{ items.targetvalue }}</el-radio
+ >
+ </el-radio-group>
+ </div>
+ </div>
+ <!-- 澶氶�� -->
+ <div
+ class="scriptTopic-dev"
+ v-for="item in topicform.ivrLibaTemplateScriptVOList"
+ :key="item.targetid"
+ v-if="item.valueType == 2"
+ >
+ <div class="dev-text">
+ {{ item.targetid }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span>
+ </div>
+ <div class="dev-xx">
+ <el-checkbox-group v-model="item.remark">
+ <el-checkbox
+ v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
+ :key="index"
+ :label="index"
+ >
+ {{ items.targetvalue }}
+ </el-checkbox>
+ </el-checkbox-group>
+ </div>
+ </div>
+ <!-- 濉┖ -->
+ <div
+ class="scriptTopic-dev"
+ v-for="item in topicform.ivrLibaTemplateScriptVOList"
+ :key="item.targetid"
+ v-if="item.valueType == 3"
+ >
+ <div class="dev-text">
+ {{ item.targetid }}銆乕濉┖]<span>{{ item.scriptContent }}</span>
+ </div>
+ <div class="dev-xx">
+ <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable>
+ </el-input>
+ </div>
+ </div>
+ </div>
+ </el-dialog>
</div>
</template>
@@ -421,6 +506,7 @@
getFollowupclassify,
delFollowupclassify,
addFollowupclassify,
+ editFollowupclassify,
addtargetillness,
getvFollowup,
compileFollowup,
@@ -452,6 +538,8 @@
total: 0,
namequestionnaire: "",
haoquestionnaire: "",
+ topicform: {},
+ topicVisible: false,
idds: "",
amendtag: false, //鏄惁淇敼绫诲埆
dialogFormVisible: false, //淇敼娣诲姞绫诲埆寮规
@@ -463,7 +551,7 @@
// 琛ㄦ牸鏁版嵁
userList: [],
// 寮瑰嚭灞傛爣棰�
- title: "",
+ title: "鏂板绫诲埆",
// 鏄惁鏄剧ず寮瑰嚭灞�
open: false,
// 鏃ユ湡鑼冨洿
@@ -494,6 +582,8 @@
indexid: null,
inputValue: "",
radio: "涓诲垎绫�",
+ zufon: true,
+ zifon: true,
inputVisible: false,
illnessVisible: false, //鎸囨爣鐤剧梾寮规
deptOptions: [],
@@ -520,6 +610,8 @@
created() {
this.getList();
this.getDeptTree();
+ this.zufon = true;
+ this.zifon = true;
this.mode = store.getters.mode;
this.languagelist = store.getters.languagelist;
this.qyoptions = store.getters.usable;
@@ -537,7 +629,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");
});
},
@@ -603,7 +695,12 @@
this.multiple = !selection.length;
},
/** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {},
+ handleAdd() {
+ this.$router.push({
+ path: "/knowledge/templateku/configurat/",
+ query: { id: null, assortid: this.queryParams.assortid },
+ });
+ },
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
@@ -630,12 +727,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 &&
@@ -688,6 +794,28 @@
})
.catch(() => {});
}
+ },
+ altertag(a, b) {
+ this.dialogFormVisible = true;
+ if (!b.pid) {
+ this.radio = "涓诲垎绫�";
+ this.title = "淇敼涓诲垎绫�";
+ this.zufon = false;
+ } else {
+ this.radio = "瀛愬垎绫�";
+ this.title = "淇敼瀛愬垎绫�";
+ this.zifon = false;
+ }
+ this.classifyform = b;
+ this.dialogFormVisible = true;
+ },
+ // 棰勮
+ preview(row) {
+ getvFollowup({ id: row.id }).then((res) => {
+ this.topicform = res.data;
+ console.log(this.topicform);
+ this.topicVisible = true;
+ });
},
// 绛涢�夎妭鐐�
@@ -921,6 +1049,22 @@
font-size: 20px;
}
}
+.preview-left {
+ margin: 20px;
+ // margin: 20px;
+ padding: 30px;
+ background: #ffff;
+ border: 1px solid #dcdfe6;
+ -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+ 0 0 6px 0 rgba(0, 0, 0, 0.04);
+ .scriptTopic-dev {
+ margin-bottom: 25px;
+ font-size: 20px !important;
+ .dev-text {
+ margin-bottom: 10px;
+ }
+ }
+}
::v-deep .el-tree-node__content {
display: -webkit-box;
display: -ms-flexbox;
@@ -932,20 +1076,23 @@
font-size: 20px;
cursor: pointer;
}
-::v-deep .el-tree{
+::v-deep .el-tree {
position: relative;
- cursor: default;
- border-radius: 5px;
- background: #EFF8FE;
- color: #606266;
+ cursor: default;
+ border-radius: 5px;
+ background: #eff8fe;
+ color: #606266;
border: 1px solid #bbe1fa;
- // border: 1px solid #dcdfe6;
- -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
-
+ // border: 1px solid #dcdfe6;
+ -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+ 0 0 6px 0 rgba(0, 0, 0, 0.04);
}
-::v-deep .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
- background-color: #7799FB ;
- color: #fff;
+::v-deep
+ .el-tree--highlight-current
+ .el-tree-node.is-current
+ > .el-tree-node__content {
+ background-color: #7799fb;
+ color: #fff;
}
::v-deep .el-button--mini.is-circle {
padding: 7px;
--
Gitblit v1.9.3