Commit db0b801a authored by zhoumaotao's avatar zhoumaotao

页面调整2

parent 69abc167
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<el-col :span="6" class="search-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-date-picker v-model="queryParams.sgksrq"></el-date-picker> <el-date-picker v-model="queryParams.ksrq"></el-date-picker>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-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-date-picker v-model="queryParams.sgjsrq" ></el-date-picker> <el-date-picker v-model="queryParams.jsrq" ></el-date-picker>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<AttachFileButton :app='app'></AttachFileButton>
<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>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮--> <!-- 额外按钮-->
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
baseUrl: '/aqgl/fxsj', baseUrl: '/aqgl/fxsj',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
sgksrq: new Date().getTime(), ksrq: new Date().getTime(),
sgjsrq: new Date().getTime() jsrq: new Date().getTime() + 1000*60*60*24*30
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
......
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<el-col :span="6" class="search-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-date-picker v-model="queryParams.sgksrq"></el-date-picker> <el-date-picker v-model="queryParams.ksrq"></el-date-picker>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-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-date-picker v-model="queryParams.sgjsrq" ></el-date-picker> <el-date-picker v-model="queryParams.jsrq" ></el-date-picker>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -77,17 +77,17 @@ ...@@ -77,17 +77,17 @@
baseUrl: '/aqgl/fxsj', baseUrl: '/aqgl/fxsj',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
sgksrq: new Date().getTime(), ksrq: '',
sgjsrq: new Date().getTime() jsrq: ''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "风险类型", prop: "fxlx", fieldType: "ftString",width:192,transform:{ {label: "风险类型", prop: "fxlx", fieldType: "ftString",width:192,transform:{
url:'/aqgl/fxyk/shlx/query',label:'name',value:'id' url:'/aqgl/fxyk/shlx/query',label:'name',value:'id'
}}, }},
{label: "风险性质", prop: "fxxz", fieldType: "ftString",width:240,transform:{ {label: "风险性质", prop: "fxxz", fieldType: "ftString",width:240,transform:{
url:'/aqgl/fxyk/fxsj/init/shxz',label:'name',value:'id' url:'/aqgl/fxyk/fxsj/init/shxz',label:'name',value:'id'
}}, }},
{label: "死亡人数", prop: "swrs", fieldType: "int"}, {label: "死亡人数", prop: "swrs", fieldType: "int"},
{label: "重伤人数", prop: "zsrs", fieldType: "int"}, {label: "重伤人数", prop: "zsrs", fieldType: "int"},
{label: "轻伤人数", prop: "qsrs", fieldType: "int"}, {label: "轻伤人数", prop: "qsrs", fieldType: "int"},
...@@ -95,11 +95,11 @@ ...@@ -95,11 +95,11 @@
{label: "损失工作日", prop: "gzrss", fieldType: "float"}, {label: "损失工作日", prop: "gzrss", fieldType: "float"},
{label: "部门", prop: "bmid", fieldType: "ftString",width:192,transform:{ {label: "部门", prop: "bmid", fieldType: "ftString",width:192,transform:{
url:'/kzzx/bm/query',label:'bmmc',value:'id' url:'/kzzx/bm/query',label:'bmmc',value:'id'
}}, }},
{label: "车间编码", prop: "cjid", fieldType: "ftString",width:192}, {label: "车间编码", prop: "cjid", fieldType: "ftString",width:192},
{label: "登记人", prop: "djrid", fieldType: "ftString",width:192,transform:{ {label: "登记人", prop: "djrid", fieldType: "ftString",width:192,transform:{
url:'/kzzx/user/query',label:'username',value:'userid' url:'/kzzx/user/query',label:'username',value:'userid'
}}, }},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
......
<template> <template>
<div class="min_full" style="height: 140vh;"> <div class="min_full" style="height: 140vh;">
<div class="min_full" style="height: 40%;"> <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="6" class="search-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 style="width:60% ;"></el-input> <el-select v-model="queryParams.gwid" clearable placeholder="请选择">
</div> <el-option
</el-col> v-for="item in doQueryScgw"
<el-col :span="6" class="search-col"> :key="item.id"
<div class="search-item"> :label="item.name"
<span class="search-span">设备设施风险点:</span> :value="item.id">
<el-input></el-input> </el-option>
</div> </el-select>
</el-col> </div>
</el-col>
</el-row> <el-col :span="6" class="search-col">
</div> <div class="search-item">
<!-- 按钮操作--> <span class="search-span">风险点:</span>
<el-row class="tool-bar"> <el-input v-model="queryParams.fxd"></el-input>
<PrintButton :app='app'></PrintButton> </div>
<ViewButton ref="view" :app='app'></ViewButton> </el-col>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> </el-row>
<EditButton ref="edit" :app='app'></EditButton> </div>
<AttachFileButton :app='app'></AttachFileButton> <!-- 按钮操作-->
<FieldButton :app='app'></FieldButton> <el-row class="tool-bar">
<ExcelButton :app='app'></ExcelButton> <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>
</el-row> <AttachFileButton :app='app'></AttachFileButton>
<!-- 表格--> <FieldButton :app='app'></FieldButton>
<div class="tablePagers"> <ExcelButton :app='app'></ExcelButton>
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <!-- 额外按钮-->
@getRow='getRow'> <!-- 表头设置 -->
</TablePager> <!-- 权限-->
</div> </el-row>
</div> <!-- 表格-->
<div class="min_full" style="height: 60%;padding: 10px;"> <div class="tablePagers">
<!-- tabs --> <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
<el-tabs v-model="activeName" @tab-click="handleClick" > @getRow='getRow'>
</TablePager>
</div>
</div>
<div class="min_full" style="height: 60%;padding: 10px;">
<!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane label="详细" name="first" > <el-tab-pane label="详细" name="first" >
<Details /> <Details />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="检查周期" name="second"> <el-tab-pane label="检查周期" name="second">
<Cycle /> <Cycle />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="检查内容" name="third"> <el-tab-pane label="检查内容" name="third">
<Content /> <Content />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="责任人" name="fourth"> <el-tab-pane label="责任人" name="fourth">
<PersonLiable /> <PersonLiable />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
QueryKzzxRole, QueryKzzxRole,
QueryApptype, QueryApptype,
AddKzzxRole, AddKzzxRole,
DeleteKzzxRole, DeleteKzzxRole,
UpdateKzzxRole, UpdateKzzxRole,
QtKzzxRole QtKzzxRole
} from "common/src/api/system/dmgSystem.js"; } from "common/src/api/system/dmgSystem.js";
/* edit页面*/ import {
import Edit from './edit' doQueryScgw
} from "@/api/riskPrecontrol/screeningCriteria.js";
/* edit页面*/
import Edit from './edit'
import Details from './details.vue' import Details from './details.vue'
import Cycle from './cycle.vue' import Cycle from './cycle.vue'
import Content from './content.vue' import PersonLiable from './personLiable.vue' import Content from './content.vue'
import { import PersonLiable from './personLiable.vue'
tableMixin import {
} from 'common' tableMixin
export default { } from 'common'
mixins: [tableMixin], export default {
name: 'appVersion', mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() { /* 初始额外赋值*/
async mounted() {
await this.$asRun(
[doQueryScgw(),
res => {
var data = res['data']['records'];
this.doQueryScgw = data
}
]
)
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
console.log(_) },
}, data() {
data() { return {
return { doQueryScgw:[],
activeName: 'first', activeName: 'first',
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
type: '', type: '',
DialogTitle: '', DialogTitle: '',
/* 基础url*/ /* 基础url*/
baseUrl: 'kzzx/role', baseUrl: 'kzzx/role',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq: '', gwid: '',
jsrq: '' fxd: ''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{ {
prop: 'whsj', prop: 'whsj',
label: '时间', label: '时间',
show:false, show:false,
fieldType:'ftDateTime', fieldType:'ftDateTime',
width: '100', width: '100',
align:'left' align:'left'
}, },
{ {
prop: 'whsj', prop: 'whsj',
label: '车间', label: '车间',
...this.$common('ftDateTime') ...this.$common('ftDateTime')
}, },
{ {
prop: 'whr', prop: 'whr',
label: '岗位', label: '岗位',
width: '100' width: '100'
}, },
{ {
prop: 'whr', prop: 'whr',
label: '地点', label: '地点',
width: '100' width: '100'
}, },
{ {
prop: 'whr', prop: 'whr',
label: '作业活动设施风险点', label: '作业活动设施风险点',
width: '100' width: '100'
}, },
{ {
prop: 'whr', prop: 'whr',
...@@ -189,65 +208,65 @@ ...@@ -189,65 +208,65 @@
prop: 'whr', prop: 'whr',
label: '措施类型', label: '措施类型',
width: '100' width: '100'
} }
] ]
} }
}, },
methods: { methods: {
handleClick(val){ handleClick(val){
console.log(val,'val') console.log(val,'val')
}, },
/* 基础查询*/ /* 基础查询*/
query: QueryKzzxRole, query: QueryKzzxRole,
/* 基础增*/ /* 基础增*/
apiAdd: AddKzzxRole, apiAdd: AddKzzxRole,
/* 基础更新*/ /* 基础更新*/
apiUpdate: UpdateKzzxRole, apiUpdate: UpdateKzzxRole,
/* 删除操作*/ /* 删除操作*/
apiDelete: DeleteKzzxRole, apiDelete: DeleteKzzxRole,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
}, },
/* 启用停用*/ /* 启用停用*/
setEnable(id) { setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', { this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let params = { let params = {
id: id id: id
} }
QtKzzxRole(params).then(res => { QtKzzxRole(params).then(res => {
if (res.success) { if (res.success) {
this.$success('操作成功') this.$success('操作成功')
this.app.$refs['TablePager'].reLoad() this.app.$refs['TablePager'].reLoad()
} else { } else {
this.$error(res.message || '操作失败') this.$error(res.message || '操作失败')
} }
}) })
}) })
} }
}, },
components: { components: {
Edit, Edit,
Details, Details,
Cycle, Cycle,
PersonLiable, PersonLiable,
Content Content
} }
} }
</script> </script>
<style scoped> <style scoped>
/deep/.el-tabs__item { /deep/.el-tabs__item {
font-size: 13px; font-size: 13px;
color: #666; color: #666;
} }
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<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="24"> <el-col :span="24">
<el-form-item label="类型编码" ref="code" prop="code"> <el-form-item label="编码" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.code" ></el-input> <el-input :readonly="readonly" v-model="form.code" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "类型编码", prop: "code", fieldType: "ftString",width:120}, {label: "编码", prop: "code", fieldType: "ftString",width:120},
{label: "名称", prop: "name", fieldType: "ftString",width:300}, {label: "名称", prop: "name", fieldType: "ftString",width:300},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
......
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