From 79925204a4e1588d1031ca0429ae318a608a8928 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 01 二月 2024 11:32:23 +0800 Subject: [PATCH] 指标完成 --- src/views/repositoryai/templateku/configurat/index.vue | 124 ++++++++++++++++++---------------------- 1 files changed, 56 insertions(+), 68 deletions(-) diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue index 004e65d..5c24a30 100644 --- a/src/views/repositoryai/templateku/configurat/index.vue +++ b/src/views/repositoryai/templateku/configurat/index.vue @@ -2,14 +2,29 @@ <div class="Questionnairemanagement"> <!-- 宸︿晶鏍� --> <div class="sidecolumn"> - <div style="height: 400px"> - <el-steps direction="vertical" :active="Editprogress"> - <el-step title="鍩虹淇℃伅"></el-step> - <el-step title="闅忚妯$増棰樼洰"></el-step> - <el-step - title="闅忚妯$増棰勮" - description="鏌ョ湅闅忚妯$増棰勮锛屽彲瀵煎嚭PDF" - ></el-step> + <div> + <el-steps finish-status="success" :active="Editprogress" simple> + <el-step> + <template slot="title"> + <span style="cursor: pointer" @click="Editprogress = 1" + >鍩虹淇℃伅</span + > + </template> + </el-step> + <el-step> + <template slot="title"> + <span style="cursor: pointer" @click="Editprogress = 2" + >闅忚妯$増棰樼洰</span + > + </template> + </el-step> + <el-step description="鏌ョ湅闅忚妯$増棰勮锛屽彲瀵煎嚭PDF"> + <template slot="title"> + <span style="cursor: pointer" @click="Editprogress = 3" + >闅忚妯$増棰勮</span + > + </template> + </el-step> </el-steps> </div> </div> @@ -292,7 +307,7 @@ </el-form-item> <el-row :gutter="20"> <el-col :span="8"> - <el-form-item label="闅忚鍓嶅鐞�" prop="name"> + <el-form-item label="闅忚鍓嶅鐞嗭紙鏄惁闇�瑕侊級" prop="name"> <el-select v-model="ruleForm.prefollowup" size="medium" @@ -310,7 +325,7 @@ </el-select> </el-form-item ></el-col> <el-col :span="9"> - <el-form-item label="闅忚鍚庡鐞�" prop="region"> + <el-form-item label="闅忚鍚庡鐞嗭紙鏄惁闇�瑕侊級" prop="region"> <el-select v-model="ruleForm.postfollowup" size="medium" @@ -333,7 +348,7 @@ <el-form-item label="闈欓粯鏃堕棿(绉�)" prop="name"> <div style="width: 40%"> <el-input - v-model="ruleForm.name" + v-model="ruleForm.silencetime" ></el-input></div></el-form-item ></el-col> <el-col :span="10"> @@ -576,7 +591,7 @@ > <el-col :span="8"> <div style="text-align: right; padding-right: 10px"> - <el-button type="danger" round>鍒犻櫎</el-button> + <el-button type="danger" @click="" round>鍒犻櫎</el-button> </div> </el-col> </el-row> @@ -881,6 +896,7 @@ delFollowupinfo, Followupinfo, getFollowuplist, + deltargetillness, getillnesslist, illnesslistget, getillness, @@ -943,6 +959,7 @@ label: "indexAssortName", }, tempDetpRelevanceslist: [], + delScriptVOList: [], variablelist: [ { variatename: "濮撳悕", variate: "${name}", default: 1 }, { variatename: "鐢佃瘽", variate: "${phone}", default: 1 }, @@ -1088,6 +1105,9 @@ Departmenttreatment() { this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); console.log(this.tempDetpRelevanceslist); + console.log(this.delScriptVOList, "this.delScriptVOList"); + this.ruleForm.ivrLibaTemplateScriptVOList = + this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList); const result = this.tempDetpRelevanceslist.map( (subArr) => subArr[subArr.length - 1] ); @@ -1146,20 +1166,6 @@ }); }, - /** 鏌ヨ棰樼洰鍒楄〃 */ - getList() { - // this.loading = true; - listUser().then((response) => { - console.log(response); - // this.userList = response.data; - // this.total = response.total; - // this.loading = false; - console.log(this.userList); - }); - // const { rows } = await listUser(); - // console.log(rows); - // this.list = rows; - }, // 淇敼棰樼洰淇℃伅 Submittopicobj() {}, @@ -1252,29 +1258,35 @@ }); }, addtopic(row) { - row.isoperation = 1; - this.ruleForm.ivrLibaTemplateScriptVOList.push(row); + console.log(row); + getverbaltrick({ id: row.id }).then((res) => { + console.log(res, "璇︽儏"); + res.data.isoperation = 1; + res.data.id = null; + res.data.ivrLibaScriptTargetoptionList.forEach((item) => { + item.isoperation = 1; + }); + this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data); + }); }, 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); }, handleUpdate(row) { - console.log(row.id); - getverbaltrick({ id: row.id }).then((res) => { - this.topicobj = res.data; - console.log(res.data); - }); - }, - handleDelete(item) { - const index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(item); - if (index !== -1) { - this.ruleForm.ivrLibaTemplateScriptVOList.splice(index, 1); // 浠庣储寮曚綅缃垹闄や竴涓厓绱� - this.sortFn(); + console.log(row); + if (row.ivrLibaScriptTargetoptionList.length) { + this.topicobj = row; } else { - console.log("鏈壘鍒拌瀵硅薄"); + getverbaltrick({ id: row.id }).then((res) => { + this.topicobj = res.data; + console.log(res.data, "topicobj"); + }); } }, syioption(row) { @@ -1304,12 +1316,7 @@ sortFn() { this.ruleForm.ivrLibaTemplateScriptVOList = this.ruleForm.ivrLibaTemplateScriptVOList.map((item, index) => { - return { - guid: index + 1, - id: item.id, - questiontitle: item.questiontitle, - questionText: item.questionText, - }; + return Object.assign({}, item, { guid: (index + 1).toString() }); }); console.log(this.ruleForm.ivrLibaTemplateScriptVOList); }, @@ -1359,33 +1366,15 @@ this.inputVisibleillness = false; this.inputValueillness = ""; }, - // 淇濆瓨 - confirmillness() { - this.illnesslist.forEach((item, index) => { - if (!item.id) { - addtargetillness(item).then((res) => {}); - } - }); - if (this.illnesslistapi.length) { - deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); - } - this.illnessVisible = false; - this.$modal.msgSuccess("缂栬緫鎴愬姛"); - }, }, }; </script> <style lang="scss" scoped> .Questionnairemanagement { - display: flex; + // display: flex; } .sidecolumn { - width: 250px; - min-height: 100vh; - text-align: center; - // display: flex; - // margin-top: 20px; margin: 20px; margin-bottom: 0; padding: 30px; @@ -1397,9 +1386,8 @@ .leftvlue { // display: flex; // flex: 1; - width: 80%; - margin-top: 20px; - // margin: 20px; + // width: 80%; + margin: 20px; padding: 30px; background: #ffff; border: 1px solid #dcdfe6; -- Gitblit v1.9.3