forked from integrated_whb/integrated_whb_vue
从危化版同步隐患排查所有功能
parent
287ca601e4
commit
f2d72723ef
|
@ -16,7 +16,7 @@ export const MENU = [
|
||||||
{ title: "双重预防", model: MODEL["3"] },
|
{ title: "双重预防", model: MODEL["3"] },
|
||||||
{ title: "教育培训", model: MODEL["4"] },
|
{ title: "教育培训", model: MODEL["4"] },
|
||||||
{ title: "综合管理", model: MODEL["5"] },
|
{ title: "综合管理", model: MODEL["5"] },
|
||||||
{ title: "定位管理", model: MODEL["6"] },
|
// { title: "定位管理", model: MODEL["6"] },
|
||||||
];
|
];
|
||||||
// 安全生成及电子运单管理
|
// 安全生成及电子运单管理
|
||||||
export const PRACTITIONERMENU = [
|
export const PRACTITIONERMENU = [
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<div class="logo" />
|
<div class="logo" />
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<!-- <li>
|
||||||
<div class="title">BI</div>
|
<div class="title">BI</div>
|
||||||
</li>
|
</li>-->
|
||||||
<template v-for="(item, index) in MENU" :key="index">
|
<template v-for="(item, index) in MENU" :key="index">
|
||||||
<li
|
<li
|
||||||
:class="{ active: item.model === menuStore.getModel }"
|
:class="{ active: item.model === menuStore.getModel }"
|
||||||
|
|
|
@ -11,16 +11,16 @@ export const getLevels = (params) =>
|
||||||
});
|
});
|
||||||
// 获取数据字典
|
// 获取数据字典
|
||||||
export const getLevelsByObject = (params) =>
|
export const getLevelsByObject = (params) =>
|
||||||
post("/dictionaries/getDictList", {
|
post("/dictionaries/getDictList", {
|
||||||
loading: false,
|
loading: false,
|
||||||
...params,
|
...params,
|
||||||
});
|
});
|
||||||
// 获取数据字典
|
// 获取数据字典
|
||||||
export const getLevelCustom = (params) =>
|
export const getLevelCustom = (params) =>
|
||||||
post("/dictionaries/getLevelCustom", {
|
post("/dictionaries/getLevelCustom", {
|
||||||
loading: false,
|
loading: false,
|
||||||
...params,
|
...params,
|
||||||
});
|
});
|
||||||
// 获取数据字典
|
// 获取数据字典
|
||||||
export const getLevelsCorp = (params) =>
|
export const getLevelsCorp = (params) =>
|
||||||
post("/dictionariesCorp/getLevels", {
|
post("/dictionariesCorp/getLevels", {
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
<el-button native-type="reset" @click="fnResetPagination">
|
<el-button native-type="reset" @click="fnResetPagination">
|
||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- <el-button native-type="reset" @click="fnWindow"> BI </el-button>-->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -231,6 +232,11 @@ const reviewItem = async (row) => {
|
||||||
data.reviewDialog.form = row;
|
data.reviewDialog.form = row;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* const fnWindow = async () => {
|
||||||
|
window.open(
|
||||||
|
"http://60.10.47.50:9001/#/middlePage?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzd2QiOiJMZmtmcUAxMjM0NTYiLCJleHAiOjE3MTE2MjQ3NDQsInVzZXIiOiJsZnlqemhkcCIsInRhcmdldCI6Imh0dHA6Ly8xOTIuMTY4LjAuNjk6ODA4Mi8jL21pZGRsZVBhZ2UifQ.nkVxqT3lcNkNIW1jiJY71gyXazJWyfHgfClWnbaFz8I"
|
||||||
|
);
|
||||||
|
}; */
|
||||||
// 页面下拉选项字典获取
|
// 页面下拉选项字典获取
|
||||||
const fnGetLevels = async () => {
|
const fnGetLevels = async () => {
|
||||||
const { value: personnelTypeList } = await layoutFnGetPersonnelTypeTraffic({
|
const { value: personnelTypeList } = await layoutFnGetPersonnelTypeTraffic({
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="检查状态" prop="TYPE">
|
<el-form-item label="检查状态" prop="TYPE">
|
||||||
<el-select
|
<el-select
|
||||||
|
@ -36,7 +35,6 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label-width="10px">
|
<el-form-item label-width="10px">
|
||||||
<el-button type="primary" native-type="submit">搜索</el-button>
|
<el-button type="primary" native-type="submit">搜索</el-button>
|
||||||
|
|
|
@ -178,7 +178,7 @@
|
||||||
<el-form-item class="end">
|
<el-form-item class="end">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="data.SelectPersonDialogVisible = true"
|
@click="data.selectRiskDialogVisible = true"
|
||||||
>
|
>
|
||||||
选择其他存在风险
|
选择其他存在风险
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -219,9 +219,9 @@
|
||||||
@get-data="fnAddRiskSubmit"
|
@get-data="fnAddRiskSubmit"
|
||||||
/>
|
/>
|
||||||
<select-risk
|
<select-risk
|
||||||
v-model:visible="data.SelectPersonDialogVisible"
|
v-model:visible="data.selectRiskDialogVisible"
|
||||||
:list-data="data.listAll"
|
:list-data="data.listAll"
|
||||||
@submit="fnSelectPersonSubmit"
|
@submit="fnSelectRiskSubmit"
|
||||||
/>
|
/>
|
||||||
<add-inspection-route
|
<add-inspection-route
|
||||||
v-model:visible="data.inspectionRouteDialog.visible"
|
v-model:visible="data.inspectionRouteDialog.visible"
|
||||||
|
@ -252,6 +252,8 @@ import { debounce } from "throttle-debounce";
|
||||||
import useFormValidate from "@/assets/js/useFormValidate.js";
|
import useFormValidate from "@/assets/js/useFormValidate.js";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import AddRisk from "@/views/risk_control/ledger/components/add.vue";
|
import AddRisk from "@/views/risk_control/ledger/components/add.vue";
|
||||||
|
import SelectRisk from "./components/select_risk.vue";
|
||||||
|
import AddInspectionRoute from "./components/add_inspection_route.vue";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -302,7 +304,7 @@ const data = reactive({
|
||||||
list: [],
|
list: [],
|
||||||
listAll: [],
|
listAll: [],
|
||||||
searchForm: {},
|
searchForm: {},
|
||||||
SelectPersonDialogVisible: false,
|
selectRiskDialogVisible: false,
|
||||||
addOrEditDialog: {
|
addOrEditDialog: {
|
||||||
visible: false,
|
visible: false,
|
||||||
form: {
|
form: {
|
||||||
|
@ -398,7 +400,7 @@ const fnAddRiskSubmit = (item) => {
|
||||||
data.listAll.push(item);
|
data.listAll.push(item);
|
||||||
fnTableSelection();
|
fnTableSelection();
|
||||||
};
|
};
|
||||||
const fnSelectPersonSubmit = (listData) => {
|
const fnSelectRiskSubmit = (listData) => {
|
||||||
data.list.push(...listData);
|
data.list.push(...listData);
|
||||||
data.listAll.push(...listData);
|
data.listAll.push(...listData);
|
||||||
fnTableSelection();
|
fnTableSelection();
|
||||||
|
|
|
@ -57,6 +57,7 @@ import { useVModels } from "@vueuse/core";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
import { setInventoryManagementRoute } from "@/request/hazard_investigation.js";
|
import { setInventoryManagementRoute } from "@/request/hazard_investigation.js";
|
||||||
|
import { VueDraggable } from "vue-draggable-plus";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
visible: {
|
visible: {
|
||||||
|
|
Loading…
Reference in New Issue