| | |
| | | </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"; |
| | |
| | | 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", |
| | |
| | | |
| | | 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) => { |
| | | // 请求失败 |
| | | query360PatInfo(this.postData).then((res) => { |
| | | if (res.data.url) { |
| | | this.linkUrl = res.data.url; |
| | | }else{ |
| | | 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); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | // 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); |
| | | // } |
| | | // }); |
| | | }, |
| | | }, |
| | | }; |