From b10795e18a07b9beb72f25406f26f42491828be5 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 22 十月 2024 09:20:19 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/patient/physical.vue | 2 src/views/repositoryai/templateku/configurat/index.vue | 162 +++++---- src/views/patient/patient/outpatient.vue | 2 src/views/knowledge/questionnaire/compilequer/index.vue | 41 + src/views/patient/patient/index.vue | 15 src/views/patient/propaganda/QuestionnaireTask.vue | 3 src/views/patient/patient/PatientChart.vue | 2 src/views/system/user/index.vue | 2 src/views/repositoryai/verbaltrick/particulars/index.vue | 56 ++- src/components/Regular/index.vue | 173 +++++----- src/views/patient/patient/hospital.vue | 2 src/views/patient/patient/behospitalized.vue | 2 src/store/getters.js | 14 src/views/patient/propaganda/Missioncreation.vue | 323 ++++++++++++++++--- src/views/patient/propaganda/particty.vue | 108 +++--- src/views/patient/follow/index.vue | 2 16 files changed, 586 insertions(+), 323 deletions(-) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index add22bc..9e174c7 100644 --- a/src/components/Regular/index.vue +++ b/src/components/Regular/index.vue @@ -1,7 +1,7 @@ <template> <div> <div class="topicxq" v-for="item in TargetoptionList"> - <el-form :inline="true" :rules="rules" :model="item"> + <el-form :inline="true" :rules="rules" :model="item" label-width="80px"> <el-row :gutter="10"> <el-col :span="12" ><el-form-item prop="targetvalue" label="閫夐」鍚嶇О"> @@ -36,7 +36,7 @@ <el-col :span="20" ><el-form-item label="閫夐」璇存槑"> <el-input - style="width: 500px;" + style="width: 500px" type="textarea" :rows="2" placeholder="璇疯緭鍏�" @@ -70,90 +70,95 @@ </el-input> </el-form-item ></el-col> </el-row> - <el-form-item label="鍏抽敭瀛�(鍚�)" prop="desc" v-if="hasValue"> - <div class="xinz-inf"> - <el-tag - :key="crux" - type="success" - v-for="crux in item.dynamiccruxs" - closable - effect="dark" - :disable-transitions="false" - @close="handleClosecrux(crux, item, 1)" - > - {{ crux }} - </el-tag> - <el-select - v-model="inputValue" - v-if="item.inputVisible" - @change="handleInputConfirm(item)" - filterable - remote - allow-create - reserve-keyword - default-first-option - :loading="loading" - placeholder="璇烽�夋嫨" - > - <el-option - v-for="items in regular" - :key="items.label" - :label="items.label" - :value="items.label" + <el-row> + <el-form-item label="鍏抽敭瀛�(鍚�)" prop="desc" v-if="hasValue"> + <div class="xinz-inf"> + <el-tag + :key="crux" + type="success" + v-for="crux in item.dynamiccruxs" + closable + effect="dark" + :disable-transitions="false" + @close="handleClosecrux(crux, item, 1)" > - </el-option> - </el-select> - <el-button - v-else - class="button-new-tag" - size="small" - @click="showInput(item)" - >+ 鏂板</el-button - > - </div> - </el-form-item> - <el-form-item label="鍏抽敭瀛�(闈�)" prop="adesc" v-if="hasValue"> - <div class="xinz-inf"> - <el-tag - :key="crux" - type="warning" - v-for="crux in item.nodynamiccruxs" - closable - effect="dark" - :disable-transitions="false" - @close="handleClosecrux(crux, item, 2)" - > - {{ crux }} - </el-tag> - <el-select - v-model="inputValue" - v-if="item.noinputVisible" - @change="handleInputConfirm(item)" - filterable - remote - allow-create - reserve-keyword - default-first-option - :loading="loading" - placeholder="璇烽�夋嫨" - > - <el-option - v-for="items in noregular" - :key="items.value" - :label="items.label" - :value="items.label" + {{ crux }} + </el-tag> + <el-select + v-model="inputValue" + v-if="item.inputVisible" + @change="handleInputConfirm(item)" + filterable + remote + allow-create + reserve-keyword + default-first-option + :loading="loading" + placeholder="璇烽�夋嫨" > - </el-option> - </el-select> - <el-button - v-else - class="button-new-tag" - size="small" - @click="showInputno(item)" - >+ 鏂板</el-button - > - </div> - </el-form-item> + <el-option + v-for="items in regular" + :key="items.label" + :label="items.label" + :value="items.label" + > + </el-option> + </el-select> + <el-button + v-else + class="button-new-tag" + size="small" + @click="showInput(item)" + >+ 鏂板</el-button + > + </div> + </el-form-item> + </el-row> + <el-row> + <el-form-item label="鍏抽敭瀛�(闈�)" prop="adesc" v-if="hasValue"> + <div class="xinz-inf"> + <el-tag + :key="crux" + type="warning" + v-for="crux in item.nodynamiccruxs" + closable + effect="dark" + :disable-transitions="false" + @close="handleClosecrux(crux, item, 2)" + > + {{ crux }} + </el-tag> + <el-select + v-model="inputValue" + v-if="item.noinputVisible" + @change="handleInputConfirm(item)" + filterable + remote + allow-create + reserve-keyword + default-first-option + :loading="loading" + placeholder="璇烽�夋嫨" + > + <el-option + v-for="items in noregular" + :key="items.value" + :label="items.label" + :value="items.label" + > + </el-option> + </el-select> + <el-button + v-else + class="button-new-tag" + size="small" + @click="showInputno(item)" + >+ 鏂板</el-button + > + </div> + </el-form-item> + </el-row> + <el-form-item label="閫夐」鏂囦欢" prop="sickness" v-if="Verbalproblem"> <div style="width: 40vw"> <el-upload diff --git a/src/store/getters.js b/src/store/getters.js index d56a211..7434737 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -382,7 +382,7 @@ courtyardlist: (state) => [ { value: "1", - label: "涔嬫睙闄㈠尯", + label: "娼帇闄㈠尯", raw: { cssClass: "", listClass: "", @@ -390,20 +390,12 @@ }, { value: "2", - label: "搴嗘槬闄㈠尯", + label: "鐢宠姳闄㈠尯", raw: { cssClass: "", listClass: "", }, - }, - { - value: "3", - label: "浣欐澀闄㈠尯", - raw: { - cssClass: "", - listClass: "", - }, - }, + } ], // 璇█ languagelist: (state) => [ diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue index 8fa6512..e30f06e 100644 --- a/src/views/knowledge/questionnaire/compilequer/index.vue +++ b/src/views/knowledge/questionnaire/compilequer/index.vue @@ -1435,6 +1435,7 @@ this.ruleForm.svyLibTemplateTagList.filter( (item) => item.isoperation != 3 ); + if (this.ruleForm.suitway) this.ruleForm.suitway = this.ruleForm.suitway.split(","); this.delScriptVOList = []; this.tempDetpRelevanceslistform = []; @@ -1455,7 +1456,6 @@ this.appraiselist = store.getters.appraiselist; this.belongWards = store.getters.belongWards; this.belongDepts = store.getters.belongDepts; - // this.test(); }, @@ -1517,7 +1517,9 @@ this.dynamicTags = this.ruleForm.svyLibTemplateTagList.map( this.processElement ); - this.ruleForm.suitway = this.ruleForm.suitway.split(","); + console.log(this.dynamicTags, "this.dynamicTags"); + if (this.ruleForm.suitway) + this.ruleForm.suitway = this.ruleForm.suitway.split(","); }); getillness({ outid: this.id, type: 5 }).then((res) => { this.illnesslist = res.rows; @@ -1559,6 +1561,24 @@ if (!this.ruleForm.categoryid) { this.ruleForm.categoryid = -1; } + // 棰樼洰淇濆瓨澶勭悊 + // 鎻愪氦 + this.ruleForm.svyTemplateLibScripts.forEach((res) => { + if (!res.isoperation) { + res.isoperation = 2; + } + res.ivrLibaScriptTargetoptionList = + res.svyLibTemplateTargetoptions.map((item) => { + if (!item.isoperation) { + item.isoperation = 2; + item.templateID = this.ruleForm.id; + } + return item; + }); + }); + this.delScriptVOList.forEach((item)=>{ + this.ruleForm.svyTemplateLibScripts.push(item) + }) if (this.id) { this.ruleForm.isoperation = 2; this.ruleForm.tempDetpRelevances = null; @@ -1567,7 +1587,8 @@ this.confirmillness(); this.putbelongDepts(); this.$modal.closeLoading(); - this.$router.go(-1); + // this.$router.go(-1); + window.location.reload(); }); } else { this.ruleForm.isoperation = 1; @@ -1586,7 +1607,6 @@ }, // 绉戝/闄㈠尯澶勭悊 Departmenttreatment() { - this.tempDetpRelevanceslist.forEach((item) => { console.log(item); let result = this.deptlist.some((obj) => obj.deptCode == item); @@ -1615,7 +1635,6 @@ } }); - // return setTimeout(() => { this.submitForm(); @@ -1639,12 +1658,12 @@ let result = this.hosplist .filter((item) => item.deptCode == row) .map((item) => item.id); - if (result.length) { - depthospgetsondel(result).then((res) => { - if (res.code) { - } - }); - } + if (result.length) { + depthospgetsondel(result).then((res) => { + if (res.code) { + } + }); + } }, // 涓嬩竴姝� nextstep() { diff --git a/src/views/patient/follow/index.vue b/src/views/patient/follow/index.vue index 02ca1e1..f036990 100644 --- a/src/views/patient/follow/index.vue +++ b/src/views/patient/follow/index.vue @@ -518,7 +518,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); diff --git a/src/views/patient/patient/PatientChart.vue b/src/views/patient/patient/PatientChart.vue index ac1d085..68f1271 100644 --- a/src/views/patient/patient/PatientChart.vue +++ b/src/views/patient/patient/PatientChart.vue @@ -942,7 +942,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); diff --git a/src/views/patient/patient/behospitalized.vue b/src/views/patient/patient/behospitalized.vue index d99bafb..d29ae8a 100644 --- a/src/views/patient/patient/behospitalized.vue +++ b/src/views/patient/patient/behospitalized.vue @@ -720,7 +720,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); diff --git a/src/views/patient/patient/hospital.vue b/src/views/patient/patient/hospital.vue index 3f5d488..41fe57a 100644 --- a/src/views/patient/patient/hospital.vue +++ b/src/views/patient/patient/hospital.vue @@ -692,7 +692,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue index 44a9947..055b5e9 100644 --- a/src/views/patient/patient/index.vue +++ b/src/views/patient/patient/index.vue @@ -649,20 +649,19 @@ :limit="1" accept=".xlsx, .xls" :headers="upload.headers" - :action="upload.url + '?updateSupport=' + upload.updateSupport" + :action="upload.url" :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" - :auto-upload="false" drag > <i class="el-icon-upload"></i> <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div> <div class="el-upload__tip text-center" slot="tip"> - <div class="el-upload__tip" slot="tip"> + <!-- <div class="el-upload__tip" slot="tip"> <el-checkbox v-model="upload.updateSupport" /> 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹� - </div> + </div> --> <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span> <el-link type="primary" @@ -671,7 +670,7 @@ @click="importTemplate" >涓嬭浇妯℃澘 </el-link> - <el-link + <!-- <el-link type="success" :underline="false" style="font-size: 24px; vertical-align: baseline" @@ -679,7 +678,7 @@ target="_blank" > 鏌ョ湅妯℃澘</el-link - > + > --> </div> </el-upload> </div> @@ -950,7 +949,7 @@ // 璁剧疆涓婁紶鐨勮姹傚ご閮� headers: { Authorization: "Bearer " + getToken() }, // 涓婁紶鐨勫湴鍧� - url: process.env.VUE_APP_BASE_API + "/system/user/importData", + url: process.env.VUE_APP_BASE_API + "/smartor/import/importPatInfo", }, // 鏌ヨ鍙傛暟 queryParams: { @@ -1227,7 +1226,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue index a35facd..0083023 100644 --- a/src/views/patient/patient/outpatient.vue +++ b/src/views/patient/patient/outpatient.vue @@ -681,7 +681,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); diff --git a/src/views/patient/patient/physical.vue b/src/views/patient/patient/physical.vue index 5ae808e..a7b31d6 100644 --- a/src/views/patient/patient/physical.vue +++ b/src/views/patient/patient/physical.vue @@ -858,7 +858,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); diff --git a/src/views/patient/propaganda/Missioncreation.vue b/src/views/patient/propaganda/Missioncreation.vue index 3aaec8c..edbe31c 100644 --- a/src/views/patient/propaganda/Missioncreation.vue +++ b/src/views/patient/propaganda/Missioncreation.vue @@ -383,6 +383,17 @@ >鍒犻櫎</el-button > </el-col> + <el-col :span="1.5"> + <el-button + type="info" + plain + icon="el-icon-upload2" + size="medium" + @click="handleImport" + + >瀵煎叆</el-button + > + </el-col> <!-- <el-col :span="1.5"> </el-col> --> </el-row> @@ -437,30 +448,24 @@ v-show="showSearch" label-width="98px" > - <el-form-item label="鎮h�呭悕绉帮細"> - <el-input v-model="patientqueryParams.name"></el-input> + <el-form-item label="鎮h�咃細"> + <el-input + v-model="patientqueryParams.name" + @keyup.enter.native="handleQuery" + ></el-input> </el-form-item> - - <!-- <el-form-item label="灏辫瘖绉戝" prop="status"> - <el-select - v-model="patientqueryParams.topic" - placeholder="璇烽�夋嫨" + <el-select + v-model="patientqueryParams.searchscope" + placeholder="璇烽�夋嫨鎮h�呰寖鍥�" + > + <el-option + v-for="item in source" + :key="item.value" + :label="item.label" + :value="item.value" > - <el-option-group - v-for="group in topicoptions[0].children" - :key="group.deptName" - :label="group.deptName" - > - <el-option - v-for="item in group.children" - :key="item.deptId" - :label="item.deptName" - :value="item.deptId" - > - </el-option> - </el-option-group> - </el-select> - </el-form-item> --> + </el-option> + </el-select> <el-form-item> <el-button @@ -506,6 +511,7 @@ > </span> </el-dialog> + <!-- 妯℃澘棰勮 --> <el-dialog title="妯℃澘棰勮" :visible.sync="previewtf" width="60%"> <div class="preview-left"> <!-- 鍗曢�� --> @@ -515,6 +521,98 @@ <!-- <el-button @click="previewGo">鍓嶅線妯℃澘璇︽儏淇敼</el-button> --> <el-button type="primary" @click="previewFn">纭浣跨敤</el-button> </span> + </el-dialog> + <!-- 鐢ㄦ埛瀵煎叆瀵硅瘽妗� --> + <el-dialog + :title="upload.title" + :visible.sync="upload.open" + width="70%" + append-to-body + > + <el-steps :active="dractive" simple> + <el-step title="涓婁紶瀵煎叆鏂囦欢" icon="el-icon-upload"></el-step> + <el-step title="瀵煎叆妫�鏌�" icon="el-icon-picture"></el-step> + </el-steps> + <!-- 涓婁紶瀵煎叆鏂囦欢 --> + <div class="download" v-if="dractive == 1"> + <el-upload + class="upload-demo" + ref="upload" + :limit="1" + accept=".xlsx, .xls" + :headers="upload.headers" + :action="upload.url" + :disabled="upload.isUploading" + :on-progress="handleFileUploadProgress" + :on-success="handleFileSuccess" + drag + > + <i class="el-icon-upload"></i> + <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div> + <div class="el-upload__tip text-center" slot="tip"> + <!-- <div class="el-upload__tip" slot="tip"> + <el-checkbox v-model="upload.updateSupport" /> + 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹� + </div> --> + <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span> + <el-link + type="primary" + :underline="false" + style="font-size: 24px; vertical-align: baseline" + @click="importTemplate" + >涓嬭浇妯℃澘 + </el-link> + <!-- <el-link + type="success" + :underline="false" + style="font-size: 24px; vertical-align: baseline" + href="http://m.qpic.cn/psc?/V50ZTolo1AIhq00dqrJP2169QM2VHGTU/ruAMsa53pVQWN7FLK88i5qfmCJclyMduqqL6kjE4h7TXDAjimVtmLmTyGVfF4qlkyOISsYQ4Mxx705X2tkXEIUPrfCS4L4yK.f11SmO8Tq0!/b&bo=twb0AgAAAAADB2U!&rf=viewer_4" + target="_blank" + > + 鏌ョ湅妯℃澘</el-link + > --> + </div> + </el-upload> + </div> + + <!-- 瀹屾垚 --> + <div class="drexamine" v-else-if="dractive == 2"> + <div style="display: flex"> + <img src="@/assets/images/瀵煎叆.png" /> + <p>瀵煎叆鎮h�呮垚鍔燂紒</p> + <p> + 鏈鎴愬姛瀵煎叆<span style="color: #72d3a9; font-size: 20px">{{ + uploadingData.length + }}</span + >浣嶆偅鑰� + </p> + </div> + + <el-table :data="uploadingData" style="width: 100%"> + <el-table-column prop="serial" label="鎮h�卛d"> </el-table-column> + <el-table-column prop="name" label="濮撳悕"> </el-table-column> + <el-table-column prop="sex" label="鎬у埆"> </el-table-column> + <el-table-column prop="idcardno" width="300" label="璇佷欢鍙风爜"> </el-table-column> + <el-table-column prop="goday" label="鍑虹敓鏃ユ湡"> </el-table-column> + <el-table-column prop="telcode" width="200" label="鑱旂郴鏂瑰紡"> </el-table-column> + <el-table-column prop="createTime" width="200" label="鍒涘缓鏃ユ湡"> + </el-table-column> + </el-table> + <!-- <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="geterryList" + /> --> + </div> + + <div slot="footer"> + <el-button type="primary" @click="submitFileForm">{{ + dractive == 1 ? "涓嬩竴姝�" : "鍔犲叆浠诲姟" + }}</el-button> + <el-button @click="submitclose">鍙� 娑�</el-button> + </div> </el-dialog> <el-drawer title="瀹f暀鍐呭鍒楄〃" @@ -643,7 +741,7 @@ getheLibraryAssort, } from "@/api/AiCentre/index"; import { listDept } from "@/api/system/dept"; - +import { getToken } from "@/utils/auth"; import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢 export default { @@ -671,6 +769,7 @@ belongWards: [], tableLabel: [], questionList: [], + uploadingData: [], htmlRichText: "<p>Hello, <strong>world</strong>!</p>", // 鎮h�呰〃鍗� tableLabelhz: [ @@ -720,6 +819,22 @@ { label: "閽夐拤", value: 6 }, { label: "鏅鸿兘鏈哄櫒浜�", value: 7 }, ], + upload: { + // 鏄惁鏄剧ず寮瑰嚭灞傦紙鐢ㄦ埛瀵煎叆锛� + open: false, + // 寮瑰嚭灞傛爣棰橈紙鐢ㄦ埛瀵煎叆锛� + title: "", + // 鏄惁绂佺敤涓婁紶 + isUploading: false, + // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹� + updateSupport: 0, + // 璁剧疆涓婁紶鐨勮姹傚ご閮� + headers: { Authorization: "Bearer " + getToken() }, + // 涓婁紶鐨勫湴鍧� + url: process.env.VUE_APP_BASE_API + "/smartor/import/importPatInfo", + }, + //瀵煎叆杩涘害 + dractive: 1, // 鏃堕棿澶勭悊 daytime: [], //鏃ユ湡 applydaytime: [], //璁$畻鏃ユ湡 @@ -815,12 +930,30 @@ label: "鍑洪櫌鐥呬汉", }, { + value: "4", + label: "鍦ㄩ櫌鐥呬汉", + }, + { value: "2", label: "闂ㄨ瘖鐥呬汉", }, { value: "3", label: "浣撴鐥呬汉", + }, + ], + source: [ + { + value: 0, + label: "鎵�灞炴偅鑰�", + }, + { + value: 1, + label: "绉戝鎮h��", + }, + { + value: 2, + label: "鐥呭尯鎮h��", }, ], quote: false, @@ -971,6 +1104,7 @@ this.form.isoperation = 2; } else { this.form.isoperation = 1; + this.form.sendState=1; } if (!this.form.type) { this.form.type = this.$route.query.type; @@ -1048,35 +1182,7 @@ '<img$1style="width:100%;height:auto;"$3>' ); }, - // 澶勭悊闂灞傚彉閲� - // Variablehandling(arr, type) { - // let Variablist = []; - // if (type == 1) { - // console.log(arr); - // // 寰幆闂 - // arr.forEach((res) => { - // console.log(JSON.parse(res.otherdata), "ss"); - // // 寰幆閫夐」 - // JSON.parse(res.otherdata).forEach((item) => { - // if (item.default != 1) { - // Variablist.push({ - // value: item.variate, - // fill: "", - // name: item.variatename, - // }); - // } - // }); - // }); - // console.log(Variablist, "Variablist"); - // const Aarr = Variablist.filter( - // (obj, index, self) => - // index === - // self.findIndex((t) => t.name === obj.name && t.value === obj.value) - // ); - // this.variableList = this.transitionList.concat(Aarr); - // // this.form.textParam = this.convertFormat2ToFormat1(this.variableList); - // } - // }, + // 瀛愪换鍔′簩绾у脊妗� handleAddpatient(row) { this.allpids = []; @@ -1109,9 +1215,31 @@ } if (this.allpids[0]) { this.patientqueryParams.pids = this.allpids; - console.log(this.patientqueryParams.pids); } else { this.patientqueryParams.pids = null; + } + // 绫诲瀷鍒ゆ柇 + if (this.patientqueryParams.allhosp == 1) { + this.patientqueryParams.cry = 1; + } else if (this.patientqueryParams.allhosp == 4) { + this.patientqueryParams.cry = 0; + this.patientqueryParams.allhosp = "1"; + } + if (this.patientqueryParams.searchscope == 1) { + this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( + (obj) => obj.deptCode + ); + this.patientqueryParams.leavehospitaldistrictcodes = []; + } else if (this.patientqueryParams.searchscope == 2) { + this.patientqueryParams.leavehospitaldistrictcodes = + store.getters.belongWards.map((obj) => obj.districtCode); + this.patientqueryParams.leaveldeptcodes = []; + } else { + this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( + (obj) => obj.deptCode + ); + this.patientqueryParams.leavehospitaldistrictcodes = + store.getters.belongWards.map((obj) => obj.districtCode); } getTaskpatient(this.patientqueryParams).then((response) => { @@ -1128,7 +1256,7 @@ handleExport() {}, // 閫夋嫨鎮h�呰〃鏁版嵁 - handleSelectionChange(selection) { + handleSelectionChange(selection,type) { console.log("澶氶�夋偅鑰�"); this.SelectPatientslist = selection; this.multiple = !selection.length; @@ -1139,7 +1267,14 @@ if (!isExist) { item.isoperation = 1; item.patid = item.id; - item.hospType = this.patientqueryParams.allhosp; + if (item.idcardno) { + item.sfzh = item.idcardno; + } + if (type) { + item.hospType=type + }else{ + item.hospType = this.patientqueryParams.allhosp; + } this.overallCase.push(item); this.form.patTaskRelevances.push(item); } @@ -1232,7 +1367,7 @@ this.overallCase = this.form.patTaskRelevances.concat(); this.checkList = this.form.preachform.split(","); console.log(this.form.showDate, "this.form"); - if (this.form.daytime)this.daytime = this.form.showDate.split(","); + if (this.form.daytime) this.daytime = this.form.showDate.split(","); console.log(this.newadd, "渚濈収"); if (this.form.showTimeMorn) { @@ -1426,6 +1561,47 @@ this.checkList = list; } }, + /** 瀵煎叆鎸夐挳鎿嶄綔 */ + handleImport() { + this.upload.title = "鐢ㄦ埛瀵煎叆"; + this.upload.open = true; + }, + handleFileUploadProgress(event, file, fileList) { + this.upload.isUploading = true; + }, + // 鏂囦欢涓婁紶鎴愬姛澶勭悊 + handleFileSuccess(response, file, fileList) { + this.upload.isUploading = false; + this.uploadingData = response.rows; + console.log(response, "鏂囦欢"); + + this.$refs.upload.clearFiles(); + }, + // 鎻愪氦涓婁紶鏂囦欢 + submitFileForm() { + // 涓婁紶 + if (this.dractive == 1) { + this.$refs.upload.submit(); + this.dractive++; + } else if (this.dractive == 2) { + this.handleSelectionChange(this.uploadingData,4); + this.upload.open = false; + this.dractive = 1 + } + }, + + /** 涓嬭浇妯℃澘鎿嶄綔 */ + importTemplate() { + this.download( + "smartor/import/getImportPatTemplate", + {}, + `user_template_${new Date().getTime()}.xlsx` + ); + }, + submitclose() { + this.upload.open = false; + this.dractive = 1; + }, }, }; </script> @@ -1561,6 +1737,41 @@ } } } +.download { + text-align: center; + .el-upload__tip { + font-size: 23px; + } + .el-upload__text { + font-size: 23px; + } +} +.uploading { + margin-top: 20px; + margin: 20px; + padding: 30px; + background: #ffffff; + 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); +} +.drexamine { + // display: flex; + align-items: center; + justify-content: center; + padding: 20px; + background: #daeaf5; + img { + width: 50px; + height: 50px; + } +} +.button-textsc { + color: #28cfe6; +} +.button-textxg { + color: #de7897; +} ::v-deep .addtopic-input { input { background: #02a7f0; diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index 2f5f62a..b503205 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -1538,7 +1538,7 @@ this.overallCase.forEach((item) => { this.allpids.push(item.patid); }); - if (this.patientqueryParams.allhosp == 1) { + if (this.patientqueryParams.allhosp == 1||(this.patientqueryParams.allhosp == 1&&this.patientqueryParams.cry == 1)) { this.tableLabelhz = [ // { label: "鍏ラ櫌鏃ユ湡", width: "170", prop: "starttime" }, { label: "鍑洪櫌鏃ユ湡", width: "150", prop: "endtime" }, @@ -1576,6 +1576,7 @@ this.patientqueryParams.cry = 1; } else if (this.patientqueryParams.allhosp == 4) { this.patientqueryParams.cry = 0; + this.patientqueryParams.allhosp = '1'; } // 鏉ユ簮鍒ゆ柇 diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index 782a240..f925090 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -70,16 +70,34 @@ /> </el-form-item> <el-form-item label="鏈嶅姟褰㈠紡"> - <el-checkbox-group v-model="checkList"> + <el-checkbox-group + v-model="checkList" + @change="handleCheckedCitiesChange" + > <el-checkbox v-for="(item, index) in checkboxlist" :key="index" :label="item.value" + @change="checkboxChange($event, item.value)" > {{ item.label }}</el-checkbox > </el-checkbox-group> </el-form-item> + <div class="xinz-infs"> + <el-form-item label="鏈嶅姟鎵ц椤哄簭" prop="daytime"> + <el-tag + :key="tag.label" + type="success" + v-for="(tag, index) in foncheckList" + closable + :disable-transitions="false" + @close="handleClosetag(tag)" + > + ({{index+1}}){{ tag.label }} + </el-tag> + </el-form-item> + </div> <el-form-item label="鏄惁闀挎湡" prop="longTask"> <el-radio-group v-model="form.longTask"> <el-radio :label="0">鏅�氫换鍔�</el-radio> @@ -977,6 +995,12 @@ pageSize: 10, }, checkList: [], + foncheckList: [], + formatvalue: { + format1: "", + format2: "", + format3: "", + }, deliverytopqueryParams: { pageNum: 1, // pageSize: 10, @@ -1052,7 +1076,7 @@ SelectPatientslist: [], form: { patTaskRelevances: [], - sendType: 1, + sendType: 3, longTask: 0, templatename: "", templateid: null, @@ -1444,7 +1468,6 @@ this.objyl.suitway = this.objyl.suitway.split(","); this.questionList = res.data.ivrLibaTemplateScriptVOList; this.getillness(row.id); - console.log(res.data, "11"); this.Variablehandling(res.data.ivrLibaTemplateScriptVOList, 1); this.previewtf = true; } @@ -1881,14 +1904,14 @@ if (this.form.templateid) { deleteTaskparticty(this.form.templateid).then((res) => { if (res.code == 200) { - Taskparticty(this.objyl).then((response) => { - this.previewtf = false; - this.form.libtemplateid = this.objyl.id; - this.form.templateid = response.data; - this.putbelongDepts(response.data); - this.form.templatename = this.objyl.templateName; - this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛"); - }); + Taskparticty(this.objyl).then((response) => { + this.previewtf = false; + this.form.libtemplateid = this.objyl.id; + this.form.templateid = response.data; + this.putbelongDepts(response.data); + this.form.templatename = this.objyl.templateName; + this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛"); + }); } }); } else { @@ -1923,33 +1946,24 @@ } }); }, - // 澶勭悊鏈嶅姟褰㈠紡 - formatFn(type) { - let list = []; - let formlist = []; - if (type == 1) { - this.preachform.forEach((item) => { - this.checkList.forEach((obj) => { - if (item.label == obj) { - list.push(item.value); - } - }); - }); - console.log(list, "list"); - this.form.preachform = list.join(","); - } else { - console.log(this.form.preachform, "this.form.preachform"); - formlist = this.form.preachform.split(","); - console.log(11); - this.preachform.forEach((item) => { - formlist.forEach((obj) => { - if (item.value == obj) { - list.push(item.label); - } - }); - }); - this.checkList = list; - } + checkboxChange(checked, value){ + + }, + // 鏈嶅姟褰㈠紡閫夊彇 + handleCheckedCitiesChange(row) { + console.log(row, "鏈嶅姟"); + this.foncheckList = this.checkboxlist.filter((obj) => + row.includes(obj.value) + ); + }, + // 鏈嶅姟褰㈠紡鍒犻櫎 + handleClosetag(tag) { + console.log(tag, "tag"); + console.log(this.foncheckList, "foncheckList"); + this.checkList = this.checkList.filter((item) => item != tag.value); + this.foncheckList = this.foncheckList.filter(obj => obj.value !== tag.value); + console.log(this.checkList, "checkList"); + }, // 绉戝澶勭悊 Departmenttreatment() { @@ -2063,23 +2077,7 @@ margin-left: 10px; } } -// .leftvlue-jbxx { -// margin-bottom: 50px; -// font-size: 20px; -// span { -// position: absolute; -// right: 80px; -// } -// .demo-cascader { -// margin-right: 20px; -// } -// .PreviewTemplate { -// color: #02a7f0; -// cursor: pointer; -// font-size: 20px; -// margin: 0 20px; -// } -// } + .preview-left { margin: 20px; // margin: 20px; diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue index 493e953..aad6e51 100644 --- a/src/views/repositoryai/templateku/configurat/index.vue +++ b/src/views/repositoryai/templateku/configurat/index.vue @@ -453,28 +453,20 @@ > <div class="headline">棰樼洰璁剧疆璇︽儏</div> <el-row> - <el-col :span="12" + <el-col :span="24" ><el-form-item label="棰樼洰鏍囬"> <el-input v-model="topicobj.scriptTopic" placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" ></el-input> </el-form-item ></el-col> - <el-col :span="12"> - <el-form-item label="涓嬮璺宠浆"> - <el-input - v-model="topicobj.nextScriptno" - placeholder="璇疯緭鍏ラ鍙�" - ></el-input> - </el-form-item> - </el-col> </el-row> <el-row> - <el-col :span="20" + <el-col :span="24" ><el-form-item label="闂璇濇湳"> <el-input type="textarea" - style="width: 400px" + style="width: 600px" v-model="topicobj.scriptContent" placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" ></el-input> </el-form-item @@ -487,6 +479,13 @@ v-model="topicobj.sort" placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" :disabled="true" + ></el-input> </el-form-item + ></el-col> + <el-col :span="12" + ><el-form-item label="涓嬮璺宠浆"> + <el-input + v-model="topicobj.nextScriptno" + placeholder="璇疯緭鍏ラ鍙�" ></el-input> </el-form-item ></el-col> </el-row> @@ -534,8 +533,19 @@ </el-radio-group> </el-form-item> <el-row> + <el-col :span="24" + ><el-form-item label="璇煶鏂囨湰"> + <el-input + type="textarea" + style="width: 600px" + v-model="topicobj.ivrtext" + placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" + ></el-input> </el-form-item + ></el-col> + </el-row> + <el-row> <el-col :span="6"> - <el-form-item label="闂璇煶" prop="verbaltrickyy"> + <el-form-item label="璇煶鏂囦欢" prop="verbaltrickyy"> <el-upload class="upload-demo" :action="uploadImgUrl" @@ -556,10 +566,10 @@ <el-col :span="6"> <span style="font-size: 18px; margin-top: 10px" - v-if="topicobj.scriptVoice" + v-if="topicobj.ivrVoice" >{{ - topicobj.scriptVoice.substring( - topicobj.scriptVoice.lastIndexOf("/") + 1 + topicobj.ivrVoice.substring( + topicobj.ivrVoice.lastIndexOf("/") + 1 ) }}</span > @@ -567,8 +577,8 @@ <el-col :span="6"> <mini-audio :audio-source=" - topicobj.scriptVoice - ? topicobj.scriptVoice + topicobj.ivrVoice + ? topicobj.ivrVoice : 'https://example.com/example.mp3' " ></mini-audio> @@ -1001,7 +1011,7 @@ <el-col :span="18" ><el-form-item label="闂璇濇湳"> <el-input - style="width: 400px" + style="width: 600px" type="textarea" v-model="indexform.scriptContent" placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" @@ -1041,9 +1051,20 @@ </el-select> </el-form-item ></el-col> --> </el-row> + <el-row :gutter="10"> + <el-col :span="18" + ><el-form-item label="璇煶璇濇湳"> + <el-input + style="width: 600px" + type="textarea" + v-model="indexform.ivrtext" + placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨" + ></el-input> </el-form-item + ></el-col> + </el-row> <el-row> <el-col :span="6"> - <el-form-item label="闂璇煶" prop="verbaltrickyy"> + <el-form-item label="璇煶鏂囦欢" prop="verbaltrickyy"> <el-upload class="upload-demo" :action="uploadImgUrl" @@ -1064,10 +1085,10 @@ <el-col :span="6"> <span style="font-size: 18px; margin-top: 10px" - v-if="indexform.scriptVoice" + v-if="indexform.ivrVoice" >{{ - indexform.scriptVoice.substring( - indexform.scriptVoice.lastIndexOf("/") + 1 + indexform.ivrVoice.substring( + indexform.ivrVoice.lastIndexOf("/") + 1 ) }}</span > @@ -1075,8 +1096,8 @@ <el-col :span="6"> <mini-audio :audio-source=" - indexform.scriptVoice - ? indexform.scriptVoice + indexform.ivrVoice + ? indexform.ivrVoice : 'https://example.com/example.mp3' " ></mini-audio> @@ -1374,7 +1395,7 @@ import { deptTreeSelect } from "@/api/system/user"; export default { - name: "Tpuconfigurat", + name: "tpuconfigurat", components: { Regular, OptionalForm }, data() { return { @@ -1468,7 +1489,7 @@ ], deptlist: [], hosplist: [], - flatArray:[], + flatArray: [], props: { multiple: true, value: "deptId", label: "deptName" }, variablelist: [ @@ -1477,6 +1498,10 @@ value: "琛ㄧず鎮h�呯殑鏍囪瘑", }, ], + queryParamsdept: { + tempid: "", + type: 2, + }, valssu: [], radio: "", @@ -1484,7 +1509,6 @@ // 棰樼洰琛ㄦ牸鏁版嵁 userList: [], belongWards: [], - belongDepts: [], belongDepts: [], // 鏌ヨ鍙傛暟 queryParams: { @@ -1499,9 +1523,6 @@ }; }, activated() { - console.log(this.id); - console.log(this.$route.query.id); - if (this.id != this.$route.query.id) { console.log(1); @@ -1560,6 +1581,7 @@ RoutingDataProcessing() { this.id = this.$route.query.id; this.task = this.$route.query.task; + this.queryParamsdept.tempid = this.id; }, // 鑾峰彇绉戝鏍� getDeptTree() { @@ -1572,21 +1594,21 @@ flattenArray(multiArray) { let result = []; - // 閫掑綊鍑芥暟锛岀敤浜庡皢澶氱骇鏁扮粍杞崲涓轰竴缁存暟缁� - function flatten(element, parentId) { - // 鍏嬮殕鍏冪礌浠ラ伩鍏嶄慨鏀瑰師濮嬫暟鎹� - let item = JSON.parse(JSON.stringify(element)); - if (parentId !== undefined) { - item.parentId = parentId; // 浣跨敤瀛楃涓叉垨鏁板瓧浣滀负閿� - } - result.push(item); // 灏嗗厓绱犳坊鍔犲埌缁撴灉鏁扮粍 + // 閫掑綊鍑芥暟锛岀敤浜庡皢澶氱骇鏁扮粍杞崲涓轰竴缁存暟缁勶紝鍙寘鍚渶搴曞眰鐨勫厓绱� + function flatten(element) { + // 濡傛灉褰撳墠鍏冪礌鏈夊瓙鍏冪礌锛岀户缁�掑綊 if (element.children && element.children.length > 0) { - element.children.forEach((child) => flatten(child, element.id)); // 閫掑綊澶勭悊瀛愬厓绱� + element.children.forEach((child) => flatten(child)); + } else { + // 鍏嬮殕鍏冪礌浠ラ伩鍏嶄慨鏀瑰師濮嬫暟鎹� + let item = JSON.parse(JSON.stringify(element)); + result.push(item); // 灏嗘渶搴曞眰鐨勫厓绱犳坊鍔犲埌缁撴灉鏁扮粍 } } - multiArray.forEach((element) => flatten(element, null)); // 浠庨《灞傚厓绱犲紑濮嬮�掑綊 - return result; // 杩斿洖涓�缁存暟缁� + // 浠庨《灞傚厓绱犲紑濮嬮�掑綊 + multiArray.forEach((element) => flatten(element)); + return result; // 杩斿洖鍙寘鍚渶搴曞眰鍏冪礌鐨勪竴缁存暟缁� }, // 鑾峰彇琛ㄥ崟鏁版嵁 getvFollowup() { @@ -1631,8 +1653,6 @@ this.dynamicTags = []; this.tempDetpRelevanceslist = []; } - - }, // 闄勫睘鏁版嵁琛� auxiliary() { @@ -1643,26 +1663,27 @@ this.tempDetpRelevanceslist = []; this.tempbelongWards = []; - depthospgetsonlist(this.queryParamsdept).then((res) => { - if (res.code == 200) { - let arr = res.rows; - console.log(arr,'arr'); + if (this.id) { + depthospgetsonlist(this.queryParamsdept).then((res) => { + if (res.code == 200) { + let arr = res.rows; + console.log(arr, "arr"); - arr.forEach((item) => { - if (item.deptType == 1) { - console.log(this.deptlist,'11'); - this.deptlist.push(item); - console.log('22'); - this.tempDetpRelevanceslist.push(item.deptCode); - } else if (item.deptType == 2) { - this.hosplist.push(item); - this.tempbelongWards.push(item.deptCode); - console.log('33'); - - } - }); - } - }); + arr.forEach((item) => { + if (item.deptType == 1) { + console.log(this.deptlist, "11"); + this.deptlist.push(item); + console.log("22"); + this.tempDetpRelevanceslist.push(item.deptCode); + } else if (item.deptType == 2) { + this.hosplist.push(item); + this.tempbelongWards.push(item.deptCode); + console.log("33"); + } + }); + } + }); + } // 鐤剧梾 getillnesslist({ @@ -1718,14 +1739,17 @@ return item; }); }); + this.delScriptVOList.forEach((item) => { + this.ruleForm.ivrLibaTemplateScriptVOList.push(item); + }); compileFollowup(this.ruleForm).then((res) => { if (res.code == 200) { this.$modal.msgSuccess("缂栬緫鎴愬姛"); this.$modal.closeLoading(); this.confirmillness(res.data); - - const obj = { path: "/knowledge/templateku/" }; - this.$tab.closeOpenPage(obj); + window.location.reload(); + // const obj = { path: "/knowledge/tpuconfigurat/?id=" + this.id }; + // this.$tab.closeOpenPage(obj); } else { this.$modal.msgError("淇濆瓨澶辫触"); @@ -1834,7 +1858,7 @@ console.log(response); console.log(additionalParam); if (additionalParam == 1) { - this.indexform.scriptVoice = response.url; + this.indexform.ivrVoice = response.url; } else if (additionalParam == 2) { this.indexform.nomatchvoice = response.url; } else if (additionalParam == 3) { @@ -1849,7 +1873,7 @@ console.log(response); console.log(additionalParam); if (additionalParam == 1) { - this.topicobj.scriptVoice = response.url; + this.topicobj.ivrVoice = response.url; } else if (additionalParam == 2) { this.topicobj.nomatchvoice = response.url; } else if (additionalParam == 3) { @@ -1977,7 +2001,9 @@ 1 ); row.isoperation = 3; - this.delScriptVOList.push(row); + if (row.id) { + this.delScriptVOList.push(row); + } this.sortFn(); this.$modal.msgSuccess("宸插垹闄わ紝淇濆瓨妯℃澘鐢熸晥"); }) diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue index d80f85d..6008375 100644 --- a/src/views/repositoryai/verbaltrick/particulars/index.vue +++ b/src/views/repositoryai/verbaltrick/particulars/index.vue @@ -40,6 +40,28 @@ :rules="rules" label-width="100px" > + <el-row :gutter="20"> + <el-col :span="12"> + <el-form-item label="闂涓绘棬" prop="scriptTopic"> + <el-input + v-model="indexform.scriptTopic" + placeholder="璇疯緭鍏ラ棶棰樹富鏃�" + maxlength="80" + /> + </el-form-item> + </el-col> + </el-row> + <el-form-item label="闂鏂囨湰" prop="scriptContent"> + <el-input + :rows="2" + type="textarea" + id="scriptContent" + show-word-limit + placeholder="璇疯緭鍏ュ唴瀹�" + v-model.sync="indexform.scriptContent" + @focus="handleInput('scriptContent')" + /> + </el-form-item> <el-row> <el-col :span="12"> <el-form-item label="璇█" prop="deptId"> @@ -109,17 +131,7 @@ </el-form-item> </el-col> </el-row> - <el-row :gutter="20"> - <el-col :span="20"> - <el-form-item label="闂涓绘棬" prop="scriptTopic"> - <el-input - v-model="indexform.scriptTopic" - placeholder="璇疯緭鍏ラ棶棰樹富鏃�" - maxlength="80" - /> - </el-form-item> - </el-col> - </el-row> + <el-form-item label="鏍囩" prop="desc"> <div class="xinz-inf"> <el-tag @@ -202,7 +214,7 @@ </div> </el-form-item> </el-drawer> - <el-row> + <!-- <el-row> <el-col :span="6"> <el-form-item label="浠呴檺闄㈠尯" prop="region"> <el-select @@ -239,7 +251,7 @@ </el-select> </el-form-item> </el-col> - </el-row> + </el-row> --> <el-row> <el-col :span="24"> <el-form-item label="闂鍙橀噺" prop="scriptContent"> @@ -260,21 +272,21 @@ > <el-row> <el-col :span="24"> - <el-form-item label="闂鏂囨湰" prop="scriptContent"> + <el-form-item label="璇煶鏂囨湰" prop="scriptContent"> <el-input :rows="2" type="textarea" id="scriptContent" show-word-limit placeholder="璇疯緭鍏ュ唴瀹�" - v-model.sync="indexform.scriptContent" + v-model.sync="indexform.ivrtext" @focus="handleInput('scriptContent')" /> </el-form-item> </el-col ></el-row> <el-row> <el-col :span="6"> - <el-form-item label="闂璇煶" prop="verbaltrickyy"> + <el-form-item label="璇煶鏂囦欢" prop="verbaltrickyy"> <el-upload class="upload-demo" :action="uploadImgUrl" @@ -291,17 +303,17 @@ </el-form-item> </el-col> <el-col :span="6"> - <span style="font-size: 12px" v-if="indexform.scriptVoice">{{ - indexform.scriptVoice.substring( - indexform.scriptVoice.lastIndexOf("/") + 1 + <span style="font-size: 12px" v-if="indexform.ivrVoice">{{ + indexform.ivrVoice.substring( + indexform.ivrVoice.lastIndexOf("/") + 1 ) }}</span> </el-col> <el-col :span="6"> <mini-audio :audio-source=" - indexform.scriptVoice - ? indexform.scriptVoice + indexform.ivrVoice + ? indexform.ivrVoice : 'https://example.com/example.mp3' " ></mini-audio> @@ -957,7 +969,7 @@ handleChange(response, file, additionalParam) { console.log(response); if (additionalParam == 1) { - this.indexform.scriptVoice = response.url; + this.indexform.ivrVoice = response.url; } else if (additionalParam == 2) { this.indexform.nomatchvoice = response.url; console.log(this.indexform.nomatchvoice); diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index eeb5432..19c4bf8 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -979,7 +979,7 @@ /** 涓嬭浇妯℃澘鎿嶄綔 */ importTemplate() { this.download( - "system/user/importTemplate", + "smartor/import/getImportPatTemplate", {}, `user_template_${new Date().getTime()}.xlsx` ); -- Gitblit v1.9.3