Commit 04b28580 authored by 何鹏程's avatar 何鹏程

修改bug

parent 6b4f34da
import request from '../util/ajax' import request from '../util/ajax'
export function queryIntegrationList(params) { export function queryIntegrationList(params, query) {
return request({ return request({
url: '/api/team/pre/queryIntegrationList?params=mdxtptPre&token=' + params.token, url: '/api/team/pre/queryIntegrationList?params=' + query.params + '&token=' + query.token,
method: 'POST', method: 'POST',
data: params data: params
}) })
} }
export function queryDetail(params) { export function queryDetail(params, query) {
return request({ return request({
url: '/api/team/pre/queryInfoById?params=mdxtptPre&token=' + params.token, url: '/api/team/pre/queryInfoById?params=' + query.params + '&token=' + query.token,
method: 'POST', method: 'POST',
data: params data: params
}) })
......
...@@ -1664,7 +1664,6 @@ export default { ...@@ -1664,7 +1664,6 @@ export default {
this.associationId = query.associationId this.associationId = query.associationId
this.secret = query.secret this.secret = query.secret
this.type = query.type this.type = query.type
this.token = query.token
queryEmergencySiteList().then(res => { queryEmergencySiteList().then(res => {
if (res.msg === 201) { if (res.msg === 201) {
this.siteList = res.respData this.siteList = res.respData
...@@ -1676,6 +1675,7 @@ export default { ...@@ -1676,6 +1675,7 @@ export default {
this.hospitalList = res.respData this.hospitalList = res.respData
this.hospitalList2 = res.respData this.hospitalList2 = res.respData
}) })
console.log(this.type)
if (this.type === 'update' || this.type === 'detail') { if (this.type === 'update' || this.type === 'detail') {
this.getDetailData() this.getDetailData()
} }
...@@ -1686,10 +1686,12 @@ export default { ...@@ -1686,10 +1686,12 @@ export default {
associationId: this.associationId, associationId: this.associationId,
secret: this.secret secret: this.secret
} }
if (this.token) { const query = this.$route.query
params.token = this.token if (!(query.token && query.params)) {
this.$message.error('无效数据,请联系管理员')
return
} }
queryDetail(params).then((res) => { queryDetail(params, query).then((res) => {
if (res.msg == 201) { if (res.msg == 201) {
if (res.respData.inHospitalName) { if (res.respData.inHospitalName) {
this.remoteMethod(res.respData.inHospitalName) this.remoteMethod(res.respData.inHospitalName)
......
...@@ -152,7 +152,6 @@ export default { ...@@ -152,7 +152,6 @@ export default {
time: [] time: []
}, },
patientTypeList: [], patientTypeList: [],
token: '',
tableData: { tableData: {
loading: false, loading: false,
head: [ head: [
...@@ -266,13 +265,8 @@ export default { ...@@ -266,13 +265,8 @@ export default {
this.patientTypeList = res.patient_type this.patientTypeList = res.patient_type
console.log(this.patientTypeList) console.log(this.patientTypeList)
}) })
const query = this.$route.query
this.token = query.token this.search()
if (this.token) {
this.search()
} else {
this.$message.error('无效数据,请联系管理员')
}
}, },
methods: { methods: {
getTableData() { getTableData() {
...@@ -282,12 +276,20 @@ export default { ...@@ -282,12 +276,20 @@ export default {
pageNo: this.pageNum, pageNo: this.pageNum,
pageSize: this.pageSize, pageSize: this.pageSize,
token: this.token, token: this.token,
params: 'mdxtptPre' params: this.params
}
const query = this.$route.query
this.token = query.token
this.params = query.params
if (!(query.token && query.params)) {
this.tableData.loading = false
this.$message.error('无效数据,请联系管理员')
return
} }
if (this.searchForm.time && this.searchForm.time.length === 2) { if (this.searchForm.time && this.searchForm.time.length === 2) {
params.time = this.searchForm.time[0] + "_" + this.searchForm.time[1] params.time = this.searchForm.time[0] + "_" + this.searchForm.time[1]
} }
queryIntegrationList(params).then((res) => { queryIntegrationList(params,query).then((res) => {
if (res.msg == 201) { if (res.msg == 201) {
this.dealTableResponse(res) this.dealTableResponse(res)
} else { } else {
...@@ -302,7 +304,8 @@ export default { ...@@ -302,7 +304,8 @@ export default {
goDetail(type, row) { goDetail(type, row) {
const query = { const query = {
type: type, type: type,
token: this.token token: this.token,
params: this.params
} }
if (type === 'update' || type === 'detail') { if (type === 'update' || type === 'detail') {
query.patientType = row.patientType query.patientType = row.patientType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment