Commit 8bd4a3e5 authored by 李苏's avatar 李苏 💬

人员选择器,增人员Name属性

parent 6e37ffd4
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr"> <el-form-item label="责任人" ref="zrr" prop="zrr">
<el-input :readonly="readonly" v-model="form.zrr" ></el-input> <personSelector :label="form.zrrName||'暂无'" @selected='zrrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -84,6 +84,8 @@ ...@@ -84,6 +84,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
sbr:"", sbr:"",
sbrName:'',
zrrName:'',
id:'', id:'',
fxrq:new Date().getTime(), fxrq:new Date().getTime(),
...@@ -170,7 +172,10 @@ ...@@ -170,7 +172,10 @@
methods: { methods: {
sbrSelected(row){ sbrSelected(row){
this.form.sbr=row.code this.form.sbr=row.code
} },
zrrSelected(row){
this.form.zrr=row.code
}
} }
} }
</script> </script>
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
// {label: "内容", prop: "nr", fieldType: "ftString",width:300}, // {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", fieldType: "ftString",width:192}, {label: "责任部门", prop: "bmid", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6}, // {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrr", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192}, {label: "隐患等级", prop: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192}, {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
// {label: "处理人", prop: "clr", fieldType: "ftString",width:192}, // {label: "处理人", prop: "clr", fieldType: "ftString",width:192},
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300}, // {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, // {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, // {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbr", fieldType: "ftString"}, {label: "上报人", prop: "sbrName", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, // {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
] ]
} }
......
...@@ -64,14 +64,14 @@ ...@@ -64,14 +64,14 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="复查人" ref="fcr" prop="fcr"> <el-form-item label="复查人" ref="fcr" prop="fcr">
<el-input :readonly="readonly" v-model="form.fcr" ></el-input> <personSelector :label="form.fcrName||'暂无'" @selected='fcrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="处理人" ref="clr" prop="clr"> <el-form-item label="处理人" ref="clr" prop="clr">
<el-input :readonly="readonly" v-model="form.clr" ></el-input> <personSelector :label="form.clrName||'暂无'" @selected='clrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -104,7 +104,8 @@ ...@@ -104,7 +104,8 @@
</el-col> --> </el-col> -->
<el-col :span="12"> <el-col :span="12">
<el-form-item label="处置人" ref="czr" prop="czr"> <el-form-item label="处置人" ref="czr" prop="czr">
<el-input :readonly="readonly" v-model="form.czr" ></el-input> <personSelector :label="form.czrName||'暂无'" @selected='czrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.czr" ></el-input> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -151,9 +152,8 @@ ...@@ -151,9 +152,8 @@
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
// this.form.sbr=localStorage.getItem('userid') this.form.sbr=localStorage.getItem('userid')
// this.form.sbrName=localStorage.getItem('username') this.form.sbrName=localStorage.getItem('username')
this.form.sbr='TEST01'
}, },
/* 组件名称*/ /* 组件名称*/
name: "yhglYhjlEdit", name: "yhglYhjlEdit",
...@@ -169,6 +169,10 @@ ...@@ -169,6 +169,10 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
czrName:'',
clrName:'',
fcrName:'',
sbrName:'',
sbr:'', sbr:'',
id:'', id:'',
...@@ -256,7 +260,16 @@ ...@@ -256,7 +260,16 @@
methods: { methods: {
sbrSelected(row){ sbrSelected(row){
this.form.sbr=row.code this.form.sbr=row.code
} },
fcrSelected(row){
this.form.fcr=row.code
},
clrSelected(row){
this.form.clr=row.code
},
czrSelected(row){
this.form.czr=row.code
}
} }
} }
</script> </script>
......
...@@ -121,13 +121,13 @@ ...@@ -121,13 +121,13 @@
// {label: "责任人", prop: "zrr", fieldType: "ftString",width:192}, // {label: "责任人", prop: "zrr", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192}, {label: "隐患等级", prop: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192}, {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clr", fieldType: "ftString",width:192}, {label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, // {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcr", fieldType: "ftString",width:192}, {label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"}, // {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300}, // {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czr", fieldType: "ftString",width:192}, {label: "处置人", prop: "czrName", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"}, {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300}, // {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6}, // {label: "状态", prop: "zt", fieldType: "ftString",width:6},
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300}, // {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, // {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, // {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbr", fieldType: "ftString"}, {label: "上报人", prop: "sbrName", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
] ]
} }
......
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr"> <el-form-item label="责任人" ref="zrr" prop="zrr">
<el-input :readonly="readonly" v-model="form.zrr" ></el-input> <personSelector :label="form.zrrName||'暂无'" @selected='zrrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -57,7 +58,7 @@ ...@@ -57,7 +58,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="处理人" ref="clr" prop="clr"> <el-form-item label="处理人" ref="clr" prop="clr">
<el-input :readonly="readonly" v-model="form.clr" ></el-input> <personSelector :label="form.clrName||'暂无'" @selected='clrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -85,7 +86,8 @@ ...@@ -85,7 +86,8 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="复查人" ref="fcr" prop="fcr"> <el-form-item label="复查人" ref="fcr" prop="fcr">
<el-input :readonly="readonly" v-model="form.fcr" ></el-input> <personSelector :label="form.fcrName||'暂无'" @selected='fcrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.fcr" ></el-input> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -118,7 +120,8 @@ ...@@ -118,7 +120,8 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="处置人" ref="czr" prop="czr"> <el-form-item label="处置人" ref="czr" prop="czr">
<el-input :readonly="readonly" v-model="form.czr" ></el-input> <!-- <el-input :readonly="readonly" v-model="form.czr" ></el-input> -->
<personSelector :label="form.czrName||'暂无'" @selected='czrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -141,7 +144,7 @@ ...@@ -141,7 +144,7 @@
this.form.sbrName=localStorage.getItem('username') this.form.sbrName=localStorage.getItem('username')
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqgl/yhglYhjlEdit", name: "yhglYhjlEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { data() {
...@@ -154,6 +157,11 @@ ...@@ -154,6 +157,11 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
zrrName:'',
czrName:'',
clrName:'',
fcrName:'',
sbrName:'',
yqzgsj:'', yqzgsj:'',
sbr:"", sbr:"",
cfje:'', cfje:'',
...@@ -243,7 +251,19 @@ ...@@ -243,7 +251,19 @@
methods: { methods: {
sbrSelected(row){ sbrSelected(row){
this.form.sbr=row.code this.form.sbr=row.code
} },
fcrSelected(row){
this.form.fcr=row.code
},
clrSelected(){
this.form.clr=row.code
},
czrSelected(){
this.form.czr=row.code
},
zrrSelected(){
this.form.zrr=row.code
}
} }
} }
</script> </script>
......
...@@ -62,15 +62,6 @@ ...@@ -62,15 +62,6 @@
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager> </TablePager>
</div> </div>
...@@ -134,16 +125,16 @@ ...@@ -134,16 +125,16 @@
{label: "内容", prop: "nr", fieldType: "ftString",width:300}, {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", fieldType: "ftString",width:192}, {label: "责任部门", prop: "bmid", fieldType: "ftString",width:192},
{label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:120}, {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:120},
{label: "责任人", prop: "zrr", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192}, {label: "隐患等级", prop: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192}, {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clr", fieldType: "ftString",width:192}, {label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcr", fieldType: "ftString",width:192}, {label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"}, // {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300}, // {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czr", fieldType: "ftString",width:192}, {label: "处置人", prop: "czrName", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"}, {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300}, // {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6}, // {label: "状态", prop: "zt", fieldType: "ftString",width:6},
...@@ -152,7 +143,7 @@ ...@@ -152,7 +143,7 @@
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300}, // {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, // {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, // {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbr", fieldType: "ftString"}, {label: "上报人", prop: "sbrName", fieldType: "ftString"},
{label: "要求整改日期", prop: "yqzgsj", fieldType: "ftString"}, {label: "要求整改日期", prop: "yqzgsj", fieldType: "ftString"},
{label: "处罚金额", prop: "cfje", fieldType: "ftString"}, {label: "处罚金额", prop: "cfje", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, // {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr"> <el-form-item label="责任人" ref="zrr" prop="zrr">
<el-input :readonly="readonly" v-model="form.zrr" ></el-input> <personSelector :label="form.zrrName||'暂无'" @selected='zrrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="处理人" ref="clr" prop="clr"> <el-form-item label="处理人" ref="clr" prop="clr">
<el-input :readonly="readonly" v-model="form.clr" ></el-input> <personSelector :label="form.clrName||'暂无'" @selected='clrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
data() { data() {
return { return {
/* 额外初始化,根据需求*/ /* 额外初始化,根据需求*/
systemType: [], systemType: [],
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
clrName:'',
zrrName:'',
id:'', id:'',
fxrq:new Date().getTime(), fxrq:new Date().getTime(),
...@@ -174,19 +176,17 @@ ...@@ -174,19 +176,17 @@
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
} }
} }
}, },
methods: { methods: {
zrrSelected(row){
this.form.zrr=row.code
},
clrSelected(row){
this.form.clr=row.code
}
} }
} }
</script> </script>
......
...@@ -117,10 +117,10 @@ ...@@ -117,10 +117,10 @@
{label: "内容", prop: "nr", fieldType: "ftString",width:300}, {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", fieldType: "ftString",width:192}, {label: "责任部门", prop: "bmid", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6}, // {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrr", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192}, {label: "隐患等级", prop: "dj", fieldType: "ftString",width:192},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192}, // {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clr", fieldType: "ftString",width:192}, {label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, // {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, // {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192}, // {label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment