修改预览接口
This commit is contained in:
parent
bf3a2db5a1
commit
32d8f62a1a
@ -52,4 +52,11 @@ export function updateRouteCheckStatus(data) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 预览
|
||||||
|
export function selectSpecialDiseasenew(id) {
|
||||||
|
return request({
|
||||||
|
url: `/manage/signnode/getList?manageRouteId=${id}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -169,6 +169,7 @@ export default {
|
|||||||
baseUrl: process.env.VUE_APP_BASE_API,
|
baseUrl: process.env.VUE_APP_BASE_API,
|
||||||
//左侧list
|
//左侧list
|
||||||
itemindex: 0,
|
itemindex: 0,
|
||||||
|
manageRouteId:'',
|
||||||
namelist: [
|
namelist: [
|
||||||
{
|
{
|
||||||
name: '专病管理路径'
|
name: '专病管理路径'
|
||||||
@ -199,7 +200,9 @@ export default {
|
|||||||
this.lookitem = {
|
this.lookitem = {
|
||||||
routeName: item.routeName,
|
routeName: item.routeName,
|
||||||
suitRange: item.suitRange,
|
suitRange: item.suitRange,
|
||||||
id: item.specialDiseaseRoute.specialDiseaseRouteId
|
id: item.specialDiseaseRoute.specialDiseaseRouteId,
|
||||||
|
manageRouteId:this.manageRouteId,
|
||||||
|
|
||||||
}
|
}
|
||||||
this.specialDiseaseNodeopen = true
|
this.specialDiseaseNodeopen = true
|
||||||
},
|
},
|
||||||
@ -250,6 +253,7 @@ export default {
|
|||||||
this.itemindex = index
|
this.itemindex = index
|
||||||
this.loading.close();
|
this.loading.close();
|
||||||
this.categorylist = res.data
|
this.categorylist = res.data
|
||||||
|
this.manageRouteId=this.categorylist[0].manageRouteId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -382,4 +386,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -49,8 +49,8 @@
|
|||||||
@click.native='bottomclickevent(uitem, index, uindex)'
|
@click.native='bottomclickevent(uitem, index, uindex)'
|
||||||
:class="listindex == index && itemindex == uindex ? 'cards' : ''">
|
:class="listindex == index && itemindex == uindex ? 'cards' : ''">
|
||||||
<h3 style="height: 20px;">{{ uitem.taskTypeName }}</h3>
|
<h3 style="height: 20px;">{{ uitem.taskTypeName }}</h3>
|
||||||
<el-tag v-if="uitem.routeCheckStatus == 'AGREE'" class="routeCheckStatus">已审核</el-tag>
|
<el-tag v-if="uitem.nodeExecuteStatus == 'EXECUTED'" class="routeCheckStatus">已执行</el-tag>
|
||||||
<el-tag v-else type="warning" class="routeCheckStatus">未审核</el-tag>
|
<el-tag v-else type="warning" class="routeCheckStatus">未执行</el-tag>
|
||||||
<p style="height: 16px;">{{ uitem.taskSubdivisionName }}</p>
|
<p style="height: 16px;">{{ uitem.taskSubdivisionName }}</p>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
@ -266,7 +266,7 @@ import propaganda from '@/views/system/components/propaganda.vue'
|
|||||||
import officialAccount from '@/views/system/components/officialAccount.vue'
|
import officialAccount from '@/views/system/components/officialAccount.vue'
|
||||||
import miniProgram from '@/views/system/components/miniProgram.vue'
|
import miniProgram from '@/views/system/components/miniProgram.vue'
|
||||||
import {
|
import {
|
||||||
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease, updateRouteCheckStatus
|
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDiseasenew, updateRouteCheckStatus
|
||||||
} from '@/api/system/specialDiseaseNode'
|
} from '@/api/system/specialDiseaseNode'
|
||||||
export default {
|
export default {
|
||||||
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
|
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
|
||||||
@ -287,7 +287,7 @@ export default {
|
|||||||
totalNumber: 0,
|
totalNumber: 0,
|
||||||
agreeNumber: 0,
|
agreeNumber: 0,
|
||||||
updata: {
|
updata: {
|
||||||
specialDiseaseRouteId: '',
|
manageRouteId: '',
|
||||||
suitRange: '',
|
suitRange: '',
|
||||||
routeName: '',
|
routeName: '',
|
||||||
specialDiseaseNodeList: [],
|
specialDiseaseNodeList: [],
|
||||||
@ -326,14 +326,14 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.updata = this.lookitem
|
this.updata = this.lookitem
|
||||||
this.updata.specialDiseaseRouteId = this.lookitem.id
|
this.updata.manageRouteId = this.lookitem.manageRouteId
|
||||||
this.taskinfo();
|
this.taskinfo();
|
||||||
},
|
},
|
||||||
beforeDestroy() { },
|
beforeDestroy() { },
|
||||||
watch: {
|
watch: {
|
||||||
lookitem(newValue, oldValue) {
|
lookitem(newValue, oldValue) {
|
||||||
this.updata = newValue;
|
this.updata = newValue;
|
||||||
this.updata.specialDiseaseRouteId = newValue.id
|
this.updata.manageRouteId = newValue.manageRouteId
|
||||||
this.taskinfo();
|
this.taskinfo();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -341,15 +341,15 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
info() {
|
info() {
|
||||||
selectSpecialDisease(this.updata.specialDiseaseRouteId).then(res => {
|
selectSpecialDiseasenew(this.updata.manageRouteId).then(res => {
|
||||||
this.agreeNumber = res.data.agreeNumber
|
this.agreeNumber = res.data.agreeNumber
|
||||||
this.totalNumber = res.data.totalNumber
|
this.totalNumber = res.data.totalNumber
|
||||||
res.data.specialDiseaseNodeList.forEach(e => {
|
res.data.forEach(e => {
|
||||||
e.messagePushSign = '' + e.messagePushSign
|
e.messagePushSign = '' + e.messagePushSign
|
||||||
e.officialPushSign = '' + e.officialPushSign
|
e.officialPushSign = '' + e.officialPushSign
|
||||||
e.appletPushSign = '' + e.appletPushSign
|
e.appletPushSign = '' + e.appletPushSign
|
||||||
})
|
})
|
||||||
this.lists = this.handleData(res.data.specialDiseaseNodeList, 'routeNodeDay', 'routeNodeName')
|
this.lists = this.handleData(res.data, 'routeNodeDay', 'routeNodeName')
|
||||||
this.form = this.lists[0].list[0]
|
this.form = this.lists[0].list[0]
|
||||||
if (this.form.taskType) {
|
if (this.form.taskType) {
|
||||||
this.changeTaskType(this.form.taskType, this.form.taskSubdivision)
|
this.changeTaskType(this.form.taskType, this.form.taskSubdivision)
|
||||||
@ -803,4 +803,4 @@ export default {
|
|||||||
::v-deep .el-card {
|
::v-deep .el-card {
|
||||||
margin-top: 20px !important;
|
margin-top: 20px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user