From 257f46bce7c3325c9d9aed68e0df84ea279019aa Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 28 五月 2024 15:30:21 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/templateku/configurat/index.vue | 490 +++++++++++++++++++++++++++++------------------------
1 files changed, 266 insertions(+), 224 deletions(-)
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 1971fbf..d17d4c3 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -307,15 +307,19 @@
</el-select>
</el-form-item>
<el-row :gutter="20">
- <el-col :span="8">
+ <el-col :span="12">
<el-form-item label="闅忚鍓嶅鐞�" prop="name">
<el-input
+ type="textarea"
+ show-word-limit
v-model="ruleForm.revisitBefore"
></el-input></el-form-item
></el-col>
- <el-col :span="9">
+ <el-col :span="12">
<el-form-item label="闅忚鍚庡鐞�" prop="region">
<el-input
+ type="textarea"
+ show-word-limit
v-model="ruleForm.revisitAfter"
></el-input> </el-form-item
></el-col>
@@ -347,8 +351,10 @@
>涓嬩竴姝�</el-button
>
<el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button>
- <el-button type="success" @click="Departmenttreatment('ruleForm')"
- >淇濆瓨闅忚妯$増鍩虹淇℃伅</el-button
+ <el-button
+ type="success"
+ @click="Departmenttreatment('ruleForm')"
+ >{{ task ? "淇濆瓨鍒颁换鍔℃ā鐗�" : "淇濆瓨闅忚妯$増鍩虹淇℃伅" }}</el-button
>
</el-form-item>
</el-form>
@@ -449,7 +455,6 @@
<el-input
v-model="topicobj.questiontitle"
placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨"
- :disabled="true"
></el-input>
</el-form-item>
<el-form-item label="闂鑺傜偣">
@@ -463,8 +468,8 @@
<el-col :span="12"
><el-form-item label="鏄惁蹇呭~">
<el-select
- v-model="topicobj.ismandatory"
- placeholder="璇烽�夋嫨"
+ v-model="topicobj.isMust"
+ placeholder="榛樿蹇呭~"
>
<el-option
v-for="item in required"
@@ -476,13 +481,14 @@
</el-select> </el-form-item
></el-col>
<el-col :span="12"
- ><el-form-item label="鏄惁鍙敤">
+ ><el-form-item label="鍙栧�肩被鍨�">
<el-select
- v-model="topicobj.isavailable"
+ v-model="topicobj.valueType"
placeholder="璇烽�夋嫨"
+ :disabled="true"
>
<el-option
- v-for="item in usable"
+ v-for="item in valuetype"
:key="item.value"
:label="item.label"
:value="item.value"
@@ -491,173 +497,192 @@
</el-select> </el-form-item
></el-col>
</el-row>
- <div class="headline">
- <div class="basics">閫夐」璁剧疆</div>
- <div class="headbottom">
- <el-button
- type="primary"
- icon="el-icon-circle-plus-outline"
- @click="addzbiao"
- >娣诲姞鎸囨爣</el-button
- >
+ <div
+ class="topicxq"
+ v-if="topicobj.valueType == 2 || topicobj.valueType == 3"
+ >
+ <el-row>
+ <el-col :span="20">
+ <el-form-item label="鏀堕泦鍐呭">
+ <el-input
+ style="width: 400px"
+ type="textarea"
+ v-model="topicobj.value"
+ placeholder="闂鏀堕泦鍐呭"
+ ></el-input>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ </div>
+ <div v-else>
+ <div class="headline">
+ <div class="basics">閫夐」璁剧疆</div>
+ <!-- <div class="headbottom">
+ <el-button
+ type="primary"
+ icon="el-icon-circle-plus-outline"
+ @click="addzbiao"
+ >娣诲姞鎸囨爣</el-button
+ >
+ </div> -->
</div>
- </div>
- <Regular
- :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList"
- @deloption="deloption"
- :controlsc="false"
- />
- <!-- 鏃犲尮閰嶇被鍨� -->
- <div class="topicxq">
- <el-row :gutter="10">
- <el-col :span="12"
- ><el-form-item label="鏃犲尮閰嶈瘽鏈�">
- <el-input
- type="text"
- placeholder="璇疯緭鍏�"
- v-model="topicobj.nomatchtext"
- show-word-limit
- >
- </el-input> </el-form-item
- ></el-col>
- </el-row>
- <el-row :gutter="10">
- <el-col :span="12"
- ><el-form-item label="澶勭悊">
- <el-input
- type="text"
- placeholder="(榛樿)鏃犲0"
- v-model="topicobj.text"
- maxlength="10"
- show-word-limit
- >
- </el-input> </el-form-item
- ></el-col>
- </el-row>
-
- <el-row :gutter="10">
- <el-col :span="16">
- <el-form-item label="璇煶鏂囦欢">
- <el-upload
- class="upload-demo"
- style="display: flex"
- action="https://jsonplaceholder.typicode.com/posts/"
- :on-change="handleChange"
- :file-list="fileList"
- :limit="1"
- :on-exceed="handleExceed"
- >
- <el-button size="small" type="primary"
- >鐐瑰嚮涓婁紶</el-button
+ <Regular
+ :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList"
+ @deloption="deloption"
+ :controlsc="false"
+ />
+ <!-- 鏃犲尮閰嶇被鍨� -->
+ <div class="topicxq">
+ <el-row :gutter="10">
+ <el-col :span="12"
+ ><el-form-item label="鏃犲尮閰嶈瘽鏈�">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏�"
+ v-model="topicobj.noMatchText"
+ show-word-limit
>
- </el-upload>
- </el-form-item></el-col
- >
- </el-row>
- </div>
- <div class="topicxq">
- <el-row :gutter="10">
- <el-col :span="12"
- ><el-form-item label="鍚笉娓呰瘽鏈�">
- <el-input
- type="text"
- placeholder="璇疯緭鍏�"
- v-model="topicobj.noclearlytext"
- show-word-limit
- >
- </el-input> </el-form-item
- ></el-col>
- </el-row>
- <el-row :gutter="10">
- <el-col :span="12"
- ><el-form-item label="澶勭悊">
- <el-input
- type="text"
- placeholder="(榛樿)鏃犲0"
- v-model="topicobj.text"
- maxlength="10"
- show-word-limit
- >
- </el-input> </el-form-item
- ></el-col>
- </el-row>
-
- <el-row :gutter="10">
- <el-col :span="16">
- <el-form-item label="璇煶鏂囦欢">
- <el-upload
- class="upload-demo"
- style="display: flex"
- action="https://jsonplaceholder.typicode.com/posts/"
- :on-change="handleChange"
- :file-list="fileList"
- :limit="1"
- :on-exceed="handleExceed"
- >
- <el-button size="small" type="primary"
- >鐐瑰嚮涓婁紶</el-button
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row>
+ <!-- <el-row :gutter="10">
+ <el-col :span="12"
+ ><el-form-item label="澶勭悊">
+ <el-input
+ type="text"
+ placeholder="(榛樿)鏃犲0"
+ v-model="topicobj.text"
+ maxlength="10"
+ show-word-limit
>
- </el-upload>
- </el-form-item></el-col
- >
- </el-row>
- </div>
- <div class="topicxq">
- <el-row :gutter="10">
- <el-col :span="12"
- ><el-form-item label="闈欓粯璇濇湳">
- <el-input
- type="text"
- placeholder="璇疯緭鍏�"
- v-model="topicobj.sliencetext"
- show-word-limit
- >
- </el-input> </el-form-item
- ></el-col>
- </el-row>
- <el-row :gutter="10">
- <el-col :span="12"
- ><el-form-item label="澶勭悊">
- <el-input
- type="text"
- placeholder="(榛樿)鏃犲0"
- v-model="topicobj.text"
- maxlength="10"
- show-word-limit
- >
- </el-input> </el-form-item
- ></el-col>
- </el-row>
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row> -->
- <el-row :gutter="10">
- <el-col :span="16">
- <el-form-item label="璇煶鏂囦欢">
- <el-upload
- class="upload-demo"
- style="display: flex"
- action="https://jsonplaceholder.typicode.com/posts/"
- :on-change="handleChange"
- :file-list="fileList"
- :limit="1"
- :on-exceed="handleExceed"
- >
- <el-button size="small" type="primary"
- >鐐瑰嚮涓婁紶</el-button
+ <el-row :gutter="10">
+ <el-col :span="16">
+ <el-form-item label="璇煶鏂囦欢">
+ <el-upload
+ class="upload-demo"
+ style="display: flex"
+ action="https://jsonplaceholder.typicode.com/posts/"
+ :on-change="handleChange"
+ :file-list="fileList"
+ :limit="1"
+ :on-exceed="handleExceed"
>
- </el-upload>
- </el-form-item></el-col
- >
- </el-row>
+ <el-button size="small" type="primary"
+ >鐐瑰嚮涓婁紶</el-button
+ >
+ </el-upload>
+ </el-form-item></el-col
+ >
+ </el-row>
+ </div>
+ <div class="topicxq">
+ <el-row :gutter="10">
+ <el-col :span="12"
+ ><el-form-item label="鍚笉娓呰瘽鏈�">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏�"
+ v-model="topicobj.noClearlyText"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row>
+ <!-- <el-row :gutter="10">
+ <el-col :span="12"
+ ><el-form-item label="澶勭悊">
+ <el-input
+ type="text"
+ placeholder="(榛樿)鏃犲0"
+ v-model="topicobj.text"
+ maxlength="10"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row> -->
+
+ <el-row :gutter="10">
+ <el-col :span="16">
+ <el-form-item label="璇煶鏂囦欢">
+ <el-upload
+ class="upload-demo"
+ style="display: flex"
+ action="https://jsonplaceholder.typicode.com/posts/"
+ :on-change="handleChange"
+ :file-list="fileList"
+ :limit="1"
+ :on-exceed="handleExceed"
+ >
+ <el-button size="small" type="primary"
+ >鐐瑰嚮涓婁紶</el-button
+ >
+ </el-upload>
+ </el-form-item></el-col
+ >
+ </el-row>
+ </div>
+ <div class="topicxq">
+ <el-row :gutter="10">
+ <el-col :span="12"
+ ><el-form-item label="闈欓粯璇濇湳">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏�"
+ v-model="topicobj.slienceText"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row>
+ <!-- <el-row :gutter="10">
+ <el-col :span="12"
+ ><el-form-item label="澶勭悊">
+ <el-input
+ type="text"
+ placeholder="(榛樿)鏃犲0"
+ v-model="topicobj.text"
+ maxlength="10"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row> -->
+
+ <el-row :gutter="10">
+ <el-col :span="16">
+ <el-form-item label="璇煶鏂囦欢">
+ <el-upload
+ class="upload-demo"
+ style="display: flex"
+ action="https://jsonplaceholder.typicode.com/posts/"
+ :on-change="handleChange"
+ :file-list="fileList"
+ :limit="1"
+ :on-exceed="handleExceed"
+ >
+ <el-button size="small" type="primary"
+ >鐐瑰嚮涓婁紶</el-button
+ >
+ </el-upload>
+ </el-form-item></el-col
+ >
+ </el-row>
+ </div>
</div>
</el-form>
</el-card>
</div>
</div>
- <el-button type="success" @click="Departmenttreatment('ruleForm')"
- >淇濆瓨棰樼洰鏁版嵁</el-button
- >
+ <el-button type="success" @click="Departmenttreatment('ruleForm')">{{
+ task ? "淇濆瓨鍒颁换鍔℃ā鐗�" : "淇濆瓨棰樼洰鏁版嵁"
+ }}</el-button>
<el-button type="primary" plain @click="laststep()">涓婁竴姝�</el-button>
<el-button type="success" plain @click="preview('ruleForm')"
>鏌ョ湅棰勮</el-button
@@ -834,16 +859,27 @@
drawer: false, //鎺у埗灞曞紑
radios: [], //澶氶�夐閫変腑
radioas: "", //濉┖棰樼瓟妗�
+ task: null, //鏄惁鏉ヨ嚜浠诲姟
+ taskform: null, //浠诲姟淇℃伅
labelInfovalue: [], //鏍囩涓存椂瀛樺偍
deptNamesvalue: [], //绉戝涓存椂瀛樺偍
dynamicTags: [],
indexAssortlist: [],
inputValue: "",
inputValueillness: "",
- topicobj: {},
+ topicobj: {
+ noMatchText:'',
+ noClearlyText:'',
+ slienceText:'',
+ },
total: 1,
id: "",
- ruleForm: {},
+ ruleForm: {
+ templateName: "",
+ ivrLibaTemplateTagList: [],
+ ivrLibaTemplateScriptVOList: [],
+ tempDetpRelevances: [],
+ },
rules: {},
optionstag: [],
prefollowuplist: [],
@@ -870,6 +906,7 @@
precedencetype: [],
usable: [],
required: [],
+ valuetype: [],
mode: [],
inputVisible: false,
inputVisibleillness: false,
@@ -900,38 +937,11 @@
},
],
- valssu: [
- {
- idd: 1,
- wssd: "浣犳渶杩戞�庝箞鏍�",
- sdadd: ["sss", "ssccss", "ssaas", "ss"],
- },
- ],
+ valssu: [],
radio: "",
addvalue: "娣诲姞棰樼洰",
// 棰樼洰琛ㄦ牸鏁版嵁
- userList: [
- {
- userid: "1",
- userName: "涓�鍙烽殢璁挎ā鐗�",
- verbaltrick: "涓�鍙烽殢璁挎ā鐗�",
- },
- {
- userid: "2",
- userName: "浜屽彿闅忚妯$増",
- verbaltrick: "涓�鍙烽殢璁挎ā鐗�",
- },
- {
- userid: "3",
- userName: "涓夊彿闅忚妯$増",
- verbaltrick: "涓�鍙烽殢璁挎ā鐗�",
- },
- {
- userid: "4",
- userName: "鍥涘彿闅忚妯$増",
- verbaltrick: "涓�鍙烽殢璁挎ā鐗�",
- },
- ],
+ userList: [],
// 鏌ヨ鍙傛暟
queryParams: {
pageNum: 1,
@@ -946,16 +956,19 @@
},
created() {
+ this.RoutingDataProcessing();
this.gettabList();
this.getvFollowup();
this.auxiliary();
this.mode = store.getters.mode;
this.usable = store.getters.usable;
this.required = store.getters.required;
+ this.valuetype = store.getters.valuetype;
this.languagelist = store.getters.languagelist;
this.courtyardlist = store.getters.courtyardlist;
this.precedencetype = store.getters.precedencetype;
},
+ mounted() {},
methods: {
//鍏叡鏂规硶--------------------
@@ -965,27 +978,37 @@
processElement(element) {
return { ...element, isoperation: 0 };
},
+ // 璺敱鏁版嵁澶勭悊
+ RoutingDataProcessing() {
+ this.id = this.$route.query.id;
+ this.task = this.$route.query.task;
+
+ // console.log(this.task, "task");
+ // if (this.task) {
+ // this.id = this.$route.query.id;
+ // }
+ },
// 鑾峰彇琛ㄥ崟鏁版嵁
getvFollowup() {
- this.id = this.$route.query.id;
-
getvFollowup({ id: this.id }).then((res) => {
- this.ruleForm = res.data;
+ if (res.code == 200 && this.id) {
+ console.log(2211);
+ this.ruleForm = res.data;
+ this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames);
+ this.ruleForm.suitway = this.ruleForm.suitway.split(",");
+ this.ruleForm.campus = this.ruleForm.campus.split(",");
+ this.ruleForm.submoduleID = this.ruleForm.submoduleID.split(",");
+ this.ruleForm.submoduleID = this.ruleForm.submoduleID.map((res) => {
+ return Number(res);
+ });
+ console.log(this.ruleForm.submoduleID, "this.ruleForm.submoduleID鍙�");
+ this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList;
- this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames);
- this.ruleForm.suitway = this.ruleForm.suitway.split(",");
- this.ruleForm.campus = this.ruleForm.campus.split(",");
- this.ruleForm.submoduleID = this.ruleForm.submoduleID.split(",");
- this.ruleForm.submoduleID = this.ruleForm.submoduleID.map((res) => {
- return Number(res);
- });
- console.log(this.ruleForm.submoduleID, "this.ruleForm.submoduleID鍙�");
- this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList;
-
- this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList.map(
- this.processElement
- );
- console.log(this.ruleForm.suitway);
+ this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList.map(
+ this.processElement
+ );
+ console.log(this.ruleForm.suitway);
+ }
});
getillnesslist({
pageNum: 1,
@@ -993,9 +1016,11 @@
}).then((response) => {
this.optionsillness = response.rows;
});
- getillness({ outid: this.id, type: 3 }).then((res) => {
- this.illnesslist = res.rows;
- });
+ if (this.id) {
+ getillness({ outid: this.id, type: 3 }).then((res) => {
+ this.illnesslist = res.rows;
+ });
+ }
listDept(this.queryParams).then((response) => {
this.deptList = this.handleTree(response.data, "deptId");
});
@@ -1005,6 +1030,18 @@
// 鍒嗙被
getFollowupclassify({}).then((res) => {
this.indexAssortlist = res.rows;
+ this.ruleForm.assortid = Number(this.$route.query.assortid);
+ });
+ // 绉戝
+ listDept(this.queryParams).then((response) => {
+ this.deptList = this.handleTree(response.data, "deptId");
+ });
+ // 鐤剧梾
+ getillnesslist({
+ pageNum: 1,
+ pageSize: 100,
+ }).then((response) => {
+ this.optionsillness = response.rows;
});
getgenerallist({
pageNum: 1,
@@ -1197,7 +1234,6 @@
this.getaddtopiclist();
},
getaddtopiclist() {
- console.log(12);
this.drawer = true;
getverbaltricklist(this.queryParams).then((res) => {
this.loading = false;
@@ -1220,13 +1256,18 @@
});
},
handleDelete(row) {
- let index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row);
- this.ruleForm.ivrLibaTemplateScriptVOList.splice(
- this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row),
- 1
- );
- row.isoperation = 3;
- this.delScriptVOList.push(row);
+ this.$modal
+ .confirm('鏄惁纭鍒犻櫎闂锛�"' + row.questiontitle + '"锛�')
+ .then(() => {
+ this.ruleForm.ivrLibaTemplateScriptVOList.splice(
+ this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row),
+ 1
+ );
+ row.isoperation = 3;
+ this.delScriptVOList.push(row);
+ this.$modal.msgSuccess("宸插垹闄わ紝淇濆瓨妯$増鐢熸晥");
+ })
+ .catch(() => {});
},
handleUpdate(row) {
console.log(row);
@@ -1234,6 +1275,7 @@
if (row.ivrLibaScriptTargetoptionList.length) {
console.log(11);
this.topicobj = row;
+ this.topicobj.valueType = row.valueType;
} else {
getverbaltrick({ id: row.id }).then((res) => {
if (res.data) {
--
Gitblit v1.9.3