修改时间
This commit is contained in:
parent
bca54e219c
commit
9ddf09496e
@ -204,7 +204,7 @@ export default {
|
||||
pageSize: 10,
|
||||
questionnaireName: null,
|
||||
diseaseTypeName:null,
|
||||
|
||||
|
||||
},
|
||||
};
|
||||
},
|
||||
@ -229,6 +229,7 @@ export default {
|
||||
},
|
||||
templateId: {
|
||||
handler(val) {
|
||||
|
||||
if (val) {
|
||||
this.handleselectId = val;
|
||||
} else {
|
||||
@ -263,7 +264,7 @@ export default {
|
||||
query.campusId = id
|
||||
}
|
||||
getAgencyList(query).then(res => {
|
||||
// if (type)
|
||||
// if (type)
|
||||
console.log(nodeType);
|
||||
console.log(res.data.campusList);
|
||||
{
|
||||
@ -336,6 +337,8 @@ export default {
|
||||
this.$emit("on-template", {
|
||||
questionInfoId: item.id,
|
||||
questionnaireName: item.questionnaireName,
|
||||
createTime:item.createTime,
|
||||
|
||||
});
|
||||
this.classificationOpen = false;
|
||||
},
|
||||
@ -443,4 +446,3 @@ export default {
|
||||
top: -11px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -86,10 +86,8 @@
|
||||
</div>
|
||||
</el-popover> -->
|
||||
<div class="title" slot="reference">
|
||||
{{ item.questionnaireName }}
|
||||
</div>
|
||||
|
||||
|
||||
{{ item.questionnaireName }}
|
||||
</div>
|
||||
|
||||
<div class="progress">时间:{{ item.createTime }}</div>
|
||||
<!-- <div class="times">填写率:{{ item.totle }}%</div>
|
||||
@ -138,8 +136,7 @@
|
||||
align="center"
|
||||
prop="choiceProportion"
|
||||
>
|
||||
<template slot-scope="scope"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-progress
|
||||
:percentage="
|
||||
scope.row.choiceProportion
|
||||
@ -195,21 +192,51 @@ export default {
|
||||
tableData: [],
|
||||
itemid: "",
|
||||
questionInfoId: '',
|
||||
questionInfoIdname:0,
|
||||
questionInfoIdname: 0,
|
||||
queryParams: {
|
||||
taskStartTime: null,
|
||||
taskEndTime: null,
|
||||
visitstartTime: null,
|
||||
visitEndTime: null,
|
||||
questionInfoId: null,
|
||||
|
||||
},
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
dischargeTime: {
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.queryParams.taskStartTime = this.dischargeTime[0];
|
||||
this.queryParams.taskEndTime = this.dischargeTime[1];
|
||||
|
||||
}else{
|
||||
this.dischargeTime = []
|
||||
this.queryParams.visitstartTime = null
|
||||
this.queryParams.visitEndTime = null
|
||||
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
},
|
||||
dischargeTimevisit: {
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.queryParams.visitStartTime = this.dischargeTimevisit[0];
|
||||
this.queryParams.visitEndTime = this.dischargeTimevisit[1];
|
||||
|
||||
}else{
|
||||
this.dischargeTimevisit = []
|
||||
this.queryParams.taskStartTime = null
|
||||
this.queryParams.taskEndTime = null
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getDefaultDateRange()
|
||||
// this.getlist()
|
||||
// this.getDefaultDateRange()
|
||||
this.getlistleft()
|
||||
},
|
||||
mounted() {
|
||||
@ -225,7 +252,6 @@ export default {
|
||||
getlist() {
|
||||
questionnaireTaskStatistics(this.queryParams).then(res => {
|
||||
this.tableData = res.data.data
|
||||
console.log(res)
|
||||
})
|
||||
},
|
||||
// 左侧列表
|
||||
@ -236,7 +262,6 @@ export default {
|
||||
this.itemid = this.NameList[0].id
|
||||
this.newname = this.NameList[0].questionnaireName
|
||||
this.time = this.NameList[0].createTime
|
||||
|
||||
this.getlist()
|
||||
})
|
||||
|
||||
@ -247,7 +272,9 @@ export default {
|
||||
//模版名称
|
||||
messageontemplateword(item) {
|
||||
this.queryParams.questionInfoId = item.questionInfoId;
|
||||
this.itemid=item.questionInfoId
|
||||
this.itemid = item.questionInfoId
|
||||
this.newname = item.questionnaireName
|
||||
this.time = item.createTime
|
||||
},
|
||||
//计算一周的时间
|
||||
getDefaultDateRange() {
|
||||
@ -283,12 +310,20 @@ export default {
|
||||
},
|
||||
// 左侧点击
|
||||
itemdata(item) {
|
||||
console.log(item, '9999')
|
||||
this.itemid = item.id
|
||||
this.newname = item.questionnaireName
|
||||
this.time = item.createTime
|
||||
this.queryParams.questionInfoId = item.id
|
||||
// this.getlist()
|
||||
this.queryParams.questionInfoId = null
|
||||
this.questionInfoId = null
|
||||
this.questionInfoIdname += 1;
|
||||
var obj = {
|
||||
questionInfoId: item.id
|
||||
questionInfoId: item.id,
|
||||
taskStartTime: this.queryParams.taskStartTime,
|
||||
taskEndTime: this.queryParams.taskEndTime,
|
||||
visitstartTime: this.queryParams.visitstartTime,
|
||||
visitEndTime: this.queryParams.visitEndTime,
|
||||
}
|
||||
questionnaireTaskStatistics(obj).then(res => {
|
||||
this.tableData = res.data.data
|
||||
@ -296,16 +331,16 @@ export default {
|
||||
},
|
||||
// 重置
|
||||
resetQuery() {
|
||||
this.queryParams.questionInfoId=null,
|
||||
this.questionInfoId = null,
|
||||
this.dischargeTime = [];
|
||||
this.queryParams.questionInfoId = null,
|
||||
this.questionInfoId = null,
|
||||
this.dischargeTime = [];
|
||||
this.dischargeTimevisit = [];
|
||||
this.queryParams.taskStartTime = "";
|
||||
this.queryParams.taskEndTime = "";
|
||||
this.resetForm("queryForm");
|
||||
this.questionInfoIdname += 1;
|
||||
console.log(this.queryParams,'queryParams0000000000');
|
||||
this.getlistleft();
|
||||
console.log(this.queryParams, 'queryParams0000000000');
|
||||
this.getlistleft();
|
||||
},
|
||||
// 搜索
|
||||
handleQuery() {
|
||||
@ -329,8 +364,8 @@ export default {
|
||||
this.queryParams.visitStartTime = this.dischargeTimevisit[0];
|
||||
this.queryParams.visitEndTime = this.dischargeTimevisit[1];
|
||||
} else {
|
||||
this.queryParams.visitStartTime = this.dischargeTimevisit[0];
|
||||
this.queryParams.visitEndTime = this.dischargeTimevisit[1];
|
||||
this.queryParams.visitStartTime = null;
|
||||
this.queryParams.visitEndTime = null;
|
||||
|
||||
}
|
||||
this.getlist();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user