commit
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
package com.budwk.app.zhgh.dayofficework.ghkh.model;
|
package com.budwk.app.zhgh.dayofficework.ghkh.model;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
import org.nutz.dao.DB;
|
import org.nutz.dao.DB;
|
||||||
import org.nutz.dao.entity.annotation.*;
|
import org.nutz.dao.entity.annotation.*;
|
||||||
|
import org.nutz.lang.util.NutMap;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -13,10 +15,10 @@ import java.util.Map;
|
|||||||
* @Date: 2020/09/27/20:13
|
* @Date: 2020/09/27/20:13
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
@Table("Kh_zp")
|
@Table("Kh_zp")
|
||||||
public class Kh_zp {
|
public class Kh_zp {
|
||||||
|
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Name
|
@Name
|
||||||
@Comment("id")
|
@Comment("id")
|
||||||
@@ -28,10 +30,12 @@ public class Kh_zp {
|
|||||||
@Comment("标准id")
|
@Comment("标准id")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||||
private String bz_id;
|
private String bz_id;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("指标id")
|
@Comment("指标id")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||||
private String zb_id;
|
private String zb_id;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("内容id")
|
@Comment("内容id")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||||
@@ -52,92 +56,21 @@ public class Kh_zp {
|
|||||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||||
private String flatid;
|
private String flatid;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("文件")
|
@Comment("文件")
|
||||||
@ColDefine(type = ColType.MYSQL_JSON)
|
@ColDefine(type = ColType.MYSQL_JSON)
|
||||||
private List<Map> files;
|
private List<NutMap> files;
|
||||||
|
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("排序字段")
|
@Comment("排序字段")
|
||||||
@Prev({
|
@Prev({
|
||||||
@SQL(db = DB.MYSQL, value = "SELECT IFNULL(MAX(location),0)+1 FROM Kh_zp"),
|
@SQL(db = DB.MYSQL, value = "SELECT IFNULL(MAX(location),0)+1 FROM Kh_zp"),
|
||||||
})
|
})
|
||||||
|
|
||||||
private Integer location;
|
private Integer location;
|
||||||
|
|
||||||
public String getId() {
|
@Column
|
||||||
return id;
|
@Comment("是否修改,默认为false")
|
||||||
}
|
@ColDefine(type = ColType.BOOLEAN)
|
||||||
|
@Default("0")
|
||||||
public void setId(String id) {
|
private Boolean updateStatus;
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBz_id() {
|
|
||||||
return bz_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBz_id(String bz_id) {
|
|
||||||
this.bz_id = bz_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getZb_id() {
|
|
||||||
return zb_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setZb_id(String zb_id) {
|
|
||||||
this.zb_id = zb_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNr_id() {
|
|
||||||
return nr_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNr_id(String nr_id) {
|
|
||||||
this.nr_id = nr_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getClnr() {
|
|
||||||
return clnr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setClnr(String clnr) {
|
|
||||||
this.clnr = clnr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getZpf() {
|
|
||||||
return zpf;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setZpf(Integer zpf) {
|
|
||||||
this.zpf = zpf;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFlatid() {
|
|
||||||
return flatid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFlatid(String flatid) {
|
|
||||||
this.flatid = flatid;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public List<Map> getFiles() {
|
|
||||||
return files;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFiles(List<Map> files) {
|
|
||||||
this.files = files;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getLocation() {
|
|
||||||
return location;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLocation(Integer location) {
|
|
||||||
this.location = location;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
layout("/layouts/platform.html"){
|
layout("/layouts/platform.html"){
|
||||||
#-->
|
#-->
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.el-table .warning-row {
|
||||||
|
background: oldlace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<div id="app" v-cloak>
|
<div id="app" v-cloak>
|
||||||
|
|
||||||
@@ -130,15 +135,16 @@ layout("/layouts/platform.html"){
|
|||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
|
||||||
<table-tool label="考核内容" class="mt10"></table-tool>
|
<table-tool label="考核内容" class="mt10"></table-tool>
|
||||||
<el-form-item label="" label-width="0" v-for="nr,idx in formData.nrs">
|
<el-form-item label="" label-width="0" v-for="nr,idx in formData.nrs" v-if="nr?.auditUser === $store.state.user.loginname">
|
||||||
<template v-if="nr?.auditUser === $store.state.user.loginname">
|
<template>
|
||||||
<el-row type="flex" align="middle" justify="space-between">
|
<el-row type="flex" align="middle" justify="space-between">
|
||||||
<el-input v-model="nr.content" readonly maxlength="30" placeholder="请填写考核内容">
|
<el-input v-model="nr.content" readonly maxlength="30" placeholder="请填写考核内容">
|
||||||
<template slot="prepend"><span>{{ idx + 1 }}</span></template>
|
<template slot="prepend"><span>{{ idx + 1 }}</span></template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="margin-top: 20px">
|
<el-row style="margin-top: 20px">
|
||||||
<el-table :data="nr.bzs" style="width: 100%" border show-summary size="small" :summary-method="getSummaries">
|
<el-table :data="nr.bzs" style="width: 100%" border show-summary size="small" :summary-method="getSummaries"
|
||||||
|
:row-class-name="tableRowClassName">
|
||||||
<el-table-column align="center" header-align="center" label="序号"
|
<el-table-column align="center" header-align="center" label="序号"
|
||||||
type="index" width="60">
|
type="index" width="60">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -299,6 +305,12 @@ layout("/layouts/platform.html"){
|
|||||||
'upload-materials': httpVueLoader('/components/module/kh/UploadMaterials.vue')
|
'upload-materials': httpVueLoader('/components/module/kh/UploadMaterials.vue')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
tableRowClassName({row, rowIndex}) {
|
||||||
|
if(row.zp?.updateStatus === true) {
|
||||||
|
return 'warning-row';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
},
|
||||||
addForm() {
|
addForm() {
|
||||||
this.formData.nrs[this.idx].bzs[this.index].zp = this.data
|
this.formData.nrs[this.idx].bzs[this.index].zp = this.data
|
||||||
this.dialog = false
|
this.dialog = false
|
||||||
|
|||||||
Reference in New Issue
Block a user