Commit 905b2435 authored by 李苏's avatar 李苏 💬

隐患管理部分接口

parent dcaa6f82
<template>
<div class="min_full" style="height: calc(84vh - 75px);">
<!-- v-show='queryParams.mid'-->
<div class="min_full" v-show='queryParams.mid' style="height: calc(84vh - 75px);">
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
......@@ -22,105 +23,85 @@
<script>
/* 引入需要的接口*/
import {
QueryAppversion,
QueryApptype,
AddAppversion,
DelAppversion,
UpdateAppversion
} from "common/src/api/system/dmgSystem.js";
import {
doQueryDtl,
doAddDtl,
doUpdateDtl,
doDeleteDtl
} from "@/api/riskPrecontrol/maintenanceRiskTask.js";
/* edit页面*/
import Edit from './contentEdit.vue'
import {tableMixin} from 'common'
export default {
props:['vMain'],
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
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()
// 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() {
return {
/*需要的额外参数 */
typeMap: [],
systemType: [],
baseUrl: 'kzzx/appversion',
baseUrl: 'aqgl/fxyk/fxpcmx',
/* 查询参数*/
queryParams: {},
queryParams: {
mid:''
},
/* 表格标题对应参数*/
tableTitle: [{
prop: 'appid',
label: 'APPID',
width: '120'
},
{
prop: 'name',
label: 'APP名称',
width: '120'
},
{
prop: 'type',
label: '系统类型',
width: '120',
formatter: (row, column, cellValue, index) => {
var text = this.typeMap[cellValue]
return text;
}
},
tableTitle: [
{
prop: 'version',
label: 'app版本',
width: '120'
prop: 'nr',
label: '检查内容',
width: '360'
},
{
prop: 'url',
label: '下载路径',
width: '350'
},
{
prop: 'bz',
label: '备注',
width: '140'
prop: 'jcdf',
label: '检查得分',
width: '100'
},
{
prop: 'whr',
label: '维护人',
prop: 'zgdf',
label: '整改得分',
width: '100'
},
{
prop: 'whsj',
label: '维护时间',
...this.$common('ftDateTime')
prop: 'jcjgName',
label: '检查结果',
width: '100'
},
]
}
},
methods: {
/* 基础查询*/
query: QueryAppversion,
query: doQueryDtl,
/* 基础增*/
apiAdd: AddAppversion,
apiAdd: doAddDtl,
/* 基础更新*/
apiUpdate: UpdateAppversion,
apiUpdate: doUpdateDtl,
/* 删除操作*/
apiDelete: DelAppversion,
apiDelete: doDeleteDtl,
/* 初始化赋值操作*/
},
/* 注册组件*/
components: {
Edit
}
}
</script>
......
......@@ -2,7 +2,7 @@
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="120px" :rules="rules">
<!-- <el-row :gutter="20">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="单据来源" ref="djly" prop="djly">
<el-input :readonly="readonly" v-model="form.djly" ></el-input>
......@@ -10,10 +10,14 @@
</el-col>
<el-col :span="12">
<el-form-item label="风险排查标准编码" ref="fxbzid" prop="fxbzid">
<el-input :readonly="readonly" v-model="form.fxbzid" ></el-input>
<SinggleTableSelector :label="form.fxbzid||'暂无'" @singleSelected='singleSelected'
:queryMethods='queryMethods' :tableTitle='tableTitle'></SinggleTableSelector>
<!-- <el-input :readonly="readonly" v-model="form.fxbzid" ></el-input> -->
<!-- 点击弹框-->
</el-form-item>
</el-col>
</el-row> -->
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="下达日期" ref="xdrq" prop="xdrq">
......@@ -61,11 +65,35 @@
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
<!-- 标准带出数据-->
<el-col :span="12">
<el-form-item label="地点" ref="fxpcdd" prop="fxpcdd">
<el-input :readonly="true" v-model="form.fxpcdd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="作业活动" ref="fxd" prop="fxd">
<el-input :readonly="true" v-model="form.fxd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车间" ref="cjName" prop="cjName">
<el-input :readonly="true" v-model="form.cjName" ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="维护方式" ref="bz" prop="bz">
<el-input :readonly="true" v-model="form.bz" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
doQuery
} from "@/api/riskPrecontrol/screeningCriteria.js";
import {editMixin} from 'common'
export default {
mixins: [editMixin],
......@@ -81,12 +109,30 @@
return {
/* 额外初始化,根据需求*/
systemType: [],
tableTitle: [{
prop: 'id',
label: '风险排查标准编码',
width:300
},
{label: "部门", prop: "bmName", fieldType: "ftString",width:192},
{label: "车间", prop: "cjName", fieldType: "ftString",width:192},
{label: "岗位", prop: "gwName", fieldType: "ftString",width:192},
{label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
{label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160},
{label: "分值", prop: "fz", fieldType: "float"},
{label: "风险类型", prop: "fxlx", fieldType: "ftString",width:192},
{label: "管控落实后等级", prop: "lsdj", fieldType: "ftString",width:160}],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
fxpcdd:'',
fxd:'',
cjName:'',
/* 额外参数*/
id:'',
djly:'',
......@@ -131,8 +177,17 @@
}
},
methods: {
singleSelected(row){
this.form.fxbzid=row.id
this.form.fxpcdd=row.fxpcdd
this.form.fxd=row.fxd
this.form.cjName=row.cjName
},
queryMethods:doQuery,
jcrSelected(row){
console.log(row)
this.form.jcrid=row.code
},
}
}
......
......@@ -64,7 +64,7 @@
<Details ref="Details" />
</el-tab-pane>
<el-tab-pane label="检查项" name="second" >
<Content />
<Content :vMain='this' ref="Content" />
</el-tab-pane>
<!-- -->
</el-tabs>
......@@ -147,9 +147,10 @@
getRow: function(e) {
this.rowItem = e
this.$refs.Details.queryParams.fxbzid=e.fxbzid
this.$refs.Content.queryParams.mid=e.id
this.$nextTick(()=>{
this.$refs.Details.query()
this.$refs.Content.$refs['TablePager'].pageQuery()
})
},
/* 基础查询*/
......
......@@ -116,14 +116,18 @@
{label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
{label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160},
{label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}},
{label: "分值", prop: "fz", fieldType: "float"},
{label: "风险类型", prop: "fxlx", fieldType: "ftString",width:192},
{label: "管控落实后等级", prop: "lsdj", fieldType: "ftString",width:160},
{label: "管理层级", prop: "glcj", fieldType: "ftString",width:160,transform:{
{label: "管理层级", prop: "glcj",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/glcj',label:'name',value:'id'
}},
{label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:160},
{label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/pzxx',label:'name',value:'id'
}},
{label: "序号", prop: "xh", fieldType: "int"},
{label: "图形编号", prop: "txcode", fieldType: "ftString",width:180},
{label: "措施类型", prop: "cslx", 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