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