Commit 620e44f5 authored by 李苏's avatar 李苏 💬

维护风险接口

parent 79ee169b
<template> <template>
<div class="min_full" style="height: calc(84vh - 75px);"> <div v-show="queryParams.mid" class="min_full" style="height: calc(84vh - 75px);">
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
...@@ -22,105 +22,59 @@ ...@@ -22,105 +22,59 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
QueryAppversion, doQueryJcnr,
QueryApptype, doAddJcnr,
AddAppversion, doUpdateJcnr,
DelAppversion, doDeleteJcnr
UpdateAppversion } from '@/api/riskPrecontrol/screeningCriteria';
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/ /* edit页面*/
import Edit from './contentEdit.vue'
import {tableMixin} from 'common' import {tableMixin} from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'appVersion', name: 'appVersion',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
await this.$asRun(
[QueryApptype(),
res => {
var data = res['data']['records'];
let typeMap = []
for (var i in data) {
typeMap[data[i].id] = data[i].name
}
this.systemType = data
this.typeMap = typeMap
}
]
)
this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
/*需要的额外参数 */ /*需要的额外参数 */
typeMap: [], typeMap: [],
systemType: [], systemType: [],
baseUrl: 'kzzx/appversion', baseUrl: '/aqgl/fxyk/fxjcnr',
/* 查询参数*/ /* 查询参数*/
queryParams: {}, queryParams: {
mid:''
},
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [{ tableTitle: [{label: "标准ID", prop: "mid", fieldType: "ftString",width:192},
prop: 'appid', {label: "检查内容", prop: "nr", fieldType: "ftString",width:300},
label: 'APPID', {label: "检查分值", prop: "jcfz", fieldType: "float"},
width: '120' {label: "备注", prop: "bz", fieldType: "ftString",width:300},
}, {label: "维护人", prop: "whr", fieldType: "ftString"},
{ {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
prop: 'name', {label: "创建人", prop: "cjr", fieldType: "ftString"},
label: 'APP名称', {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
width: '120'
},
{
prop: 'type',
label: '系统类型',
width: '120',
formatter: (row, column, cellValue, index) => {
var text = this.typeMap[cellValue]
return text;
}
},
{
prop: 'version',
label: 'app版本',
width: '120'
},
{
prop: 'url',
label: '下载路径',
width: '350'
},
{
prop: 'bz',
label: '备注',
width: '140'
},
{
prop: 'whr',
label: '维护人',
width: '100'
},
{
prop: 'whsj',
label: '维护时间',
...this.$common('ftDateTime')
},
] ]
} }
}, },
methods: { methods: {
/* 基础查询*/ query: doQueryJcnr,
query: QueryAppversion, /* 基础增*/
/* 基础增*/ apiAdd: doAddJcnr,
apiAdd: AddAppversion, /* 基础更新*/
/* 基础更新*/ apiUpdate: doUpdateJcnr,
apiUpdate: UpdateAppversion, /* 删除操作*/
/* 删除操作*/ apiDelete: doDeleteJcnr,
apiDelete: DelAppversion,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
}, },
/* 注册组件*/ /* 注册组件*/
components: { components: {
Edit
} }
} }
</script> </script>
......
<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="24">
<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-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="检查内容" ref="nr" prop="nr">
<el-input type="textarea" :readonly="readonly" v-model="form.nr" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="检查分值" ref="jcfz" prop="jcfz">
<el-input :readonly="readonly" v-model="form.jcfz" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<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-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-col>
</el-row> -->
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.form.mid=this.app.queryParams.mid
},
/* 组件名称*/
name: "aqgl/fxykFxjcnrEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
id:'',
mid:'',
nr:'',
jcfz:'',
bz:'',
whrid:'',
whr:'',
whsj:new Date().getTime(),
cjrid:'',
cjr:'',
cjsj:new Date().getTime(),
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template> <template>
<div class="form-detail"> <div class="form-detail">
<el-form ref="form" label-width='auto' :model="form" > <el-form v-if="details.hasOwnProperty('id')" ref="form" label-width='auto' >
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="部门或分厂"> <el-form-item label="部门或分厂">
<el-input > <el-input :value="details.bmid" >
</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="车间">
<el-input > <el-input :value="details.cjid" >
</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="岗位">
<el-input > <el-input :value="details.gwid" >
</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 :value="details.fxpcdd" label="地点">
<el-input > <el-input >
</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="作业活动设施风险点">
<el-input > <el-input :value="details.fxd" >
</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="事故类型">
<el-input > <el-input :value="details.sglx" >
</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="危险等级">
<el-input > <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="危险分值">
<el-input > <el-input :value="details.fz" >
</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=" 风险类型">
<el-input > <el-input :value="details.fxlx" >
</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="管控措施落实后等级">
<el-input > <el-input :value="details.lsdj" >
</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="管理层级">
<el-input > <el-input :value="details.glcj" >
</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="拍照选项">
<el-input > <el-input :value="details.pzxx" >
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="检查要点"> <el-form-item label="检查要点">
<el-input type="textarea"> <el-input :value="details.jcyd" type="textarea">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="危害因素"> <el-form-item label="危害因素">
<el-input type="textarea" > <el-input :value="details.whys" type="textarea" >
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="事故后果"> <el-form-item label="事故后果">
<el-input type="textarea"> <el-input :value="details.sghg" type="textarea">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="检查措施描述"> <el-form-item label="检查措施描述">
<el-input type="textarea"> <el-input :value="details.jccsms" type="textarea">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注"> <el-form-item label="备注">
<el-input type="textarea" > <el-input :value="details.bz" type="textarea" >
</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="序号">
<el-input > <el-input :value="details.xh" >
</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="图形编号">
<el-input > <el-input :value="details.txcode" >
</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="措施类型">
<el-input > <el-input :value="details.cslx" >
</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="基准精度">
<el-input > <el-input :value="details.jzjd" >
</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="基准维度">
<el-input > <el-input :value="details.jzwd" >
</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="责任人">
<el-input > <el-input :value="details.zrrName" >
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -154,11 +154,11 @@ ...@@ -154,11 +154,11 @@
export default { export default {
data() { data() {
return { return {
details:{}
methods: {
}
} }
},
methods: {
} }
} }
</script> </script>
......
<template> <template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form style="height: 70vh;padding-right: 30px;overflow: auto;overflow-x: hidden;" slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="12">
<el-form-item label="标题" ref="roleid" prop="roleid"> <el-form-item label="部门" ref="bmid" prop="bmid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.bmid" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col :span="12">
<el-row :gutter="20"> <el-form-item label="车间" ref="cjid" prop="cjid">
<el-col :span="24"> <el-input :readonly="readonly" v-model="form.cjid" ></el-input>
<el-form-item label="内容" ref="roleid" prop="roleid"> </el-form-item>
<el-input :readonly="readonly" type="textarea" v-model="form.roleid"></el-input> </el-col>
</el-form-item> <el-col :span="12">
</el-col> <el-form-item label="岗位" ref="gwid" prop="gwid">
</el-row> <el-input :readonly="readonly" v-model="form.gwid" ></el-input>
<el-row :gutter="20"> </el-form-item>
<el-col :span="12"> </el-col>
<el-form-item label="有效期至">
<el-date-picker style="width: 100%;" <el-col :span="12">
type="date" <el-form-item label="风险点" ref="fxd" prop="fxd">
placeholder="选择日期"> <el-input :readonly="readonly" v-model="form.fxd" ></el-input>
</el-date-picker> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="24">
<el-col :span="12"> <el-form-item label="风险地点" ref="fxpcdd" prop="fxpcdd">
<el-form-item label="编制单位"> <el-input :readonly="readonly" v-model="form.fxpcdd" ></el-input>
<el-select placeholder="请选择" style="width: 100%;" > </el-form-item>
<!-- <el-option </el-col>
v-for="item in options" </el-row>
:key="item.value" <el-row :gutter="20">
:label="item.label" <el-col :span="12">
:value="item.value"> <el-form-item label="事故类型" ref="sglx" prop="sglx">
</el-option> --> <el-input :readonly="readonly" v-model="form.sglx" ></el-input>
</el-select> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="12">
</el-row> <el-form-item label="危险等级" ref="wxdj" prop="wxdj">
</el-form> <el-input :readonly="readonly" v-model="form.wxdj" ></el-input>
<!-- 按钮重写, --> </el-form-item>
<!-- <div slot="reFooter"> </el-col>
<span slot="footer"> <el-col :span="12">
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义 <el-form-item label="分值" ref="fz" prop="fz">
</span> <el-input :readonly="readonly" v-model="form.fz" ></el-input>
</div> --> </el-form-item>
</RelDialog> </el-col>
<el-col :span="12">
<el-form-item label="风险类型" ref="fxlx" prop="fxlx">
<el-input :readonly="readonly" v-model="form.fxlx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管控落实后等级" ref="lsdj" prop="lsdj">
<el-input :readonly="readonly" v-model="form.lsdj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="措施类型" ref="cslx" prop="cslx">
<el-input :readonly="readonly" v-model="form.cslx" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="管理层级" ref="glcj" prop="glcj">
<el-input :readonly="readonly" v-model="form.glcj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="拍照选项" ref="pzxx" prop="pzxx">
<el-input :readonly="readonly" v-model="form.pzxx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="序号" ref="xh" prop="xh">
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图形编号" ref="txcode" prop="txcode">
<el-input :readonly="readonly" v-model="form.txcode" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="基准精度" ref="jzjd" prop="jzjd">
<el-input :readonly="readonly" v-model="form.jzjd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="基准维度" ref="jzwd" prop="jzwd">
<el-input :readonly="readonly" v-model="form.jzwd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查要点" ref="jcyd" prop="jcyd">
<el-input :readonly="readonly" v-model="form.jcyd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="危害因素" ref="whys" prop="whys">
<el-input :readonly="readonly" v-model="form.whys" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="事故后果" ref="sghg" prop="sghg">
<el-input :readonly="readonly" v-model="form.sghg" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="检查措施描述" ref="jccsms" prop="jccsms">
<el-input :readonly="readonly" v-model="form.jccsms" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr">
<personSelector :label="form.zrrName||form.zrr||'暂无'" @selected='zrrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> -->
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input type="textarea" :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
<!-- <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-row>
</el-form>
</RelDialog>
</template> </template>
<script> <script>
import {editMixin} from 'common' import {editMixin} from 'common'
export default { export default {
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
roleid: '',
rolename: '',
bz: "",
}, },
/* form提交时的规则,具体规则参考官网*/ /* 组件名称*/
rules: { name: "aqgl/fxykFxbzEdit",
roleid: [{ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
required: true,
trigger: 'blur' data() {
}, ], return {
rolename: [{
required: true, /* 额外初始化,根据需求*/
trigger: 'blur' systemType: [],
}, ]
} bmList: [],
}
}, /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
methods: { form: {
zrrName:'',
id:'',
bmid:'',
cjid:'',
gwid:'',
fxpcdd:'',
fxd:'',
sglx:'',
wxdj:'',
fz:'',
fxlx:'',
lsdj:'',
glcj:'',
pzxx:'',
xh:'',
txcode:'',
cslx:'',
jzjd:'',
jzwd:'',
jcyd:'',
whys:'',
sghg:'',
jccsms:'',
bz:'',
zrr:'',
whrid:'',
whr:'',
whsj:new Date().getTime(),
cjrid:'',
cjr:'',
cjsj:new Date().getTime(),
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
zrrSelected(row){
this.form.zrr=row.code
},
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
...@@ -47,13 +47,13 @@ ...@@ -47,13 +47,13 @@
<!-- tabs --> <!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" > <el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane label="详细" name="first" > <el-tab-pane label="详细" name="first" >
<Details /> <Details ref="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 ref="Content" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="责任人" name="fourth"> <el-tab-pane label="责任人" name="fourth">
<PersonLiable /> <PersonLiable />
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
console.log(_)
}, },
data() { data() {
return { return {
...@@ -103,133 +102,68 @@ ...@@ -103,133 +102,68 @@
type: '', type: '',
DialogTitle: '', DialogTitle: '',
/* 基础url*/ /* 基础url*/
baseUrl: 'kzzx/role', baseUrl: '/aqgl/fxyk/fxbz',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq: '', ksrq: '',
jsrq: '' jsrq: ''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{ {label: "部门ID", prop: "bmid", fieldType: "ftString",width:192},
prop: 'whsj', {label: "车间ID", prop: "cjid", fieldType: "ftString",width:192},
label: '时间', {label: "岗位ID", prop: "gwid", fieldType: "ftString",width:192},
show:false, {label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
fieldType:'ftDateTime', {label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
width: '100', {label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
align:'left' {label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160},
}, {label: "分值", prop: "fz", fieldType: "float"},
{ {label: "风险类型", prop: "fxlx", fieldType: "ftString",width:192},
prop: 'whsj', {label: "管控落实后等级", prop: "lsdj", fieldType: "ftString",width:160},
label: '车间', {label: "管理层级", prop: "glcj", fieldType: "ftString",width:160},
...this.$common('ftDateTime') {label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:160},
}, {label: "序号", prop: "xh", fieldType: "int"},
{ {label: "图形编号", prop: "txcode", fieldType: "ftString",width:180},
prop: 'whr', {label: "措施类型", prop: "cslx", fieldType: "ftString",width:192},
label: '岗位', // {label: "基准精度", prop: "jzjd", fieldType: "ftString",width:160},
width: '100' // {label: "基准维度", prop: "jzwd", fieldType: "ftString",width:160},
}, // {label: "检查要点", prop: "jcyd", fieldType: "ftString",width:300},
{ // {label: "危害因素", prop: "whys", fieldType: "ftString",width:300},
prop: 'whr', // {label: "事故后果", prop: "sghg", fieldType: "ftString",width:300},
label: '地点', // {label: "检查措施描述", prop: "jccsms", fieldType: "ftString",width:300},
width: '100' // {label: "备注", prop: "bz", fieldType: "ftString",width:300},
}, // {label: "责任人", prop: "zrr", fieldType: "ftString",width:300},
{ // {label: "维护人", prop: "whr", fieldType: "ftString"},
prop: 'whr', // {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
label: '作业活动设施风险点', // {label: "创建人", prop: "cjr", fieldType: "ftString"},
width: '100' // {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
}, ]
{
prop: 'whr',
label: '事故类型',
width: '100'
},
{
prop: 'whr',
label: '危险等级',
width: '100'
},
{
prop: 'whr',
label: '危险分值',
width: '100'
},
{
prop: 'whr',
label: '风险类型',
width: '100'
},
{
prop: 'whr',
label: '管控措施落实后等级',
width: '100'
},
{
prop: 'whr',
label: '管理层级',
width: '100'
},
{
prop: 'whr',
label: '拍照选项',
width: '100'
},
{
prop: 'whr',
label: '序号',
width: '100'
},
{
prop: 'whr',
label: '图形编号',
width: '100'
},
{
prop: 'whr',
label: '措施类型',
width: '100'
}
]
} }
}, },
methods: { methods: {
handleClick(val){ handleClick(val){
console.log(val,'val')
}, },
/* 基础查询*/ /* 基础查询*/
query: QueryKzzxRole, query: doQuery,
/* 基础增*/ /* 基础增*/
apiAdd: AddKzzxRole, apiAdd: doAdd,
/* 基础更新*/ /* 基础更新*/
apiUpdate: UpdateKzzxRole, apiUpdate: doUpdate,
/* 删除操作*/ /* 删除操作*/
apiDelete: DeleteKzzxRole, apiDelete: doDelete,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
}, },
/* 启用停用*/ /* 重写点击事件*/
setEnable(id) { getRow: function(e) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', { this.rowItem = e
confirmButtonText: '确定', this.$refs.Details.details=e
cancelButtonText: '取消', this.$refs.Content.queryParams.mid=e.id
type: 'warning' this.$nextTick(()=>{
}).then(() => { this.$refs.Content.$refs['TablePager'].pageQuery()
let params = {
id: id
}
QtKzzxRole(params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
}) })
} }
......
...@@ -88,13 +88,13 @@ ...@@ -88,13 +88,13 @@
methods: { methods: {
/* 基础查询*/ /* 基础查询*/
query: doQuery, query: doQueryJcnr,
/* 基础增*/ /* 基础增*/
apiAdd: doAdd, apiAdd: doAddJcnr,
/* 基础更新*/ /* 基础更新*/
apiUpdate: doUpdate, apiUpdate: doUpdateJcnr,
/* 删除操作*/ /* 删除操作*/
apiDelete: doDelete, apiDelete: doDeleteJcnr,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
</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>
......
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