forked from xxhjsb/hbt-prevention-ui
feat:代码提交
parent
db19ba037b
commit
c806287a34
|
|
@ -1,14 +1,14 @@
|
|||
import Vue from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import ElementUI from 'element-ui';
|
||||
import 'element-ui/lib/theme-chalk/index.css';
|
||||
import SvgComponent from "hbt-common/components/common/svg.component.vue"
|
||||
import EchartsComponent from "hbt-common/components/common/echarts.component.vue"
|
||||
import Vue from "vue";
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import store from "./store";
|
||||
import ElementUI from "element-ui";
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
import SvgComponent from "hbt-common/components/common/svg.component.vue";
|
||||
import EchartsComponent from "hbt-common/components/common/echarts.component.vue";
|
||||
import "@/assets/common/icons";
|
||||
// import ModelComponent from "@/components/model.component.vue"
|
||||
import Mock from "mockjs"
|
||||
import Mock from "mockjs";
|
||||
// import { MockData } from './mock';
|
||||
import MessageComponent from "common/message";
|
||||
import { BusUtils } from "hbt-common/utils/busUtils";
|
||||
|
|
@ -18,7 +18,7 @@ Vue.config.productionTip = false;
|
|||
// Vue.config.warnHandler = ()=>{
|
||||
|
||||
// }
|
||||
document.title = process.env.VUE_APP_TITLE || '汉邦唐全真数字服务平台';
|
||||
document.title = process.env.VUE_APP_TITLE || "汉邦唐全真数字服务平台";
|
||||
const link = document.querySelector('link[rel~="icon"]') as any;
|
||||
|
||||
// 修改href属性为新的图标路径
|
||||
|
|
@ -30,16 +30,16 @@ link.href = process.env.VUE_APP_REMOTES_URL + "/favicon.ico";
|
|||
// }
|
||||
|
||||
// 批量引入本地svg
|
||||
const svgs = require.context("./assets/icons/svg",false,/\.svg$/);
|
||||
const requireAll = (requireContext:any) => {
|
||||
const svgs = require.context("./assets/icons/svg", false, /\.svg$/);
|
||||
const requireAll = (requireContext: any) => {
|
||||
requireContext.keys().map(requireContext);
|
||||
}
|
||||
requireAll(svgs)
|
||||
};
|
||||
requireAll(svgs);
|
||||
|
||||
// 全局注册组件
|
||||
// Vue.component("hbt-model",ModelComponent)
|
||||
Vue.component("hbt-svg",SvgComponent)
|
||||
Vue.component("hbt-echarts",EchartsComponent)
|
||||
Vue.component("hbt-svg", SvgComponent);
|
||||
Vue.component("hbt-echarts", EchartsComponent);
|
||||
Vue.component("hbt-message", MessageComponent);
|
||||
Vue.prototype.$msgBus = new BusUtils("wsMessage");
|
||||
|
||||
|
|
@ -47,5 +47,5 @@ Vue.use(ElementUI);
|
|||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: h => h(App)
|
||||
}).$mount('#app')
|
||||
render: (h) => h(App),
|
||||
}).$mount("#app");
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
<template>
|
||||
<div v-if="visible">
|
||||
<div class="sub-title">基本信息</div>
|
||||
<FormComponent :options="subBasicOptions" labelWidth="110px" labelAlign="right" :data.sync="analysisUpdateParams"
|
||||
@actionCallback="callback" :isReadonly="analyIsReadonly" @change="handleChange" ref="basicForm">
|
||||
<FormComponent :options="subBasicOptions" labelWidth="110px" labelAlign="right"
|
||||
:data.sync="analysisUpdateParams" @actionCallback="callback" :isReadonly="analyIsReadonly"
|
||||
@change="handleChange" ref="basicForm">
|
||||
</FormComponent>
|
||||
<div class="sub-title">风险评估</div>
|
||||
<FormComponent :options="subRiskOptions" labelWidth="110px" labelAlign="right" :data.sync="riakUpdateParams"
|
||||
|
|
@ -14,8 +15,9 @@
|
|||
<TableComponent :tableData="analysisUpdateParams.measures" :tableColumn="triTableColumn"
|
||||
@actionCallback="measureCallback($event)" :actions="analyIsReadonly ? [] : triTableActions"
|
||||
actionPosition="flex-start" :showFooter="false" style="margin-bottom: 20px;">
|
||||
<el-table ref="multipleTable" :data="analysisUpdateParams.measures" tooltip-effect="dark" max-height="500"
|
||||
border row-key="checked" @selection-change="handleSelectionChange" style="width: 100%">
|
||||
<el-table ref="multipleTable" :data="analysisUpdateParams.measures" tooltip-effect="dark"
|
||||
max-height="500" border row-key="checked" @selection-change="handleSelectionChange"
|
||||
style="width: 100%">
|
||||
<el-table-column v-if="!analyIsReadonly" type="selection" fixed label="全选" width="40">
|
||||
</el-table-column>
|
||||
<template v-for="item in triTableColumn">
|
||||
|
|
@ -23,8 +25,8 @@
|
|||
:width="item.width" :key="item.key">
|
||||
<div slot-scope="scope" v-html="item.render(scope.row)"></div>
|
||||
</el-table-column>
|
||||
<el-table-column v-else :prop="item.key" :show-overflow-tooltip="item.showTip" :label="item.name"
|
||||
:width="item.width" :key="item.key">
|
||||
<el-table-column v-else :prop="item.key" :show-overflow-tooltip="item.showTip"
|
||||
:label="item.name" :width="item.width" :key="item.key">
|
||||
</el-table-column>
|
||||
</template>
|
||||
<el-table-column label="操作" fixed="right" width="150">
|
||||
|
|
@ -32,16 +34,18 @@
|
|||
<el-button type="text" @click="showMeasureModel(scope.row, true)">查看</el-button>
|
||||
<el-button v-if="!analyIsReadonly" type="text"
|
||||
@click="showMeasureModel(scope.row)">编辑</el-button>
|
||||
<el-button v-if="!analyIsReadonly" type="text" @click="deleteMeasure(scope.row)">删除</el-button>
|
||||
<el-button v-if="!analyIsReadonly" type="text"
|
||||
@click="deleteMeasure(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</TableComponent>
|
||||
</FormComponent>
|
||||
<div class="sub-title">残余风险评估</div>
|
||||
<FormComponent :options="subRemnantsOptions" labelWidth="110px" labelAlign="right" :data.sync="analysisUpdateParams"
|
||||
@actionCallback="analyCallback" :actions="analyIsReadonly ? [] : measureActions" :full-btn="true"
|
||||
btnPosition="center" @change="handleSubRiskChange" :isReadonly="analyIsReadonly" ref="remantRiskForm">
|
||||
<FormComponent :options="subRemnantsOptions" labelWidth="110px" labelAlign="right"
|
||||
:data.sync="analysisUpdateParams" @actionCallback="analyCallback"
|
||||
:actions="analyIsReadonly ? [] : measureActions" :full-btn="true" btnPosition="center"
|
||||
@change="handleSubRiskChange" :isReadonly="analyIsReadonly" ref="remantRiskForm">
|
||||
</FormComponent>
|
||||
|
||||
<!-- 评估方法 LS法-->
|
||||
|
|
@ -76,9 +80,11 @@
|
|||
@current-change="handleCurrentChange" style="width: 100%" highlight-current-row>
|
||||
<template v-for="item in riskTable.column">
|
||||
<el-table-column v-if="item.render" :label="item.name" :width="item.width" :key="item.key">
|
||||
<div slot-scope="scope" style="pointer-events: none;" v-html="item.render(scope.row)"></div>
|
||||
<div slot-scope="scope" style="pointer-events: none;" v-html="item.render(scope.row)">
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column v-else :prop="item.key" :label="item.name" :width="item.width" :key="item.key">
|
||||
<el-table-column v-else :prop="item.key" :label="item.name" :width="item.width"
|
||||
:key="item.key">
|
||||
</el-table-column>
|
||||
</template>
|
||||
</el-table>
|
||||
|
|
@ -100,14 +106,17 @@
|
|||
@current-change="handleCurrentChange" style="width: 100%" highlight-current-row>
|
||||
<template v-for="item in riskTable.column">
|
||||
<el-table-column v-if="item.render" :label="item.name" :width="item.width" :key="item.key">
|
||||
<div slot-scope="scope" style="pointer-events: none;" v-html="item.render(scope.row)"></div>
|
||||
<div slot-scope="scope" style="pointer-events: none;" v-html="item.render(scope.row)">
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column v-else :prop="item.key" :label="item.name" :width="item.width" :key="item.key">
|
||||
<el-table-column v-else :prop="item.key" :label="item.name" :width="item.width"
|
||||
:key="item.key">
|
||||
</el-table-column>
|
||||
</template>
|
||||
</el-table>
|
||||
</TableComponent>
|
||||
<ButtonListComponent :actions="triActions" @callback="popCallback" btn-position="center" :full-btn="true">
|
||||
<ButtonListComponent :actions="triActions" @callback="popCallback" btn-position="center"
|
||||
:full-btn="true">
|
||||
</ButtonListComponent>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
|
@ -336,7 +345,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_serious_result,
|
||||
datas: this.$store.state.prevention.prevention_serious_result,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
},
|
||||
|
|
@ -356,7 +365,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_security_identifier,
|
||||
datas: this.$store.state.prevention.prevention_security_identifier,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
},
|
||||
|
|
@ -393,7 +402,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_device_type,
|
||||
datas: this.$store.state.prevention.prevention_device_type,
|
||||
showError: false,
|
||||
},
|
||||
{
|
||||
|
|
@ -439,7 +448,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_serious_result,
|
||||
datas: this.$store.state.prevention.prevention_serious_result,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
},
|
||||
|
|
@ -459,7 +468,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_security_identifier,
|
||||
datas: this.$store.state.prevention.prevention_security_identifier,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
},
|
||||
|
|
@ -516,7 +525,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level,
|
||||
datas: this.$store.state.prevention.prevention_risk_level,
|
||||
showError: false,
|
||||
}, {
|
||||
name: "管控层级",
|
||||
|
|
@ -525,7 +534,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
type: "select",
|
||||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_control_level,
|
||||
datas: this.$store.state.prevention.prevention_control_level,
|
||||
showError: false,
|
||||
}];
|
||||
}
|
||||
|
|
@ -579,7 +588,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
showError: false,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
}];
|
||||
}
|
||||
//LS
|
||||
|
|
@ -625,7 +634,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
},];
|
||||
//LEC
|
||||
public riskLECUpdateOptions: FormOption<BtnOption>[] = [{
|
||||
|
|
@ -684,11 +693,11 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
},];
|
||||
|
||||
created() {
|
||||
this.$store.state.prevention_measures_sort.map((item) => {
|
||||
this.$store.state.prevention.prevention_measures_sort.map((item) => {
|
||||
this.measuresSelectData[item.value] = this.treeSelectData(item.children)
|
||||
})
|
||||
this.subBasicForm()
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_serious_result,
|
||||
datas: this.$store.state.prevention.prevention_serious_result,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
clearable: true,
|
||||
|
|
@ -315,7 +315,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "100%",
|
||||
datas: this.$store.state.prevention_security_identifier,
|
||||
datas: this.$store.state.prevention.prevention_security_identifier,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
clearable: true,
|
||||
|
|
@ -354,7 +354,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_device_type,
|
||||
datas: this.$store.state.prevention.prevention_device_type,
|
||||
showError: false,
|
||||
},
|
||||
{
|
||||
|
|
@ -400,7 +400,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_serious_result,
|
||||
datas: this.$store.state.prevention.prevention_serious_result,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
clearable: true,
|
||||
|
|
@ -421,7 +421,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
multiple: true,
|
||||
width: "100%",
|
||||
datas: this.$store.state.prevention_security_identifier,
|
||||
datas: this.$store.state.prevention.prevention_security_identifier,
|
||||
filterable: true,
|
||||
showError: false,
|
||||
clearable: true,
|
||||
|
|
@ -472,7 +472,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level,
|
||||
datas: this.$store.state.prevention.prevention_risk_level,
|
||||
showError: false,
|
||||
}, {
|
||||
name: "管控层级",
|
||||
|
|
@ -481,7 +481,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
type: "select",
|
||||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_control_level,
|
||||
datas: this.$store.state.prevention.prevention_control_level,
|
||||
showError: false,
|
||||
disable: this.analysisUpdateParams.riskLevel === 4
|
||||
}];
|
||||
|
|
@ -536,7 +536,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
showError: false,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
}];
|
||||
}
|
||||
//LS
|
||||
|
|
@ -586,7 +586,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
},];
|
||||
//LEC
|
||||
public riskLECUpdateOptions: FormOption<BtnOption>[] = [{
|
||||
|
|
@ -650,7 +650,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
},];
|
||||
|
||||
// created () {
|
||||
|
|
@ -660,7 +660,7 @@ export default class AnalEvaluationComponent extends Vue {
|
|||
* 初始化数据
|
||||
*/
|
||||
public buildInitData() {
|
||||
this.$store.state.prevention_measures_sort.map((item) => {
|
||||
this.$store.state.prevention.prevention_measures_sort.map((item) => {
|
||||
this.measuresSelectData[item.value] = this.treeSelectData(item.children)
|
||||
})
|
||||
this.subBasicForm()
|
||||
|
|
|
|||
|
|
@ -13,13 +13,13 @@
|
|||
<div class="group-title-plan-search d-flex align-items-center margin-left-20" style="margin-top: 0">
|
||||
<span style="width: 84px">处理结果</span>
|
||||
<el-select v-model="searchForm.status" class="item-radius-style">
|
||||
<el-option v-for="(item,i) in typeList" :key="i" :label="item.label" :value="item.value"></el-option>
|
||||
<el-option v-for="(item, i) in typeList" :key="i" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="group-title-plan-search d-flex align-items-center margin-left-20" style="margin-top: 0">
|
||||
<span style="width: 84px">报警类型</span>
|
||||
<el-select v-model="searchForm.type" class="item-radius-style">
|
||||
<el-option v-for="(item,i) in warringList" :key="i" :label="item.label" :value="item.value"></el-option>
|
||||
<el-option v-for="(item, i) in warringList" :key="i" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="group-title-plan-search d-flex align-items-center margin-left-20" style="margin-top: 0">
|
||||
|
|
@ -38,106 +38,60 @@
|
|||
<div class="d-flex">
|
||||
<div class="full tb-style">
|
||||
<div class="full">
|
||||
<el-table
|
||||
:data="subTableData"
|
||||
max-height="600"
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55">
|
||||
<el-table :data="subTableData" max-height="600" style="width: 100%">
|
||||
<el-table-column type="selection" width="55">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="jkdx"
|
||||
label="监控对象"
|
||||
width="180">
|
||||
<el-table-column prop="jkdx" label="监控对象" width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="设备名称"
|
||||
width="180">
|
||||
<el-table-column prop="name" label="设备名称" width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="position"
|
||||
label="点位类型">
|
||||
<el-table-column prop="position" label="点位类型">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="type"
|
||||
label="报警类型">
|
||||
<el-table-column prop="type" label="报警类型">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="isDanger"
|
||||
label="是否重大危险源">
|
||||
<el-table-column prop="isDanger" label="是否重大危险源">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="warringType"
|
||||
label="预警分类">
|
||||
<el-table-column prop="warringType" label="预警分类">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="pic"
|
||||
label="报警图片">
|
||||
<el-table-column prop="pic" label="报警图片">
|
||||
<template slot-scope="scope">
|
||||
<span>
|
||||
--
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="warringValue"
|
||||
label="报警值">
|
||||
<el-table-column prop="warringValue" label="报警值">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="warringInterval"
|
||||
label="报警阈限区间">
|
||||
<el-table-column prop="warringInterval" label="报警阈限区间">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="safeValue"
|
||||
label="报警阈值">
|
||||
<el-table-column prop="safeValue" label="报警阈值">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="warringTime"
|
||||
show-overflow-tooltip
|
||||
label="报警时间">
|
||||
<el-table-column prop="warringTime" show-overflow-tooltip label="报警时间">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="nowWork"
|
||||
label="当前工作">
|
||||
<el-table-column prop="nowWork" label="当前工作">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="nowWorkTime"
|
||||
show-overflow-tooltip
|
||||
label="当前工作截止时间">
|
||||
<el-table-column prop="nowWorkTime" show-overflow-tooltip label="当前工作截止时间">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="processingTime"
|
||||
label="处理时间">
|
||||
<el-table-column show-overflow-tooltip prop="processingTime" label="处理时间">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
label="处理结果">
|
||||
<el-table-column prop="status" label="处理结果">
|
||||
<template slot-scope="scope">
|
||||
<span :class="scope.row.status !== '0'?'green-text':'red-text'">
|
||||
<span :class="scope.row.status !== '0' ? 'green-text' : 'red-text'">
|
||||
{{ statusMap[scope.row.status] }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="operate"
|
||||
label="操作">
|
||||
<el-table-column prop="operate" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click="handleClick(scope.row,true)" class="link-style" type="text" size="small">查看
|
||||
<el-button @click="handleClick(scope.row, true)" class="link-style" type="text" size="small">查看
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
<div class="full" style="text-align:center;padding-top:30px">
|
||||
<el-pagination
|
||||
background
|
||||
layout="prev, pager, next"
|
||||
:current-page.sync="params.pageNum"
|
||||
:page-count="params.pageSize"
|
||||
:total="total">
|
||||
<el-pagination background layout="prev, pager, next" :current-page.sync="params.pageNum"
|
||||
:page-count="params.pageSize" :total="total">
|
||||
</el-pagination>
|
||||
</div>
|
||||
<!-- 报警记录弹窗 -->
|
||||
|
|
@ -171,7 +125,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import {Component, Emit, Prop, PropSync, Vue} from 'vue-property-decorator';
|
||||
import { Component, Emit, Prop, PropSync, Vue } from 'vue-property-decorator';
|
||||
import TitleComponent from '@/components/title.component.vue';
|
||||
import ParkFileService from "@/service/park.service"
|
||||
import echartsOpt from "./echarts"
|
||||
|
|
@ -250,7 +204,7 @@ export default class DetailBigComponent extends Vue {
|
|||
showPop = false
|
||||
|
||||
get dangrousData() {
|
||||
return this.$store.state.dangrousList
|
||||
return this.$store.state.prevention.dangrousList
|
||||
}
|
||||
|
||||
get subTableData() {
|
||||
|
|
@ -337,46 +291,46 @@ export default class DetailBigComponent extends Vue {
|
|||
'person': '段国庆'
|
||||
}
|
||||
item.status += '';
|
||||
const data = {...temp, ...item}
|
||||
const data = { ...temp, ...item }
|
||||
|
||||
return data
|
||||
})
|
||||
/* if(this.currentTab===1){
|
||||
if(this.currenSubtTab===0){
|
||||
return this.$store.state.dangrousWorkList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.dangrousWorkList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else if(this.currenSubtTab===1){
|
||||
return []
|
||||
}else{
|
||||
return this.$store.state.hiddenDangrousList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.hiddenDangrousList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}
|
||||
}else if(this.currentTab===2){
|
||||
return this.$store.state.warningList.filter(item=>item.model === 'env').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.warningList.filter(item=>item.model === 'env').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else if(this.currentTab===3){
|
||||
return this.$store.state.eventList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.eventList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else if(this.currentTab===4){
|
||||
return this.$store.state.warningList.filter(item=>item.model === 'eng').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.warningList.filter(item=>item.model === 'eng').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else{
|
||||
return this.$store.state.peopleList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.peopleList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}*/
|
||||
};
|
||||
|
||||
get total() {
|
||||
// if(this.currentTab===1){
|
||||
// if(this.currenSubtTab===0){
|
||||
// return this.$store.state.dangrousWorkList.length
|
||||
// return this.$store.state.prevention.dangrousWorkList.length
|
||||
// }else if(this.currenSubtTab===1){
|
||||
// return 0
|
||||
// }else{
|
||||
// return this.$store.state.hiddenDangrousList.length
|
||||
// return this.$store.state.prevention.hiddenDangrousList.length
|
||||
// }
|
||||
// }else if(this.currentTab===2){
|
||||
// return this.$store.state.warningList.length
|
||||
// return this.$store.state.prevention.warningList.length
|
||||
// }else if(this.currentTab===3){
|
||||
// return this.$store.state.warningList.length
|
||||
// return this.$store.state.prevention.warningList.length
|
||||
// }else if(this.currentTab===4){
|
||||
// return this.$store.state.warningList.length
|
||||
// return this.$store.state.prevention.warningList.length
|
||||
// }else{
|
||||
// return this.$store.state.peopleList.length
|
||||
// return this.$store.state.prevention.peopleList.length
|
||||
// }
|
||||
return this.subTableData.length
|
||||
}
|
||||
|
|
@ -444,7 +398,8 @@ export default class DetailBigComponent extends Vue {
|
|||
transform: none;
|
||||
}
|
||||
|
||||
.tb-style .el-table .el-table__cell, .el-table .el-table__cell {
|
||||
.tb-style .el-table .el-table__cell,
|
||||
.el-table .el-table__cell {
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
|
|
@ -466,11 +421,14 @@ export default class DetailBigComponent extends Vue {
|
|||
background: none;
|
||||
}
|
||||
|
||||
.el-date-editor .el-range-input, .el-date-editor .el-range-separator {
|
||||
.el-date-editor .el-range-input,
|
||||
.el-date-editor .el-range-separator {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li {
|
||||
.el-pagination.is-background .btn-next,
|
||||
.el-pagination.is-background .btn-prev,
|
||||
.el-pagination.is-background .el-pager li {
|
||||
background: none;
|
||||
border: 1px solid #FFF;
|
||||
color: #FFF;
|
||||
|
|
@ -491,6 +449,7 @@ export default class DetailBigComponent extends Vue {
|
|||
position: relative;
|
||||
|
||||
::v-deep {
|
||||
|
||||
.el-table td.el-table__cell,
|
||||
.el-table th.el-table__cell.is-leaf {
|
||||
border-color: #999999;
|
||||
|
|
@ -705,5 +664,4 @@ export default class DetailBigComponent extends Vue {
|
|||
.close-btn {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="detail-box">
|
||||
<div class="full-top d-flex is-justify-space-between margin-bottom-24">
|
||||
<div class="font-size-20">报警信息列表</div>
|
||||
<!-- <div class="back" @click="closePage">
|
||||
<!-- <div class="back" @click="closePage">
|
||||
<i class="back-icon"></i>关闭
|
||||
</div>-->
|
||||
<div class="close-btn" @click="closePage">
|
||||
|
|
@ -12,62 +12,39 @@
|
|||
<div class="d-flex">
|
||||
<div class="full tb-style">
|
||||
<div class="full">
|
||||
<el-table
|
||||
:data="subTableData"
|
||||
max-height="700"
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
prop="point"
|
||||
label="报警点位"
|
||||
width="180">
|
||||
<el-table :data="subTableData" max-height="700" style="width: 100%">
|
||||
<el-table-column prop="point" label="报警点位" width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="number"
|
||||
label="设备编号"
|
||||
width="180">
|
||||
<el-table-column prop="number" label="设备编号" width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="position"
|
||||
label="报警位置">
|
||||
<el-table-column prop="position" label="报警位置">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="type"
|
||||
label="报警类型">
|
||||
<el-table-column prop="type" label="报警类型">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="time"
|
||||
label="报警时间">
|
||||
<el-table-column prop="time" label="报警时间">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
label="处理情况">
|
||||
<el-table-column prop="status" label="处理情况">
|
||||
<template slot-scope="scope">
|
||||
<span :class="scope.row.status !== '0'?'green-text':'red-text'">
|
||||
{{statusMap[scope.row.status]}}
|
||||
<span :class="scope.row.status !== '0' ? 'green-text' : 'red-text'">
|
||||
{{ statusMap[scope.row.status] }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="person"
|
||||
label="重置人">
|
||||
<el-table-column prop="person" label="重置人">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="operate"
|
||||
label="操作">
|
||||
<el-table-column prop="operate" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click="handleClick(scope.row,true)" class="link-style" type="text" size="small">查看</el-button>
|
||||
<el-button @click="handleClick(scope.row,false)" type="text" class="link-style" size="small">编辑</el-button>
|
||||
<el-button @click="handleClick(scope.row, true)" class="link-style" type="text"
|
||||
size="small">查看</el-button>
|
||||
<el-button @click="handleClick(scope.row, false)" type="text" class="link-style"
|
||||
size="small">编辑</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
<div class="full" style="text-align:center;padding-top:30px">
|
||||
<el-pagination
|
||||
background
|
||||
layout="prev, pager, next"
|
||||
:current-page.sync="params.pageNum"
|
||||
:page-count="params.pageSize"
|
||||
:total="total">
|
||||
<el-pagination background layout="prev, pager, next" :current-page.sync="params.pageNum"
|
||||
:page-count="params.pageSize" :total="total">
|
||||
</el-pagination>
|
||||
</div>
|
||||
<!-- 报警记录弹窗 -->
|
||||
|
|
@ -96,23 +73,19 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="处置结果:">
|
||||
<el-select v-model="popObj.status" class="item-radius-style">
|
||||
<el-option v-for="(item,i) in typeList" :key="i" :label="item.label" :value="item.value"></el-option>
|
||||
<el-option v-for="(item, i) in typeList" :key="i" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="处置时间:">
|
||||
<el-date-picker
|
||||
class="item-radius-style"
|
||||
v-model="popObj.timer"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd hh:mm:ss"
|
||||
placeholder="选择日期时间">
|
||||
<el-date-picker class="item-radius-style" v-model="popObj.timer" type="datetime"
|
||||
value-format="yyyy-MM-dd hh:mm:ss" placeholder="选择日期时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="d-flex btn-group">
|
||||
<div v-show="!isView" class="btn-style" @click="submitForm">提交</div>
|
||||
<div class="btn-style cancel" @click="closePop">{{isView?'关闭':'取消'}}</div>
|
||||
<div class="btn-style cancel" @click="closePop">{{ isView ? '关闭' : '取消' }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -124,7 +97,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import {Component, Emit, Prop, PropSync, Vue} from 'vue-property-decorator';
|
||||
import { Component, Emit, Prop, PropSync, Vue } from 'vue-property-decorator';
|
||||
import TitleComponent from '@/components/title.component.vue';
|
||||
import ParkFileService from "@/service/park.service"
|
||||
import echartsOpt from "./echarts"
|
||||
|
|
@ -157,21 +130,21 @@ export default class DetailComponent extends Vue {
|
|||
isView = false
|
||||
popObj = {}
|
||||
statusMap = {
|
||||
'0':'未处置',
|
||||
'1':'已处置',
|
||||
'2':'已消除',
|
||||
'3':'误报',
|
||||
'0': '未处置',
|
||||
'1': '已处置',
|
||||
'2': '已消除',
|
||||
'3': '误报',
|
||||
}
|
||||
typeList = [
|
||||
{
|
||||
label:'已消除',
|
||||
value:'2'
|
||||
},{
|
||||
label:'误报',
|
||||
value:'3'
|
||||
},{
|
||||
label:'已处置',
|
||||
value:'1'
|
||||
label: '已消除',
|
||||
value: '2'
|
||||
}, {
|
||||
label: '误报',
|
||||
value: '3'
|
||||
}, {
|
||||
label: '已处置',
|
||||
value: '1'
|
||||
},
|
||||
]
|
||||
public params = {
|
||||
|
|
@ -189,13 +162,13 @@ export default class DetailComponent extends Vue {
|
|||
}
|
||||
showPop = false
|
||||
get dangrousData() {
|
||||
return this.$store.state.dangrousList
|
||||
return this.$store.state.prevention.dangrousList
|
||||
}
|
||||
|
||||
get subTableData() {
|
||||
const eq:{
|
||||
number:string,
|
||||
status:string|number
|
||||
const eq: {
|
||||
number: string,
|
||||
status: string | number
|
||||
}[] = [
|
||||
{
|
||||
number: '乙烯装置01-Y-001',
|
||||
|
|
@ -218,7 +191,7 @@ export default class DetailComponent extends Vue {
|
|||
}, {
|
||||
number: '二氯苯胺10-Y-09',
|
||||
status: 1,
|
||||
},{
|
||||
}, {
|
||||
number: '乙烯装置01-Y-001',
|
||||
status: 3,
|
||||
}, {
|
||||
|
|
@ -252,46 +225,46 @@ export default class DetailComponent extends Vue {
|
|||
'person': '段国庆'
|
||||
}
|
||||
item.status += '';
|
||||
const data = {...temp, ...item}
|
||||
const data = { ...temp, ...item }
|
||||
|
||||
return data
|
||||
})
|
||||
/* if(this.currentTab===1){
|
||||
if(this.currenSubtTab===0){
|
||||
return this.$store.state.dangrousWorkList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.dangrousWorkList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else if(this.currenSubtTab===1){
|
||||
return []
|
||||
}else{
|
||||
return this.$store.state.hiddenDangrousList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.hiddenDangrousList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}
|
||||
}else if(this.currentTab===2){
|
||||
return this.$store.state.warningList.filter(item=>item.model === 'env').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.warningList.filter(item=>item.model === 'env').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else if(this.currentTab===3){
|
||||
return this.$store.state.eventList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.eventList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else if(this.currentTab===4){
|
||||
return this.$store.state.warningList.filter(item=>item.model === 'eng').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.warningList.filter(item=>item.model === 'eng').slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}else{
|
||||
return this.$store.state.peopleList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
return this.$store.state.prevention.peopleList.slice((this.params.pageNum-1)*this.params.pageSize,this.params.pageSize*this.params.pageNum)
|
||||
}*/
|
||||
};
|
||||
|
||||
get total() {
|
||||
// if(this.currentTab===1){
|
||||
// if(this.currenSubtTab===0){
|
||||
// return this.$store.state.dangrousWorkList.length
|
||||
// return this.$store.state.prevention.dangrousWorkList.length
|
||||
// }else if(this.currenSubtTab===1){
|
||||
// return 0
|
||||
// }else{
|
||||
// return this.$store.state.hiddenDangrousList.length
|
||||
// return this.$store.state.prevention.hiddenDangrousList.length
|
||||
// }
|
||||
// }else if(this.currentTab===2){
|
||||
// return this.$store.state.warningList.length
|
||||
// return this.$store.state.prevention.warningList.length
|
||||
// }else if(this.currentTab===3){
|
||||
// return this.$store.state.warningList.length
|
||||
// return this.$store.state.prevention.warningList.length
|
||||
// }else if(this.currentTab===4){
|
||||
// return this.$store.state.warningList.length
|
||||
// return this.$store.state.prevention.warningList.length
|
||||
// }else{
|
||||
// return this.$store.state.peopleList.length
|
||||
// return this.$store.state.prevention.peopleList.length
|
||||
// }
|
||||
return this.subTableData.length
|
||||
}
|
||||
|
|
@ -299,14 +272,14 @@ export default class DetailComponent extends Vue {
|
|||
created() {
|
||||
//
|
||||
}
|
||||
submitForm(){
|
||||
submitForm() {
|
||||
this.closePop()
|
||||
}
|
||||
closePop(){
|
||||
this.showPop=false
|
||||
closePop() {
|
||||
this.showPop = false
|
||||
this.popObj = {}
|
||||
}
|
||||
handleClick(row,isView){
|
||||
handleClick(row, isView) {
|
||||
this.isView = isView
|
||||
this.popObj = row
|
||||
this.showPop = true
|
||||
|
|
@ -354,7 +327,8 @@ export default class DetailComponent extends Vue {
|
|||
transform: none;
|
||||
}
|
||||
|
||||
.tb-style .el-table .el-table__cell, .el-table .el-table__cell {
|
||||
.tb-style .el-table .el-table__cell,
|
||||
.el-table .el-table__cell {
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
|
|
@ -376,11 +350,14 @@ export default class DetailComponent extends Vue {
|
|||
background: none;
|
||||
}
|
||||
|
||||
.el-date-editor .el-range-input, .el-date-editor .el-range-separator {
|
||||
.el-date-editor .el-range-input,
|
||||
.el-date-editor .el-range-separator {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li {
|
||||
.el-pagination.is-background .btn-next,
|
||||
.el-pagination.is-background .btn-prev,
|
||||
.el-pagination.is-background .el-pager li {
|
||||
background: none;
|
||||
border: 1px solid #FFF;
|
||||
color: #FFF;
|
||||
|
|
@ -401,6 +378,7 @@ export default class DetailComponent extends Vue {
|
|||
position: relative;
|
||||
|
||||
::v-deep {
|
||||
|
||||
.el-table td.el-table__cell,
|
||||
.el-table th.el-table__cell.is-leaf {
|
||||
border-color: #999999;
|
||||
|
|
@ -419,9 +397,11 @@ export default class DetailComponent extends Vue {
|
|||
backdrop-filter: blur(8px);
|
||||
z-index: 999;
|
||||
padding: 100px 250px;
|
||||
.full-top{
|
||||
|
||||
.full-top {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.back {
|
||||
//position: absolute;
|
||||
//left: 40px;
|
||||
|
|
@ -609,8 +589,8 @@ export default class DetailComponent extends Vue {
|
|||
.activeSvg {
|
||||
fill: #7FB0FF;
|
||||
}
|
||||
.close-btn{
|
||||
|
||||
.close-btn {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
<div class="list-scroll-box">
|
||||
<div class="list cursor-pointer animate__animated " @click="onSelect(item)" v-list="index"
|
||||
v-for="(item,index) in companyList" :key="index">
|
||||
v-for="(item, index) in companyList" :key="index">
|
||||
<span>{{ item.name }}</span>
|
||||
<span>{{ item.peopleCount }}</span>
|
||||
<span>{{ item.date }}</span>
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import {Component, Emit, PropSync, Vue} from 'vue-property-decorator';
|
||||
import { Component, Emit, PropSync, Vue } from 'vue-property-decorator';
|
||||
import TitleComponent from '@/components/title.component.vue';
|
||||
import ParkFileService from "@/service/park.service"
|
||||
import echartsOpt from "@/utils/echarts"
|
||||
|
|
@ -121,8 +121,8 @@ export default class CompanyFileLeftComponent extends Vue {
|
|||
itemStyle: {
|
||||
color: {
|
||||
x: 0, y: 0, x2: 0, y2: 1, type: 'linear', global: false, colorStops: [
|
||||
{offset: 0, color: '#7FB0FF'},
|
||||
{offset: 1, color: '#5485D5'}
|
||||
{ offset: 0, color: '#7FB0FF' },
|
||||
{ offset: 1, color: '#5485D5' }
|
||||
]
|
||||
},
|
||||
},
|
||||
|
|
@ -140,7 +140,7 @@ export default class CompanyFileLeftComponent extends Vue {
|
|||
public timer: any;
|
||||
|
||||
get companyList() {
|
||||
return this.$store.state.companyList
|
||||
return this.$store.state.prevention.companyList
|
||||
}
|
||||
|
||||
@Emit("onSelect")
|
||||
|
|
@ -194,6 +194,7 @@ export default class CompanyFileLeftComponent extends Vue {
|
|||
0% {
|
||||
transform: perspective(1000px) rotateX(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: perspective(1000px) rotateX(360deg);
|
||||
}
|
||||
|
|
@ -220,6 +221,7 @@ export default class CompanyFileLeftComponent extends Vue {
|
|||
text-align: center;
|
||||
line-height: 28px;
|
||||
animation: flip2 2s 1 .2s ease both;
|
||||
|
||||
// animation: flips 2s ease-in 5s infinite both;
|
||||
.icon {
|
||||
width: 7px;
|
||||
|
|
@ -248,7 +250,7 @@ export default class CompanyFileLeftComponent extends Vue {
|
|||
|
||||
}
|
||||
|
||||
.cards-box + .cards-box {
|
||||
.cards-box+.cards-box {
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
|
|
@ -303,5 +305,4 @@ export default class CompanyFileLeftComponent extends Vue {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
<hbt-echarts className="charts-box" :options="lineOpt" @onChartInit="getLineEcharts($event)"></hbt-echarts>
|
||||
<TitleComponent>企业告警次数统计</TitleComponent>
|
||||
<div class="tab-box">
|
||||
<div class="tab" :class="{active:currentStaticTab===index}" @click="changeTab(index)"
|
||||
v-for="(item,index) in staticTabs" :key="index">{{ item }}
|
||||
<div class="tab" :class="{ active: currentStaticTab === index }" @click="changeTab(index)"
|
||||
v-for="(item, index) in staticTabs" :key="index">{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
<hbt-echarts className="charts-box" :options="radarOpt" @onChartInit="getRadarEcharts($event)"></hbt-echarts>
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import {Component, Emit, PropSync, Vue} from 'vue-property-decorator';
|
||||
import { Component, Emit, PropSync, Vue } from 'vue-property-decorator';
|
||||
import TitleComponent from '@/components/title.component.vue';
|
||||
import echartsOpt from "@/utils/echarts"
|
||||
import * as echarts from "echarts"
|
||||
|
|
@ -36,7 +36,7 @@ export default class CompanyFileRightComponent extends Vue {
|
|||
public currentStaticTab: number = -1;
|
||||
|
||||
get companyList() {
|
||||
return this.$store.state.companyList
|
||||
return this.$store.state.prevention.companyList
|
||||
}
|
||||
|
||||
yjIcon = require("@/assets/img/park/lighting-icon.png");
|
||||
|
|
@ -165,8 +165,8 @@ export default class CompanyFileRightComponent extends Vue {
|
|||
itemStyle: {
|
||||
borderRadius: [6, 6, 0, 0],
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||
{offset: 0, color: '#7FB0FF'},
|
||||
{offset: 1, color: '#3179EA'}
|
||||
{ offset: 0, color: '#7FB0FF' },
|
||||
{ offset: 1, color: '#3179EA' }
|
||||
])
|
||||
},
|
||||
data: new Array(2).fill(0).map(item => Math.floor(Math.random() * 100))
|
||||
|
|
@ -177,8 +177,8 @@ export default class CompanyFileRightComponent extends Vue {
|
|||
itemStyle: {
|
||||
borderRadius: [6, 6, 0, 0],
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||
{offset: 0, color: '#E8E8E8'},
|
||||
{offset: 1, color: '#999999'}
|
||||
{ offset: 0, color: '#E8E8E8' },
|
||||
{ offset: 1, color: '#999999' }
|
||||
])
|
||||
},
|
||||
data: new Array(2).fill(0).map(item => Math.floor(Math.random() * 100))
|
||||
|
|
@ -291,7 +291,8 @@ export default class CompanyFileRightComponent extends Vue {
|
|||
font-size: 12px;
|
||||
border: 1px solid transparent;
|
||||
|
||||
&:hover, &.active {
|
||||
&:hover,
|
||||
&.active {
|
||||
border: 1px solid $font-color;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
:width="item.width" :key="item.key">
|
||||
<div slot-scope="scope" v-html="item.render(scope.row)"></div>
|
||||
</el-table-column>
|
||||
<el-table-column v-else :prop="item.key" :show-overflow-tooltip="item.showTip" :label="item.name"
|
||||
:width="item.width" :key="item.key">
|
||||
<el-table-column v-else :prop="item.key" :show-overflow-tooltip="item.showTip"
|
||||
:label="item.name" :width="item.width" :key="item.key">
|
||||
</el-table-column>
|
||||
</template>
|
||||
<el-table-column label="操作" fixed="right" width="150">
|
||||
|
|
@ -33,9 +33,9 @@
|
|||
|
||||
<el-dialog :close-on-click-modal="false" :title="taskIsReadonly ? '详情' : taskUpdataParams.index ? '编辑' : '新增'"
|
||||
:visible.sync="showSubUpdate" width="952px" :before-close="handleCloseTask">
|
||||
<FormComponent :options="taskUpdateOptions" :isReadonly="taskIsReadonly" labelWidth="110px" labelAlign="right"
|
||||
:data.sync="taskUpdataParams" :actions="taskIsReadonly ? [] : taskActions" :full-btn="true"
|
||||
btnPosition="center" @actionCallback="taskCallback" @change="taskSelectChange">
|
||||
<FormComponent :options="taskUpdateOptions" :isReadonly="taskIsReadonly" labelWidth="110px"
|
||||
labelAlign="right" :data.sync="taskUpdataParams" :actions="taskIsReadonly ? [] : taskActions"
|
||||
:full-btn="true" btnPosition="center" @actionCallback="taskCallback" @change="taskSelectChange">
|
||||
</FormComponent>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
|
@ -101,7 +101,7 @@ export default class MeasureComponent extends Vue {
|
|||
width: "100%",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_measure_type
|
||||
datas: this.$store.state.prevention.prevention_measure_type
|
||||
}, {
|
||||
name: "管控措施分类",
|
||||
key: "firstType",
|
||||
|
|
@ -217,7 +217,7 @@ export default class MeasureComponent extends Vue {
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
datas: this.$store.state.postList,
|
||||
datas: this.$store.state.prevention.postList,
|
||||
showError: false,
|
||||
},
|
||||
{
|
||||
|
|
@ -227,7 +227,7 @@ export default class MeasureComponent extends Vue {
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
showError: false,
|
||||
}, {
|
||||
name: "排查周期 每",
|
||||
|
|
@ -243,7 +243,7 @@ export default class MeasureComponent extends Vue {
|
|||
type: "select",
|
||||
require: true,
|
||||
format: 'reviewCycleValueName',
|
||||
datas: this.$store.state.prevention_cycle_unit,
|
||||
datas: this.$store.state.prevention.prevention_cycle_unit,
|
||||
width: "calc(30% - 20px)",
|
||||
showError: false,
|
||||
}, {
|
||||
|
|
@ -352,7 +352,7 @@ export default class MeasureComponent extends Vue {
|
|||
|
||||
created() {
|
||||
this.buildTable();
|
||||
this.dictData.measuresSort = this.$store.state.prevention_measures_sort.map((item) => {
|
||||
this.dictData.measuresSort = this.$store.state.prevention.prevention_measures_sort.map((item) => {
|
||||
this.measuresSelectData[item.value] = this.treeSelectData(item.children)
|
||||
return {
|
||||
label: item.name,
|
||||
|
|
@ -486,7 +486,7 @@ export default class MeasureComponent extends Vue {
|
|||
|
||||
//排查任务 --- 包保对应项
|
||||
public taskItemSelect() {
|
||||
return this.$store.state.prevention_task_type.map((item) => {
|
||||
return this.$store.state.prevention.prevention_task_type.map((item) => {
|
||||
this.tasksSelectData[item.value] = this.treeSelectData(item.children)
|
||||
return {
|
||||
label: item.name,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
declare module 'common/notFound';
|
||||
declare module 'common/index';
|
||||
declare module 'common/layout';
|
||||
declare module 'common/login';
|
||||
declare module 'file-saver';
|
||||
declare module "common/message"
|
||||
declare module "common/notFound";
|
||||
declare module "common/index";
|
||||
declare module "common/layout";
|
||||
declare module "common/login";
|
||||
declare module "common/store";
|
||||
declare module "file-saver";
|
||||
declare module "common/message";
|
||||
|
|
|
|||
|
|
@ -1,453 +1,20 @@
|
|||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import Vue from "vue";
|
||||
import Vuex from "vuex";
|
||||
import remoteStore from "common/store";
|
||||
import prevention from "./prevention";
|
||||
Vue.use(Vuex);
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {
|
||||
deptList:[],
|
||||
deptTreeList:[],
|
||||
userList:[],
|
||||
postList:[],
|
||||
common_yes_no:[],
|
||||
prevention_dangrous_level:[],
|
||||
prevention_risk_level:[],
|
||||
prevention_safe_reason:[],
|
||||
prevention_dangrous_type:[],
|
||||
prevention_cycle_unit:[],
|
||||
prevention_danger_check_type:[],
|
||||
prevention_danger_resource:[],
|
||||
prevention_danger_type:[],
|
||||
prevention_occur_step:[],
|
||||
prevention_major_type:[],
|
||||
prevention_device_type:[],
|
||||
analControlList:[],
|
||||
prevention_serious_result:[],
|
||||
prevention_security_identifier:[],
|
||||
prevention_majorsign:[],
|
||||
prevention_control_level:[],
|
||||
prevention_measure_type:[],
|
||||
prevention_measures_sort:[],
|
||||
prevention_task_type:[],
|
||||
prevention_evaluate_status:[],
|
||||
prevention_task_status:[],
|
||||
prevention_hazard_category:[],
|
||||
prevention_training_methods:[],
|
||||
prevention_training_level:[],
|
||||
prevention_integral_eventtype:[],
|
||||
prevention_integral_type:[],
|
||||
prevention_risk_source:[],
|
||||
prevention_risk_craft:[],
|
||||
prevention_risk_chemical:[],
|
||||
prevention_enterprise_nature:[],
|
||||
prevention_enterprise_size:[],
|
||||
prevention_regulatory_category:[],
|
||||
prevention_regulatory_subcategories:[],
|
||||
prevention_registration_status:[],
|
||||
prevention_safety_label:[],
|
||||
},
|
||||
getters: {
|
||||
dept_map:(state)=>{
|
||||
const map = {};
|
||||
state.deptList.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
user_map:(state)=>{
|
||||
const map = {};
|
||||
state.userList.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
post_map:(state)=>{
|
||||
const map = {};
|
||||
state.postList.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
common_yes_no_map:(state)=>{
|
||||
const map = {};
|
||||
state.common_yes_no.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_dangrous_level_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_dangrous_level.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_risk_level_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_risk_level.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_safe_reason_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_safe_reason.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_cycle_unit_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_cycle_unit.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_dangrous_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_dangrous_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_danger_check_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_danger_check_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_device_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_device_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_danger_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_danger_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_danger_resource_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_danger_resource.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_major_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_major_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_occur_step_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_occur_step.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_anal_control_map:(state)=>{
|
||||
const map = {};
|
||||
state.analControlList.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_serious_result_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_serious_result.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_security_identifier_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_security_identifier.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_majorsign_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_majorsign.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_control_level_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_control_level.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_measure_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_measure_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_measures_sort_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_measures_sort.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_task_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_task_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_evaluate_status_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_evaluate_status.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_task_status_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_task_status.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_hazard_category_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_hazard_category.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_training_methods_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_training_methods.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_training_level_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_training_level.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_integral_eventtype_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_integral_eventtype.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_integral_type_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_integral_type.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_risk_source_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_risk_source.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_risk_craft_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_risk_craft.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_risk_chemical_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_risk_chemical.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
|
||||
prevention_enterprise_nature_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_enterprise_nature.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_enterprise_size_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_enterprise_size.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_regulatory_category_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_regulatory_category.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_regulatory_subcategories_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_regulatory_subcategories.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_registration_status_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_registration_status.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
prevention_safety_label_map:(state)=>{
|
||||
const map = {};
|
||||
state.prevention_safety_label.forEach((item:any)=>{
|
||||
map[item.value] = item.name
|
||||
})
|
||||
return map
|
||||
},
|
||||
},
|
||||
mutations: {
|
||||
setAnalCntrol(state,data){
|
||||
state.analControlList = data;
|
||||
},
|
||||
setDeptList(state,data){
|
||||
state.deptList = data;
|
||||
},
|
||||
setUserList(state,data){
|
||||
state.userList = data;
|
||||
},
|
||||
setDeptTreeList(state,data){
|
||||
state.deptTreeList = data;
|
||||
},
|
||||
|
||||
setPostList(state,data){
|
||||
state.postList = data;
|
||||
},
|
||||
set_common_yes_no(state,data){
|
||||
state.common_yes_no = data;
|
||||
},
|
||||
set_prevention_dangrous_level(state,data){
|
||||
state.prevention_dangrous_level = data;
|
||||
},
|
||||
set_prevention_risk_level(state,data){
|
||||
state.prevention_risk_level = data;
|
||||
},
|
||||
set_prevention_safe_reason(state,data){
|
||||
state.prevention_safe_reason = data;
|
||||
},
|
||||
set_prevention_dangrous_type(state,data){
|
||||
state.prevention_dangrous_type = data;
|
||||
},
|
||||
set_prevention_cycle_unit(state,data){
|
||||
state.prevention_cycle_unit = data;
|
||||
},
|
||||
set_prevention_danger_check_type(state,data){
|
||||
state.prevention_danger_check_type = data;
|
||||
},
|
||||
set_prevention_danger_type(state,data){
|
||||
state.prevention_danger_type = data;
|
||||
},
|
||||
set_prevention_danger_resource(state,data){
|
||||
state.prevention_danger_resource = data;
|
||||
},
|
||||
set_prevention_major_type(state,data){
|
||||
state.prevention_major_type = data;
|
||||
},
|
||||
set_prevention_occur_step(state,data){
|
||||
state.prevention_occur_step = data;
|
||||
},
|
||||
set_prevention_device_type(state,data){
|
||||
state.prevention_device_type = data;
|
||||
},
|
||||
set_prevention_serious_result(state,data){
|
||||
state.prevention_serious_result = data;
|
||||
},
|
||||
set_prevention_security_identifier(state,data){
|
||||
state.prevention_security_identifier = data;
|
||||
},
|
||||
set_prevention_majorsign(state,data){
|
||||
state.prevention_majorsign = data;
|
||||
},
|
||||
set_prevention_control_level(state,data){
|
||||
state.prevention_control_level = data;
|
||||
},
|
||||
set_prevention_measure_type(state,data){
|
||||
state.prevention_measure_type = data;
|
||||
},
|
||||
set_prevention_measures_sort(state,data){
|
||||
state.prevention_measures_sort = data;
|
||||
},
|
||||
set_prevention_task_type(state,data){
|
||||
state.prevention_task_type = data
|
||||
},
|
||||
set_prevention_evaluate_status(state,data){
|
||||
state.prevention_evaluate_status = data
|
||||
},
|
||||
set_prevention_task_status(state,data){
|
||||
state.prevention_task_status = data
|
||||
},
|
||||
set_prevention_hazard_category(state,data){
|
||||
state.prevention_hazard_category = data
|
||||
},
|
||||
set_prevention_training_methods(state,data){
|
||||
state.prevention_training_methods = data
|
||||
},
|
||||
set_prevention_training_level(state,data){
|
||||
state.prevention_training_level = data
|
||||
},
|
||||
set_prevention_integral_eventtype(state,data){
|
||||
state.prevention_integral_eventtype = data
|
||||
},
|
||||
set_prevention_integral_type(state,data){
|
||||
state.prevention_integral_type = data
|
||||
},
|
||||
set_prevention_risk_source(state,data){
|
||||
state.prevention_risk_source = data
|
||||
},
|
||||
set_prevention_risk_craft(state,data){
|
||||
state.prevention_risk_craft = data
|
||||
},
|
||||
set_prevention_risk_chemical(state,data){
|
||||
state.prevention_risk_chemical = data
|
||||
},
|
||||
|
||||
set_prevention_enterprise_nature(state,data){
|
||||
state.prevention_enterprise_nature = data
|
||||
},
|
||||
set_prevention_enterprise_size(state,data){
|
||||
state.prevention_enterprise_size = data
|
||||
},
|
||||
set_prevention_regulatory_category(state,data){
|
||||
state.prevention_regulatory_category = data
|
||||
},
|
||||
set_prevention_regulatory_subcategories(state,data){
|
||||
state.prevention_regulatory_subcategories = data
|
||||
},
|
||||
set_prevention_registration_status(state,data){
|
||||
state.prevention_registration_status = data
|
||||
},
|
||||
set_prevention_safety_label(state,data){
|
||||
state.prevention_safety_label = data
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
modules: {
|
||||
remoteStore.registerModule("prevention", {
|
||||
...prevention,
|
||||
});
|
||||
rewriteRegisterModule(remoteStore);
|
||||
function rewriteRegisterModule(store) {
|
||||
const original = store.registerModule;
|
||||
store.registerModule = function (path, ...rest) {
|
||||
if (store.hasModule(path)) {
|
||||
return;
|
||||
}
|
||||
})
|
||||
original.call(store, path, ...rest);
|
||||
};
|
||||
}
|
||||
export default remoteStore;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,446 @@
|
|||
export default {
|
||||
state: {
|
||||
deptList: [],
|
||||
deptTreeList: [],
|
||||
userList: [],
|
||||
postList: [],
|
||||
common_yes_no: [],
|
||||
prevention_dangrous_level: [],
|
||||
prevention_risk_level: [],
|
||||
prevention_safe_reason: [],
|
||||
prevention_dangrous_type: [],
|
||||
prevention_cycle_unit: [],
|
||||
prevention_danger_check_type: [],
|
||||
prevention_danger_resource: [],
|
||||
prevention_danger_type: [],
|
||||
prevention_occur_step: [],
|
||||
prevention_major_type: [],
|
||||
prevention_device_type: [],
|
||||
analControlList: [],
|
||||
prevention_serious_result: [],
|
||||
prevention_security_identifier: [],
|
||||
prevention_majorsign: [],
|
||||
prevention_control_level: [],
|
||||
prevention_measure_type: [],
|
||||
prevention_measures_sort: [],
|
||||
prevention_task_type: [],
|
||||
prevention_evaluate_status: [],
|
||||
prevention_task_status: [],
|
||||
prevention_hazard_category: [],
|
||||
prevention_training_methods: [],
|
||||
prevention_training_level: [],
|
||||
prevention_integral_eventtype: [],
|
||||
prevention_integral_type: [],
|
||||
prevention_risk_source: [],
|
||||
prevention_risk_craft: [],
|
||||
prevention_risk_chemical: [],
|
||||
prevention_enterprise_nature: [],
|
||||
prevention_enterprise_size: [],
|
||||
prevention_regulatory_category: [],
|
||||
prevention_regulatory_subcategories: [],
|
||||
prevention_registration_status: [],
|
||||
prevention_safety_label: [],
|
||||
},
|
||||
getters: {
|
||||
dept_map: (state) => {
|
||||
const map = {};
|
||||
state.deptList.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
user_map: (state) => {
|
||||
const map = {};
|
||||
state.userList.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
post_map: (state) => {
|
||||
const map = {};
|
||||
state.postList.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
common_yes_no_map: (state) => {
|
||||
const map = {};
|
||||
state.common_yes_no.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_dangrous_level_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_dangrous_level.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_risk_level_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_risk_level.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_safe_reason_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_safe_reason.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_cycle_unit_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_cycle_unit.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_dangrous_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_dangrous_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_danger_check_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_danger_check_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_device_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_device_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_danger_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_danger_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_danger_resource_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_danger_resource.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_major_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_major_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_occur_step_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_occur_step.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_anal_control_map: (state) => {
|
||||
const map = {};
|
||||
state.analControlList.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_serious_result_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_serious_result.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_security_identifier_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_security_identifier.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_majorsign_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_majorsign.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_control_level_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_control_level.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_measure_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_measure_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_measures_sort_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_measures_sort.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_task_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_task_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_evaluate_status_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_evaluate_status.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_task_status_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_task_status.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_hazard_category_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_hazard_category.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_training_methods_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_training_methods.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_training_level_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_training_level.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_integral_eventtype_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_integral_eventtype.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_integral_type_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_integral_type.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_risk_source_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_risk_source.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_risk_craft_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_risk_craft.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_risk_chemical_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_risk_chemical.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
|
||||
prevention_enterprise_nature_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_enterprise_nature.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_enterprise_size_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_enterprise_size.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_regulatory_category_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_regulatory_category.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_regulatory_subcategories_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_regulatory_subcategories.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_registration_status_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_registration_status.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
prevention_safety_label_map: (state) => {
|
||||
const map = {};
|
||||
state.prevention_safety_label.forEach((item: any) => {
|
||||
map[item.value] = item.name;
|
||||
});
|
||||
return map;
|
||||
},
|
||||
},
|
||||
mutations: {
|
||||
setAnalCntrol(state, data) {
|
||||
state.analControlList = data;
|
||||
},
|
||||
setDeptList(state, data) {
|
||||
state.deptList = data;
|
||||
},
|
||||
setUserList(state, data) {
|
||||
state.userList = data;
|
||||
},
|
||||
setDeptTreeList(state, data) {
|
||||
state.deptTreeList = data;
|
||||
},
|
||||
|
||||
setPostList(state, data) {
|
||||
state.postList = data;
|
||||
},
|
||||
set_common_yes_no(state, data) {
|
||||
state.common_yes_no = data;
|
||||
},
|
||||
set_prevention_dangrous_level(state, data) {
|
||||
state.prevention_dangrous_level = data;
|
||||
},
|
||||
set_prevention_risk_level(state, data) {
|
||||
state.prevention_risk_level = data;
|
||||
},
|
||||
set_prevention_safe_reason(state, data) {
|
||||
state.prevention_safe_reason = data;
|
||||
},
|
||||
set_prevention_dangrous_type(state, data) {
|
||||
state.prevention_dangrous_type = data;
|
||||
},
|
||||
set_prevention_cycle_unit(state, data) {
|
||||
state.prevention_cycle_unit = data;
|
||||
},
|
||||
set_prevention_danger_check_type(state, data) {
|
||||
state.prevention_danger_check_type = data;
|
||||
},
|
||||
set_prevention_danger_type(state, data) {
|
||||
state.prevention_danger_type = data;
|
||||
},
|
||||
set_prevention_danger_resource(state, data) {
|
||||
state.prevention_danger_resource = data;
|
||||
},
|
||||
set_prevention_major_type(state, data) {
|
||||
state.prevention_major_type = data;
|
||||
},
|
||||
set_prevention_occur_step(state, data) {
|
||||
state.prevention_occur_step = data;
|
||||
},
|
||||
set_prevention_device_type(state, data) {
|
||||
state.prevention_device_type = data;
|
||||
},
|
||||
set_prevention_serious_result(state, data) {
|
||||
state.prevention_serious_result = data;
|
||||
},
|
||||
set_prevention_security_identifier(state, data) {
|
||||
state.prevention_security_identifier = data;
|
||||
},
|
||||
set_prevention_majorsign(state, data) {
|
||||
state.prevention_majorsign = data;
|
||||
},
|
||||
set_prevention_control_level(state, data) {
|
||||
state.prevention_control_level = data;
|
||||
},
|
||||
set_prevention_measure_type(state, data) {
|
||||
state.prevention_measure_type = data;
|
||||
},
|
||||
set_prevention_measures_sort(state, data) {
|
||||
state.prevention_measures_sort = data;
|
||||
},
|
||||
set_prevention_task_type(state, data) {
|
||||
state.prevention_task_type = data;
|
||||
},
|
||||
set_prevention_evaluate_status(state, data) {
|
||||
state.prevention_evaluate_status = data;
|
||||
},
|
||||
set_prevention_task_status(state, data) {
|
||||
state.prevention_task_status = data;
|
||||
},
|
||||
set_prevention_hazard_category(state, data) {
|
||||
state.prevention_hazard_category = data;
|
||||
},
|
||||
set_prevention_training_methods(state, data) {
|
||||
state.prevention_training_methods = data;
|
||||
},
|
||||
set_prevention_training_level(state, data) {
|
||||
state.prevention_training_level = data;
|
||||
},
|
||||
set_prevention_integral_eventtype(state, data) {
|
||||
state.prevention_integral_eventtype = data;
|
||||
},
|
||||
set_prevention_integral_type(state, data) {
|
||||
state.prevention_integral_type = data;
|
||||
},
|
||||
set_prevention_risk_source(state, data) {
|
||||
state.prevention_risk_source = data;
|
||||
},
|
||||
set_prevention_risk_craft(state, data) {
|
||||
state.prevention_risk_craft = data;
|
||||
},
|
||||
set_prevention_risk_chemical(state, data) {
|
||||
state.prevention_risk_chemical = data;
|
||||
},
|
||||
|
||||
set_prevention_enterprise_nature(state, data) {
|
||||
state.prevention_enterprise_nature = data;
|
||||
},
|
||||
set_prevention_enterprise_size(state, data) {
|
||||
state.prevention_enterprise_size = data;
|
||||
},
|
||||
set_prevention_regulatory_category(state, data) {
|
||||
state.prevention_regulatory_category = data;
|
||||
},
|
||||
set_prevention_regulatory_subcategories(state, data) {
|
||||
state.prevention_regulatory_subcategories = data;
|
||||
},
|
||||
set_prevention_registration_status(state, data) {
|
||||
state.prevention_registration_status = data;
|
||||
},
|
||||
set_prevention_safety_label(state, data) {
|
||||
state.prevention_safety_label = data;
|
||||
},
|
||||
},
|
||||
actions: {},
|
||||
modules: {},
|
||||
};
|
||||
|
|
@ -56,7 +56,7 @@ export default class BlankComponent extends Vue {
|
|||
this.systemService.getDictData("prevention_registration_status"),
|
||||
this.systemService.getDictData("prevention_safety_label"),
|
||||
]).then(((results: any) => {
|
||||
|
||||
console.log(this.$store)
|
||||
this.$store.commit("setDeptTreeList", results[0].data);
|
||||
this.$store.commit("setUserList", results[2].data.datas.map((item) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./estimate.component.html"
|
||||
|
|
@ -125,7 +124,7 @@ export default class checkResumption extends BaseRecordComponent<any> {
|
|||
name: "重大危险源名称",
|
||||
key: "majorHazard",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_source
|
||||
datas: this.$store.state.prevention.prevention_risk_source
|
||||
},
|
||||
{
|
||||
name: "周期",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./publicityResumption.component.html"
|
||||
|
|
@ -102,7 +101,7 @@ export default class PublicityResumption extends BaseRecordComponent<any> {
|
|||
name: "重大危险源名称",
|
||||
key: "majorHazard",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_source
|
||||
datas: this.$store.state.prevention.prevention_risk_source
|
||||
}, {
|
||||
name: "日期",
|
||||
key: "time",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator'
|
||||
import template from './common.component.html'
|
||||
|
|
@ -232,7 +231,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
width: 'calc(50% - 20px)',
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_check_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_check_type,
|
||||
},
|
||||
{
|
||||
name: '隐患类别',
|
||||
|
|
@ -242,7 +241,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
width: 'calc(50% - 20px)',
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_type,
|
||||
},
|
||||
{
|
||||
name: '检查人员',
|
||||
|
|
@ -252,7 +251,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
width: 'calc(50% - 20px)',
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: '检查时间',
|
||||
|
|
@ -324,7 +323,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
width: 'calc(50% - 20px)',
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_dangrous_type,
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type,
|
||||
},
|
||||
{
|
||||
name: '整改部门',
|
||||
|
|
@ -336,7 +335,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
clearable: true,
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
},
|
||||
{
|
||||
name: '整改人员',
|
||||
|
|
@ -346,7 +345,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
width: 'calc(50% - 20px)',
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: '验证人员',
|
||||
|
|
@ -356,7 +355,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
width: 'calc(50% - 20px)',
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: '要求整改日期',
|
||||
|
|
@ -441,7 +440,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
width: 'calc(50% - 20px)',
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_major_type,
|
||||
datas: this.$store.state.prevention.prevention_major_type,
|
||||
},
|
||||
{
|
||||
name: '发生环节',
|
||||
|
|
@ -450,7 +449,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
type: 'select',
|
||||
width: 'calc(50% - 20px)',
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_occur_step,
|
||||
datas: this.$store.state.prevention.prevention_occur_step,
|
||||
},
|
||||
{
|
||||
name: '重大危险源名称',
|
||||
|
|
@ -489,7 +488,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
//重大危险源
|
||||
public initRiskSource() {
|
||||
this.riskSource = [] as any
|
||||
this.riskSource = JSON.parse(JSON.stringify(this.$store.state.prevention_risk_source))
|
||||
this.riskSource = JSON.parse(JSON.stringify(this.$store.state.prevention.prevention_risk_source))
|
||||
this.riskSource.unshift({
|
||||
name: '不涉及',
|
||||
value: 0,
|
||||
|
|
@ -842,7 +841,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
public startWorkFlow(ids, userIds) {
|
||||
this.workFlowService
|
||||
.startWorkFlow({
|
||||
candidateInfos: [{ userList: userIds}],
|
||||
candidateInfos: [{ userList: userIds }],
|
||||
bizData: {
|
||||
bizId: ids,
|
||||
data: JSON.stringify(this.updateParams),
|
||||
|
|
@ -859,7 +858,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
|
||||
public toggleAll() {
|
||||
this.tableData.datas.forEach((item, index) => {
|
||||
;(this.$refs.multipleTable as any).toggleRowSelection(item)
|
||||
; (this.$refs.multipleTable as any).toggleRowSelection(item)
|
||||
})
|
||||
}
|
||||
public selectAll() {
|
||||
|
|
@ -869,7 +868,7 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
|
|||
this.tableData.datas.forEach((item, index) => {
|
||||
const find = this.selectData.find((data: any) => data.id === item.id)
|
||||
if (!find) {
|
||||
;(this.$refs.multipleTable as any).toggleRowSelection(item)
|
||||
; (this.$refs.multipleTable as any).toggleRowSelection(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./common.component.html"
|
||||
|
|
@ -150,12 +149,12 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
name: "隐患分类",
|
||||
key: "classify",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_dangrous_type
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type
|
||||
}, {
|
||||
name: "隐患来源",
|
||||
key: "source",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_danger_resource
|
||||
datas: this.$store.state.prevention.prevention_danger_resource
|
||||
}, {
|
||||
name: "隐患等级",
|
||||
key: "level",
|
||||
|
|
@ -198,7 +197,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_resource
|
||||
datas: this.$store.state.prevention.prevention_danger_resource
|
||||
}, {
|
||||
name: "隐患标题",
|
||||
key: "title",
|
||||
|
|
@ -264,7 +263,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_dangrous_type
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type
|
||||
}, {
|
||||
name: "整改部门",
|
||||
key: "reformDeptId",
|
||||
|
|
@ -274,7 +273,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "整改责任人",
|
||||
key: "reformUserId",
|
||||
|
|
@ -283,7 +282,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "验证人",
|
||||
key: "verifyUserId",
|
||||
|
|
@ -292,7 +291,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "整改时限",
|
||||
key: "reformDeadline",
|
||||
|
|
@ -344,7 +343,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_type,
|
||||
}, {
|
||||
name: "检查类型",
|
||||
key: "inspectType",
|
||||
|
|
@ -353,7 +352,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_check_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_check_type,
|
||||
}, {
|
||||
name: "违章人数",
|
||||
key: "violateNumber",
|
||||
|
|
@ -372,7 +371,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_major_type,
|
||||
datas: this.$store.state.prevention.prevention_major_type,
|
||||
}, {
|
||||
name: "属性分类",
|
||||
key: "attributeClassify",
|
||||
|
|
@ -380,7 +379,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_safe_reason,
|
||||
datas: this.$store.state.prevention.prevention_safe_reason,
|
||||
}, {
|
||||
name: "发生环节",
|
||||
key: "occurNode",
|
||||
|
|
@ -388,7 +387,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_occur_step,
|
||||
datas: this.$store.state.prevention.prevention_occur_step,
|
||||
}, {
|
||||
name: "违反规定条款",
|
||||
key: "violateTerm",
|
||||
|
|
@ -438,7 +437,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
format: "executeUserName",
|
||||
showError: false,
|
||||
hide: this.updateParams.reformConfirmFlag === 0,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "治理时限",
|
||||
type: "date",
|
||||
|
|
@ -694,7 +693,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
//重大危险源
|
||||
public initRiskSource() {
|
||||
this.riskSource = [] as any;
|
||||
this.riskSource = JSON.parse(JSON.stringify(this.$store.state.prevention_risk_source));
|
||||
this.riskSource = JSON.parse(JSON.stringify(this.$store.state.prevention.prevention_risk_source));
|
||||
this.riskSource.unshift({
|
||||
name: '不涉及',
|
||||
value: 0,
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
const mode = ids.includes(this.account.userId) ? false : true;
|
||||
//获取列表数据;
|
||||
const data = await this.getTableRowData(this.presetParams.bizId);
|
||||
this.rowCallback(null, data, true,mode)
|
||||
this.rowCallback(null, data, true, mode)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -222,7 +222,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
id: id
|
||||
} as any;
|
||||
let res = await this.tableService.selectByPage(params) as any;
|
||||
return res.data.datas.find((item:any)=> item.id === +id);
|
||||
return res.data.datas.find((item: any) => item.id === +id);
|
||||
}
|
||||
public tabTableChange(type) {
|
||||
this.params.pageNum = 1;
|
||||
|
|
@ -291,7 +291,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
name: "隐患分类",
|
||||
key: "classify",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_dangrous_type,
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type,
|
||||
},
|
||||
{
|
||||
name: "整改方式",
|
||||
|
|
@ -314,7 +314,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
type: "treeSelect",
|
||||
width: "280px",
|
||||
expandLevel: Infinity,
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
},
|
||||
{
|
||||
name: "重大危险源",
|
||||
|
|
@ -343,7 +343,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_resource,
|
||||
datas: this.$store.state.prevention.prevention_danger_resource,
|
||||
},
|
||||
{
|
||||
name: "隐患标题",
|
||||
|
|
@ -424,7 +424,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_dangrous_type,
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type,
|
||||
},
|
||||
{
|
||||
name: "整改部门",
|
||||
|
|
@ -435,7 +435,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
},
|
||||
{
|
||||
name: "整改责任人",
|
||||
|
|
@ -445,7 +445,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "验证人",
|
||||
|
|
@ -455,7 +455,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "整改时限",
|
||||
|
|
@ -520,7 +520,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_type,
|
||||
},
|
||||
{
|
||||
name: "检查类型",
|
||||
|
|
@ -530,7 +530,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_check_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_check_type,
|
||||
},
|
||||
{
|
||||
name: "违章人数",
|
||||
|
|
@ -552,7 +552,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
require: true,
|
||||
datas: this.$store.state.prevention_major_type,
|
||||
datas: this.$store.state.prevention.prevention_major_type,
|
||||
},
|
||||
{
|
||||
name: "属性分类",
|
||||
|
|
@ -561,7 +561,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_safe_reason,
|
||||
datas: this.$store.state.prevention.prevention_safe_reason,
|
||||
},
|
||||
{
|
||||
name: "发生环节",
|
||||
|
|
@ -570,7 +570,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_occur_step,
|
||||
datas: this.$store.state.prevention.prevention_occur_step,
|
||||
},
|
||||
{
|
||||
name: "违反规定条款",
|
||||
|
|
@ -641,7 +641,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
format: "executeUserName",
|
||||
showError: false,
|
||||
hide: this.updateParams.reformConfirmFlag === 0,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "治理时限",
|
||||
|
|
@ -861,7 +861,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
];
|
||||
}
|
||||
|
||||
@Watch("$store.state.prevention_risk_source", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.prevention_risk_source", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.initRiskSource();
|
||||
}
|
||||
|
|
@ -870,7 +870,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
public initRiskSource() {
|
||||
this.riskSource = [] as any;
|
||||
this.riskSource = JSON.parse(
|
||||
JSON.stringify(this.$store.state.prevention_risk_source)
|
||||
JSON.stringify(this.$store.state.prevention.prevention_risk_source)
|
||||
);
|
||||
this.riskSource.unshift({
|
||||
name: "不涉及",
|
||||
|
|
@ -999,7 +999,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
});
|
||||
}
|
||||
|
||||
public rowCallback(el, data, isJumpPage = false,mode?) {
|
||||
public rowCallback(el, data, isJumpPage = false, mode?) {
|
||||
let isTarget = null;
|
||||
if (el) {
|
||||
isTarget = el.target.classList.contains("text_link");
|
||||
|
|
@ -1047,7 +1047,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
data
|
||||
);
|
||||
}
|
||||
this.showUpdateModel(data,mode);
|
||||
this.showUpdateModel(data, mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./rules.component.html"
|
||||
|
|
@ -123,7 +122,7 @@ export default class RulesComponent extends BaseRecordComponent<any> {
|
|||
multiple: true,
|
||||
showError: false,
|
||||
clearable: true,
|
||||
datas: this.$store.state.prevention_dangrous_type
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type
|
||||
}]
|
||||
this.updateActions = [{
|
||||
name: "取消",
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
key: "type",
|
||||
clearable: true,
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_dangrous_type
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type
|
||||
}]
|
||||
this.updateOptions = [{
|
||||
name: "检查表编号",
|
||||
|
|
@ -209,19 +209,19 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.analControlList,
|
||||
datas: this.$store.state.prevention.analControlList,
|
||||
clearable: true,
|
||||
}, {
|
||||
name: "适用部门",
|
||||
key: "depts",
|
||||
multiple: true,
|
||||
type: "treeSelect",
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
expandLevel: Infinity,
|
||||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
// datas: this.$store.state.deptList,
|
||||
// datas: this.$store.state.prevention.deptList,
|
||||
clearable: true,
|
||||
}, {
|
||||
name: "适用类型",
|
||||
|
|
@ -232,7 +232,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
multiple: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_dangrous_type,
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type,
|
||||
clearable: true,
|
||||
}]
|
||||
this.updateActions = [{
|
||||
|
|
@ -373,7 +373,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
this.tableColumn.push({ name: '适用对象', key: "targets" });
|
||||
this.tableColumn.push({ name: '适用部门', key: "depts" });
|
||||
this.tableColumn.push({
|
||||
name: '适用类型', key: "types", filters: this.$store.state.prevention_dangrous_type.map(item => {
|
||||
name: '适用类型', key: "types", filters: this.$store.state.prevention.prevention_dangrous_type.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.name,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./safe.component.html"
|
||||
|
|
@ -195,12 +194,12 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
name: "检查类型",
|
||||
key: "inspectType",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_danger_check_type
|
||||
},{
|
||||
name:"检查负责人",
|
||||
datas: this.$store.state.prevention.prevention_danger_check_type
|
||||
}, {
|
||||
name: "检查负责人",
|
||||
key: "chargeUserId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}];
|
||||
this.updateOptions = [{
|
||||
name: "隐患编号",
|
||||
|
|
@ -275,7 +274,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_dangrous_type
|
||||
datas: this.$store.state.prevention.prevention_dangrous_type
|
||||
}, {
|
||||
name: "整改部门",
|
||||
key: "reformDeptId",
|
||||
|
|
@ -285,7 +284,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "整改责任人",
|
||||
key: "reformUserId",
|
||||
|
|
@ -294,7 +293,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "验证人",
|
||||
key: "verifyUserId",
|
||||
|
|
@ -303,7 +302,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "整改时限",
|
||||
key: "reformDeadline",
|
||||
|
|
@ -326,7 +325,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "100%",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_type,
|
||||
}, {
|
||||
name: "隐患照片",
|
||||
key: "photo",
|
||||
|
|
@ -384,7 +383,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_major_type,
|
||||
datas: this.$store.state.prevention.prevention_major_type,
|
||||
}, {
|
||||
name: "属性分类",
|
||||
key: "attributeClassify",
|
||||
|
|
@ -392,7 +391,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_safe_reason,
|
||||
datas: this.$store.state.prevention.prevention_safe_reason,
|
||||
}, {
|
||||
name: "发生环节",
|
||||
key: "occurNode",
|
||||
|
|
@ -400,7 +399,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_occur_step,
|
||||
datas: this.$store.state.prevention.prevention_occur_step,
|
||||
}, {
|
||||
name: "违反规定条款",
|
||||
key: "violateTerm",
|
||||
|
|
@ -428,7 +427,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
//重大危险源
|
||||
public initRiskSource() {
|
||||
this.riskSource = [] as any;
|
||||
this.riskSource = JSON.parse(JSON.stringify(this.$store.state.prevention_risk_source));
|
||||
this.riskSource = JSON.parse(JSON.stringify(this.$store.state.prevention.prevention_risk_source));
|
||||
this.riskSource.unshift({
|
||||
name: '不涉及',
|
||||
value: 0,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./safe.component.html"
|
||||
|
|
@ -207,7 +206,7 @@ export default class PlanComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
format: "inspectTypeName",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_danger_check_type
|
||||
datas: this.$store.state.prevention.prevention_danger_check_type
|
||||
}, {
|
||||
name: "巡检周期 每",
|
||||
key: "inspectCycleValue",
|
||||
|
|
@ -226,7 +225,7 @@ export default class PlanComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(15% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_cycle_unit
|
||||
datas: this.$store.state.prevention.prevention_cycle_unit
|
||||
}, {
|
||||
name: "1次",
|
||||
key: "times",
|
||||
|
|
@ -306,7 +305,7 @@ export default class PlanComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
showError: false,
|
||||
filterable: true,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "检查范围",
|
||||
type: "textarea",
|
||||
|
|
|
|||
|
|
@ -1,102 +1,222 @@
|
|||
<div class="common-box dis-flex ">
|
||||
<div class="common-box dis-flex">
|
||||
<div class="common-content-box dis-flex flex-col flex-1">
|
||||
<div class="search-box">
|
||||
<FormComponent :options="formOptions" :data.sync="params" @actionCallback="callback" :actions="formActions"
|
||||
:full-btn="false" @change="getTableData" btn-position="end"></FormComponent>
|
||||
<FormComponent
|
||||
:options="formOptions"
|
||||
:data.sync="params"
|
||||
@actionCallback="callback"
|
||||
:actions="formActions"
|
||||
:full-btn="false"
|
||||
@change="getTableData"
|
||||
btn-position="end"
|
||||
></FormComponent>
|
||||
</div>
|
||||
<div class="table-box flex-1">
|
||||
<TableComponent style="flex: 1; height: 1px;" :tableData="tableData" :tableColumn="tableColumn"
|
||||
@actionCallback="callback($event)" @pageNumberChange="callback($event,'pageNum')"
|
||||
@pageSizeChange="callback($event,'pageSize')" :footerActions="footerActions" :actions="tableActions">
|
||||
|
||||
<el-table ref="multipleTable" :data="tableData.datas" height="100%" border row-key="checked"
|
||||
@selection-change="handleSelectionChange" style="width: 100%" @sort-change="sortChange($event)">
|
||||
<el-table-column v-if="isPlan" type="selection" :selectable="selectable" fixed label="全选"
|
||||
width="40">
|
||||
<TableComponent
|
||||
style="flex: 1; height: 1px"
|
||||
:tableData="tableData"
|
||||
:tableColumn="tableColumn"
|
||||
@actionCallback="callback($event)"
|
||||
@pageNumberChange="callback($event,'pageNum')"
|
||||
@pageSizeChange="callback($event,'pageSize')"
|
||||
:footerActions="footerActions"
|
||||
:actions="tableActions"
|
||||
>
|
||||
<el-table
|
||||
ref="multipleTable"
|
||||
:data="tableData.datas"
|
||||
height="100%"
|
||||
border
|
||||
row-key="checked"
|
||||
@selection-change="handleSelectionChange"
|
||||
style="width: 100%"
|
||||
@sort-change="sortChange($event)"
|
||||
>
|
||||
<el-table-column
|
||||
v-if="isPlan"
|
||||
type="selection"
|
||||
:selectable="selectable"
|
||||
fixed
|
||||
label="全选"
|
||||
width="40"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" width="60">
|
||||
<div slot-scope="scope">{{scope.$index+1}}</div>
|
||||
<div slot-scope="scope">{{ scope.$index + 1 }}</div>
|
||||
</el-table-column>
|
||||
<template v-for="item in tableColumn">
|
||||
<el-table-column v-if="item.render" :label="item.name" :filters="item.filters"
|
||||
:filter-method="item.filterMethod" :width="item.width" :key="item.key"
|
||||
:sortable="item.sortable">
|
||||
<div slot-scope="scope" @click="" v-html="item.render(scope.row)"
|
||||
style="pointer-events: none;" @click="rowCallback($event,scope.row)"></div>
|
||||
<el-table-column
|
||||
v-if="item.render"
|
||||
:label="item.name"
|
||||
:filters="item.filters"
|
||||
:filter-method="item.filterMethod"
|
||||
:width="item.width"
|
||||
:key="item.key"
|
||||
:sortable="item.sortable"
|
||||
>
|
||||
<div
|
||||
slot-scope="scope"
|
||||
@click=""
|
||||
v-html="item.render(scope.row)"
|
||||
style="pointer-events: none"
|
||||
@click="rowCallback($event,scope.row)"
|
||||
></div>
|
||||
</el-table-column>
|
||||
<el-table-column v-else :prop="item.key" :label="item.name" :filters="item.filters"
|
||||
:filter-method="item.filterMethod" :width="item.width" :key="item.key"
|
||||
:sortable="item.sortable">
|
||||
<el-table-column
|
||||
v-else
|
||||
:prop="item.key"
|
||||
:label="item.name"
|
||||
:filters="item.filters"
|
||||
:filter-method="item.filterMethod"
|
||||
:width="item.width"
|
||||
:key="item.key"
|
||||
:sortable="item.sortable"
|
||||
>
|
||||
</el-table-column>
|
||||
</template>
|
||||
<el-table-column label="操作" fixed="right" :width="tableActionWidth">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" v-if="isPlan" @click="showUpdateModel(scope.row,true)">查看</el-button>
|
||||
<el-button type="text" v-if="isPlan"
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan"
|
||||
@click="showUpdateModel(scope.row,true)"
|
||||
>查看</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan"
|
||||
:disabled="(scope.row.planType === 1 && scope.row.status===1) || (scope.row.planType === 2 && scope.row.state===1)"
|
||||
@click="showUpdateModel(scope.row)">修改</el-button>
|
||||
<el-button type="text" v-if="isPlan"
|
||||
@click="showUpdateModel(scope.row)"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan"
|
||||
:disabled="(scope.row.planType === 1 && scope.row.status===1) || (scope.row.planType === 2 && scope.row.state===1)"
|
||||
@click="deleteData([scope.row.id])">删除</el-button>
|
||||
<el-button type="text" v-if="isPlan && !scope.row.status"
|
||||
@click="deleteData([scope.row.id])"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan && !scope.row.status"
|
||||
:disabled="scope.row.planType===2 && scope.row.state===0"
|
||||
@click="openSendModel(scope.row)">下发</el-button>
|
||||
<el-button type="text" v-if="isPlan && scope.row.planType===2 && !scope.row.state"
|
||||
@click="changeState(scope.row)">启用</el-button>
|
||||
<el-button type="text" v-if="isPlan && scope.row.planType===2 && scope.row.state"
|
||||
@click="changeState(scope.row)">停用</el-button>
|
||||
<el-button type="text" v-if="isPlan && scope.row.planType===1"
|
||||
@click="openRecordModel(scope.row)">检查情况</el-button>
|
||||
<el-button type="text" v-if="isPlan && scope.row.planType===2 "
|
||||
@click="openRecordModel(scope.row)">最新检查情况</el-button>
|
||||
<el-button type="text" v-if="isAction && scope.row.status !==4&& (scope.row.status !==2 &&(nowDate > scope.row.taskStartTime ? true :
|
||||
false) ) && scope.row.tag===0 " @click="openRecordModel(scope.row)">检查</el-button>
|
||||
@click="openSendModel(scope.row)"
|
||||
>下发</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan && scope.row.planType===2 && !scope.row.state"
|
||||
@click="changeState(scope.row)"
|
||||
>启用</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan && scope.row.planType===2 && scope.row.state"
|
||||
@click="changeState(scope.row)"
|
||||
>停用</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan && scope.row.planType===1"
|
||||
@click="openRecordModel(scope.row)"
|
||||
>检查情况</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isPlan && scope.row.planType===2 "
|
||||
@click="openRecordModel(scope.row)"
|
||||
>最新检查情况</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="isAction && scope.row.status !==4&& (scope.row.status !==2 &&(nowDate > scope.row.taskStartTime ? true :
|
||||
false) ) && scope.row.tag===0 "
|
||||
@click="openRecordModel(scope.row)"
|
||||
>检查</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
</TableComponent>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 检查表记录 -->
|
||||
<el-dialog :close-on-click-modal="false" :title="isPlan?'检查表记录':'检查表'" :visible.sync="showRecord" width="1080px"
|
||||
:before-close="handleClose" destroy-on-close>
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
:title="isPlan?'检查表记录':'检查表'"
|
||||
:visible.sync="showRecord"
|
||||
width="1080px"
|
||||
:before-close="handleClose"
|
||||
destroy-on-close
|
||||
>
|
||||
<div class="full">
|
||||
<el-radio-group size="medium" v-model="currentTableId" @change="sendTabChange">
|
||||
<el-radio-button :label="item.id" v-for="item in tableTabs"
|
||||
:key="item.id">{{item.name}}</el-radio-button>
|
||||
<el-radio-group
|
||||
size="medium"
|
||||
v-model="currentTableId"
|
||||
@change="sendTabChange"
|
||||
>
|
||||
<el-radio-button
|
||||
:label="item.id"
|
||||
v-for="item in tableTabs"
|
||||
:key="item.id"
|
||||
>{{ item.name }}</el-radio-button
|
||||
>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
|
||||
<div class="full" style="margin: 20px 0;">
|
||||
<el-table :data="currentTable.tableItems" tooltip-effect="dark" border width="100%" height="250">
|
||||
<div class="full" style="margin: 20px 0">
|
||||
<el-table
|
||||
:data="currentTable.tableItems"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
width="100%"
|
||||
height="250"
|
||||
>
|
||||
<el-table-column label="序号" width="60">
|
||||
<div slot-scope="scope">{{scope.$index+1}}</div>
|
||||
<div slot-scope="scope">{{ scope.$index + 1 }}</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查项目" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">{{scope.row.itemName}}</div>
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">
|
||||
{{ scope.row.itemName }}
|
||||
</div>
|
||||
<el-input type="text" v-else v-model="scope.row.name"></el-input>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查内容" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">{{scope.row.itemContent}}</div>
|
||||
<el-input type="textarea" v-else v-model="scope.row.content"></el-input>
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">
|
||||
{{ scope.row.itemContent }}
|
||||
</div>
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-else
|
||||
v-model="scope.row.content"
|
||||
></el-input>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查依据" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">{{scope.row.itemReason}}</div>
|
||||
<el-input type="textarea" v-else v-model="scope.row.reason"></el-input>
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">
|
||||
{{ scope.row.itemReason }}
|
||||
</div>
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-else
|
||||
v-model="scope.row.reason"
|
||||
></el-input>
|
||||
</el-table-column>
|
||||
<el-table-column label="执行人">
|
||||
<div slot-scope="scope">{{scope.row.itemExecuteNames}}</div>
|
||||
<div slot-scope="scope">{{ scope.row.itemExecuteNames }}</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查人">
|
||||
<div slot-scope="scope">{{scope.row.inspectUserName?scope.row.inspectUserName :'--'}}</div>
|
||||
<div slot-scope="scope">
|
||||
{{ scope.row.inspectUserName ? scope.row.inspectUserName : "--" }}
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" width="160px">
|
||||
<div slot-scope="scope">
|
||||
<span
|
||||
v-if="hideActions || isPlan || (isAction && !scope.row.userIds.includes(account.userId)) || (scope.row.inspectUserName && scope.row.inspectUserName!=account.userId) "
|
||||
:class="'color_'+scope.row.itemResult">{{['异常','正常'][scope.row.itemResult]}}</span>
|
||||
:class="'color_'+scope.row.itemResult"
|
||||
>{{ ["异常", "正常"][scope.row.itemResult] }}</span
|
||||
>
|
||||
<el-radio-group v-else v-model="scope.row.itemResult">
|
||||
<el-radio :label="1">正常</el-radio>
|
||||
<el-radio :label="0">异常</el-radio>
|
||||
|
|
@ -106,111 +226,227 @@
|
|||
<el-table-column label="检查记录" width="280px">
|
||||
<div slot-scope="scope">
|
||||
<span
|
||||
v-if="hideActions || isPlan || (isAction && !scope.row.userIds.includes(account.userId))">{{scope.row.itemRecord}}</span>
|
||||
<el-input v-else type="textarea" v-model="scope.row.itemRecord"></el-input>
|
||||
v-if="hideActions || isPlan || (isAction && !scope.row.userIds.includes(account.userId))"
|
||||
>{{ scope.row.itemRecord }}</span
|
||||
>
|
||||
<el-input
|
||||
v-else
|
||||
type="textarea"
|
||||
v-model="scope.row.itemRecord"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="sub-title" v-if="!hideActions">隐患登记情况</div>
|
||||
<div class="full" style="margin-bottom: 20px;text-align: end;" v-if="isAction && !hideActions">
|
||||
<el-button type="primary" plain @click="showUpdateModel()" icon="el-icon-plus">添加</el-button>
|
||||
<el-button type="danger" plain @click="callback({value:'delete'})" icon="el-icon-delete">批量删除</el-button>
|
||||
<div
|
||||
class="full"
|
||||
style="margin-bottom: 20px; text-align: end"
|
||||
v-if="isAction && !hideActions"
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
@click="showUpdateModel()"
|
||||
icon="el-icon-plus"
|
||||
>添加</el-button
|
||||
>
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
@click="callback({value:'delete'})"
|
||||
icon="el-icon-delete"
|
||||
>批量删除</el-button
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="full" style="margin-bottom: 20px;" v-if="!hideActions">
|
||||
<el-table ref="multipleTable" @selection-change="handleSelectionChange" :data="troubleTableData" border
|
||||
tooltip-effect="dark" width="100%" height="250">
|
||||
<el-table-column v-if="isAction" type="selection" fixed="left" label="全选" width="60">
|
||||
|
||||
<div class="full" style="margin-bottom: 20px" v-if="!hideActions">
|
||||
<el-table
|
||||
ref="multipleTable"
|
||||
@selection-change="handleSelectionChange"
|
||||
:data="troubleTableData"
|
||||
border
|
||||
tooltip-effect="dark"
|
||||
width="100%"
|
||||
height="250"
|
||||
>
|
||||
<el-table-column
|
||||
v-if="isAction"
|
||||
type="selection"
|
||||
fixed="left"
|
||||
label="全选"
|
||||
width="60"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" width="60">
|
||||
<div slot-scope="scope">{{scope.$index+1}}</div>
|
||||
<div slot-scope="scope">{{ scope.$index + 1 }}</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="隐患类型" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope">{{$store.getters.prevention_dangrous_type_map[scope.row.classify]}}</div>
|
||||
<div slot-scope="scope">
|
||||
{{
|
||||
$store.getters.prevention_dangrous_type_map[scope.row.classify]
|
||||
}}
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="隐患等级" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope">{{levelMap[scope.row.level]}}</div>
|
||||
<div slot-scope="scope">{{ levelMap[scope.row.level] }}</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="整改方式" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope">{{reformModeMap[scope.row.reformMode]}}</div>
|
||||
<div slot-scope="scope">
|
||||
{{ reformModeMap[scope.row.reformMode] }}
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="隐患描述" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope" style="display: flex; align-items: center;">
|
||||
{{scope.row.description}}
|
||||
<div slot-scope="scope" style="display: flex; align-items: center">
|
||||
{{ scope.row.description }}
|
||||
<!-- <el-image style="width: 60px; margin-left: 10px;" :src="scope.row.urls[0]"
|
||||
:preview-src-list="scope.row.urls">
|
||||
</el-image> -->
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="隐患照片" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope" style="display: flex; align-items: center;">
|
||||
<el-image style="width: 60px; margin-left: 10px;" :src="scope.row.urls[0]"
|
||||
:preview-src-list="scope.row.urls">
|
||||
<div slot-scope="scope" style="display: flex; align-items: center">
|
||||
<el-image
|
||||
style="width: 60px; margin-left: 10px"
|
||||
:src="scope.row.urls[0]"
|
||||
:preview-src-list="scope.row.urls"
|
||||
>
|
||||
</el-image>
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="整改部门" :show-overflow-tooltip="true">
|
||||
<div slot-scope="scope">{{scope.row.reformDeptName}}</div>
|
||||
<div slot-scope="scope">{{ scope.row.reformDeptName }}</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="责任人">
|
||||
<div slot-scope="scope"> {{scope.row.reformUserName}}</div>
|
||||
<div slot-scope="scope">{{ scope.row.reformUserName }}</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" fixed="right" v-if="isAction">
|
||||
<div slot-scope="scope">
|
||||
<el-button type="text" @click="showUpdateModel(scope.row,true)">查看</el-button>
|
||||
<el-button type="text" @click="showUpdateModel(scope.row)">编辑</el-button>
|
||||
<el-button type="text" @click="showUpdateModel(scope.row,true)"
|
||||
>查看</el-button
|
||||
>
|
||||
<el-button type="text" @click="showUpdateModel(scope.row)"
|
||||
>编辑</el-button
|
||||
>
|
||||
</div>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="full" style="text-align: center;" v-if="isAction">
|
||||
<div class="full" style="text-align: center" v-if="isAction">
|
||||
<el-button @click="handleClose">取消</el-button>
|
||||
<el-button type="primary" @click="doCheck" v-if="!hideActions">保存并提交</el-button>
|
||||
<el-button type="primary" @click="doCheck" v-if="!hideActions"
|
||||
>保存并提交</el-button
|
||||
>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :close-on-click-modal="false" :title="isReadonly?'详情':!updateParams.id?'新增':'编辑'"
|
||||
:visible.sync="showUpdate" width="1050px" :before-close="handleClose" destroy-on-close>
|
||||
<FormComponent ref="form" :options="updateOptions" :isReadonly="isReadonly" labelWidth="140px"
|
||||
labelAlign="right" :data.sync="updateParams" @actionCallback="callback" :actions="updateActions"
|
||||
:full-btn="true" @change="change" btn-position="center"></FormComponent>
|
||||
<el-dialog
|
||||
:close-on-click-modal="false"
|
||||
:title="isReadonly?'详情':!updateParams.id?'新增':'编辑'"
|
||||
:visible.sync="showUpdate"
|
||||
width="1050px"
|
||||
:before-close="handleClose"
|
||||
destroy-on-close
|
||||
>
|
||||
<FormComponent
|
||||
ref="form"
|
||||
:options="updateOptions"
|
||||
:isReadonly="isReadonly"
|
||||
labelWidth="140px"
|
||||
labelAlign="right"
|
||||
:data.sync="updateParams"
|
||||
@actionCallback="callback"
|
||||
:actions="updateActions"
|
||||
:full-btn="true"
|
||||
@change="change"
|
||||
btn-position="center"
|
||||
></FormComponent>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 下发 -->
|
||||
<el-dialog v-if="isPlan" :close-on-click-modal="false" title="下发" :visible.sync="showSend" width="980px"
|
||||
:before-close="handleClose" destroy-on-close>
|
||||
<FormComponent :options="sendOptions" :data.sync="sendParams" @change="change" :fullBtn="true"
|
||||
btn-position="center" @actionCallback="sendCallback" :actions="updateActions">
|
||||
<div class="full" style="margin-bottom: 20px;">
|
||||
<el-radio-group size="medium" v-model="currentTableId" @change="sendTabChange">
|
||||
<el-radio-button :label="item.id" v-for="item in tableTabs"
|
||||
:key="item.id">{{item.name}}</el-radio-button>
|
||||
<el-dialog
|
||||
v-if="isPlan"
|
||||
:close-on-click-modal="false"
|
||||
title="下发"
|
||||
:visible.sync="showSend"
|
||||
width="980px"
|
||||
:before-close="handleClose"
|
||||
destroy-on-close
|
||||
>
|
||||
<FormComponent
|
||||
:options="sendOptions"
|
||||
:data.sync="sendParams"
|
||||
@change="change"
|
||||
:fullBtn="true"
|
||||
btn-position="center"
|
||||
@actionCallback="sendCallback"
|
||||
:actions="updateActions"
|
||||
>
|
||||
<div class="full" style="margin-bottom: 20px">
|
||||
<el-radio-group
|
||||
size="medium"
|
||||
v-model="currentTableId"
|
||||
@change="sendTabChange"
|
||||
>
|
||||
<el-radio-button
|
||||
:label="item.id"
|
||||
v-for="item in tableTabs"
|
||||
:key="item.id"
|
||||
>{{ item.name }}</el-radio-button
|
||||
>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<div class="full" style="margin-bottom: 20px;">
|
||||
<el-table :data="currentTable.tableItems" tooltip-effect="dark" border height="400px" width="100%">
|
||||
<div class="full" style="margin-bottom: 20px">
|
||||
<el-table
|
||||
:data="currentTable.tableItems"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
height="400px"
|
||||
width="100%"
|
||||
>
|
||||
<el-table-column label="序号" width="60">
|
||||
<div slot-scope="scope">{{scope.$index+1}}</div>
|
||||
<div slot-scope="scope">{{ scope.$index + 1 }}</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查项目">
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">{{scope.row.name}}</div>
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">
|
||||
{{ scope.row.name }}
|
||||
</div>
|
||||
<el-input type="text" v-else v-model="scope.row.name"></el-input>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查内容">
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">{{scope.row.content}}</div>
|
||||
<el-input type="textarea" v-else v-model="scope.row.content"></el-input>
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">
|
||||
{{ scope.row.content }}
|
||||
</div>
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-else
|
||||
v-model="scope.row.content"
|
||||
></el-input>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查依据">
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">{{scope.row.reason}}</div>
|
||||
<el-input type="textarea" v-else v-model="scope.row.reason"></el-input>
|
||||
<div slot-scope="scope" v-if="!scope.row.edit">
|
||||
{{ scope.row.reason }}
|
||||
</div>
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-else
|
||||
v-model="scope.row.reason"
|
||||
></el-input>
|
||||
</el-table-column>
|
||||
<el-table-column label="选择执行人">
|
||||
<div slot-scope="scope">
|
||||
<el-select v-model="scope.row.userList" multiple filterable placeholder="请选择">
|
||||
<el-option v-for="item in $store.state.userList" :key="item.value" :label="item.name"
|
||||
:value="item.value">
|
||||
<el-select
|
||||
v-model="scope.row.userList"
|
||||
multiple
|
||||
filterable
|
||||
placeholder="请选择"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in $store.state.prevention.userList"
|
||||
:key="item.value"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
|
|
@ -218,32 +454,50 @@
|
|||
|
||||
<el-table-column label="操作" fixed="right">
|
||||
<div slot-scope="scope">
|
||||
<el-button type="text" v-if="!scope.row.edit" @click="scope.row.edit = true">编辑</el-button>
|
||||
<el-button type="text" v-else @click="scope.row.edit = false">确定</el-button>
|
||||
<el-button type="text" @click="deleteSendData(scope.$index)">删除</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
v-if="!scope.row.edit"
|
||||
@click="scope.row.edit = true"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button type="text" v-else @click="scope.row.edit = false"
|
||||
>确定</el-button
|
||||
>
|
||||
<el-button type="text" @click="deleteSendData(scope.$index)"
|
||||
>删除</el-button
|
||||
>
|
||||
</div>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
</FormComponent>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog v-if="showMap" :close-on-click-modal="false" destroy-on-close title="地图定位" :visible.sync="showMap"
|
||||
width="980px" :before-close="handleClose" destroy-on-close>
|
||||
<el-dialog
|
||||
v-if="showMap"
|
||||
:close-on-click-modal="false"
|
||||
destroy-on-close
|
||||
title="地图定位"
|
||||
:visible.sync="showMap"
|
||||
width="980px"
|
||||
:before-close="handleClose"
|
||||
destroy-on-close
|
||||
>
|
||||
<MapComponent @onLoad="getMap"></MapComponent>
|
||||
<div class="full" style="margin-top: 20px; text-align: center;">
|
||||
<div class="full" style="margin-top: 20px; text-align: center">
|
||||
<el-button @click="handleClose">取消</el-button>
|
||||
<el-button type="primary" @click="onDragEnd">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
|
||||
<el-dialog v-if="showFile" :close-on-click-modal="false" title="查看图片" :visible.sync="showFile" destroy-on-close
|
||||
width="680px">
|
||||
<img :src="currentUrl" style="width: 100%;" alt="">
|
||||
<el-dialog
|
||||
v-if="showFile"
|
||||
:close-on-click-modal="false"
|
||||
title="查看图片"
|
||||
:visible.sync="showFile"
|
||||
destroy-on-close
|
||||
width="680px"
|
||||
>
|
||||
<img :src="currentUrl" style="width: 100%" alt="" />
|
||||
</el-dialog>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
@ -124,7 +124,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
name: '申请人',
|
||||
key: 'applicantId',
|
||||
type: 'select',
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
]
|
||||
|
||||
|
|
@ -205,7 +205,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
format: 'applicantName',
|
||||
require: true,
|
||||
width: 'calc(50% - 20px)',
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
|
|
@ -216,7 +216,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: 'calc(50% - 20px)',
|
||||
// expandLevel: Infinity,
|
||||
datas: this.$store.state.deptList,
|
||||
datas: this.$store.state.prevention.deptList,
|
||||
disable: true,
|
||||
},
|
||||
{
|
||||
|
|
@ -265,7 +265,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
format: 'approvalUserName',
|
||||
require: true,
|
||||
width: 'calc(50% - 20px)',
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
showError: false,
|
||||
},
|
||||
]
|
||||
|
|
@ -301,7 +301,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: 'calc(50% - 20px)',
|
||||
disable: true,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
showError: false,
|
||||
},
|
||||
{
|
||||
|
|
@ -894,7 +894,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
}
|
||||
|
||||
//处理任务
|
||||
public rowCallback(el, data, isJumpPage?,mode?) {
|
||||
public rowCallback(el, data, isJumpPage?, mode?) {
|
||||
if ((el && el.target.classList.contains('applicantName')) || isJumpPage) {
|
||||
this.tableService.getListDetail({ id: data.id }).then((res: any) => {
|
||||
if (res.code === 200) {
|
||||
|
|
@ -906,7 +906,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
if (data.status === 2) {
|
||||
this.operate = true
|
||||
this.isApplyReadonly = false
|
||||
this.isReadonly = mode !== null ? mode: true
|
||||
this.isReadonly = mode !== null ? mode : true
|
||||
|
||||
this.updateParams.approvalUserId = this.account.userId
|
||||
this.updateParams.approvalUserName = this.account.nickName
|
||||
|
|
@ -917,7 +917,7 @@ export default class IntegralExchange extends BaseRecordComponent<any> {
|
|||
if (data.status === 1) {
|
||||
this.operate = true
|
||||
this.isApplyReadonly = true
|
||||
this.isReadonly = mode !== null ? mode: false
|
||||
this.isReadonly = mode !== null ? mode : false
|
||||
this.updateParams.approvalResultName = this.updateParams.approvalResult === 1 ? '同意' : '不同意'
|
||||
this.buildApplyForm()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from './exchangeRecord.component.html'
|
||||
|
|
@ -81,13 +79,13 @@ export default class IntegralExchangeRecord extends BaseRecordComponent<any> {
|
|||
name: "申请人",
|
||||
key: "applicantId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "部门",
|
||||
key: "applicantDeptId",
|
||||
type: "treeSelect",
|
||||
expandLevel: Infinity,
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
width: "250px"
|
||||
}];
|
||||
|
||||
|
|
@ -173,7 +171,7 @@ export default class IntegralExchangeRecord extends BaseRecordComponent<any> {
|
|||
format: "approvalUserName",
|
||||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}
|
||||
]
|
||||
|
||||
|
|
@ -203,7 +201,7 @@ export default class IntegralExchangeRecord extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "审批时间",
|
||||
type: "date",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from './common.component.html'
|
||||
|
|
@ -114,7 +112,7 @@ export default class IntegralRule extends BaseRecordComponent<any> {
|
|||
showError: false,
|
||||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_integral_type
|
||||
datas: this.$store.state.prevention.prevention_integral_type
|
||||
},
|
||||
{
|
||||
name: "规则描述",
|
||||
|
|
@ -132,7 +130,7 @@ export default class IntegralRule extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_integral_eventtype
|
||||
datas: this.$store.state.prevention.prevention_integral_eventtype
|
||||
},
|
||||
{
|
||||
name: "分值",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from './checkTasks.component.html'
|
||||
|
|
@ -110,7 +109,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
name: "重大危险源",
|
||||
key: "majorHazard",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_source,
|
||||
datas: this.$store.state.prevention.prevention_risk_source,
|
||||
},];
|
||||
|
||||
public subActions = [{
|
||||
|
|
@ -157,7 +156,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -178,7 +177,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -199,7 +198,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -376,7 +375,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
this.updateParams = {} as any;
|
||||
this.isReadonly = false;
|
||||
this.fileList = [] as any;
|
||||
this.taskType = this.$store.state.prevention_task_type;
|
||||
this.taskType = this.$store.state.prevention.prevention_task_type;
|
||||
this.unitMap = this.$store.getters.prevention_cycle_unit_map;
|
||||
//数据初始化
|
||||
this.initData();
|
||||
|
|
@ -551,18 +550,18 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
|
||||
public showModal(row, isReadonly = false) {
|
||||
this.isReadonly = isReadonly
|
||||
if(isReadonly === false){
|
||||
if(row.syncFlag === 1){
|
||||
if (isReadonly === false) {
|
||||
if (row.syncFlag === 1) {
|
||||
this.majorhazardDutyTaskList(row.majorHazard)
|
||||
}
|
||||
}
|
||||
if (!this.taskTypeMap[row.type]) {
|
||||
this.initSelectList()
|
||||
}
|
||||
this.taskType = this.$store.state.prevention_task_type;
|
||||
this.taskType = this.$store.state.prevention.prevention_task_type;
|
||||
this.unitMap = this.$store.getters.prevention_cycle_unit_map;
|
||||
this.updateParams = row;
|
||||
this.majorHazard = this.$store.state.prevention_risk_source;
|
||||
this.majorHazard = this.$store.state.prevention.prevention_risk_source;
|
||||
this.updateParams.majorHazard = parseInt(this.updateParams.majorHazard);
|
||||
this.updateParams.majorHazardName = this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||
|
||||
|
|
@ -636,7 +635,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
}
|
||||
|
||||
public initSelectList() {
|
||||
this.$store.state.prevention_task_type.forEach((item, index) => {
|
||||
this.$store.state.prevention.prevention_task_type.forEach((item, index) => {
|
||||
if (index !== 0) {
|
||||
if (!this.taskTypeMap[index]) {
|
||||
this.taskTypeMap[index] = {}
|
||||
|
|
@ -651,7 +650,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped src="../../common.component.scss"></style>
|
||||
<style lang="scss" scoped >
|
||||
<style lang="scss" scoped>
|
||||
::v-deep {
|
||||
.duty-form {
|
||||
max-height: 780px;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from './majorHazard.component.html'
|
||||
|
|
@ -90,7 +89,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
name: "重大危险源",
|
||||
key: "majorHazard",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_source,
|
||||
datas: this.$store.state.prevention.prevention_risk_source,
|
||||
},];
|
||||
|
||||
public subActions = [{
|
||||
|
|
@ -146,7 +145,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "100%",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_risk_source,
|
||||
datas: this.$store.state.prevention.prevention_risk_source,
|
||||
},
|
||||
{
|
||||
name: "重大危险源等级",
|
||||
|
|
@ -165,7 +164,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
controls:false,
|
||||
controls: false,
|
||||
},
|
||||
{
|
||||
name: "主要负责人",
|
||||
|
|
@ -175,7 +174,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -196,7 +195,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -217,7 +216,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -564,7 +563,7 @@ export default class MajorHazard extends BaseRecordComponent<any> {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped src="../../common.component.scss"></style>
|
||||
<style lang="scss" scoped >
|
||||
<style lang="scss" scoped>
|
||||
::v-deep {
|
||||
.duty-form {
|
||||
max-height: 780px;
|
||||
|
|
|
|||
|
|
@ -98,12 +98,12 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
|||
name: "姓名",
|
||||
key: "userId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "岗位",
|
||||
type: "select",
|
||||
key: "postName",
|
||||
datas: this.$store.state.postList,
|
||||
datas: this.$store.state.prevention.postList,
|
||||
width: "270px",
|
||||
}, {
|
||||
name: "职务",
|
||||
|
|
@ -238,7 +238,7 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "实施部门",
|
||||
type: "treeSelect",
|
||||
|
|
@ -248,7 +248,7 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
expandLevel: Infinity,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
},];
|
||||
this.subUpdateActions = [{
|
||||
name: "取消",
|
||||
|
|
@ -372,7 +372,7 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
|||
//奖惩人
|
||||
public loadUserList(userId?) {
|
||||
this.tableService.getUserIds({}).then((res: any) => {
|
||||
let userList = this.$store.state.userList
|
||||
let userList = this.$store.state.prevention.userList
|
||||
if (!userId && userId !== 0) {
|
||||
let filterUserList = userList.filter(item => res.data.indexOf(item.value) == -1)
|
||||
this.userList = filterUserList
|
||||
|
|
@ -390,7 +390,7 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
|||
// 分页数据
|
||||
public getTableData() {
|
||||
if (this.params.postName) {
|
||||
this.params.postName = this.$store.state.postList.find((item: any) => item.value === this.params.postName)?.name ?? ""
|
||||
this.params.postName = this.$store.state.prevention.postList.find((item: any) => item.value === this.params.postName)?.name ?? ""
|
||||
}
|
||||
this.tableService.selectByPage(this.params).then(res => {
|
||||
this.tableData = res.data as any;
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ export default class SelfAssessment extends BaseRecordComponent<any> {
|
|||
name: "评审人",
|
||||
key: "reviewerId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}];
|
||||
|
||||
public subActions = [{
|
||||
|
|
@ -172,7 +172,7 @@ export default class SelfAssessment extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "评审时间",
|
||||
type: "date",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from "../areaUnit.component.html"
|
||||
|
|
@ -104,7 +103,7 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
|
||||
public selectData = [];
|
||||
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.buildFormOptions()
|
||||
}
|
||||
|
|
@ -148,7 +147,7 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "责任人",
|
||||
key: "chargeUserId",
|
||||
|
|
@ -157,7 +156,7 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "属于重大危险源",
|
||||
key: "majorHazardFlag",
|
||||
|
|
@ -167,7 +166,7 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
labelWidth: "auto",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.common_yes_no
|
||||
datas: this.$store.state.prevention.common_yes_no
|
||||
}, {
|
||||
name: "重大危险源名称",
|
||||
key: "majorHazardName",
|
||||
|
|
@ -253,13 +252,13 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
key: "chargeDeptId",
|
||||
type: "treeSelect",
|
||||
expandLevel: Infinity,
|
||||
width:"280px",
|
||||
datas: this.$store.state.deptTreeList
|
||||
width: "280px",
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "是否重大危险源",
|
||||
key: "majorHazardFlag",
|
||||
type: "select",
|
||||
datas: this.$store.state.common_yes_no
|
||||
datas: this.$store.state.prevention.common_yes_no
|
||||
}]
|
||||
}
|
||||
|
||||
|
|
@ -297,7 +296,7 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
name: '区域风险等级', key: "riskLevel", width: "150px", render: (data) => {
|
||||
return "<span class='color_level_" + data.riskLevel + "'>" + (data.riskLevel ? (this.$store.getters.prevention_risk_level_map[data.riskLevel]) : '待评估') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -365,7 +364,7 @@ export default class AreaManagerComponent extends BaseRecordComponent<any> {
|
|||
if (item && item.key === "majorHazardFlag") {
|
||||
this.updateOptions[5].hide = !data;
|
||||
this.updateOptions[6].hide = !data;
|
||||
if(!data){
|
||||
if (!data) {
|
||||
this.updateParams.majorHazardName = '';
|
||||
this.updateParams.majorHazardLevel = '';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from "./device.component.html"
|
||||
|
|
@ -107,7 +106,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
name: "设备类别",
|
||||
key: "type",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_device_type,
|
||||
datas: this.$store.state.prevention.prevention_device_type,
|
||||
clearable: true,
|
||||
},];
|
||||
|
||||
|
|
@ -141,7 +140,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
}, {
|
||||
name: "责任人",
|
||||
key: "chargeUserId",
|
||||
|
|
@ -150,7 +149,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "设备名称",
|
||||
key: "name",
|
||||
|
|
@ -166,7 +165,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_device_type
|
||||
datas: this.$store.state.prevention.prevention_device_type
|
||||
}, {
|
||||
name: "涉及岗位",
|
||||
key: "postCode",
|
||||
|
|
@ -177,7 +176,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
type: "select",
|
||||
width: "100%",
|
||||
clearable: true,
|
||||
datas: this.$store.state.postList
|
||||
datas: this.$store.state.prevention.postList
|
||||
}, {
|
||||
name: "安全因素",
|
||||
key: "safetyFactor",
|
||||
|
|
@ -188,7 +187,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
clearable: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_safe_reason
|
||||
datas: this.$store.state.prevention.prevention_safe_reason
|
||||
},
|
||||
{
|
||||
name: "辨识人",
|
||||
|
|
@ -198,7 +197,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "辨识时间",
|
||||
key: "identifyTime",
|
||||
|
|
@ -264,7 +263,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
|||
}];
|
||||
}
|
||||
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.loadAreaData()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from "./deviceAnal.component.html"
|
||||
|
|
@ -133,7 +132,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
name: "设备类别",
|
||||
key: "type",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_device_type,
|
||||
datas: this.$store.state.prevention.prevention_device_type,
|
||||
clearable: true,
|
||||
},];
|
||||
|
||||
|
|
@ -213,7 +212,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_device_type
|
||||
datas: this.$store.state.prevention.prevention_device_type
|
||||
}, {
|
||||
name: "涉及岗位",
|
||||
key: "postName",
|
||||
|
|
@ -229,7 +228,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
type: "select",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "评价时间",
|
||||
key: "evaluateTime",
|
||||
|
|
@ -250,7 +249,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
showError: false,
|
||||
disable: true,
|
||||
labelWidth: '140px',
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
}, {
|
||||
name: "是否为两重一大",
|
||||
key: "majorSign",
|
||||
|
|
@ -286,7 +285,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
format: "majorHazardName",
|
||||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
datas: this.$store.state.prevention_risk_source,
|
||||
datas: this.$store.state.prevention.prevention_risk_source,
|
||||
showError: false,
|
||||
|
||||
}, {
|
||||
|
|
@ -297,7 +296,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
datas: this.$store.state.prevention_risk_craft,
|
||||
datas: this.$store.state.prevention.prevention_risk_craft,
|
||||
showError: false,
|
||||
}, {
|
||||
name: "重点监管化学品",
|
||||
|
|
@ -308,7 +307,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
labelWidth: "130px",
|
||||
datas: this.$store.state.prevention_risk_chemical,
|
||||
datas: this.$store.state.prevention.prevention_risk_chemical,
|
||||
showError: false,
|
||||
}];
|
||||
|
||||
|
|
@ -331,7 +330,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level,
|
||||
datas: this.$store.state.prevention.prevention_risk_level,
|
||||
showError: false,
|
||||
}, {
|
||||
name: "残余风险等级",
|
||||
|
|
@ -341,7 +340,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
require: true,
|
||||
disable: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.prevention_risk_level,
|
||||
datas: this.$store.state.prevention.prevention_risk_level,
|
||||
showError: false,
|
||||
}]
|
||||
}
|
||||
|
|
@ -369,7 +368,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
}
|
||||
|
||||
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.loadAreaData()
|
||||
}
|
||||
|
|
@ -447,7 +446,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
name: '风险等级', key: "riskLevel", width: "150px", render: (data) => {
|
||||
return "<span class='color_level_" + data.riskLevel + "'>" + (data.riskLevel ? (this.$store.getters.prevention_risk_level_map[data.riskLevel]) : '') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -473,7 +472,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
|||
return "<span class='color_" + tmpstatus + "'>" + (data.status ? (this.$store.getters.prevention_evaluate_status_map[data.status]) : '') + "</span>"
|
||||
}
|
||||
},
|
||||
filters: this.$store.state.prevention_evaluate_status.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_evaluate_status.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from "./work.component.html"
|
||||
|
|
@ -155,8 +154,8 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
public showSteptable = false;
|
||||
|
||||
public subUpdateOptions: FormOption<BtnOption>[] = [];
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.userList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.userList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.loadAreaData()
|
||||
}
|
||||
|
|
@ -193,7 +192,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "责任人",
|
||||
key: "chargeUserId",
|
||||
|
|
@ -202,7 +201,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "作业名称",
|
||||
key: "name",
|
||||
|
|
@ -227,7 +226,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
clearable: true,
|
||||
datas: this.$store.state.postList
|
||||
datas: this.$store.state.prevention.postList
|
||||
}, {
|
||||
name: "安全因素",
|
||||
key: "safetyFactor",
|
||||
|
|
@ -238,7 +237,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_safe_reason
|
||||
datas: this.$store.state.prevention.prevention_safe_reason
|
||||
}, {
|
||||
name: "辨识人",
|
||||
key: "identifyUserId",
|
||||
|
|
@ -247,7 +246,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "辨识时间",
|
||||
key: "identifyTime",
|
||||
|
|
@ -301,7 +300,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "100%",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "作业人",
|
||||
key: "workerId",
|
||||
|
|
@ -309,7 +308,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "100%",
|
||||
require: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from "./workAnal.component.html"
|
||||
|
|
@ -233,7 +232,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
type: "select",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
}, {
|
||||
name: "评价时间",
|
||||
key: "evaluateTime",
|
||||
|
|
@ -254,7 +253,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
type: "select",
|
||||
showError: false,
|
||||
disable: true,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
}, {
|
||||
name: "是否为两重一大",
|
||||
key: "majorSign",
|
||||
|
|
@ -291,7 +290,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
// multiple: true,
|
||||
datas: this.$store.state.prevention_risk_source,
|
||||
datas: this.$store.state.prevention.prevention_risk_source,
|
||||
showError: false,
|
||||
|
||||
}, {
|
||||
|
|
@ -303,7 +302,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
// multiple: true,
|
||||
datas: this.$store.state.prevention_risk_craft,
|
||||
datas: this.$store.state.prevention.prevention_risk_craft,
|
||||
showError: false,
|
||||
}, {
|
||||
name: "重点监管化学品",
|
||||
|
|
@ -314,7 +313,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
// multiple: true,
|
||||
datas: this.$store.state.prevention_risk_chemical,
|
||||
datas: this.$store.state.prevention.prevention_risk_chemical,
|
||||
showError: false,
|
||||
}];
|
||||
|
||||
|
|
@ -338,7 +337,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
}, {
|
||||
name: "残余风险等级",
|
||||
key: "remainRiskLevel",
|
||||
|
|
@ -348,7 +347,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
disable: true,
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
}]
|
||||
}
|
||||
|
||||
|
|
@ -375,7 +374,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
}];
|
||||
}
|
||||
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.loadAreaData()
|
||||
}
|
||||
|
|
@ -449,7 +448,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
name: '风险等级', key: "riskLevel", width: "150px", render: (data) => {
|
||||
return "<span class='color_level_" + data.riskLevel + "'>" + (data.riskLevel ? (this.$store.getters.prevention_risk_level_map[data.riskLevel]) : '') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -475,7 +474,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
return "<span class='color_" + tmpstatus + "'>" + (data.status ? (this.$store.getters.prevention_evaluate_status_map[data.status]) : '') + "</span>"
|
||||
}
|
||||
},
|
||||
filters: this.$store.state.prevention_evaluate_status.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_evaluate_status.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -978,13 +977,13 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
|||
this.analyIsReadonly = true;
|
||||
//select 翻译
|
||||
this.analysisTransformParam(row);
|
||||
this.analysisUpdateParams = Object.assign({},this.analysisUpdateParams, row);
|
||||
this.analysisUpdateParams = Object.assign({}, this.analysisUpdateParams, row);
|
||||
//管控措施
|
||||
this.initAnalysisMeasure();
|
||||
} else {
|
||||
this.analyIsReadonly = false
|
||||
// 暂存数据 用于取消修改
|
||||
this.analysisUpdateParams = Object.assign({},this.analysisUpdateParams, row);
|
||||
this.analysisUpdateParams = Object.assign({}, this.analysisUpdateParams, row);
|
||||
//编辑 参数处理
|
||||
this.updateAnalysisParam(row);
|
||||
//管控措施
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./duty.component.html"
|
||||
|
|
@ -73,7 +72,7 @@ export default class DutyManagerComponent extends BaseRecordComponent<any> {
|
|||
name: "重大危险源",
|
||||
key: "majorHazard",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_source,
|
||||
datas: this.$store.state.prevention.prevention_risk_source,
|
||||
clearable: true,
|
||||
}, {
|
||||
name: "责任部门",
|
||||
|
|
@ -81,13 +80,13 @@ export default class DutyManagerComponent extends BaseRecordComponent<any> {
|
|||
type: "treeSelect",
|
||||
expandLevel: Infinity,
|
||||
width: "280px",
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
clearable: true,
|
||||
}, {
|
||||
name: "责任人",
|
||||
key: "taskChargeUserId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
clearable: true,
|
||||
}, {
|
||||
name: "状态",
|
||||
|
|
@ -216,7 +215,7 @@ export default class DutyManagerComponent extends BaseRecordComponent<any> {
|
|||
showError: false,
|
||||
require: true,
|
||||
hide: this.updateParams.result === 1 || this.updateParams.dangerFlag == 0,
|
||||
datas: this.$store.state.prevention_danger_type,
|
||||
datas: this.$store.state.prevention.prevention_danger_type,
|
||||
}, {
|
||||
name: "隐患归属人",
|
||||
key: "ownerId",
|
||||
|
|
@ -225,7 +224,7 @@ export default class DutyManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
showError: false,
|
||||
hide: this.updateParams.result === 1 || this.updateParams.dangerFlag == 0,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "IMEI码",
|
||||
|
|
@ -244,7 +243,7 @@ export default class DutyManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
showError: false,
|
||||
disable: true,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: " 排查时间",
|
||||
|
|
@ -341,7 +340,7 @@ export default class DutyManagerComponent extends BaseRecordComponent<any> {
|
|||
return "<span class='noDraw'>超期未排查</span>"
|
||||
}
|
||||
},
|
||||
filters: this.$store.state.prevention_task_status.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_task_status.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -441,7 +440,7 @@ export default class DutyManagerComponent extends BaseRecordComponent<any> {
|
|||
this.updateParams.resourceName = ''
|
||||
}
|
||||
|
||||
this.$store.state.userList.map((item) => {
|
||||
this.$store.state.prevention.userList.map((item) => {
|
||||
this.userListName[item.value] = item.name
|
||||
})
|
||||
this.updateParams.checkTime = moment().format('YYYY-MM-DD HH:mm:ss')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./dutyRecords.component.html"
|
||||
|
|
@ -52,7 +51,7 @@ export default class DutyRecordsManagerComponent extends BaseRecordComponent<any
|
|||
name: "反向选择",
|
||||
value: "reverse"
|
||||
}];
|
||||
public resultNameList = {1:'正常',2:'异常',3:'未巡检'};
|
||||
public resultNameList = { 1: '正常', 2: '异常', 3: '未巡检' };
|
||||
public formOptions: FormOption<BtnOption>[] = [{
|
||||
name: "排查结果",
|
||||
key: "result",
|
||||
|
|
@ -82,7 +81,7 @@ export default class DutyRecordsManagerComponent extends BaseRecordComponent<any
|
|||
name: "重大危险源",
|
||||
key: "majorHazard",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_source
|
||||
datas: this.$store.state.prevention.prevention_risk_source
|
||||
}];
|
||||
|
||||
public showUpdate = false;
|
||||
|
|
@ -236,7 +235,7 @@ export default class DutyRecordsManagerComponent extends BaseRecordComponent<any
|
|||
return "<span class='noDraw'>异常</span>"
|
||||
} else if (data.result == 1) {
|
||||
return "<span class='color_1'>正常</span>"
|
||||
}else if (data.result == 3) {
|
||||
} else if (data.result == 3) {
|
||||
return "<span class='color_3'>未巡检</span>"
|
||||
}
|
||||
}
|
||||
|
|
@ -408,7 +407,7 @@ export default class DutyRecordsManagerComponent extends BaseRecordComponent<any
|
|||
}
|
||||
this.updateParams = Object.assign({
|
||||
insuranceDutyFlagName: row.insuranceDutyFlag === 0 ? '否' : '是',
|
||||
resultName: this.resultNameList[ row.result ],
|
||||
resultName: this.resultNameList[row.result],
|
||||
dangerFlagName: row.dangerFlag === 0 ? '否' : row.dangerFlag === 1 ? '是' : null,
|
||||
dangerTypeName: this.$store.getters.prevention_danger_type_map[row.dangerType],
|
||||
checkUserName: this.$store.getters.user_map[row.checkUserId],
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./identify.component.html"
|
||||
|
|
@ -69,14 +68,14 @@ export default class IdentifyManagerComponent extends BaseRecordComponent<any> {
|
|||
type: "treeSelect",
|
||||
width: "280px",
|
||||
expandLevel: Infinity,
|
||||
datas: this.$store.state.deptTreeList,
|
||||
clearable:true
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
clearable: true
|
||||
}, {
|
||||
name: "风险等级",
|
||||
key: "riskLevel",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_level,
|
||||
clearable:true
|
||||
datas: this.$store.state.prevention.prevention_risk_level,
|
||||
clearable: true
|
||||
}];
|
||||
|
||||
public subActions = [{
|
||||
|
|
@ -132,7 +131,7 @@ export default class IdentifyManagerComponent extends BaseRecordComponent<any> {
|
|||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
clearable: true,
|
||||
datas: this.$store.state.prevention_serious_result,
|
||||
datas: this.$store.state.prevention.prevention_serious_result,
|
||||
},
|
||||
{
|
||||
name: "危害分析",
|
||||
|
|
@ -150,7 +149,7 @@ export default class IdentifyManagerComponent extends BaseRecordComponent<any> {
|
|||
multiple: true,
|
||||
width: "calc(50% - 20px)",
|
||||
clearable: true,
|
||||
datas: this.$store.state.prevention_security_identifier,
|
||||
datas: this.$store.state.prevention.prevention_security_identifier,
|
||||
},
|
||||
{
|
||||
name: "设置复评时间",
|
||||
|
|
@ -376,7 +375,7 @@ export default class IdentifyManagerComponent extends BaseRecordComponent<any> {
|
|||
name: '风险等级', key: "riskLevel", render: (data) => {
|
||||
return "<span class='color_level_" + data.riskLevel + "'>" + (data.riskLevel ? (this.$store.getters.prevention_risk_level_map[data.riskLevel]) : '') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "./measures.component.html"
|
||||
|
|
@ -84,7 +83,7 @@ export default class MeasuresManagerComponent extends BaseRecordComponent<any> {
|
|||
public selectData = [];
|
||||
|
||||
created() {
|
||||
this.$store.state.prevention_measures_sort.map((item) => {
|
||||
this.$store.state.prevention.prevention_measures_sort.map((item) => {
|
||||
this.measuresSelectData[item.value] = this.treeSelectData(item.children)
|
||||
})
|
||||
}
|
||||
|
|
@ -115,7 +114,7 @@ export default class MeasuresManagerComponent extends BaseRecordComponent<any> {
|
|||
name: '风险等级', key: "riskLevel", render: (data) => {
|
||||
return "<span class='color_level_" + data.riskLevel + "'>" + (data.riskLevel ? (this.$store.getters.prevention_risk_level_map[data.riskLevel]) : '') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from "./measuresReport.component.html"
|
||||
|
|
@ -33,9 +32,9 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
public params = {} as any;
|
||||
|
||||
public proParams = {
|
||||
pageSize:10,
|
||||
pageNum:1,
|
||||
controlId:null,
|
||||
pageSize: 10,
|
||||
pageNum: 1,
|
||||
controlId: null,
|
||||
} as any;
|
||||
|
||||
public treeData = [];
|
||||
|
|
@ -121,12 +120,12 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
name: "重大危险源",
|
||||
key: "majorHazard",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_source
|
||||
datas: this.$store.state.prevention.prevention_risk_source
|
||||
}, {
|
||||
name: "一级管控措施",
|
||||
key: "measureFirstType",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_measures_sort,
|
||||
datas: this.$store.state.prevention.prevention_measures_sort,
|
||||
clearable: true
|
||||
}, {
|
||||
name: "二级管控措施",
|
||||
|
|
@ -146,10 +145,10 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
}
|
||||
@Watch("tableColumn", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.$store.state.prevention_measures_sort.map((item) => {
|
||||
this.$store.state.prevention.prevention_measures_sort.map((item) => {
|
||||
this.measuresSelectData[item.value] = this.treeSelectData(item.children)
|
||||
})
|
||||
this.$store.state.prevention_task_type.map((item) => {
|
||||
this.$store.state.prevention.prevention_task_type.map((item) => {
|
||||
this.tasksSelectData[item.value] = this.treeSelectData(item.children)
|
||||
})
|
||||
}
|
||||
|
|
@ -216,7 +215,7 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
name: '风险等级', key: "itemRiskLevel", width: "100px", render: (data) => {
|
||||
return "<span class='color_level_" + data.itemRiskLevel + "'>" + (data.itemRiskLevel ? (this.$store.getters.prevention_risk_level_map[data.itemRiskLevel]) : '') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -259,7 +258,7 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
return this.$store.getters.prevention_task_type_map[data.taskType]
|
||||
}
|
||||
},
|
||||
filters: this.$store.state.prevention_task_type.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_task_type.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -272,7 +271,7 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
name: '包保任务对应项', key: "taskItem", width: "250px", render: (data) => {
|
||||
if (data.taskItem) {
|
||||
if (!this.tasksSelectData[data.taskType] || this.tasksSelectData[data.taskType].length === 0) {
|
||||
this.$store.state.prevention_task_type.map((item) => {
|
||||
this.$store.state.prevention.prevention_task_type.map((item) => {
|
||||
this.tasksSelectData[item.value] = this.treeSelectData(item.children)
|
||||
})
|
||||
}
|
||||
|
|
@ -315,7 +314,7 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
return "<span class='noDraw'>异常</span>"
|
||||
} else if (data.result == 1) {
|
||||
return "<span>正常</span>"
|
||||
}else{
|
||||
} else {
|
||||
return "<span class='color_3'>未巡检</span>"
|
||||
}
|
||||
}
|
||||
|
|
@ -501,7 +500,7 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
this.setExecutionRecordList()
|
||||
}
|
||||
//执行记录切换页
|
||||
public proCallback(data, type){
|
||||
public proCallback(data, type) {
|
||||
if (type) {
|
||||
if (type === 'pageSize' || type === 'pageNum') {
|
||||
this.proParams[type] = data;
|
||||
|
|
@ -511,7 +510,7 @@ export default class MeasuresReportManagerComponent extends BaseRecordComponent<
|
|||
}
|
||||
}
|
||||
//获取执行记录列表数据
|
||||
public setExecutionRecordList(){
|
||||
public setExecutionRecordList() {
|
||||
this.tableService.selectById(this.proParams).then((res: any) => {
|
||||
if (res.code === 200 && res.data && res.data.datas) {
|
||||
this.currentProTableData = res.data
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import template from "../areaUnit.component.html"
|
||||
|
|
@ -265,7 +264,7 @@ export default class UnitManagerComponent extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "责任人",
|
||||
key: "chargeUserId",
|
||||
|
|
@ -273,7 +272,7 @@ export default class UnitManagerComponent extends BaseRecordComponent<any> {
|
|||
type: "select",
|
||||
width: "calc(50% - 20px)",
|
||||
require: true,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
showError: false,
|
||||
}, {
|
||||
type: "btn",
|
||||
|
|
@ -340,7 +339,7 @@ export default class UnitManagerComponent extends BaseRecordComponent<any> {
|
|||
name: "责任部门",
|
||||
key: "chargeDeptId",
|
||||
type: "select",
|
||||
datas: this.$store.state.deptList
|
||||
datas: this.$store.state.prevention.deptList
|
||||
}]
|
||||
}
|
||||
|
||||
|
|
@ -375,7 +374,7 @@ export default class UnitManagerComponent extends BaseRecordComponent<any> {
|
|||
name: '单元风险等级', key: "riskLevel", width: "150px", render: (data) => {
|
||||
return "<span class='color_level_" + data.riskLevel + "'>" + (data.riskLevel ? (this.$store.getters.prevention_risk_level_map[data.riskLevel]) : '待评估') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "成立日期",
|
||||
|
|
@ -173,7 +173,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_enterprise_nature,
|
||||
datas: this.$store.state.prevention.prevention_enterprise_nature,
|
||||
},
|
||||
{
|
||||
name: "企业规模",
|
||||
|
|
@ -183,7 +183,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_enterprise_size,
|
||||
datas: this.$store.state.prevention.prevention_enterprise_size,
|
||||
},
|
||||
{
|
||||
name: "员工总数",
|
||||
|
|
@ -201,7 +201,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "监管行业大类",
|
||||
|
|
@ -211,7 +211,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_regulatory_category,
|
||||
datas: this.$store.state.prevention.prevention_regulatory_category,
|
||||
},
|
||||
{
|
||||
name: "监管小类",
|
||||
|
|
@ -221,7 +221,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_regulatory_subcategories,
|
||||
datas: this.$store.state.prevention.prevention_regulatory_subcategories,
|
||||
},
|
||||
{
|
||||
name: "行政区划",
|
||||
|
|
@ -261,7 +261,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_registration_status,
|
||||
datas: this.$store.state.prevention.prevention_registration_status,
|
||||
},
|
||||
{
|
||||
name: "核准日期",
|
||||
|
|
@ -289,7 +289,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -355,7 +355,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -373,7 +373,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "100%",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_safety_label,
|
||||
datas: this.$store.state.prevention.prevention_safety_label,
|
||||
},
|
||||
{
|
||||
name: "两重一大情况",
|
||||
|
|
@ -623,7 +623,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
this.showUpdate = false;
|
||||
this.updateParams = {
|
||||
majorHazard: [],
|
||||
majorSign:[],
|
||||
majorSign: [],
|
||||
} as any;
|
||||
return
|
||||
}
|
||||
|
|
@ -896,7 +896,7 @@ export default class BusinessInfo extends BaseRecordComponent<any> {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped src="../../common.component.scss"></style>
|
||||
<style lang="scss" >
|
||||
<style lang="scss">
|
||||
.el-tooltip__popper {
|
||||
max-width: 400px;
|
||||
letter-spacing: 2px;
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ export default class MaintenanceInfo extends BaseRecordComponent<any> {
|
|||
showError: false,
|
||||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "录入人",
|
||||
|
|
@ -207,7 +207,7 @@ export default class MaintenanceInfo extends BaseRecordComponent<any> {
|
|||
showError: false,
|
||||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "录入时间",
|
||||
|
|
@ -252,7 +252,7 @@ export default class MaintenanceInfo extends BaseRecordComponent<any> {
|
|||
type: "select",
|
||||
require: true,
|
||||
width: "100%",
|
||||
datas: this.$store.state.userList
|
||||
datas: this.$store.state.prevention.userList
|
||||
},]
|
||||
this.subUpdateActions = [{
|
||||
name: "取消",
|
||||
|
|
@ -419,7 +419,7 @@ export default class MaintenanceInfo extends BaseRecordComponent<any> {
|
|||
this.updateParams.teams.forEach((item, index) => {
|
||||
item.index = index + 1
|
||||
// let tmpRisks = [] as any;
|
||||
item.risks.forEach((items: any,index,oldArr) => {
|
||||
item.risks.forEach((items: any, index, oldArr) => {
|
||||
oldArr[index] = JSON.stringify({ riskName: items.riskName, riskLevel: items.riskLevel })
|
||||
})
|
||||
// item.risks = tmpRisks
|
||||
|
|
@ -518,7 +518,7 @@ export default class MaintenanceInfo extends BaseRecordComponent<any> {
|
|||
riskNumber = item.riskNumber + riskNumber;
|
||||
//处理风险点数据
|
||||
// let tmpRisks = [] as any;
|
||||
item.risks.forEach((element: any,index,oldArr) => {
|
||||
item.risks.forEach((element: any, index, oldArr) => {
|
||||
oldArr[index] = JSON.parse(element)
|
||||
});
|
||||
return item
|
||||
|
|
|
|||
|
|
@ -785,7 +785,7 @@ export default class RiskJudgment extends BaseRecordComponent<any> {
|
|||
name: "风险等级", key: "riskLevel", render: (data) => {
|
||||
return "<span class='color_level_" + data.riskLevel + "'>" + (data.riskLevel ? (this.$store.getters.prevention_risk_level_map[data.riskLevel]) : '') + "</span>"
|
||||
},
|
||||
filters: this.$store.state.prevention_risk_level.map(item => {
|
||||
filters: this.$store.state.prevention.prevention_risk_level.map(item => {
|
||||
return {
|
||||
text: item.name,
|
||||
value: item.value,
|
||||
|
|
@ -808,7 +808,7 @@ export default class RiskJudgment extends BaseRecordComponent<any> {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped src="../../common.component.scss"></style>
|
||||
<style lang="scss" scoped >
|
||||
<style lang="scss" scoped>
|
||||
.common-table-box {
|
||||
margin-top: 15px
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from './common.component.html'
|
||||
|
|
@ -161,7 +160,7 @@ export default class EmergencyCard extends BaseRecordComponent<any> {
|
|||
format: "postName",
|
||||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
datas: this.$store.state.postList,
|
||||
datas: this.$store.state.prevention.postList,
|
||||
showError: false,
|
||||
},
|
||||
{
|
||||
|
|
@ -230,7 +229,7 @@ export default class EmergencyCard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "联系方式",
|
||||
|
|
@ -319,7 +318,7 @@ export default class EmergencyCard extends BaseRecordComponent<any> {
|
|||
|
||||
|
||||
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.loadAreaData()
|
||||
}
|
||||
|
|
@ -624,7 +623,7 @@ export default class EmergencyCard extends BaseRecordComponent<any> {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped src="../common.component.scss"></style>
|
||||
<style lang="scss" scoped >
|
||||
<style lang="scss" scoped>
|
||||
::v-deep {
|
||||
.step-form {
|
||||
max-height: 780px;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from './common.component.html'
|
||||
|
|
@ -106,12 +105,12 @@ export default class RiskCard extends BaseRecordComponent<any> {
|
|||
name: "风险等级",
|
||||
key: "riskLevel",
|
||||
type: "select",
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
}, {
|
||||
name: "岗位名称",
|
||||
type: "select",
|
||||
key: "postCode",
|
||||
datas: this.$store.state.postList,
|
||||
datas: this.$store.state.prevention.postList,
|
||||
width: "270px",
|
||||
}];
|
||||
|
||||
|
|
@ -168,7 +167,7 @@ export default class RiskCard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.postList
|
||||
datas: this.$store.state.prevention.postList
|
||||
},
|
||||
{
|
||||
name: "危险有害因素",
|
||||
|
|
@ -195,7 +194,7 @@ export default class RiskCard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_risk_level
|
||||
datas: this.$store.state.prevention.prevention_risk_level
|
||||
},
|
||||
{
|
||||
name: "安全标志",
|
||||
|
|
@ -205,7 +204,7 @@ export default class RiskCard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_security_identifier,
|
||||
datas: this.$store.state.prevention.prevention_security_identifier,
|
||||
filterable: true,
|
||||
multiple: true,
|
||||
clearable: true,
|
||||
|
|
@ -265,7 +264,7 @@ export default class RiskCard extends BaseRecordComponent<any> {
|
|||
}];
|
||||
}
|
||||
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.loadAreaData()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from './common.component.html'
|
||||
|
|
@ -105,7 +104,7 @@ export default class SafeCard extends BaseRecordComponent<any> {
|
|||
name: "承诺人",
|
||||
key: "promiserId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}];
|
||||
|
||||
public subActions = [{
|
||||
|
|
@ -149,7 +148,7 @@ export default class SafeCard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.postList
|
||||
datas: this.$store.state.prevention.postList
|
||||
},
|
||||
{
|
||||
name: "承诺人",
|
||||
|
|
@ -159,7 +158,7 @@ export default class SafeCard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "上级领导",
|
||||
|
|
@ -169,7 +168,7 @@ export default class SafeCard extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "承诺人联系方式",
|
||||
|
|
@ -240,7 +239,7 @@ export default class SafeCard extends BaseRecordComponent<any> {
|
|||
}
|
||||
|
||||
|
||||
@Watch("$store.state.deptList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.loadAreaData()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
name: "负责人",
|
||||
key: "chargeUserId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "成立时间",
|
||||
key: "establishTime",
|
||||
|
|
@ -169,7 +169,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "单位名称",
|
||||
|
|
@ -180,7 +180,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
},
|
||||
{
|
||||
name: "审批人",
|
||||
|
|
@ -190,7 +190,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "相关附件",
|
||||
|
|
@ -241,7 +241,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "手机号码",
|
||||
type: "text",
|
||||
|
|
@ -262,7 +262,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "职务",
|
||||
type: "text",
|
||||
|
|
@ -323,7 +323,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
this.subTableColumn.push({ name: '姓名', key: "userName", });
|
||||
this.subTableColumn.push({ name: '单位', key: "deptName", });
|
||||
this.subTableColumn.push({ name: '职务', key: "duty", });
|
||||
this.subTableColumn.push({ name: '联系方式', key: "phone",width:"130px" });
|
||||
this.subTableColumn.push({ name: '联系方式', key: "phone", width: "130px" });
|
||||
this.subTableColumn.push({ name: '职责描述', key: "description", width: "250px", showTip: true, });
|
||||
}
|
||||
|
||||
|
|
@ -389,7 +389,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
}
|
||||
|
||||
public doSave(goOn?) {
|
||||
if(!this.updateParams.members.length){
|
||||
if (!this.updateParams.members.length) {
|
||||
this.$message.warning('请您添加至少一条成员信息!')
|
||||
return
|
||||
}
|
||||
|
|
@ -705,7 +705,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
}
|
||||
</script>
|
||||
<style lang="scss" scoped src="../common.component.scss"></style>
|
||||
<style lang="scss" >
|
||||
<style lang="scss">
|
||||
.el-tooltip__popper {
|
||||
max-width: 400px;
|
||||
letter-spacing: 2px;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from './common.component.html'
|
||||
|
|
@ -106,7 +105,7 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
|||
name: "适用部门",
|
||||
key: "suitDeptId",
|
||||
type: "treeSelect",
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
expandLevel: Infinity,
|
||||
width: "280px"
|
||||
}, {
|
||||
|
|
@ -163,7 +162,7 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
},
|
||||
{
|
||||
name: "发布时间",
|
||||
|
|
@ -182,7 +181,7 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "编制时间",
|
||||
|
|
@ -224,7 +223,7 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
expandLevel: Infinity,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
}, {
|
||||
name: "状态",
|
||||
type: "select",
|
||||
|
|
@ -263,7 +262,7 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
|||
//
|
||||
this.buildFormOptions();
|
||||
}
|
||||
@Watch("$store.state.deptTreeList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptTreeList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.buildFormOptions();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Watch } from 'vue-property-decorator';
|
||||
import template from './common.component.html'
|
||||
|
|
@ -111,7 +109,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
|||
key: "suitDeptId",
|
||||
type: "treeSelect",
|
||||
expandLevel: Infinity,
|
||||
datas: this.$store.state.deptTreeList,
|
||||
datas: this.$store.state.prevention.deptTreeList,
|
||||
width: "280px"
|
||||
}, {
|
||||
name: "适用年度",
|
||||
|
|
@ -184,7 +182,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
expandLevel: Infinity,
|
||||
showError: false,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
},
|
||||
{
|
||||
name: "发布部门",
|
||||
|
|
@ -195,7 +193,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
|||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
expandLevel: Infinity,
|
||||
datas: this.$store.state.deptTreeList
|
||||
datas: this.$store.state.prevention.deptTreeList
|
||||
},
|
||||
{
|
||||
name: "发布时间",
|
||||
|
|
@ -214,7 +212,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "编制时间",
|
||||
|
|
@ -268,7 +266,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
|||
this.getSuitListData();
|
||||
this.buildFormOptions();
|
||||
}
|
||||
@Watch("$store.state.deptTreeList", { immediate: true, deep: true })
|
||||
@Watch("$store.state.prevention.deptTreeList", { immediate: true, deep: true })
|
||||
onChanges() {
|
||||
this.buildFormOptions();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ export default class TrainRecords extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_training_methods
|
||||
datas: this.$store.state.prevention.prevention_training_methods
|
||||
},
|
||||
{
|
||||
name: "培训层级",
|
||||
|
|
@ -166,7 +166,7 @@ export default class TrainRecords extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.prevention_training_level
|
||||
datas: this.$store.state.prevention.prevention_training_level
|
||||
},
|
||||
{
|
||||
name: "培训时长/h",
|
||||
|
|
@ -197,7 +197,7 @@ export default class TrainRecords extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
},
|
||||
{
|
||||
name: "课程主题",
|
||||
|
|
@ -233,7 +233,7 @@ export default class TrainRecords extends BaseRecordComponent<any> {
|
|||
require: true,
|
||||
width: "calc(50% - 20px)",
|
||||
showError: false,
|
||||
datas: this.$store.state.userList,
|
||||
datas: this.$store.state.prevention.userList,
|
||||
}, {
|
||||
name: "工号",
|
||||
type: "text",
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ module.exports = defineConfig({
|
|||
name: "prevention",
|
||||
filename: "prevention.js",
|
||||
exposes: {
|
||||
"./store": "./src/store/index.ts", // 包保责任制
|
||||
"./store": "./src/store/prevention/index.ts", // 包保责任制
|
||||
"./preventionBlank": "./src/views/blank.component.vue", // 包保责任制
|
||||
"./majorHazard":
|
||||
"./src/views/responsibility/majorHazard/majorHazard.component.vue", // 包保责任制
|
||||
|
|
|
|||
Loading…
Reference in New Issue