From 5339f63a6ab4611681b8ffd0a295193b1f5986b6 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 27 五月 2024 14:16:20 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/templateku/configurat/index.vue | 92 ++++++++++++++++++++-------------------------- 1 files changed, 40 insertions(+), 52 deletions(-) diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue index b9fbd06..bbacac3 100644 --- a/src/views/repositoryai/templateku/configurat/index.vue +++ b/src/views/repositoryai/templateku/configurat/index.vue @@ -351,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> @@ -453,7 +455,6 @@ <el-input v-model="topicobj.questiontitle" placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" - :disabled="true" ></el-input> </el-form-item> <el-form-item label="闂鑺傜偣"> @@ -679,9 +680,9 @@ </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 @@ -858,6 +859,8 @@ drawer: false, //鎺у埗灞曞紑 radios: [], //澶氶�夐閫変腑 radioas: "", //濉┖棰樼瓟妗� + task: null, //鏄惁鏉ヨ嚜浠诲姟 + taskform: null, //浠诲姟淇℃伅 labelInfovalue: [], //鏍囩涓存椂瀛樺偍 deptNamesvalue: [], //绉戝涓存椂瀛樺偍 dynamicTags: [], @@ -867,7 +870,9 @@ topicobj: {}, total: 1, id: "", - ruleForm: {}, + ruleForm: { + templateName: "", + }, rules: {}, optionstag: [], prefollowuplist: [], @@ -925,38 +930,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, @@ -971,6 +949,7 @@ }, created() { + this.RoutingDataProcessing(); this.gettabList(); this.getvFollowup(); this.auxiliary(); @@ -991,27 +970,36 @@ 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 == 200 && res.data) { + 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, -- Gitblit v1.9.3