修改
This commit is contained in:
parent
7b691374e5
commit
9b7298b72b
@ -36,4 +36,13 @@ export function selectSpecialDisease(id) {
|
||||
url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//审核完成
|
||||
export function updateRouteCheckStatus(data) {
|
||||
return request({
|
||||
url: `/system/specialDiseaseNode/updateRouteCheckStatus`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -49,6 +49,8 @@
|
||||
@click.native='bottomclickevent(uitem, index, uindex)'
|
||||
:class="listindex == index && itemindex == uindex ? 'cards' : ''">
|
||||
<h3 style="height: 20px;">{{ uitem.taskType }}</h3>
|
||||
<el-tag v-if="uitem.routeCheckStatus == 'AGREE'" class="routeCheckStatus">已审核</el-tag>
|
||||
<el-tag v-else type="warning" class="routeCheckStatus">未审核</el-tag>
|
||||
<p style="height: 16px;">{{ uitem.taskSubdivision }}</p>
|
||||
</el-card>
|
||||
</el-timeline-item>
|
||||
@ -260,7 +262,8 @@
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="TemporaryStorage">暂 存</el-button>
|
||||
<el-button type="primary">审核完成</el-button>
|
||||
<el-button type="primary" @click="auditing">审核完成 {{ agreeNumber ? agreeNumber : '0' }} / {{
|
||||
totalNumber ? totalNumber : '0' }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -273,13 +276,15 @@ import propaganda from '../components/propaganda.vue'
|
||||
import officialAccount from '../components/officialAccount.vue'
|
||||
import miniProgram from '../components/miniProgram.vue'
|
||||
import {
|
||||
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease
|
||||
selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDisease, updateRouteCheckStatus
|
||||
} from '@/api/system/specialDiseaseNode'
|
||||
export default {
|
||||
components: { wangeditor, question, propaganda, message, officialAccount, miniProgram },
|
||||
name: "specialDiseaseNode",
|
||||
data() {
|
||||
return {
|
||||
totalNumber: 0,
|
||||
agreeNumber: 0,
|
||||
updata: {
|
||||
specialDiseaseRouteId: '',
|
||||
suitRange: '',
|
||||
@ -320,56 +325,61 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.taskinfo();
|
||||
if (this.$route.query) {
|
||||
this.updata.suitRange = this.$route.query.suitRange
|
||||
this.updata.routeName = this.$route.query.routeName
|
||||
this.updata.specialDiseaseRouteId = this.$route.query.id
|
||||
selectSpecialDisease(this.$route.query.id).then(res => {
|
||||
res.data.specialDiseaseNodeList.forEach(e => {
|
||||
e.messagePushSign = '' + e.messagePushSign
|
||||
e.officialPushSign = '' + e.officialPushSign
|
||||
e.appletPushSign = '' + e.appletPushSign
|
||||
})
|
||||
this.lists = this.handleData(res.data.specialDiseaseNodeList, 'routeNodeDay', 'routeNodeName')
|
||||
this.form = this.lists[0].list[0]
|
||||
if (this.form.taskType) {
|
||||
this.changeTaskType(this.form.taskType, this.form.taskSubdivision)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.lists.push({
|
||||
routeNodeName: "",
|
||||
routeNodeDay: '',
|
||||
list: [
|
||||
{
|
||||
nodeContent: '',
|
||||
templateId: '',
|
||||
templateName: '',
|
||||
taskType: '',
|
||||
taskSubdivision: '',
|
||||
taskSubdivisionName: '',
|
||||
taskStatus: '',
|
||||
secondClassifyDescribe: '',
|
||||
executionTime: '',
|
||||
appletPushSign: '0',
|
||||
officialPushSign: '0',
|
||||
messagePushSign: '0',
|
||||
messagePreview: '',
|
||||
officialRemindContent: '',
|
||||
taskSubdivisiontemplateType: '',
|
||||
appletRemindContent: '',
|
||||
appletPromptDescription: '',
|
||||
},
|
||||
],
|
||||
})
|
||||
this.form = this.lists[0].list[0]
|
||||
}
|
||||
this.info();
|
||||
},
|
||||
beforeDestroy() { },
|
||||
watch: {},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
info() {
|
||||
if (this.$route.query) {
|
||||
this.updata.suitRange = this.$route.query.suitRange
|
||||
this.updata.routeName = this.$route.query.routeName
|
||||
this.updata.specialDiseaseRouteId = this.$route.query.id
|
||||
selectSpecialDisease(this.$route.query.id).then(res => {
|
||||
this.agreeNumber = res.data.agreeNumber
|
||||
this.totalNumber = res.data.totalNumber
|
||||
res.data.specialDiseaseNodeList.forEach(e => {
|
||||
e.messagePushSign = '' + e.messagePushSign
|
||||
e.officialPushSign = '' + e.officialPushSign
|
||||
e.appletPushSign = '' + e.appletPushSign
|
||||
})
|
||||
this.lists = this.handleData(res.data.specialDiseaseNodeList, 'routeNodeDay', 'routeNodeName')
|
||||
this.form = this.lists[0].list[0]
|
||||
if (this.form.taskType) {
|
||||
this.changeTaskType(this.form.taskType, this.form.taskSubdivision)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.lists.push({
|
||||
routeNodeName: "",
|
||||
routeNodeDay: '',
|
||||
list: [
|
||||
{
|
||||
nodeContent: '',
|
||||
templateId: '',
|
||||
templateName: '',
|
||||
taskType: '',
|
||||
taskSubdivision: '',
|
||||
taskSubdivisionName: '',
|
||||
taskStatus: '',
|
||||
secondClassifyDescribe: '',
|
||||
executionTime: '',
|
||||
appletPushSign: '0',
|
||||
officialPushSign: '0',
|
||||
messagePushSign: '0',
|
||||
messagePreview: '',
|
||||
officialRemindContent: '',
|
||||
taskSubdivisiontemplateType: '',
|
||||
appletRemindContent: '',
|
||||
appletPromptDescription: '',
|
||||
},
|
||||
],
|
||||
})
|
||||
this.form = this.lists[0].list[0]
|
||||
}
|
||||
},
|
||||
handleData(list, key, keytwo) {
|
||||
//得到数据的主键列表
|
||||
let keysArr = list.map(item => {
|
||||
@ -423,7 +433,8 @@ export default {
|
||||
}) : ""
|
||||
})
|
||||
specialDiseaseNode(this.updata).then(res => {
|
||||
this.$modal.msgSuccess("暂存成功!");
|
||||
this.info();
|
||||
this.$modal.msgSuccess("暂存成功!");
|
||||
})
|
||||
},
|
||||
//问卷传值
|
||||
@ -542,10 +553,39 @@ export default {
|
||||
this.lists.splice(index, 1)
|
||||
}
|
||||
},
|
||||
//审核
|
||||
auditing() {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '审核中',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
updateRouteCheckStatus({
|
||||
routeCheckStatus: 'AGREE',
|
||||
id: this.form.specialDiseaseNodeId
|
||||
}).then(res => {
|
||||
if (res.data == 1) {
|
||||
this.info();
|
||||
this.$modal.msgSuccess("审核成功!");
|
||||
loading.close();
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
::v-deep .el-card__body {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.routeCheckStatus {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 30px;
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
padding: 20px 20px;
|
||||
text-align: right;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user