| | |
| | | <!-- 单选 --> |
| | | <div v-html="richText"></div> |
| | | </div> |
| | | <el-form :model="formData" label-width="80px"> |
| | | <!-- <el-form :model="formData" label-width="80px"> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">确认查看</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-form> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | question3: "", |
| | | }, |
| | | richText: "<p>Hello, <strong>world</strong>!</p>", |
| | | url:'', |
| | | }; |
| | | }, |
| | | |
| | |
| | | // let patids = this.encrypt(this.patid); |
| | | getExternalfollowup({ param1: this.taskid, param2: this.patid }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.questionList = res.rows; |
| | | } |
| | | }); |
| | | this.url = res.data.script[0].richText; |
| | | // 临时获取数据 |
| | | axios |
| | | .get("http://192.168.1.10:8095/profile/upload/show/测试/测试.html") |
| | | .get(this.url) |
| | | .then((response) => { |
| | | console.log(response.data, "数据"); // 输出获取到的文件内容 |
| | | this.richText = response.data; |
| | |
| | | .catch((error) => { |
| | | console.error("Failed to fetch file:", error); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | addStyleToImages(html) { |
| | | return html.replace( |
| | |
| | | // 提交表单逻辑 |
| | | console.log(this.questionList); |
| | | let form = { |
| | | param1: this.encrypt(this.taskid), |
| | | param2: this.encrypt(this.patid), |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | ivrTaskcalldetailList: [], |
| | | }; |
| | | this.questionList.forEach((item) => { |