Commit d22d0e10 authored by 周毅's avatar 周毅

调整程序

parent 5341aa8e
......@@ -3,7 +3,7 @@ import request from 'common/src/utils/request'
/*query */
export function doQuery(query) {
return request({
url: '/aqgl/aghd/aqhdjl/query',
url: '/aqgl/aqhd/aqhdjl/query',
method: 'post',
data: query||{}
})
......@@ -11,21 +11,21 @@ export function doQuery(query) {
/*更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/aghd/aqhdjl/update',
url: '/aqgl/aqhd/aqhdjl/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/aghd/aqhdjl/add',
url: '/aqgl/aqhd/aqhdjl/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/aghd/aqhdjl/delete',
url: '/aqgl/aqhd/aqhdjl/delete',
method: 'post',
data: query||{}
})
......
......@@ -135,7 +135,7 @@
{prop: 'fileVersion', label: '版本', width: '60'},
{prop: 'createTime', label: '上传时间', fieldType: "ftDateTime"},
{prop: 'updUserName', label: '上传人', width: "80"},
{prop: 'fileSize', label: '大小', width: '70',
{prop: 'fileSize', label: '大小', width: '60',
formatter:function(a,b,bytes){
if(!bytes){
return '未上传文件'
......
......@@ -2,6 +2,13 @@
<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="24">
<el-form-item label="公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" :readonly="readonly" v-model="form.gsid" ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="编码" ref="code" prop="code">
......@@ -39,7 +46,7 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.form.gsid=this.app.queryParams.gsid
},
/* 组件名称*/
name: "lzflEdit",
......@@ -57,6 +64,8 @@
form: {
//ID
id:'',
//公司
gsid:'',
//编码
code:'',
//名称
......
......@@ -4,6 +4,12 @@
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model="queryParams.gsid"></RelSelect>
</div>
</el-col>
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
......@@ -74,11 +80,12 @@
},
/* 表格标题对应参数*/
tableTitle: [
{label: "公司", prop: "gsName", fieldType: "ftString",width:120},
{label: "编码", prop: "code", fieldType: "ftString",width:120},
{label: "名称", prop: "name", fieldType: "ftString",width:300},
{label: "序号", prop: "xh", fieldType: "int"},
// {label: "序号", prop: "xh", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护人", prop: "whr", fieldType: "ftString", width:120},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
]
}
......
......@@ -4,6 +4,11 @@
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="24">
<el-form-item label="公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">分类:</span>
......@@ -83,8 +88,9 @@
/* 查询参数*/
queryParams: {
lzfl: '',
ksrq:new Date().getTime() - 1000*60*60*24*30,
jsrq:new Date().getTime()
gsid: '',
ksrq:new Date().getTime() - 1000*60*60*24*30,
jsrq:new Date().getTime()
},
/* 表格标题对应参数*/
tableTitle: [
......
......@@ -2,17 +2,24 @@
<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="24">
<el-form-item label="公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="分类" ref="flid" prop="flid">
<RelSelect style="width: 100%;" src='/aqgl/rcgl/lzfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
<RelSelect style="width: 100%;" src='/aqgl/rcgl/lzfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="角色" ref="roleid" prop="roleid">
<RelSelect style="width: 100%;" src='/kzzx/role/query' :match="{value:'id',label:'rolename'}" v-model='form.roleid' ></RelSelect>
<el-form-item label="岗位" ref="gwid" prop="gwid">
<RelSelect style="width: 100%;" src='/aqgl/jcsj/scgw/query' :match="{value:'id',label:'name'}" v-model='form.gwid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
......@@ -32,7 +39,7 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.form.gsid=this.app.queryParams.gsid
},
/* 组件名称*/
name: "maintenanceDutyEdit",
......@@ -48,11 +55,13 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
gsid:'',
//ID
id:'',
//分类编码
flid:'',
roleid:'',
gsid:'',
gwid:'',
//履职内容
content:'',
//维护人编码
......
......@@ -4,6 +4,17 @@
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="24">
<el-form-item label="公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">分类:</span>
<RelSelect style="width: 100%;" src='/aqgl/rcgl/lzfl/query' :match="{value:'id',label:'name'}" v-model="queryParams.flid"></RelSelect>
</div>
</el-col>
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
......@@ -19,7 +30,6 @@
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
......@@ -72,14 +82,16 @@
baseUrl: '/aqgl/rcgl/lzbz',
/* 查询参数*/
queryParams: {
gsid:'',
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "分类", prop: "flName", fieldType: "ftString",width:100},
{label: "角色", prop: "roleName", fieldType: "ftString",width:100},
{label: "公司", prop: "gsName", fieldType: "ftString",width: 150},
{label: "分类", prop: "flName", fieldType: "ftString",width:200},
{label: "岗位", prop: "scgwName", fieldType: "ftString",width:100},
{label: "履职内容", prop: "content", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护人", prop: "whr", fieldType: "ftString",width:100},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
]
}
......
......@@ -5,25 +5,31 @@
<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-date-picker v-model="queryParams.year"></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 v-model="queryParams.month"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">部门:</span>
<RelSelect src='jcsj/common/bm/queryBz' clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect>
</div>
</el-col>
</el-row>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">年度:</span>
<el-date-picker v-model="queryParams.year"></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 v-model="queryParams.month"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect src='jcsj/common/bm/queryGs' clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">部门:</span>
<RelSelect src='jcsj/common/bm/queryBz' clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
......@@ -38,7 +44,7 @@
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
@getRow='getRow' :delButton='false'>
</TablePager>
</div>
......@@ -59,18 +65,18 @@
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
this.form.gsid=this.app.queryParams.gsid;
this.$refs['TablePager'].pageQuery();
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/aqhd/aqhdzxgz',
baseUrl: '/aqgl/rcgl/aqhdzxgz',
/* 查询参数*/
queryParams: {
bmid: ''
......@@ -78,31 +84,27 @@
/* 表格标题对应参数*/
tableTitle: [
{label: "年度", prop: "year", fieldType: "int"},
{label: "月份", prop: "bmName", fieldType: "int",width:160},
{label: "分公司", prop: "gsName", fieldType: "ftString",width:300},
{label: "班组", prop: "bmName", fieldType: "ftString",width:300},
{label: "安全活动次数/计划次数", prop: "bz", fieldType: "ftString",width:100},
{label: "安全活动次数", prop: "count", fieldType: "ftString",width:100},
{label: "计划次数", prop: "planCount", fieldType: "ftString",width:100}
{label: "月份", prop: "month", fieldType: "int",width:160},
{label: "分公司", prop: "gsName", fieldType: "ftString",width:180},
{label: "班组", prop: "bmName", fieldType: "ftString",width:180},
{label: "安全活动次数/计划次数", prop: "bz", fieldType: "ftString",width:160,
formatter:function(row, b, c){
return row.count+'/'+row.planCount;
}
}
]
}},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
......
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