From c806287a34b715e2b24e79e7f3e54131c79597cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=B6=E7=A6=8F?= <> Date: Fri, 22 Aug 2025 16:48:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bootstrap.ts | 38 +- .../analEvaluation.component copy.vue | 63 +- src/components/analEvaluation.component.vue | 22 +- .../companyFile/detail-big.component.vue | 262 +++---- .../companyFile/detail.component.vue | 362 +++++---- src/components/companyFile/left.component.vue | 15 +- .../companyFile/right.component.vue | 135 ++-- src/components/measure.component.vue | 24 +- src/global.d.ts | 14 +- src/store/index.ts | 471 +----------- src/store/prevention/index.ts | 446 +++++++++++ src/views/blank.component.vue | 2 +- .../estimate/checkResumption.component.vue | 3 +- .../publicityResumption.component.vue | 3 +- src/views/hiddenDanger/clap.component.vue | 27 +- src/views/hiddenDanger/files.component.vue | 29 +- src/views/hiddenDanger/manager.component.vue | 38 +- .../hiddenDanger/rules/rules.component.vue | 5 +- .../rules/rulesManager.component.vue | 12 +- .../hiddenDanger/safe/action.component.vue | 27 +- .../hiddenDanger/safe/plan.component.vue | 7 +- .../hiddenDanger/safe/safe.component.html | 724 ++++++++++++------ .../exchangeFlow/exchange.component.vue | 16 +- .../exchangeRecord.component.vue | 10 +- src/views/integral/rule.component.vue | 6 +- .../checkTasks/checkTasks.component.vue | 23 +- .../majorHazard/majorHazard.component.vue | 19 +- .../rewardsRecord/rewardsRecord.component.vue | 12 +- .../selfAssessment.component.vue | 8 +- src/views/risk/area/area.component.vue | 25 +- .../assessment/device/device.component.vue | 17 +- .../device/deviceAnal.component.vue | 25 +- .../risk/assessment/work/work.component.vue | 19 +- .../assessment/work/workAnal.component.vue | 25 +- src/views/risk/duty/duty.component.vue | 17 +- src/views/risk/duty/dutyRecords.component.vue | 9 +- .../risk/identify/identify.component.vue | 15 +- .../risk/measures/measures.component.vue | 7 +- .../measuresReport.component.vue | 27 +- src/views/risk/unit/unit.component.vue | 9 +- .../businessInfo/businessInfo.component.vue | 28 +- .../maintenanceInfo.component.vue | 18 +- .../riskJudgment/riskJudgment.component.vue | 4 +- .../threecards/emergencyCard.component.vue | 11 +- src/views/threecards/riskCard.component.vue | 13 +- src/views/threecards/safeCard.component.vue | 13 +- src/views/workprogress/leader.component.vue | 22 +- .../managementSystem.component.vue | 13 +- .../workprogress/programme.component.vue | 14 +- .../workprogress/trainRecords.component.vue | 8 +- vue.config.js | 2 +- 51 files changed, 1675 insertions(+), 1489 deletions(-) create mode 100644 src/store/prevention/index.ts diff --git a/src/bootstrap.ts b/src/bootstrap.ts index de84baf..0429bbe 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -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) => { - requireContext.keys().map(requireContext); -} -requireAll(svgs) +const svgs = require.context("./assets/icons/svg", false, /\.svg$/); +const requireAll = (requireContext: any) => { + requireContext.keys().map(requireContext); +}; +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"); diff --git a/src/components/analEvaluation.component copy.vue b/src/components/analEvaluation.component copy.vue index 9e7ac3d..2e1d551 100644 --- a/src/components/analEvaluation.component copy.vue +++ b/src/components/analEvaluation.component copy.vue @@ -1,8 +1,9 @@
残余风险评估
- + @@ -76,9 +80,11 @@ @current-change="handleCurrentChange" style="width: 100%" highlight-current-row> @@ -100,14 +106,17 @@ @current-change="handleCurrentChange" style="width: 100%" highlight-current-row> - + @@ -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[] = [{ @@ -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() @@ -1227,7 +1236,7 @@ export default class AnalEvaluationComponent extends Vue { } - + diff --git a/src/components/companyFile/detail.component.vue b/src/components/companyFile/detail.component.vue index 5a36a34..399043a 100644 --- a/src/components/companyFile/detail.component.vue +++ b/src/components/companyFile/detail.component.vue @@ -2,7 +2,7 @@
报警信息列表
-
@@ -10,121 +10,94 @@
-
-
- - - - - - - - - - - - - - - - - - - +
+
+ + + + + + + + + + + + + + + + + + + - -
- - -
- -
-
×
-
-
-
-
-
处置
- - - - - - - - - - - - - - - - - - - - - + +
+ + +
+ +
+
×
+
+
+
+
+
处置
+ + + + + + + + + + + + + + + + + + + + + - - - - - -
-
提交
-
{{isView?'关闭':'取消'}}
-
+ + + + + +
+
提交
+
{{ isView ? '关闭' : '取消' }}
-
+ +
- + - - - - - - - - - - - - -