一日流程评估-二次评估

This commit is contained in:
zhanglipeng
2021-05-24 16:55:47 +08:00
parent 6cd38f30fc
commit c1bdf1c3fe
5 changed files with 46 additions and 1 deletions

View File

@ -110,6 +110,15 @@
v-hasPermi="['benyi:dayflowassessment:query']"
>详情</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
v-show="!checkUpdateable(scope.row)"
@click="handleUpdateAssessment(scope.row)"
v-hasPermi="['benyi:dayflowassessment:query']"
>评估</el-button
>
<el-button
size="mini"
type="text"
@ -292,6 +301,13 @@ export default {
},
});
},
handleUpdateAssessment(row) {
const id = row.id;
//console.log(id);
this.$router.push({
path: "/benyi/dayflowassessment/teacher/" + id,
});
},
handleAdd() {
this.$router.push({
path: "/benyi/dayflowassessment/teacher/" + Date.now(),
@ -314,6 +330,12 @@ export default {
})
.catch(function () {});
},
//控制按钮可用
checkUpdateable(row) {
var status = row.status;
//console.log(date.toLocaleDateString());
return status == "1";
},
},
};
</script>

View File

@ -233,6 +233,7 @@ export default {
pgdxxm: undefined,
createUserid: undefined,
createTime: undefined,
status: undefined,
list: [],
};
this.resetForm("form");
@ -251,6 +252,7 @@ export default {
if (action === "confirm") {
this.loading = true;
this.form.list = this.dayflowstandardList;
this.form.status = "1";
addDayflowassessment(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("评估成功");