From d96a7562b2515584fac4dcb57fdbdcadc8f36fef Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期六, 03 八月 2024 17:48:23 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/verbaltrick/particulars/index.vue | 51 ++++++++++++++++++++++----------------------------- 1 files changed, 22 insertions(+), 29 deletions(-) diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue index c2e2cf3..7c2cdb0 100644 --- a/src/views/repositoryai/verbaltrick/particulars/index.vue +++ b/src/views/repositoryai/verbaltrick/particulars/index.vue @@ -328,6 +328,7 @@ <el-upload class="upload-demo" :action="uploadImgUrl" + :show-file-list="false" :headers="headers" :on-success=" (response, file) => handleChange(response, file, 2) @@ -376,6 +377,7 @@ <el-upload class="upload-demo" :action="uploadImgUrl" + :show-file-list="false" :headers="headers" :on-success=" (response, file) => handleChange(response, file, 3) @@ -425,6 +427,7 @@ <el-upload class="upload-demo" :action="uploadImgUrl" + :show-file-list="false" :headers="headers" :on-success=" (response, file) => handleChange(response, file, 4) @@ -534,14 +537,16 @@ <el-col :span="12"> <el-form-item label="娴嬭瘯杈撳叆" prop="targetvalue"> <el-input - v-model="testvalue" + v-model="indexform.content" placeholder="璇疯緭鍏ユ祴璇曞唴瀹�" maxlength="40" /> </el-form-item> </el-col> <el-col :span="4"> - <el-button type="success">寮�濮嬫祴璇�</el-button> + <el-button type="success" @click="testtagerlist" + >寮�濮嬫祴璇�</el-button + > </el-col> </el-row> <div style="margin-bottom: 20px"> @@ -816,33 +821,21 @@ } }, - // targetchange(res) { - // console.log(res); - // gettargetInfo({ id: res }).then((res) => { - // console.log(res.rows[0]); - // this.$modal - // .confirm('鏄惁娣诲姞"' + res.rows[0].targetname + '"鎸囨爣鐨勯�夐」锛�') - // .then(() => { - // this.indexform.valueType = res.rows[0].valueType; - // this.indexform.scriptType = res.rows[0].scriptType; - // this.indexform.scriptTopic = res.rows[0].targetname; - // this.indexform.targetname = res.rows[0].targetname; - // this.indexform.targetid = res.rows[0].id; - // this.indexform.targetdesc = res.rows[0].targetdesc; - // this.indexform.isAvailable = "0"; - // this.indexform.language = "鏅�氳瘽"; - // this.indexform.isenable = res.rows[0].isenable; - // this.$forceUpdate(); - // res.rows[0].targetoptionList.forEach((item) => { - // item.isoperation = 1; - // this.indexform.ivrLibaScriptTargetoptionList.push(item); - // }); - // }) - // .catch(() => { - // this.$modal.msgSuccess("宸插彇娑�"); - // }); - // }); - // }, + testtagerlist() { + if (this.indexform.content) { + let data = this.indexform; + data.targetoptionList = + this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist); + testtagerlist(data).then((res) => { + this.$modal.msgSuccess("娴嬭瘯鎴愬姛"); + this.testgovalue = res.msg; + this.getList(); + }); + } else { + this.$modal.msgError("璇峰~鍐欐祴璇曞唴瀹�"); + return; + } + }, // 閫夋嫨鎸囨爣 selectlabel(row) { this.$modal -- Gitblit v1.9.3