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

修改bug

parent 6b4f34da
import request from '../util/ajax'
export function queryIntegrationList(params) {
export function queryIntegrationList(params, query) {
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',
data: params
})
}
export function queryDetail(params) {
export function queryDetail(params, query) {
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',
data: params
})
......
......@@ -1664,7 +1664,6 @@ export default {
this.associationId = query.associationId
this.secret = query.secret
this.type = query.type
this.token = query.token
queryEmergencySiteList().then(res => {
if (res.msg === 201) {
this.siteList = res.respData
......@@ -1676,6 +1675,7 @@ export default {
this.hospitalList = res.respData
this.hospitalList2 = res.respData
})
console.log(this.type)
if (this.type === 'update' || this.type === 'detail') {
this.getDetailData()
}
......@@ -1686,10 +1686,12 @@ export default {
associationId: this.associationId,
secret: this.secret
}
if (this.token) {
params.token = this.token
const query = this.$route.query
if (!(query.token && query.params)) {
this.$message.error('无效数据,请联系管理员')
return
}
queryDetail(params).then((res) => {
queryDetail(params, query).then((res) => {
if (res.msg == 201) {
if (res.respData.inHospitalName) {
this.remoteMethod(res.respData.inHospitalName)
......
......@@ -152,7 +152,6 @@ export default {
time: []
},
patientTypeList: [],
token: '',
tableData: {
loading: false,
head: [
......@@ -266,13 +265,8 @@ export default {
this.patientTypeList = res.patient_type
console.log(this.patientTypeList)
})
const query = this.$route.query
this.token = query.token
if (this.token) {
this.search()
} else {
this.$message.error('无效数据,请联系管理员')
}
this.search()
},
methods: {
getTableData() {
......@@ -282,12 +276,20 @@ export default {
pageNo: this.pageNum,
pageSize: this.pageSize,
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) {
params.time = this.searchForm.time[0] + "_" + this.searchForm.time[1]
}
queryIntegrationList(params).then((res) => {
queryIntegrationList(params,query).then((res) => {
if (res.msg == 201) {
this.dealTableResponse(res)
} else {
......@@ -302,7 +304,8 @@ export default {
goDetail(type, row) {
const query = {
type: type,
token: this.token
token: this.token,
params: this.params
}
if (type === 'update' || type === 'detail') {
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