| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { gitzerotoken } from "@/api/AiCentre/index"; |
| | | import { gitzerotoken,query360PatInfo } from "@/api/AiCentre/index"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import store from "@/store"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | import axios from "axios"; |
| | | |
| | | export default { |
| | | name: "Discharge", |
| | | dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"], |
| | | components: { Treeselect }, |
| | | data() { |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | linkUrl:'https://blog.csdn.net/weixin_46622350/article/details/119245415', |
| | | linkUrl:'https://www.google.com/blank.html', |
| | | // 用户表格数据 |
| | | userList: null, |
| | | // 弹出层标题 |
| | |
| | | pageSize: 10, |
| | | serviceType: 4, |
| | | searchscope: 2, |
| | | sendstate:2, |
| | | }, |
| | | propss: { multiple: true }, |
| | | options: [], |
| | |
| | | label: "正常", |
| | | }, |
| | | ], |
| | | url: "http://9.208.2.190:8095/smartor/serviceExternal/query360PatInfo", |
| | | url: "http://9.208.2.190:8090/smartor/serviceExternal/query360PatInfo", |
| | | postData: { |
| | | XiaoXiTou: { |
| | | FaSongFCSJC: "ZJHES", |
| | | FaSongJGID: "47255004333112711A1001", |
| | | FaSongJGMC: "景宁畲族自治县人民医院", |
| | | FaSongJGID: localStorage.getItem("orgid"), |
| | | FaSongJGMC: localStorage.getItem("orgname"), |
| | | FaSongSJ: "2025-01-09 17:29:36", |
| | | FaSongXTJC: "SUIFANGXT", |
| | | FaSongXTMC: "随访系统", |
| | | XiaoXiID: "5FA92AFB-9833-4608-87C7-F56A654AC171", |
| | | XiaoXiLX: "SC_LC_360STCX", |
| | | XiaoXiMC: "360 视图查询", |
| | | ZuHuID: "1400361376454545408", |
| | | ZuHuMC: "景宁畲族自治县人民医院", |
| | | ZuHuID: localStorage.getItem("ZuHuID"), |
| | | ZuHuMC: localStorage.getItem("orgname"), |
| | | }, |
| | | YeWuXX: { |
| | | BingRenXX: { |
| | | ZhengJianHM: "110101199701018034", |
| | | ZhengJianHM: '', |
| | | ZhengJianLXDM: "01", |
| | | ZhengJianLXMC: "居民身份证", |
| | | ZuZhiJGID: "47255004333112711A1001", |
| | | ZuZhiJGMC: "景宁畲族自治县人民医院", |
| | | ZuZhiJGID: localStorage.getItem("orgid"), |
| | | ZuZhiJGMC: localStorage.getItem("orgname"), |
| | | }, |
| | | YongHuXX: { |
| | | XiTongID: "SUIFANGXT", |
| | | XiTongMC: "随访系统", |
| | | YongHuID: "1400466972205912064", |
| | | YongHuXM: "JNRMYY", |
| | | ZuZhiJGID: "47255004333112711A1001", |
| | | ZuZhiJGMC: "景宁畲族自治县人民医院", |
| | | ZuZhiJGID: localStorage.getItem("orgid"), |
| | | ZuZhiJGMC: localStorage.getItem("orgname"), |
| | | idp: "lyra", |
| | | }, |
| | | }, |
| | |
| | | }, |
| | | watch: {}, |
| | | created() { |
| | | // this.gettoken(); |
| | | }, |
| | | mounted() { |
| | | this.gettoken(); |
| | | }, |
| | | activated() {}, |
| | | |
| | | methods: { |
| | | gettoken() { |
| | | axios |
| | | .post(this.url, this.postData) |
| | | .then((response) => { |
| | | // 请求成功 |
| | | console.log("Response:", response); |
| | | console.log("Response:", response.data.data.url); |
| | | this.linkUrl = response.data.data.url; |
| | | }) |
| | | .catch((error) => { |
| | | // 请求失败 |
| | | console.error("Error:", error); |
| | | if (error.response) { |
| | | // 服务器返回了错误响应 |
| | | console.error("Status Code:", error.response.status); |
| | | console.error("Response Data:", error.response.data); |
| | | } else if (error.request) { |
| | | // 请求已发出,但未收到响应 |
| | | console.error("No response received"); |
| | | } else { |
| | | // 在设置请求时发生了一些事情,触发了一个错误 |
| | | console.error("Error Message:", error.message); |
| | | } |
| | | }); |
| | | query360PatInfo(this.postData).then((res) => { |
| | | if (res.data.url) { |
| | | this.linkUrl = res.data.url; |
| | | }else{ |
| | | this.linkUrl='https://www.google.com/blank.html'; |
| | | } |
| | | }); |
| | | // axios |
| | | // .post(this.url, this.postData) |
| | | // .then((response) => { |
| | | // // 请求成功 |
| | | // this.linkUrl = response.data.data.url; |
| | | // }) |
| | | // .catch((error) => { |
| | | // // 请求失败 |
| | | // this.linkUrl='https://www.google.com/blank.html'; |
| | | // if (error.response) { |
| | | // // 服务器返回了错误响应 |
| | | // console.error("Status Code:", error.response.status); |
| | | // console.error("Response Data:", error.response.data); |
| | | // } else if (error.request) { |
| | | // // 请求已发出,但未收到响应 |
| | | // console.error("No response received"); |
| | | // } else { |
| | | // // 在设置请求时发生了一些事情,触发了一个错误 |
| | | // console.error("Error Message:", error.message); |
| | | // } |
| | | // }); |
| | | }, |
| | | }, |
| | | }; |