src/api/AiCentre/external.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/followvisit/tasklist/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/knowledge/education/compilequer/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/patient/propaganda/QuestionnaireTask.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/repositoryai/outsideChain/publicity.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/repositoryai/outsideChain/questionnaire.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/AiCentre/external.js
@@ -1,16 +1,19 @@ import request from "@/utils/request"; // é访模ç详æ // å¤é¾è·åé访æé®å·è¯¦æ export function getExternalfollowup(data) { return request({ url: "/smartor/servicetask/getScriptInfoByCondition", // url: "/smartor/servicetask/getScriptInfoByCondition", method: "post", data: data }); } // æäº¤é®å·ãé访 export function SetsaveQuestionAnswer(data) { return request({ url: "/smartor/ivrtaskcalldetail/saveQuestionAnswer", // url: "/smartor/serviceSubtask/saveQuestionAnswer", method: "post", data: data }); src/views/followvisit/tasklist/index.vue
@@ -630,19 +630,28 @@ this.tasktopic = this.$route.query.tasktopic ? this.$route.query.tasktopic : this.tasktopic; if (this.tasktopic == 1 || this.tasktopic == 2 || this.tasktopic == 3) { getTasklist(this.topqueryParams).then((response) => { this.userList = response.rows; this.total = response.total; this.loading = false; }); if (this.tasktopic == 1) { this.topqueryParams.type = 3; } else if (this.tasktopic == 2) { this.topqueryParams.type = 1; } else if (this.tasktopic == 3) { this.topqueryParams.type = 1; } else if (this.tasktopic == 4) { this.topqueryParams.type = 1; } else if (this.tasktopic == 5) { this.topqueryParams.type = 1; } else if (this.tasktopic == 6) { Questionnairetasklist(this.topqueryParams).then((res) => { this.userList = res.rows; this.total = res.total; this.loading = false; }); this.topqueryParams.type = 2; } this.topqueryParams.typename = this.findLabelByValue( this.taskoptions, this.tasktopic ); getTasklist(this.topqueryParams).then((response) => { this.userList = response.rows; this.total = response.total; this.loading = false; }); }, // æ¥çé¨è¯é访详æ Referencequestion(row) { @@ -722,15 +731,22 @@ }, /** æ°å¢æé®æä½ */ handleAdd() { if (this.tasktopic == 1 || this.tasktopic == 2 || this.tasktopic == 3) { const typename = this.findLabelByValue(this.taskoptions, this.tasktopic); if ( this.tasktopic == 2 || this.tasktopic == 3 || this.tasktopic == 4 || this.tasktopic == 5 ) { this.$router.push({ path: "/followvisit/particty", query: { type: this.tasktopic }, query: { type: 1, typename: typename }, }); } else if (this.tasktopic == 6) { this.$router.push({ path: "/followvisit/QuestionnaireTask", query: { type: this.tasktopic }, query: { type: 2, typename: typename }, }); } }, @@ -790,6 +806,7 @@ TaskTemplateSendExecution(this.TaskOperation).then((res) => { if (res.code == 200) { this.$modal.msgSuccess("ä»»å¡å·²æåå å ¥æ§è¡éå"); this.taskformVisible = false; this.getList(); } }); @@ -888,6 +905,10 @@ `user_${new Date().getTime()}.xlsx` ); }, findLabelByValue(data, value) { const item = data.find((item) => item.value === value); return item ? item.label : null; }, }, }; </script> src/views/knowledge/education/compilequer/index.vue
@@ -313,19 +313,6 @@ </div></el-col > </el-row> <el-row> <el-col :span="24"> <div style="display: flex; margin-left: 66px; margin-bottom: 10px"> <div v-for="item in variablelist" class="tsgname" @click="tsgnameto(item)" > {{ item.variatename }} </div> </div> </el-col></el-row > <div> <el-form @@ -349,6 +336,16 @@ </el-form> </div> <div> <el-upload class="upload-demo" :action="uploadImgUrlword" :on-success="uploadEditorSuccessword" :on-error="uploadEditorErrorword" :before-upload="beforeEditorUploadword" :headers="headers" > <el-button size="small" type="primary">wordæä»¶ä¸ä¼ </el-button> </el-upload> <div id="quillEditorQiniu"> <!-- åºäºelementUiçä¸ä¼ ç»ä»¶ el-upload begin--> <el-upload @@ -368,6 +365,9 @@ v-model="content" ref="customQuillEditor" :options="editorOption" @blur="onEditorBlur" @focus="onEditorFocus" @change="onEditorChange" > </quill-editor> </div> @@ -379,6 +379,8 @@ <script> import { quillEditor } from "vue-quill-editor"; import axios from "axios"; import { getheLibraryAssort, delheLibraryAssort, @@ -432,6 +434,7 @@ Authorization: "Bearer " + getToken(), }, uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", uploadImgUrlword: process.env.VUE_APP_BASE_API + "/common/uploadShow", uploadUrlPath: "没ææä»¶ä¸ä¼ ", quillUpdateImg: false, fileList: [ @@ -568,8 +571,8 @@ watch: { content(newVal, oldVal) { //this.$emit('input', newVal); console.log(newVal); console.log(oldVal); console.log(newVal, "A"); console.log(oldVal, "B"); }, }, @@ -584,6 +587,7 @@ if (this.id) { getlibraryinfo({ id: this.id }).then((res) => { this.ruleForm = res.data[0]; this.content = this.ruleForm.richText; this.ruleForm.campus = this.ruleForm.campus.split(","); this.dynamicTags = res.data[0].heLibraryTagList.map( this.processElement @@ -637,6 +641,7 @@ if (this.illnesslistapi.length) { deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); } this.ruleForm.richText = this.content; compilelibrary(this.ruleForm).then((res) => { this.$modal.msgSuccess("ç¼è¾æå"); this.$router.go(-1); @@ -838,7 +843,7 @@ this.illnessVisible = false; this.inputValue = ""; }, illnessshowInput() { this.illnessVisible = true; }, @@ -887,10 +892,22 @@ //åæ¶ä¸ä¼ å¨ç» this.quillUpdateImg = false; }, // 失å»ç¦ç¹äºä»¶ onEditorBlur(e) { console.log("onEditorBlur: ", e); }, // è·å¾ç¦ç¹äºä»¶ onEditorFocus(e) { console.log("onEditorFocus: ", e); }, // å 容æ¹åäºä»¶ onEditorChange(e) { console.log("onEditorChange: ", e); }, // ä¸ä¼ (æä»¶)å¾ç失败 uploadEditorError(res, file) { console.log(res); console.log(file); console.log(res, "word"); console.log(file, "word"); //é¡µé¢æç¤º this.$message.error("ä¸ä¼ å¾ç失败"); //åæ¶ä¸ä¼ å¨ç» @@ -899,6 +916,60 @@ //ä¸ä¼ ç»ä»¶è¿åçç»æ uploadResult: function (res) { this.uploadUrlPath = res; }, // ä¸ä¼ (æä»¶)å¾ç失败 uploadEditorErrorword(res, file) { console.log(res); console.log(file); //é¡µé¢æç¤º this.$message.error("ä¸ä¼ å¾ç失败"); //åæ¶ä¸ä¼ å¨ç» this.quillUpdateImg = false; }, //ä¸ä¼ å¾çä¹åasync beforeEditorUploadword(res, file) { //æ¾ç¤ºä¸ä¼ å¨ç» this.quillUpdateImg = true; // const res1 = await uploadImage() // console.log(res1,'====='); // this.$emit('before',res, file) console.log(res); console.log(file); }, // ä¸ä¼ å¾çæå uploadEditorSuccessword(res, file) { console.log("ä¸ä¼ æå"); const data = null; console.log(res, file, "word"); axios .get("http://localhost:8089/profile/upload/show/æµè¯/æµè¯.html") .then((response) => { console.log(response.data, "æ°æ®"); // è¾åºè·åå°çæä»¶å 容 this.content = response.data; }) .catch((error) => { console.error("Failed to fetch file:", error); }); console.log(data, "æ°æ®"); //æ¼æ¥åºä¸ä¼ çå¾ç卿å¡å¨ç宿´å°å let imgUrl = res.url; let type = imgUrl.substring(imgUrl.lastIndexOf(".") + 1); console.log(type); // è·å坿æ¬ç»ä»¶å®ä¾ let quill = this.$refs.customQuillEditor.quill; // è·åå æ æå¨ä½ç½® let length = quill.getSelection().index; // æå ¥å¾ç||è§é¢ res.info为æå¡å¨è¿åçå¾çå°å if (type == "mp4" || type == "MP4") { window.jsValue = imgUrl; quill.insertEmbed(length, "video", imgUrl); } else { quill.insertEmbed(length, "image", imgUrl); } // è°æ´å æ å°æå quill.setSelection(length + 1); //åæ¶ä¸ä¼ å¨ç» this.quillUpdateImg = false; }, }, }; @@ -1068,8 +1139,8 @@ } .editor { line-height: normal !important; height: 400px; margin-bottom: 50px; height: 600px; margin-bottom: 80px; } .ql-snow .ql-tooltip[data-mode="link"]::before { content: "请è¾å ¥é¾æ¥å°å:"; src/views/patient/propaganda/QuestionnaireTask.vue
@@ -716,7 +716,7 @@ Questionnairetaskget, gethetaskinfo, delhetaskinfo, Questionnairetaskdetails, Editsingletask, } from "@/api/AiCentre/index"; import { listDept } from "@/api/system/dept"; @@ -887,7 +887,8 @@ created() { this.id = this.$route.query.id; this.form.Type = this.$route.query.type; this.form.type = this.$route.query.type; this.form.typename = this.$route.query.typename; this.listDept(); this.Acquisitiontype(); this.Getdetails(); @@ -962,7 +963,7 @@ if (!this.form.type) { this.form.type = this.$route.query.type; } Questionnairetaskdetails(this.form).then((res) => { Editsingletask(this.form).then((res) => { if (res.code == 200) { if (this.form.taskid) { this.$modal.msgSuccess("æ°å¢æå"); src/views/repositoryai/outsideChain/publicity.vue
ÎļþÒÑɾ³ý src/views/repositoryai/outsideChain/questionnaire.vue
ÎļþÒÑɾ³ý