计划管理查看补充字段

zhangtao
laozt 1 year ago
parent f668c26da1
commit 4bd6c40fc5

@ -32,7 +32,15 @@
:key="key" :key="key"
> >
{{ {{
key == "district" ? componendDistrict(resData[key]) : resData[key] key == "district"
? componendDistrict(resData[key])
: key == "status"
? fStatus(resData[key])
: key == "checkStatus"
? fcheckStatus(resData[key])
: key == "checkAgeing"
? fcheckAgeing(resData[key])
: resData[key]
}} }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
@ -56,6 +64,12 @@ export default {
行政区划: "district", 行政区划: "district",
计划年份: "plannedYear", 计划年份: "plannedYear",
计划月份: "plannedMonth", 计划月份: "plannedMonth",
执法地区: "lawAreas",
执法级别: "lawLevel",
执法层级: "lawHierarchy",
状态: "status",
检查状态: "checkStatus",
检查失效: "checkAgeing",
发布时间: "createTime", 发布时间: "createTime",
备注: "remark", 备注: "remark",
}, },
@ -68,6 +82,7 @@ export default {
openDialog(row) { openDialog(row) {
this.dialogVisible = true; this.dialogVisible = true;
this.loading = false; this.loading = false;
row["createTime"] = this.$moment(row.createTime).format("yyyy-MM-DD");
this.ObjectIndex = this.objInd1; this.ObjectIndex = this.objInd1;
this.resData = row; this.resData = row;
// console.log(row); // console.log(row);
@ -75,6 +90,24 @@ export default {
closeDialog() { closeDialog() {
this.dialogVisible = false; this.dialogVisible = false;
}, },
fStatus(e) {
return e == 1 ? "正式" : e == 0 ? "草稿" : "";
},
fcheckStatus(e) {
return e == 1 ? "已检查" : "未检查";
},
fcheckAgeing(e) {
switch (e) {
case 1:
return "当月";
case 2:
return "提前";
case 3:
return "滞后";
default:
return "/";
}
},
// //
componendDistrict(district) { componendDistrict(district) {
let fullName; let fullName;

Loading…
Cancel
Save