Commit 7ce4d27c authored by 李苏's avatar 李苏 💬

clearable

parent d881e659
...@@ -178,6 +178,19 @@ export const powerRoutes=[ ...@@ -178,6 +178,19 @@ export const powerRoutes=[
}, },
name:'zdgzrw', name:'zdgzrw',
path:"zdgzrw" path:"zdgzrw"
},
{
component:'daily/zdgzrwfk/index',
hidden:false,
meta:{
"title": "重点工作任务反馈",
"icon": "",
"noCache": false,
"link": null,
"mkid":910000300,
},
name:'zdgzrwfk',
path:"zdgzrwfk"
} }
] ]
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="公司" ref="gsid" prop="gsid"> <el-form-item label="公司" ref="gsid" prop="gsid">
<!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> --> <!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> -->
<RelSelect :readonly="readonly" filterable style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect> <RelSelect clearable :readonly="readonly" filterable style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-col :span="4" class="search-col"> <el-col :span="4" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">公司:</span> <span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model="queryParams.gsid"></RelSelect> <RelSelect clearable style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model="queryParams.gsid"></RelSelect>
</div> </div>
</el-col> </el-col>
<el-col :span="4" class="search-col"> <el-col :span="4" class="search-col">
......
...@@ -5,31 +5,11 @@ ...@@ -5,31 +5,11 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="任务内容" ref="content" prop="content"> <el-form-item label="任务内容" ref="content" prop="content">
<el-input :readonly="readonly" v-model="form.content" ></el-input> <el-input type='textarea' rows='4' :readonly="readonly" v-model="form.content" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="公司ID" ref="gsid" prop="gsid">
<el-input :readonly="readonly" v-model="form.gsid" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
...@@ -60,25 +40,11 @@ ...@@ -60,25 +40,11 @@
//任务内容 //任务内容
content:'', content:'',
//公司ID //公司ID
gsid:'',
//状态
zt:'',
//附件数 //附件数
attachcount:'', attachcount:'',
//维护人编码 //维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
...@@ -95,5 +61,3 @@ ...@@ -95,5 +61,3 @@
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1"> <!-- <el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col"> <el-col :span="12" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">名称:</span> <span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input> <el-input v-model="queryParams.info"></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row> -->
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
...@@ -19,10 +19,32 @@ ...@@ -19,10 +19,32 @@
<AddButton ref="add" :app='app'></AddButton> <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileShow :app='app' ></AttachFileShow>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- <el-button size='mini' @click.native="doPublish()" type="primary">发布</el-button> -->
<el-popover
v-loading='loading'
placement="top"
width="160"
trigger="manual"
v-model="visible">
<h5>选择人员:</h5>
<!-- 选择人员-->
<el-checkbox-group v-model="checkList">
<el-checkbox v-for="(item,index) in ryList" :key='item.id' :label="item.username"></el-checkbox>
</el-checkbox-group>
<br>
<div style="text-align: right; margin: 0">
<el-button size="mini" type="text" @click="visible = false">取消</el-button>
<el-button type="primary" size="mini" @click="apiPublish()">确定</el-button>
</div>
<el-button size='mini' @click.native="doPublish()" type="primary" style="margin-right: 10px;" slot="reference">发布</el-button>
</el-popover>
<el-button size='mini' @click.native="doCancelPublish()" type="primary">取消发布</el-button>
<!-- 表头设置 --> <!-- 表头设置 -->
<!-- 权限--> <!-- 权限-->
...@@ -44,7 +66,10 @@ ...@@ -44,7 +66,10 @@
doQuery, doQuery,
doAdd, doAdd,
doUpdate, doUpdate,
doDelete doDelete,
doQueryZdgzry,
doPublish,
doCancelPublish
} from '@/api/daily/zdgzrw.js'; } from '@/api/daily/zdgzrw.js';
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
...@@ -61,6 +86,10 @@ ...@@ -61,6 +86,10 @@
}, },
data() { data() {
return { return {
ryList:[],
checkList: [],
loading:false,
visible:false,
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
...@@ -75,8 +104,8 @@ ...@@ -75,8 +104,8 @@
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "任务内容", prop: "content", fieldType: "ftString",width:300}, {label: "任务内容", prop: "content", fieldType: "ftString",width:300},
{label: "公司ID", prop: "gsid", fieldType: "ftString",width:192}, // {label: "公司ID", prop: "gsid", fieldType: "ftString",width:192},
{label: "状态", prop: "zt", fieldType: "ftString",width:48}, {label: "状态", prop: "ztName", fieldType: "ftString",width:80},
{label: "附件数", prop: "attachcount", fieldType: "int"}, {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
...@@ -86,7 +115,78 @@ ...@@ -86,7 +115,78 @@
} }
}, },
methods: { methods: {
doPublish(){
/* 发布调用*/
if (this.app.selectOne || this.app.clickOne) {
this.ryList=[]
this.checkList=[]
// this.loading=true
/* 人员查询 */
doQueryZdgzry(this.singleItem).then(res=>{
if(res.success){
this.visible=true
this.loading=false
this.ryList=res.data.records||[]
}else{
}
}).catch(()=>{
this.this.loading=false
this.visible=false
})
} else {
this.$warning('请选中一行操作');
this.visible=false
}
},
apiPublish(){
if(this.checkList.length>0){
let newArray=this.ryList.filter(item=>{
if(this.checkList.indexOf(item.username)!=-1){
return item
}else{
return false
}
})
/* * id,
* users(List)*/
let params={
id:this.singleItem.id,
users:newArray
}
doPublish(params).then(res=>{
if(res.success){
this.$success('操作成功')
this.visible=false
this.$refs['TablePager'].reLoad()
}
})
/*api请求 */
}else{
this.$warning('请先选择人员后,继续操作。');
}
},
doCancelPublish(){
/* 取消发布调用*/
if (this.app.selectOne || this.app.clickOne) {
doCancelPublish(this.singleItem).then(res=>{
if(res.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
},
/* 基础查询*/ /* 基础查询*/
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
...@@ -111,4 +211,3 @@ ...@@ -111,4 +211,3 @@
<style scoped> <style scoped>
</style> </style>
...@@ -3,43 +3,13 @@ ...@@ -3,43 +3,13 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="24">
<el-form-item label="主表ID" ref="mid" prop="mid"> <el-form-item label="任务内容" ref="content" prop="content">
<el-input :readonly="readonly" v-model="form.mid" ></el-input> <el-input type='textarea' rows='4' :readonly="readonly" v-model="form.content" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作内容" ref="gznr" prop="gznr">
<el-input :readonly="readonly" v-model="form.gznr" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="工作日期" ref="gzrq" prop="gzrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.gzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="附件" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
...@@ -52,7 +22,7 @@ ...@@ -52,7 +22,7 @@
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqgl/rcglZdgzrwfkEdit", name: "aqgl/rcglZdgzrwEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { data() {
...@@ -67,30 +37,14 @@ ...@@ -67,30 +37,14 @@
form: { form: {
//ID //ID
id:'', id:'',
//主表ID //任务内容
mid:'', content:'',
//工作内容 //公司ID
gznr:'',
//工作日期 //附件数
gzrq:new Date().getTime(),
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//附件
attachcount:'', attachcount:'',
//维护人编码
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
...@@ -107,5 +61,3 @@ ...@@ -107,5 +61,3 @@
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>
<template> <template>
<div class="min_full"> <div class="min_full" style="height: 140vh;">
<div class="min_full" style="height: 40%;">
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1"> <el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.ksrq' ></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">名称:</span> <span class="search-span">结束日期:</span>
<el-input v-model="queryParams.info"></el-input> <el-date-picker value-format="timestamp" v-model='queryParams.jsrq' ></el-date-picker>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton> <!-- <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton> -->
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileShow :app='app' ></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <!-- <WorkFlowButton :app='this'></WorkFlowButton>-->
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- 表头设置 --> <!-- 表头设置 -->
...@@ -29,65 +38,90 @@ ...@@ -29,65 +38,90 @@
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
</TablePager> </TablePager>
</div> </div>
</div> </div>
</template> <div class="min_full" style="height: 60%;padding: 10px;">
<!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane label="工作反馈" name="first" >
<Report ref="report" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</template>
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
doQuery, doQuery,
doAdd, doAdd,
doUpdate, doUpdate,
doDelete doDelete,
} from '@/api/daily/zdgzrwfk.js'; doQueryZdgzry,
doPublish,
doCancelPublish
} from '@/api/daily/zdgzrw.js';
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
import Report from './report.vue'
import { import {
tableMixin tableMixin
} from 'common' } from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'aqgl/rcglZdgzrwfk', name: 'appVersion',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
}, },
data() { data() {
return { return {
activeName: 'first',
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
type: '', type: '',
DialogTitle: '', DialogTitle: '',
/* 基础url*/ /* 基础url*/
baseUrl: '/aqgl/rcgl/zdgzrwfk', baseUrl: '/aqgl/rcgl/zdgzrw',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
info: '' info: '',
ksrq:new Date().getTime()-1000*60*60*24*30,
jsrq:new Date().getTime()
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "主表ID", prop: "mid", fieldType: "ftString",width:192}, {label: "任务内容", prop: "content", fieldType: "ftString",width:300},
{label: "工作内容", prop: "gznr", fieldType: "ftString",width:300}, // {label: "公司ID", prop: "gsid", fieldType: "ftString",width:192},
{label: "工作日期", prop: "gzrq", fieldType: "ftDateTime"}, {label: "状态", prop: "ztName", fieldType: "ftString",width:80},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"}, {label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "附件", prop: "attachcount", fieldType: "int"},
] ]
//状态 执行人 执行内容
} }
}, },
methods: { methods: {
getRow: function(e) {
this.rowItem = e
this.$refs.report.queryParams.mid=e.id
this.$refs.report.$refs.TablePager.pageQuery()
},
handleClick(val){
console.log(val,'val')
},
/* 基础查询*/ /* 基础查询*/
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
...@@ -97,12 +131,14 @@ ...@@ -97,12 +131,14 @@
/* 删除操作*/ /* 删除操作*/
apiDelete: doDelete, apiDelete: doDelete,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { /* 启用停用*/
}
}, },
components: { components: {
Edit, Edit,
Report,
} }
...@@ -110,6 +146,8 @@ ...@@ -110,6 +146,8 @@
</script> </script>
<style scoped> <style scoped>
/deep/.el-tabs__item {
font-size: 13px;
color: #666;
}
</style> </style>
<template>
<div class="min_full" style="height: 72vh;overflow: auto;" v-show='queryParams.mid' >
<!-- 查询条件-->
<!-- <div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">分类:</span>
<el-input></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
</el-row>
</div> -->
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileShow :delButton='false' :addButton='false' :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :delButton='false' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/daily/zdgzrwfk.js';
/* edit页面*/
import Edit from './reportEdit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqgl/rcgl/lzbg',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/rcgl/zdgzrwfk',
/* 查询参数*/
queryParams: {
mid: ''
},
/* 表格标题对应参数*/
tableTitle: [
// {label: "主表ID", prop: "mid", fieldType: "ftString",width:192},
{label: "状态", prop: "ztName", fieldType: "ftString",width:300},
{label: "执行人", prop: "zxrName", fieldType: "ftString",width:300},
{label: "反馈内容", prop: "gznr", fieldType: "ftString",width:300},
{label: "反馈日期", prop: "gzrq", fieldType: "ftDateTime"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "附件", prop: "attachcount", fieldType: "int"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<!-- <el-col :span="12">
<el-form-item label="主表ID" ref="mid" prop="mid">
<el-input :readonly="readonly" v-model="form.mid" ></el-input>
</el-form-item>
</el-col> -->
<el-col :span="24">
<el-form-item label="工作内容" ref="gznr" prop="gznr">
<el-input type='textarea' :readonly="readonly" v-model="form.gznr" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="工作日期" ref="gzrq" prop="gzrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.gzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: "aqgl/rcglZdgzrwfkEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//主表ID
mid:'',
//工作内容
gznr:'',
//工作日期
gzrq:new Date().getTime(),
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//附件
attachcount:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="公司" ref="gsid" prop="gsid"> <el-form-item label="公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect> <RelSelect style="width: 100%;" clearable :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="风险点" ref="fxd" prop="fxd"> <el-form-item label="风险点" ref="fxd" prop="fxd">
<RelSelect linkage :linkParams="{gsid:form.gsid}" style="width: 100%;" :readonly="readonly" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='form.fxd' ></RelSelect> <RelSelect linkage clearable :linkParams="{gsid:form.gsid}" style="width: 100%;" :readonly="readonly" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='form.fxd' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="隐患类型" ref="flid" prop="flid"> <el-form-item label="隐患类型" ref="flid" prop="flid">
<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yhgl/yhfl/query' clearable :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="班组" ref="bmid" prop="bmid"> <el-form-item label="班组" ref="bmid" prop="bmid">
<RelSelect linkage :linkParams="{pid:form.gsid}" src='/jcsj/common/bm/queryBz' :readonly="readonly" :match="{value:'id',label:'bmmc'}" v-model='form.bmid' style="width: 100%;" ></RelSelect> <RelSelect linkage :linkParams="{pid:form.gsid}" clearable src='/jcsj/common/bm/queryBz' :readonly="readonly" :match="{value:'id',label:'bmmc'}" v-model='form.bmid' style="width: 100%;" ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="班组" ref="bmid" prop="bmid"> <el-form-item label="班组" ref="bmid" prop="bmid">
<RelSelect linkage :linkParams="{pid:form.gsid}" src='/jcsj/common/bm/queryBz' :readonly="readonly" :match="{value:'id',label:'bmmc'}" v-model='form.bmid' style="width: 100%;" ></RelSelect> <RelSelect linkage :linkParams="{pid:form.gsid}" clearable src='/jcsj/common/bm/queryBz' :readonly="readonly" :match="{value:'id',label:'bmmc'}" v-model='form.bmid' style="width: 100%;" ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="公司" ref="gsid" prop="gsid"> <el-form-item label="公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect> <RelSelect clearable style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="风险点" ref="fxd" prop="fxd"> <el-form-item label="风险点" ref="fxd" prop="fxd">
<RelSelect linkage :linkParams="{gsid:form.gsid}" style="width: 100%;" :readonly="readonly" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='form.fxd' ></RelSelect> <RelSelect linkage :linkParams="{gsid:form.gsid}" style="width: 100%;" :readonly="readonly" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='form.fxd' clearable ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="隐患类型" ref="flid" prop="flid"> <el-form-item label="隐患类型" ref="flid" prop="flid">
<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect> <RelSelect style="width: 100%;" clearable :readonly="readonly" src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="岗位"> <el-form-item label="岗位">
<RelSelect style='width: 100%;' :readonly="true" src='aqgl/jcsj/scgw/query' :match="{value:'id',label:'name'}" v-model='details.gwid' ></RelSelect> <RelSelect style='width: 100%;' clearable :readonly="true" src='aqgl/jcsj/scgw/query' :match="{value:'id',label:'name'}" v-model='details.gwid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
<!-- 为对接--> <!-- 为对接-->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="固有风险等级"> <el-form-item label="固有风险等级">
<RelSelect readonly style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' :match="{value:'id',label:'name'}" v-model='details.wxdj' ></RelSelect> <RelSelect readonly style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' clearable :match="{value:'id',label:'name'}" v-model='details.wxdj' ></RelSelect>
<!-- <el-input :value="details.wxdj" > <!-- <el-input :value="details.wxdj" >
</el-input> --> </el-input> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="现有风险等级"> <el-form-item label="现有风险等级">
<RelSelect readonly style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' :match="{value:'id',label:'name'}" v-model='details.lsdj' ></RelSelect> <RelSelect readonly style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' :match="{value:'id',label:'name'}" v-model='details.lsdj' clearable ></RelSelect>
<!-- <el-input :value="details.lsdj" > <!-- <el-input :value="details.lsdj" >
</el-input> --> </el-input> -->
</el-form-item> </el-form-item>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="公司" ref="gsid" prop="gsid"> <el-form-item label="公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect> <RelSelect clearable style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -44,12 +44,12 @@ ...@@ -44,12 +44,12 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="固有风险等级" ref="wxdj" prop="wxdj"> <el-form-item label="固有风险等级" ref="wxdj" prop="wxdj">
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' :match="{value:'id',label:'name'}" v-model='form.wxdj' ></RelSelect> <RelSelect clearable style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' :match="{value:'id',label:'name'}" v-model='form.wxdj' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="现有风险等级" ref="lsdj" prop="lsdj"> <el-form-item label="现有风险等级" ref="lsdj" prop="lsdj">
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' :match="{value:'id',label:'name'}" v-model='form.lsdj' ></RelSelect> <RelSelect clearable style="width: 100%;" src='aqgl/fxyk/fxpc/init/wxdj' :match="{value:'id',label:'name'}" v-model='form.lsdj' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
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