From 08881d6b6412822d5035f63a0775ca1f213c8668 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 20 十月 2025 10:17:22 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/templateku/index.vue | 265 ++++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 210 insertions(+), 55 deletions(-)
diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue
index cac920a..bc38fb5 100644
--- a/src/views/repositoryai/templateku/index.vue
+++ b/src/views/repositoryai/templateku/index.vue
@@ -3,8 +3,8 @@
<!-- 宸︿晶鏍� -->
<div class="sidecolumn">
<div class="sidecolumn-top">
- <div class="top-wj">妯$増绫诲瀷</div>
- <div class="top-tj" @click="dialogFormVisible = true">+娣诲姞</div>
+ <div class="top-wj">妯℃澘绫诲瀷</div>
+ <div class="top-tj" @click="Newcategory">+娣诲姞</div>
</div>
<div class="center-ss">
<el-input
@@ -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>
@@ -57,55 +68,35 @@
v-show="showSearch"
label-width="98px"
>
- <el-form-item label="妯$増鏍囬" prop="userName">
+ <el-form-item label="妯℃澘鏍囬" prop="templateName">
<el-input
- v-model="queryParams.userName"
+ v-model="queryParams.templateName"
placeholder="璇疯緭鍏�"
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
- <el-form-item label="閫傜敤绉戝" prop="region">
- <el-cascader
- v-model="queryParams.administrative"
- :options="deptList"
- :props="props"
- :show-all-levels="false"
- clearable
+ <el-form-item label="閫傜敤闄㈠尯" prop="region">
+ <el-select
+ v-model="campus"
+ size="medium"
+ multiple
+ filterable
+ placeholder="璇烽�夋嫨鍒嗙被"
>
- <template slot-scope="{ node, data }">
- <span>{{ data.deptName }}</span>
- <span v-if="!node.isLeaf">
- ({{ data.children.length }})
- </span>
- </template>
- </el-cascader>
- </el-form-item>
- <el-form-item label="鍙敤鐘舵��" prop="status">
- <el-select v-model="queryParams.status" placeholder="璇烽�夋嫨">
<el-option
- v-for="item in qyoptions"
- :key="item.value"
+ class="ruleFormaa"
+ v-for="item in courtyardlist"
+ :key="item.label"
:label="item.label"
- :value="item.value"
+ :value="item.label"
>
</el-option>
</el-select>
</el-form-item>
- <el-form-item label="閫傜敤鏂瑰紡" prop="status">
- <el-select v-model="queryParams.status" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in languagelist"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="鍐呭褰㈠紡" prop="status">
- <el-select v-model="queryParams.status" placeholder="璇烽�夋嫨">
+ <el-form-item label="鍙敤鐘舵��" prop="usestate">
+ <el-select v-model="queryParams.usestate" placeholder="璇烽�夋嫨">
<el-option
v-for="item in qyoptions"
:key="item.value"
@@ -160,7 +151,7 @@
</el-col>
<!-- <el-col :span="1.5"> </el-col> -->
</el-row>
- <!-- 鏍囧噯妯$増 -->
+ <!-- 鏍囧噯妯℃澘 -->
<el-table
v-loading="loading"
:data="userList"
@@ -168,9 +159,16 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="50" align="center" />
- <el-table-column label="搴忓彿" align="center" key="id" prop="id" />
<el-table-column
- label="妯$増鍚嶇О"
+ label="搴忓彿"
+ fixed
+ align="center"
+ key="id"
+ prop="id"
+ />
+ <el-table-column
+ label="妯℃澘鍚嶇О"
+ fixed
align="center"
key="templateName"
prop="templateName"
@@ -280,6 +278,7 @@
<el-table-column
label="鎿嶄綔"
+ fixed="right"
align="center"
width="200"
class-name="small-padding fixed-width"
@@ -314,7 +313,7 @@
</template>
</el-table-column>
</el-table>
- <!-- 閫氱敤妯$増 -->
+ <!-- 閫氱敤妯℃澘 -->
<!-- 搴曢儴鍒嗛〉 -->
<pagination
@@ -329,11 +328,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>
@@ -357,7 +361,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>
@@ -409,6 +413,68 @@
<el-button type="primary" @click="confirmillness">纭� 瀹�</el-button>
</span>
</el-dialog>
+ <!-- 闅忚棰樼洰棰勮 -->
+ <el-dialog title="闅忚棰樼洰棰勮" :visible.sync="topicVisible" width="50%">
+ <div class="preview-left">
+ <div v-for="item in topicform.ivrLibaTemplateScriptVOList">
+ <!-- 鍗曢�� -->
+ <div
+ class="scriptTopic-dev"
+ :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"
+ :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"
+ :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>
+ </div>
+ </el-dialog>
</div>
</template>
@@ -419,6 +485,7 @@
getFollowupclassify,
delFollowupclassify,
addFollowupclassify,
+ editFollowupclassify,
addtargetillness,
getvFollowup,
compileFollowup,
@@ -450,6 +517,8 @@
total: 0,
namequestionnaire: "",
haoquestionnaire: "",
+ topicform: {},
+ topicVisible: false,
idds: "",
amendtag: false, //鏄惁淇敼绫诲埆
dialogFormVisible: false, //淇敼娣诲姞绫诲埆寮规
@@ -461,7 +530,7 @@
// 琛ㄦ牸鏁版嵁
userList: [],
// 寮瑰嚭灞傛爣棰�
- title: "",
+ title: "绫诲埆缂栬緫",
// 鏄惁鏄剧ず寮瑰嚭灞�
open: false,
// 鏃ユ湡鑼冨洿
@@ -487,11 +556,14 @@
pageNum: 1,
pageSize: 10,
},
+ campus: [],
// 琛ㄥ崟鏍¢獙
rules: {},
indexid: null,
inputValue: "",
radio: "涓诲垎绫�",
+ zufon: true,
+ zifon: true,
inputVisible: false,
illnessVisible: false, //鎸囨爣鐤剧梾寮规
deptOptions: [],
@@ -507,6 +579,7 @@
mode: [],
languagelist: [],
qyoptions: [],
+ courtyardlist: [],
};
},
watch: {
@@ -518,15 +591,19 @@
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;
this.precedencetype = store.getters.precedencetype;
+ this.courtyardlist = store.getters.courtyardlist;
},
methods: {
/** 鏌ヨ淇℃伅 */
getList() {
+ this.queryParams.campus = this.campus.join(",");
getFollowuplist(this.queryParams).then((res) => {
console.log(res);
console.log(this.userList);
@@ -535,19 +612,20 @@
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");
});
},
- // 澶嶅埗妯$増
+ // 澶嶅埗妯℃澘
copyfn() {},
- // 涓嬭浇妯$増
+ // 涓嬭浇妯℃澘
downloadfn() {},
// 璺宠浆缂栬緫璇濇湳椤甸潰
compileUpdate(row) {
+ // this.$router.replace("/tpuconfigurat");
this.$router.push({
- path: "/knowledge/templateku/configurat/",
+ path: "/knowledge/tpuconfigurat/",
query: { id: row.id },
});
},
@@ -601,7 +679,12 @@
this.multiple = !selection.length;
},
/** 鏂板鎸夐挳鎿嶄綔 */
- handleAdd() {},
+ handleAdd() {
+ this.$router.push({
+ path: "/knowledge/tpuconfigurat/",
+ query: { id: null, assortid: this.queryParams.assortid },
+ });
+ },
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
@@ -628,12 +711,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 &&
@@ -686,6 +778,35 @@
})
.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;
+ },
+ Newcategory() {
+ this.classifyform = {}; //绫诲埆琛ㄥ崟
+ this.radio = "涓诲垎绫�";
+ this.dialogFormVisible = true;
+ this.zifon = true;
+ this.zufon = true;
+ },
+ // 棰勮
+ preview(row) {
+ getvFollowup({ id: row.id }).then((res) => {
+ this.topicform = res.data;
+ console.log(this.topicform);
+ this.topicVisible = true;
+ });
},
// 绛涢�夎妭鐐�
@@ -784,8 +905,8 @@
// display: flex;
margin-top: 20px;
margin: 20px;
- padding: 30px;
- background: #edf1f7;
+ padding: 20px;
+ background: #fff;
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);
@@ -919,6 +1040,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;
@@ -930,6 +1067,24 @@
font-size: 20px;
cursor: pointer;
}
+::v-deep .el-tree {
+ position: relative;
+ 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);
+}
+::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;
margin: 0;
--
Gitblit v1.9.3