| | |
| | | <div id="app"> |
| | | <router-view /> |
| | | <theme-picker /> |
| | | <Assistant /> |
| | | <Assistant v-if="" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | // 外链获取随访或问卷详情 |
| | | export function getExternalfollowup(data) { |
| | | return request({ |
| | | url: "/smartor/serviceTask/getScriptInfoByCondition", |
| | | url: "/smartor/servicetask/getScriptInfoByCondition", |
| | | // url: "/smartor/servicetask/getScriptInfoByCondition", |
| | | method: "post", |
| | | data: data |
| | |
| | | <template> |
| | | <div class="questionnaire"> |
| | | <div class="CONTENT"> |
| | | <div class="title">暑期问卷</div> |
| | | <div class="title">随访问卷</div> |
| | | <div class="preview-left"> |
| | | <!-- 单选 --> |
| | | <div |
| | |
| | | getQuestionnaire() { |
| | | let taskid = this.$route.query.param1; |
| | | let patid = this.$route.query.param2; |
| | | console.log(taskid, "taskid"); |
| | | console.log(patid, "patid"); |
| | | // let taskid = |
| | | // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // let patid = |
| | | // "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA=="; |
| | | this.taskid = this.decrypt(taskid); |
| | | // this.taskid = this.decrypt(taskid); |
| | | this.patid = this.decrypt(patid); |
| | | |
| | | this.taskid = taskid; |
| | | this.patid = patid; |
| | | console.log(this.taskid, "this.taskid"); |
| | | console.log(this.patid, "this.patid"); |
| | | |
| | | // this.$modal.msgSuccess("用户id为" + this.patid); |
| | | // this.$modal.msgSuccess("任务id为" + this.taskid); |
| | | let taskids = this.encrypt(this.taskid); |
| | |
| | | methods: { |
| | | // 获取数据 |
| | | getQuestionnaire() { |
| | | let taskid = this.$route.query.param1; |
| | | let patid = this.$route.query.param2; |
| | | // let taskid = |
| | | // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // let patid = |
| | | // "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA=="; |
| | | this.taskid = this.decrypt(taskid); |
| | | this.patid = this.decrypt(patid); |
| | | // let taskid = this.$route.query.param1; |
| | | // let patid = this.$route.query.param2; |
| | | // // let taskid = |
| | | // // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // // let patid = |
| | | // // "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA=="; |
| | | // this.taskid = this.decrypt(taskid); |
| | | // this.patid = this.decrypt(patid); |
| | | |
| | | // this.$modal.msgSuccess("用户id为" + this.patid); |
| | | // this.$modal.msgSuccess("任务id为" + this.taskid); |
| | | let taskids = this.encrypt(this.taskid); |
| | | let patids = this.encrypt(this.patid); |
| | | getExternalfollowup({ param1: taskids, param2: patids }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.questionList = res.rows; |
| | | } |
| | | }); |
| | | // // this.$modal.msgSuccess("用户id为" + this.patid); |
| | | // // this.$modal.msgSuccess("任务id为" + this.taskid); |
| | | // let taskids = this.encrypt(this.taskid); |
| | | // let patids = this.encrypt(this.patid); |
| | | // getExternalfollowup({ param1: taskids, param2: patids }).then((res) => { |
| | | // if (res.code == 200) { |
| | | // this.questionList = res.rows; |
| | | // } |
| | | // }); |
| | | // 临时获取数据 |
| | | axios |
| | | .get("http://localhost:8089/profile/upload/show/测试/测试.html") |
| | | .get( |
| | | "http://116.62.18.175:8096/profile/upload/show/挂号需知/挂号需知.html" |
| | | ) |
| | | .then((response) => { |
| | | console.log(response.data, "数据"); // 输出获取到的文件内容 |
| | | this.richText = response.data; |
| | |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | allhosp: "1", |
| | | allhosp: "0", |
| | | pageSize: 10, |
| | | idcardno: undefined, |
| | | name: undefined, |
| | |
| | | "线下(纸质)", |
| | | "线上(短信/钉钉的文本视频)", |
| | | "宣教链接", |
| | | "微信公众号", |
| | | "短信", |
| | | ]; |
| | | getlibrarylist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | |
| | | <el-input |
| | | style="width: 220px" |
| | | :disabled="true" |
| | | v-model="form.templateName" |
| | | v-model="form.templatename" |
| | | placeholder="点击右侧选择" |
| | | /> </el-form-item |
| | | ></el-col> |
| | |
| | | { label: "创建人(缺)", width: "", prop: "updateBy" }, |
| | | ], |
| | | tableLabelcy: [ |
| | | { label: "随访名称", width: "", prop: "templateName" }, |
| | | { label: "随访名称", width: "", prop: "templatename" }, |
| | | { label: "随访计划", width: "", prop: "impTemplate" }, |
| | | { label: "修改日期", width: "", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "", prop: "updateBy" }, |
| | | ], |
| | | tableLabelfz: [ |
| | | { label: "通知名称", width: "", prop: "templateName" }, |
| | | { label: "通知名称", width: "", prop: "templatename" }, |
| | | { label: "通知模版", width: "", prop: "impTemplate" }, |
| | | { label: "修改日期", width: "", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "", prop: "updateBy" }, |
| | |
| | | { label: "支付宝", value: 7 }, |
| | | { label: "智能小程序", value: 8 }, |
| | | { label: "钉钉", value: 9 }, |
| | | { label: "线下(纸质)", value: 10 }, |
| | | { label: "线上(短信/钉钉的文本、问卷链接)", value: 11 }, |
| | | ], |
| | | // 时间处理 |
| | | daytime: [], //日期 |
| | |
| | | form: { |
| | | patTaskRelevances: [], |
| | | sendType: 1, |
| | | templateName: "", |
| | | templatename: "", |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | }, |
| | |
| | | // 确认选择模版放入任务模版 |
| | | selectfn(row, type) { |
| | | // 模版情况下获取模版信息 |
| | | console.log(row,'选择模版'); |
| | | console.log(row, "选择模版"); |
| | | this.libName = row.templateName; |
| | | this.libId = row.id; |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | |
| | | this.Tasktemplate.tempDetpRelevances = null; |
| | | this.Tasktemplate.libtemplateid = id; |
| | | this.Tasktemplate.isoperation = 1; |
| | | this.Tasktemplate.libtemplateName = this.Tasktemplate.templateName; |
| | | this.Tasktemplate.libtemplatename = this.Tasktemplate.templatename; |
| | | console.log(this.libName, this.libId); |
| | | |
| | | TaskTemplatecomit(this.Tasktemplate).then((response) => { |
| | |
| | | this.previewtf = false; |
| | | this.form.templateid = response.data; |
| | | this.form.libtemplateid = this.libId; |
| | | this.form.templateName = this.libName; |
| | | console.log(this.form.templateName, "ss"); |
| | | this.$modal.msgSuccess("选择模版成功", this.form.templateName); |
| | | this.form.templatename = this.libName; |
| | | console.log(this.form.templatename, "ss"); |
| | | this.$modal.msgSuccess("选择模版成功", this.form.templatename); |
| | | }); |
| | | }, |
| | | // 处理服务形式 |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `http://192.168.2.8:8089`, |
| | | target:`http://localhost:8089`, |
| | | target:`http://localhost:8095`, |
| | | // target: `http://www.hxsoft.com:8080`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |