一日流程评估-二次评估
This commit is contained in:
@ -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>
|
||||
|
@ -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("评估成功");
|
||||
|
Reference in New Issue
Block a user