更改eslint规则

pull/1/head
LiuJiaNan 2024-02-21 09:42:49 +08:00
parent 83dd3a57a9
commit e0450b2e11
313 changed files with 1184 additions and 1193 deletions

View File

@ -5,7 +5,7 @@ module.exports = {
node: true node: true
}, },
extends: [ extends: [
"plugin:vue/vue3-essential", "plugin:vue/vue3-recommended",
"standard", "standard",
"@vue/prettier", "@vue/prettier",
"eslint:recommended" "eslint:recommended"
@ -18,10 +18,23 @@ module.exports = {
rules: { rules: {
"no-console": "warn", "no-console": "warn",
"vue/multi-word-component-names": "off", "vue/multi-word-component-names": "off",
camelcase: "off", "vue/no-v-html": "off",
eqeqeq: "error", "vue/require-default-prop": "off",
"vue/eqeqeq": "error", "camelcase": "off",
"eqeqeq": "error",
"vue/no-template-shadow": "error",
"vue/attribute-hyphenation": "error", "vue/attribute-hyphenation": "error",
"vue/html-end-tags": "error",
"vue/eqeqeq": "error",
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/enforce-style-attribute": [
"error",
{ "allow": ["scoped", "module"] }
],
"vue/v-on-event-hyphenation": ["error", "always",{
"autofix": true,
}],
"vue/require-explicit-emits": "error",
"no-unused-vars": [ "no-unused-vars": [
"error", "error",
{ vars: "all", args: "after-used", ignoreRestSiblings: false } { vars: "all", args: "after-used", ignoreRestSiblings: false }

View File

@ -15,4 +15,4 @@
import zhCn from "element-plus/dist/locale/zh-cn.mjs"; import zhCn from "element-plus/dist/locale/zh-cn.mjs";
</script> </script>
<style lang="scss"></style> <style scoped lang="scss"></style>

View File

@ -4,6 +4,6 @@
<script setup> <script setup>
defineOptions({ defineOptions({
name: "children", name: "Children",
}); });
</script> </script>

View File

@ -1,8 +1,8 @@
<template> <template>
<layout-tree <layout-tree
:api="layoutFnGetDepartmentTree"
v-model:refresh="refresh"
:id="departmentId" :id="departmentId"
v-model:refresh="refresh"
:api="layoutFnGetDepartmentTree"
@throw-data="emits('throw-data', $event)" @throw-data="emits('throw-data', $event)"
@node-click="emits('node-click', $event)" @node-click="emits('node-click', $event)"
/> />

View File

@ -1,8 +1,8 @@
<template> <template>
<layout-cascader <layout-cascader
id="688d2cf1c6cd4dab999a0106e09aec83" id="688d2cf1c6cd4dab999a0106e09aec83"
v-model="modelValue"
ref="cascaderRef" ref="cascaderRef"
v-model="modelValue"
:check-strictly="false" :check-strictly="false"
:show-all-levels="false" :show-all-levels="false"
/> />

View File

@ -1,10 +1,10 @@
<template> <template>
<div> <div>
<Toolbar :editor="editorRef" :default-config="toolbarConfig" /> <toolbar :editor="editorRef" :default-config="toolbarConfig" />
<Editor <editor
:style="{ height, 'overflow-y': 'hidden' }"
v-model="modelValue" v-model="modelValue"
@onCreated="fnEditorCreated" :style="{ height, 'overflow-y': 'hidden' }"
@on-created="fnEditorCreated"
/> />
</div> </div>
</template> </template>

View File

@ -29,20 +29,20 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column property="layName" label="所属图层" width="150" /> <el-table-column property="layName" label="所属图层" width="150" />
<el-table-column property="regName" label="名称" /> <el-table-column property="regName" label="名称" />
<el-table-column label="操作" width="200"> <el-table-column label="操作" width="200">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button type="primary" text link @click="handleJoin(row)" <el-button type="primary" text link @click="handleJoin(row)"
>绑定</el-button >绑定</el-button
> >

View File

@ -1,8 +1,8 @@
<template> <template>
<layout-tree <layout-tree
:api="layoutFnGetElectronicFenceTree"
v-model:refresh="refresh"
:id="electronicFenceAreaId" :id="electronicFenceAreaId"
v-model:refresh="refresh"
:api="layoutFnGetElectronicFenceTree"
@throw-data="emits('throw-data', $event)" @throw-data="emits('throw-data', $event)"
@node-click="emits('node-click', $event)" @node-click="emits('node-click', $event)"
/> />

View File

@ -7,7 +7,7 @@
> >
<el-form ref="formRef" :model="form" :rules="rules" label-width="100px"> <el-form ref="formRef" :model="form" :rules="rules" label-width="100px">
<el-row> <el-row>
<el-col :span="24" v-if="hiddenType === 'unqualified'"> <el-col v-if="hiddenType === 'unqualified'" :span="24">
<el-form-item label="检查内容" prop="CHECK_CONTENT"> <el-form-item label="检查内容" prop="CHECK_CONTENT">
<el-input <el-input
:model-value="info.CHECK_CONTENT" :model-value="info.CHECK_CONTENT"
@ -55,7 +55,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="info.BAO_BAO_TYPE === '1'"> <el-col v-if="info.BAO_BAO_TYPE === '1'" :span="24">
<el-form-item label="隐患类别" prop="HIDDEN_CATEGORY"> <el-form-item label="隐患类别" prop="HIDDEN_CATEGORY">
<el-select v-model="form.HIDDEN_CATEGORY"> <el-select v-model="form.HIDDEN_CATEGORY">
<el-option <el-option
@ -70,8 +70,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="隐患类型" prop="HIDDENTYPE"> <el-form-item label="隐患类型" prop="HIDDENTYPE">
<layout-hidden-danger-type <layout-hidden-danger-type
v-model="form.HIDDENTYPE"
ref="hiddenDangerTypeRef" ref="hiddenDangerTypeRef"
v-model="form.HIDDENTYPE"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -170,8 +170,8 @@
</el-form> </el-form>
</el-col> </el-col>
<el-col <el-col
:span="12"
v-if="hiddenType === 'unqualified' || hiddenType === 'otherHidden'" v-if="hiddenType === 'unqualified' || hiddenType === 'otherHidden'"
:span="12"
> >
<div <div
v-for="item in data.list" v-for="item in data.list"

View File

@ -79,19 +79,19 @@
<span v-else-if="data.info.RECTIFICATIONTYPE === '2'"> 限期整改 </span> <span v-else-if="data.info.RECTIFICATIONTYPE === '2'"> 限期整改 </span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="整改期限"
v-if="data.info.RECTIFICATIONTYPE === '2'" v-if="data.info.RECTIFICATIONTYPE === '2'"
label="整改期限"
> >
{{ data.info.RECTIFICATIONDEADLINE }} {{ data.info.RECTIFICATIONDEADLINE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="隐患类别" v-if="data.info.HIDDEN_CATEGORY"> <el-descriptions-item v-if="data.info.HIDDEN_CATEGORY" label="隐患类别">
{{ data.info.HIDDEN_CATEGORY_NAME }} {{ data.info.HIDDEN_CATEGORY_NAME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="隐患图片"> <el-descriptions-item label="隐患图片">
<img <img
v-viewer
v-for="item in data.hImgs" v-for="item in data.hImgs"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
v-viewer
:src="VITE_FILE_URL + item.FILEPATH" :src="VITE_FILE_URL + item.FILEPATH"
alt="" alt=""
width="100" width="100"
@ -100,15 +100,15 @@
/> />
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="隐患视频"
v-if="data.videoDialog.src" v-if="data.videoDialog.src"
label="隐患视频"
class-name="print_no_use" class-name="print_no_use"
label-class-name="print_no_use" label-class-name="print_no_use"
> >
<el-icon <el-icon
size="30px" size="30px"
@click="data.videoDialog.visible = true"
style="cursor: pointer" style="cursor: pointer"
@click="data.videoDialog.visible = true"
> >
<video-play /> <video-play />
</el-icon> </el-icon>
@ -135,9 +135,9 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="整改后图片"> <el-descriptions-item label="整改后图片">
<img <img
v-viewer
v-for="item in data.rImgs" v-for="item in data.rImgs"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
v-viewer
:src="VITE_FILE_URL + item.FILEPATH" :src="VITE_FILE_URL + item.FILEPATH"
alt="" alt=""
width="100" width="100"
@ -150,13 +150,13 @@
{{ data.info.HAVEPLAN === "1" ? "有" : "" }} {{ data.info.HAVEPLAN === "1" ? "有" : "" }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="计划图片"
v-if="data.info.HAVEPLAN === '1'" v-if="data.info.HAVEPLAN === '1'"
label="计划图片"
> >
<img <img
v-viewer
v-for="item in data.pImgs" v-for="item in data.pImgs"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
v-viewer
:src="VITE_FILE_URL + item.FILEPATH" :src="VITE_FILE_URL + item.FILEPATH"
alt="" alt=""
width="100" width="100"
@ -165,8 +165,8 @@
/> />
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="整改方案"
v-if="data.info.RECTIFICATIONTYPE === '2'" v-if="data.info.RECTIFICATIONTYPE === '2'"
label="整改方案"
> >
{{ data.info.HAVESCHEME === "0" ? "无" : "" }} {{ data.info.HAVESCHEME === "0" ? "无" : "" }}
{{ data.info.HAVESCHEME === "1" ? "有" : "" }} {{ data.info.HAVESCHEME === "1" ? "有" : "" }}
@ -204,9 +204,9 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="方案图片"> <el-descriptions-item label="方案图片">
<img <img
v-viewer
v-for="item in data.sImgs" v-for="item in data.sImgs"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
v-viewer
:src="VITE_FILE_URL + item.FILEPATH" :src="VITE_FILE_URL + item.FILEPATH"
alt="" alt=""
width="100" width="100"
@ -239,9 +239,9 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="验收图片"> <el-descriptions-item label="验收图片">
<img <img
v-viewer
v-for="item1 in item.cImgs" v-for="item1 in item.cImgs"
:key="item1.IMGFILES_ID" :key="item1.IMGFILES_ID"
v-viewer
:src="VITE_FILE_URL + item1.FILEPATH" :src="VITE_FILE_URL + item1.FILEPATH"
alt="" alt=""
width="100" width="100"

View File

@ -1,8 +1,8 @@
<template> <template>
<layout-cascader <layout-cascader
id="f2598ba72e864eadabf0ca4b664d26b9" id="f2598ba72e864eadabf0ca4b664d26b9"
v-model="modelValue"
ref="cascaderRef" ref="cascaderRef"
v-model="modelValue"
:check-strictly="false" :check-strictly="false"
:show-all-levels="false" :show-all-levels="false"
/> />

View File

@ -1,38 +1,38 @@
<template> <template>
<div style="display: inline-block"> <div style="display: inline-block">
<el-button <el-button
v-if="interceptTheSuffix(filePath, '.txt')"
link link
type="primary" type="primary"
v-if="interceptTheSuffix(filePath, '.txt')"
@click="fnPreviewTxt(filePath)" @click="fnPreviewTxt(filePath)"
> >
[预览] [预览]
</el-button> </el-button>
<el-button <el-button
v-if="interceptTheSuffix(filePath, '.pdf')"
text text
link link
type="primary" type="primary"
v-if="interceptTheSuffix(filePath, '.pdf')"
@click="fnPreviewPdf(filePath)" @click="fnPreviewPdf(filePath)"
> >
[预览] [预览]
</el-button> </el-button>
<el-button <el-button
v-if="interceptTheSuffix(filePath, '.mp4')"
link link
type="primary" type="primary"
v-if="interceptTheSuffix(filePath, '.mp4')"
@click="fnPreviewVideo(filePath)" @click="fnPreviewVideo(filePath)"
> >
[预览] [预览]
</el-button> </el-button>
<el-button <el-button
link
type="primary"
v-if=" v-if="
interceptTheSuffix(filePath, '.jpg') || interceptTheSuffix(filePath, '.jpg') ||
interceptTheSuffix(filePath, '.png') || interceptTheSuffix(filePath, '.png') ||
interceptTheSuffix(filePath, '.jpeg') interceptTheSuffix(filePath, '.jpeg')
" "
link
type="primary"
@click="fnPreviewImage(filePath)" @click="fnPreviewImage(filePath)"
> >
[预览] [预览]
@ -56,18 +56,18 @@
[预览] [预览]
</a> </a>
<layout-pdf <layout-pdf
:src="data.pdfDialog.src"
v-model:visible="data.pdfDialog.visible" v-model:visible="data.pdfDialog.visible"
:src="data.pdfDialog.src"
append-to-body append-to-body
/> />
<layout-txt <layout-txt
:src="data.txtDialog.src"
v-model:visible="data.txtDialog.visible" v-model:visible="data.txtDialog.visible"
:src="data.txtDialog.src"
append-to-body append-to-body
/> />
<layout-video <layout-video
:src="data.videoDialog.src"
v-model:visible="data.videoDialog.visible" v-model:visible="data.videoDialog.visible"
:src="data.videoDialog.src"
append-to-body append-to-body
/> />
<el-dialog v-model="data.imageDialog.visible" title="图片" append-to-body> <el-dialog v-model="data.imageDialog.visible" title="图片" append-to-body>

View File

@ -2,8 +2,8 @@
<el-dialog <el-dialog
title="文档" title="文档"
:model-value="visible && model === 'dialog'" :model-value="visible && model === 'dialog'"
@update:model-value="visible = false"
:append-to-body="appendToBody" :append-to-body="appendToBody"
@update:model-value="visible = false"
> >
<div v-if="visible" style="height: 690px; overflow-y: auto"> <div v-if="visible" style="height: 690px; overflow-y: auto">
<vue-pdf <vue-pdf

View File

@ -1,20 +1,20 @@
<template> <template>
<layout-card> <layout-card>
<div v-for="item in 2" :key="item" :id="item === 2 ? 'printContent' : ''"> <div v-for="item in 2" :id="item === 2 ? 'printContent' : ''" :key="item">
<slot></slot> <slot></slot>
</div> </div>
<div class="tc mt-10" v-if="print"> <div v-if="print" class="tc mt-10">
<el-button <el-button
type="primary"
v-print="printObj"
v-show="false" v-show="false"
ref="buttonRef" ref="buttonRef"
v-print="printObj"
type="primary"
> >
打印 打印
</el-button> </el-button>
<el-button type="primary" @click="fnPrint"></el-button> <el-button type="primary" @click="fnPrint"></el-button>
</div> </div>
<div v-html="PRINT_STYLE" v-if="direction === 'horizontal'" /> <div v-if="direction === 'horizontal'" v-html="PRINT_STYLE" />
</layout-card> </layout-card>
</template> </template>

View File

@ -1,12 +1,12 @@
<template> <template>
<el-form ref="formRef" :rules="defineRules" :model="form" label-width="240px"> <el-form ref="formRef" :rules="defineRules" :model="form" label-width="240px">
<el-row> <el-row>
<el-col :span="24" v-if="!infoIsEmpty"> <el-col v-if="!infoIsEmpty" :span="24">
<el-form-item label="管控部门" prop="DEPTNAME"> <el-form-item label="管控部门" prop="DEPTNAME">
<el-input :model-value="info.DEPTNAME" disabled /> <el-input :model-value="info.DEPTNAME" disabled />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="infoIsEmpty"> <el-col v-if="infoIsEmpty" :span="24">
<el-form-item label="管控部门" prop="DEPARTMENT_ID"> <el-form-item label="管控部门" prop="DEPARTMENT_ID">
<layout-department <layout-department
v-model="form.DEPARTMENT_ID" v-model="form.DEPARTMENT_ID"

View File

@ -3,7 +3,7 @@
<div> <div>
<el-button type="primary" @click="fnOpen"></el-button> <el-button type="primary" @click="fnOpen"></el-button>
</div> </div>
<div style="border: 1px dashed #ccc" class="mt-10" v-if="modelValue"> <div v-if="modelValue" style="border: 1px dashed #ccc" class="mt-10">
<img :src="modelValue" alt="" style="width: 100%" /> <img :src="modelValue" alt="" style="width: 100%" />
</div> </div>
</div> </div>

View File

@ -1,8 +1,8 @@
<template> <template>
<layout-cascader <layout-cascader
id="e725d2a91b8248f4b8f49889038df7de" id="e725d2a91b8248f4b8f49889038df7de"
v-model="modelValue"
ref="cascaderRef" ref="cascaderRef"
v-model="modelValue"
:check-strictly="checkStrictly" :check-strictly="checkStrictly"
:level="level" :level="level"
value="BIANMA" value="BIANMA"

View File

@ -3,9 +3,9 @@
<template #content> <template #content>
<template v-if="imgs.length > 0"> <template v-if="imgs.length > 0">
<img <img
v-viewer
v-for="item in imgs" v-for="item in imgs"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
v-viewer
:src=" :src="
item.FILEPATH ? VITE_FILE_URL + item.FILEPATH : VITE_FILE_URL + item item.FILEPATH ? VITE_FILE_URL + item.FILEPATH : VITE_FILE_URL + item
" "

View File

@ -1,5 +1,6 @@
<template> <template>
<el-cascader <el-cascader
v-model="modelValue"
:options="options" :options="options"
:props="{ :props="{
multiple: true, multiple: true,
@ -7,7 +8,6 @@
children: 'nodes', children: 'nodes',
label: 'name', label: 'name',
}" }"
v-model="modelValue"
/> />
</template> </template>

View File

@ -14,8 +14,8 @@
accordion accordion
:data="treeData" :data="treeData"
:filter-node-method="fnFilterNode" :filter-node-method="fnFilterNode"
@node-click="nodeClick"
:default-expanded-keys="[id]" :default-expanded-keys="[id]"
@node-click="nodeClick"
/> />
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<el-dialog title="文本文档" v-model="visible" :append-to-body="appendToBody"> <el-dialog v-model="visible" title="文本文档" :append-to-body="appendToBody">
<el-input autosize :model-value="value" readonly type="textarea" /> <el-input autosize :model-value="value" readonly type="textarea" />
</el-dialog> </el-dialog>
</template> </template>

View File

@ -1,7 +1,7 @@
<template> <template>
<el-upload <el-upload
style="width: 100%"
ref="uploadRef" ref="uploadRef"
style="width: 100%"
:file-list="fileList" :file-list="fileList"
:action="action" :action="action"
multiple multiple

View File

@ -3,8 +3,8 @@
<div class="mi-captcha-content"> <div class="mi-captcha-content">
<!-- 没有进行验证--> <!-- 没有进行验证-->
<div <div
class="mi-captcha-radar"
v-if="!verificationPass" v-if="!verificationPass"
class="mi-captcha-radar"
@click="verificationShow = true" @click="verificationShow = true"
> >
<div class="mi-captcha-radar-ready"> <div class="mi-captcha-radar-ready">
@ -15,8 +15,8 @@
</div> </div>
<!-- 验证通过--> <!-- 验证通过-->
<div <div
class="mi-captcha-radar mi-captcha-radar-pass"
v-if="verificationPass" v-if="verificationPass"
class="mi-captcha-radar mi-captcha-radar-pass"
> >
<div class="mi-captcha-radar-success mi-captcha-radar-success-icon"> <div class="mi-captcha-radar-success mi-captcha-radar-success-icon">
<span role="img" aria-label="verified"> <span role="img" aria-label="verified">

View File

@ -1,10 +1,10 @@
<template> <template>
<el-dialog title="视频" v-model="visible" :append-to-body="appendToBody"> <el-dialog v-model="visible" title="视频" :append-to-body="appendToBody">
<ali-player <ali-player
ref="playerRef"
:source="fnSrc(src)" :source="fnSrc(src)"
:vid="vid" :vid="vid"
:play-auth="playAuth" :play-auth="playAuth"
ref="playerRef"
:visible="visible" :visible="visible"
/> />
</el-dialog> </el-dialog>

View File

@ -5,7 +5,7 @@
width="600px" width="600px"
:before-close="fnClose" :before-close="fnClose"
> >
<el-form :model="form" :rules="rules" label-width="100px" ref="formRef"> <el-form ref="formRef" :model="form" :rules="rules" label-width="100px">
<el-form-item label="头像" prop="file"> <el-form-item label="头像" prop="file">
<layout-upload <layout-upload
v-model:file-list="form.file" v-model:file-list="form.file"

View File

@ -5,7 +5,7 @@
width="600px" width="600px"
:before-close="fnClose" :before-close="fnClose"
> >
<el-form :model="form" :rules="rules" label-width="100px" ref="formRef"> <el-form ref="formRef" :model="form" :rules="rules" label-width="100px">
<el-form-item label="用户名" prop="USERNAME"> <el-form-item label="用户名" prop="USERNAME">
<el-input <el-input
v-model="form.USERNAME" v-model="form.USERNAME"
@ -31,8 +31,8 @@
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="BZ"> <el-form-item label="备注" prop="BZ">
<el-input <el-input
:rows="3"
v-model="form.BZ" v-model="form.BZ"
:rows="3"
type="textarea" type="textarea"
placeholder="这里输入备注..." placeholder="这里输入备注..."
/> />

View File

@ -9,8 +9,8 @@
</li> </li>
<template v-for="(item, index) in MENU" :key="index"> <template v-for="(item, index) in MENU" :key="index">
<li <li
@click="switchMenu(item.model)"
:class="{ active: item.model === menuStore.getModel }" :class="{ active: item.model === menuStore.getModel }"
@click="switchMenu(item.model)"
> >
<div class="title">{{ item.title }}</div> <div class="title">{{ item.title }}</div>
</li> </li>

View File

@ -40,7 +40,7 @@ import { useMenuStore } from "@/pinia/menu";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
defineOptions({ defineOptions({
name: "layout", name: "Layout",
}); });
const menuStore = useMenuStore(); const menuStore = useMenuStore();
const route = useRoute(); const route = useRoute();

View File

@ -7,8 +7,8 @@
:route="{ path: menu.path }" :route="{ path: menu.path }"
> >
<component <component
v-if="menu.meta?.icon"
:is="'icon-' + menu.meta.icon" :is="'icon-' + menu.meta.icon"
v-if="menu.meta?.icon"
theme="outline" theme="outline"
fill="#fff" fill="#fff"
size="18" size="18"
@ -21,8 +21,8 @@
<el-sub-menu v-else-if="fnIsShowSubmenu(menu)" :index="menu.path"> <el-sub-menu v-else-if="fnIsShowSubmenu(menu)" :index="menu.path">
<template #title> <template #title>
<component <component
v-if="menu.meta?.icon"
:is="'icon-' + menu.meta.icon" :is="'icon-' + menu.meta.icon"
v-if="menu.meta?.icon"
theme="outline" theme="outline"
fill="#fff" fill="#fff"
size="18" size="18"

View File

@ -25,8 +25,8 @@ import ElDialog from "element-plus/es/components/dialog/index";
ElDialog.props.closeOnClickModal.default = false; ElDialog.props.closeOnClickModal.default = false;
ElDialog.props.closeOnPressEscape.default = false; ElDialog.props.closeOnPressEscape.default = false;
const app = createApp(App); const app = createApp(App);
app.component("layout-table", LayoutTable); app.component("LayoutTable", LayoutTable);
app.component("layout-card", LayoutCard); app.component("LayoutCard", LayoutCard);
install(app, "icon"); install(app, "icon");
app app
.use(pinia) .use(pinia)

View File

@ -78,7 +78,7 @@
{{ data.info.HAVEPLAN === "1" ? "有" : "" }} {{ data.info.HAVEPLAN === "1" ? "有" : "" }}
</template> </template>
</van-cell> </van-cell>
<van-cell title="计划图片" v-if="data.info.HAVEPLAN === '1'"> <van-cell v-if="data.info.HAVEPLAN === '1'" title="计划图片">
<template #label> <template #label>
<img <img
v-for="(item, index) in data.pImgs" v-for="(item, index) in data.pImgs"
@ -92,7 +92,7 @@
/> />
</template> </template>
</van-cell> </van-cell>
<van-cell title="整改方案" v-if="data.info.RECTIFICATIONTYPE === '2'"> <van-cell v-if="data.info.RECTIFICATIONTYPE === '2'" title="整改方案">
<template #value> <template #value>
{{ data.info.HAVESCHEME === "0" ? "无" : "" }} {{ data.info.HAVESCHEME === "0" ? "无" : "" }}
{{ data.info.HAVESCHEME === "1" ? "有" : "" }} {{ data.info.HAVESCHEME === "1" ? "有" : "" }}

View File

@ -12,9 +12,9 @@
<van-checkbox :name="0">合格</van-checkbox> <van-checkbox :name="0">合格</van-checkbox>
<van-checkbox :name="1" checked-color="red"> 不合格 </van-checkbox> <van-checkbox :name="1" checked-color="red"> 不合格 </van-checkbox>
<van-icon <van-icon
v-if="item.ISNORMAL.includes(1)"
name="info-o" name="info-o"
color="blue" color="blue"
v-if="item.ISNORMAL.includes(1)"
@click=" @click="
$router.push({ $router.push({
path, path,

View File

@ -23,11 +23,9 @@
<van-cell title="资产总额(万元)" :value="info.TOTALASSETS" /> <van-cell title="资产总额(万元)" :value="info.TOTALASSETS" />
<van-cell title="隶属关系" :value="info.SUBORDINATIONNAME" /> <van-cell title="隶属关系" :value="info.SUBORDINATIONNAME" />
<van-cell title="企业类型"> <van-cell title="企业类型">
<template>
{{ info.CORP_OF_TYPE_NAME ? info.CORP_OF_TYPE_NAME : "" }} {{ info.CORP_OF_TYPE_NAME ? info.CORP_OF_TYPE_NAME : "" }}
{{ info.CORP_OF_TYPE_NAME && info.CORP_OF_TYPE_NAME2 ? "/" : "" }} {{ info.CORP_OF_TYPE_NAME && info.CORP_OF_TYPE_NAME2 ? "/" : "" }}
{{ info.CORP_OF_TYPE_NAME2 ? info.CORP_OF_TYPE_NAME2 : "" }} {{ info.CORP_OF_TYPE_NAME2 ? info.CORP_OF_TYPE_NAME2 : "" }}
</template>
</van-cell> </van-cell>
<van-cell <van-cell
title="市行业监管部门" title="市行业监管部门"
@ -35,22 +33,20 @@
/> />
<van-cell title="规模" :value="info.SCALE_NAME" /> <van-cell title="规模" :value="info.SCALE_NAME" />
<van-cell title="是否规模以上"> <van-cell title="是否规模以上">
<template>
{{ info.SCALE_TYPE === "0" ? "否" : "" }} {{ info.SCALE_TYPE === "0" ? "否" : "" }}
{{ info.SCALE_TYPE === "1" ? "是" : "" }} {{ info.SCALE_TYPE === "1" ? "是" : "" }}
</template>
</van-cell> </van-cell>
<van-cell title="培训行业类型" :value="info.TRAINTYPE_NAME" /> <van-cell title="培训行业类型" :value="info.TRAINTYPE_NAME" />
<van-cell title="企业可新建用户数量" :value="info.USERS_NUM" /> <van-cell title="企业可新建用户数量" :value="info.USERS_NUM" />
<van-cell title="单位经营地址" :value="info.ADDRESS_BUSINESS" /> <van-cell title="单位经营地址" :value="info.ADDRESS_BUSINESS" />
<van-cell title="四色图" v-if="info.FOURTYPE === '1'"> <van-cell v-if="info.FOURTYPE === '1'" title="四色图">
<template #label> <template #label>
<van-image <van-image
v-for="(item, index) in four_images"
:key="item"
width="100" width="100"
height="100" height="100"
v-for="(item, index) in four_images"
:src="item" :src="item"
:key="item"
@click="fnImagePreview(four_images, index)" @click="fnImagePreview(four_images, index)"
/> />
</template> </template>
@ -58,11 +54,11 @@
<van-cell title="营业执照"> <van-cell title="营业执照">
<template #label> <template #label>
<van-image <van-image
v-for="(item, index) in bus_images"
:key="item"
width="100" width="100"
height="100" height="100"
v-for="(item, index) in bus_images"
:src="item" :src="item"
:key="item"
@click="fnImagePreview(bus_images, index)" @click="fnImagePreview(bus_images, index)"
/> />
</template> </template>

View File

@ -1,8 +1,8 @@
<template> <template>
<div class="containerer"> <div class="containerer">
<div class="container container-star"> <div class="container container-star">
<div class="star-1" v-for="item in 30" :key="item"></div> <div v-for="item in 30" :key="item" class="star-1"></div>
<div class="star-2" v-for="item in 30" :key="item"></div> <div v-for="item in 30" :key="item" class="star-2"></div>
</div> </div>
<div class="container container-bird"> <div class="container container-bird">
<div class="bird bird-anim"> <div class="bird bird-anim">

View File

@ -1,9 +1,9 @@
<template> <template>
<div class="container"> <div class="container">
<div <div
class="options"
v-for="(item, index) in data.bottomOptionsList" v-for="(item, index) in data.bottomOptionsList"
:key="item.title" :key="item.title"
class="options"
@click="fnBottomOptionsListChange(item, index)" @click="fnBottomOptionsListChange(item, index)"
> >
<div class="option"> <div class="option">
@ -13,9 +13,9 @@
<div :class="['child_container', { active: item.check }]"> <div :class="['child_container', { active: item.check }]">
<div :class="['child_options', item.type]"> <div :class="['child_options', item.type]">
<div <div
class="child_option"
v-for="(item1, index1) in item.list" v-for="(item1, index1) in item.list"
:key="item1.title" :key="item1.title"
class="child_option"
@click.stop="fnBottomChildOptionsListChange(index, item1, index1)" @click.stop="fnBottomChildOptionsListChange(index, item1, index1)"
> >
<img :src="item1.check ? item1.imgSelect : item1.img" alt="" /> <img :src="item1.check ? item1.imgSelect : item1.img" alt="" />

View File

@ -1,6 +1,5 @@
<template> <template>
<el-dialog v-model="visible" title="告警信息" width="70%"> <el-dialog v-model="visible" title="告警信息" width="70%">
<table class="print_table">
<el-card> <el-card>
<el-form <el-form
:model="searchForm" :model="searchForm"
@ -46,23 +45,23 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column property="status" label="状态" > <el-table-column property="status" label="状态">
<template v-slot="{ row }"> <template #default="{ row }">
{{ row.status === 0 ? "未处理" : "已处理" }} {{ row.status === 0 ? "未处理" : "已处理" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column property="eleType" label="告警类型" > <el-table-column property="eleType" label="告警类型">
<template v-slot="{ row }"> <template #default="{ row }">
{{ typeList[row.eleType] }} {{ typeList[row.eleType] }}
</template> </template>
</el-table-column> </el-table-column>
@ -76,7 +75,6 @@
<el-table-column property="regName" label="备注" /> <el-table-column property="regName" label="备注" />
</layout-table> </layout-table>
</layout-card> </layout-card>
</table>
<template #footer> <template #footer>
<el-button @click="fnClose"></el-button> <el-button @click="fnClose"></el-button>
</template> </template>
@ -88,6 +86,7 @@ import { useVModels } from "@vueuse/core";
import useListData from "@/assets/js/useListData.js"; import useListData from "@/assets/js/useListData.js";
import { getAlArmDataList } from "@/request/bi/mapApi.js"; import { getAlArmDataList } from "@/request/bi/mapApi.js";
import { serialNumber } from "@/assets/js/utils.js"; import { serialNumber } from "@/assets/js/utils.js";
const typeList = { const typeList = {
1: "滞留报警", 1: "滞留报警",
2: "串岗报警", 2: "串岗报警",
@ -137,11 +136,4 @@ const fnClose = () => {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
.video {
width: 100%;
height: 500px;
border: 2px solid #11acd7;
border-radius: 4px;
}
</style>

View File

@ -4,9 +4,9 @@
<layout-title title="设备在线情况" /> <layout-title title="设备在线情况" />
<div class="option"> <div class="option">
<div <div
class="list"
v-for="(item, index) in data.block1OptionsList" v-for="(item, index) in data.block1OptionsList"
:key="index" :key="index"
class="list"
> >
<img :src="item.img" alt="" class="img" /> <img :src="item.img" alt="" class="img" />
<div class="label">{{ item.label }}</div> <div class="label">{{ item.label }}</div>
@ -43,10 +43,10 @@
<div class="option"> <div class="option">
<div class="tab_list"> <div class="tab_list">
<div <div
class="list"
v-for="(item, index) in tabsList" v-for="(item, index) in tabsList"
:class="['item', { active: index === tabIndex }]"
:key="index" :key="index"
class="list"
:class="['item', { active: index === tabIndex }]"
@click="tabIndex = index" @click="tabIndex = index"
> >
{{ item }} {{ item }}
@ -59,7 +59,7 @@
<div class="td">时间</div> <div class="td">时间</div>
<div class="td">状态</div> <div class="td">状态</div>
</div> </div>
<div class="tr" v-for="(item, index) in data.block3List" :key="index"> <div v-for="(item, index) in data.block3List" :key="index" class="tr">
<div class="td line-1">{{ item.name }}</div> <div class="td line-1">{{ item.name }}</div>
<div class="td">{{ item.licensePlate }}</div> <div class="td">{{ item.licensePlate }}</div>
<div class="td line-1">{{ item.time }}</div> <div class="td line-1">{{ item.time }}</div>

View File

@ -4,9 +4,9 @@
<layout-title title="数据统计" /> <layout-title title="数据统计" />
<div class="option"> <div class="option">
<div <div
class="list"
v-for="(item, index) in data.block1OptionsList" v-for="(item, index) in data.block1OptionsList"
:key="index" :key="index"
class="list"
> >
<img :src="item.img" alt="" class="img" /> <img :src="item.img" alt="" class="img" />
<div class="info"> <div class="info">
@ -21,11 +21,11 @@
<div class="block2"> <div class="block2">
<layout-title title="重大危险源统计" /> <layout-title title="重大危险源统计" />
<div class="option" id="main1"></div> <div id="main1" class="option"></div>
</div> </div>
<div class="block2"> <div class="block2">
<layout-title title="报警处置情况" /> <layout-title title="报警处置情况" />
<div class="option" id="main2"></div> <div id="main2" class="option"></div>
</div> </div>
<div class="block3"> <div class="block3">
<layout-title title="危险源列表" /> <layout-title title="危险源列表" />
@ -36,7 +36,7 @@
<div class="td">报警时间</div> <div class="td">报警时间</div>
<div class="td">处置状态</div> <div class="td">处置状态</div>
</div> </div>
<div class="tr" v-for="(item, index) in data.block4List" :key="index"> <div v-for="(item, index) in data.block4List" :key="index" class="tr">
<div class="td">{{ item.name }}</div> <div class="td">{{ item.name }}</div>
<div class="td line-1">{{ item.time }}</div> <div class="td line-1">{{ item.time }}</div>
<div class="td">{{ item.state }}</div> <div class="td">{{ item.state }}</div>

View File

@ -4,9 +4,9 @@
<layout-title title="人员类型统计" /> <layout-title title="人员类型统计" />
<div class="option"> <div class="option">
<div <div
class="list"
v-for="(item, index) in data.block1OptionsList" v-for="(item, index) in data.block1OptionsList"
:key="index" :key="index"
class="list"
> >
<img :src="item.img" alt="" class="img" /> <img :src="item.img" alt="" class="img" />
<div class="label">{{ item.label }}</div> <div class="label">{{ item.label }}</div>
@ -20,9 +20,9 @@
<layout-title title="告警类型统计" /> <layout-title title="告警类型统计" />
<div class="option"> <div class="option">
<div <div
class="list"
v-for="(item, index) in data.block2OptionsList" v-for="(item, index) in data.block2OptionsList"
:key="index" :key="index"
class="list"
> >
<div @click="fnAlarmTypeClick(item)"> <div @click="fnAlarmTypeClick(item)">
<div class="name">{{ item.label }}</div> <div class="name">{{ item.label }}</div>
@ -42,7 +42,7 @@
<div class="td">卡号</div> <div class="td">卡号</div>
<div class="td">电量</div> <div class="td">电量</div>
</div> </div>
<div class="tr" v-for="(item, index) in data.block3List" :key="index"> <div v-for="(item, index) in data.block3List" :key="index" class="tr">
<div class="td">{{ item.name }}</div> <div class="td">{{ item.name }}</div>
<div class="td">{{ item.cardNo }}</div> <div class="td">{{ item.cardNo }}</div>
<div class="td">{{ item.stset + "%" }}</div> <div class="td">{{ item.stset + "%" }}</div>
@ -50,33 +50,20 @@
</div> </div>
</div> </div>
</div> </div>
<el-dialog v-model="dialogVisible" title="Tips" width="500"> <alarm-dialog v-model:visible="data.drawer" :pd="data.form" />
<span>This is a message</span>
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogVisible = false">Cancel</el-button>
<el-button type="primary" @click="dialogVisible = false">
Confirm
</el-button>
</div>
</template>
</el-dialog>
<AlarmDialog
v-model:visible="data.drawer"
v-model:pd="data.form"
></AlarmDialog>
</div> </div>
</template> </template>
<script setup> <script setup>
import LayoutTitle from "./title.vue"; import LayoutTitle from "./title.vue";
import AlarmDialog from "../components/dialog/alarm_dialog.vue"; import AlarmDialog from "../components/dialog/alarm_dialog.vue";
import CountUp from "vue-countup-v3"; import CountUp from "vue-countup-v3";
import { nextTick, reactive, ref } from "vue"; import { nextTick, reactive } from "vue";
import { import {
getPersonnelTypeCount, getPersonnelTypeCount,
getAlarmTypeCount, getAlarmTypeCount,
getPersonnelPositioningCount, getPersonnelPositioningCount,
} from "@/request/bi/mapApi.js"; } from "@/request/bi/mapApi.js";
const data = reactive({ const data = reactive({
block1OptionsList: [ block1OptionsList: [
{ {
@ -176,7 +163,6 @@ const getPersonnelData = async () => {
}); });
}); });
}; };
const dialogVisible = ref(false);
const fnAlarmTypeClick = (e) => { const fnAlarmTypeClick = (e) => {
data.drawer = true; data.drawer = true;
data.form.title = e.label; data.form.title = e.label;
@ -354,26 +340,32 @@ getPositionData();
} }
} }
} }
.table { .table {
margin-top: 5px; margin-top: 5px;
.tr { .tr {
display: flex; display: flex;
&:nth-child(odd) { &:nth-child(odd) {
background-color: rgba(42, 86, 158, 0.53); background-color: rgba(42, 86, 158, 0.53);
} }
.td { .td {
flex: 1; flex: 1;
text-align: left; text-align: left;
font-size: 14px; font-size: 14px;
color: #fff; color: #fff;
padding: 10px 10px; padding: 10px 10px;
&:nth-child(1) { &:nth-child(1) {
flex-basis: 30%; flex-basis: 30%;
} }
&:nth-child(2) { &:nth-child(2) {
flex-basis: 50%; flex-basis: 50%;
} }
&:nth-child(3) { &:nth-child(3) {
flex-basis: 20%; flex-basis: 20%;
} }

View File

@ -4,9 +4,9 @@
<layout-title title="告警数" /> <layout-title title="告警数" />
<div class="option"> <div class="option">
<div <div
class="list"
v-for="(item, index) in data.block1OptionsList" v-for="(item, index) in data.block1OptionsList"
:key="index" :key="index"
class="list"
> >
<img :src="item.img" alt="" class="img" /> <img :src="item.img" alt="" class="img" />
<div class="label">{{ item.label }}</div> <div class="label">{{ item.label }}</div>
@ -19,11 +19,11 @@
<div class="block2"> <div class="block2">
<layout-title title="报警类型" /> <layout-title title="报警类型" />
<div class="option" id="main1"></div> <div id="main1" class="option"></div>
</div> </div>
<div class="block2"> <div class="block2">
<layout-title title="告警时间趋势" /> <layout-title title="告警时间趋势" />
<div class="option" id="main2"></div> <div id="main2" class="option"></div>
</div> </div>
<div class="block3"> <div class="block3">
<layout-title title="告警来源" /> <layout-title title="告警来源" />
@ -34,7 +34,7 @@
<div class="td">告警数据类型</div> <div class="td">告警数据类型</div>
<div class="td">时间</div> <div class="td">时间</div>
</div> </div>
<div class="tr" v-for="(item, index) in data.block4List" :key="index"> <div v-for="(item, index) in data.block4List" :key="index" class="tr">
<div class="td">{{ item.serialNumber }}</div> <div class="td">{{ item.serialNumber }}</div>
<div class="td line-1">{{ item.type }}</div> <div class="td line-1">{{ item.type }}</div>
<div class="td">{{ item.time }}</div> <div class="td">{{ item.time }}</div>

View File

@ -18,9 +18,9 @@
class="scroll" class="scroll"
> >
<div <div
class="option mb-10"
v-for="(item, index) in data.block1OptionsList" v-for="(item, index) in data.block1OptionsList"
:key="index" :key="index"
class="option mb-10"
> >
<div class="img"> <div class="img">
<img :src="VITE_FILE_URL + item.IMG_PATH" alt="" /> <img :src="VITE_FILE_URL + item.IMG_PATH" alt="" />

View File

@ -4,9 +4,9 @@
<layout-title title="安全作业状态统计" /> <layout-title title="安全作业状态统计" />
<div class="option"> <div class="option">
<div <div
class="list"
v-for="(item, index) in data.block1OptionsList" v-for="(item, index) in data.block1OptionsList"
:key="index" :key="index"
class="list"
> >
<img :src="item.img" alt="" class="img" /> <img :src="item.img" alt="" class="img" />
<div class="label">{{ item.label }}</div> <div class="label">{{ item.label }}</div>
@ -19,7 +19,7 @@
<div class="block2"> <div class="block2">
<layout-title title="安全作业情况统计" /> <layout-title title="安全作业情况统计" />
<div class="option" id="main1"></div> <div id="main1" class="option"></div>
</div> </div>
<div class="block3"> <div class="block3">
<layout-title title="安全作业记录" /> <layout-title title="安全作业记录" />
@ -31,7 +31,7 @@
<div class="td">状态</div> <div class="td">状态</div>
<div class="td">下一步操作人</div> <div class="td">下一步操作人</div>
</div> </div>
<div class="tr" v-for="(item, index) in data.block3List" :key="index"> <div v-for="(item, index) in data.block3List" :key="index" class="tr">
<template v-if="index < 10"> <template v-if="index < 10">
<div class="td">{{ index + 1 }}</div> <div class="td">{{ index + 1 }}</div>
<div class="td line-1"> <div class="td line-1">

View File

@ -1,11 +1,11 @@
<template> <template>
<div id="bi_container"> <div id="bi_container">
<div class="map_bg" id="map"></div> <div id="map" class="map_bg"></div>
<transition <transition
enter-active-class="animate__animated animate__fadeInDown" enter-active-class="animate__animated animate__fadeInDown"
leave-active-class="animate__animated animate__fadeOutUp" leave-active-class="animate__animated animate__fadeOutUp"
> >
<div class="header" :key="transitionKey"> <div :key="transitionKey" class="header">
<div class="back" @click="router.back()"> <div class="back" @click="router.back()">
<img src="/src/assets/images/map/back.png" alt="" /> <img src="/src/assets/images/map/back.png" alt="" />
</div> </div>
@ -13,7 +13,7 @@
<div class="title" /> <div class="title" />
</div> </div>
</transition> </transition>
<div class="left_container" v-if="leftCurrentComponent"> <div v-if="leftCurrentComponent" class="left_container">
<transition <transition
enter-active-class="animate__animated animate__fadeInLeft" enter-active-class="animate__animated animate__fadeInLeft"
leave-active-class="animate__animated animate__fadeOutLeft" leave-active-class="animate__animated animate__fadeOutLeft"
@ -34,13 +34,13 @@
leave-active-class="animate__animated animate__fadeOutRight" leave-active-class="animate__animated animate__fadeOutRight"
mode="out-in" mode="out-in"
> >
<div class="right_container" v-if="rightCurrentComponent"> <div v-if="rightCurrentComponent" class="right_container">
<component :is="rightCurrentComponent" /> <component :is="rightCurrentComponent" />
</div> </div>
</transition> </transition>
<div class="right_ico" v-show="right_option"> <div v-show="right_option" class="right_ico">
<RightIco></RightIco> <right-ico></right-ico>
</div> </div>
</div> </div>
</template> </template>

View File

@ -70,28 +70,28 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="直接经济损失" prop="ECONOMIC_LOSSES"> <el-form-item label="直接经济损失" prop="ECONOMIC_LOSSES">
<el-input v-model.number="form.ECONOMIC_LOSSES"> <el-input v-model.number="form.ECONOMIC_LOSSES">
<template v-slot:append></template> <template #append></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="受伤人数" prop="INJURED_NUM"> <el-form-item label="受伤人数" prop="INJURED_NUM">
<el-input v-model.number="form.INJURED_NUM"> <el-input v-model.number="form.INJURED_NUM">
<template v-slot:append></template> <template #append></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="死亡人数" prop="DEAD_NUM"> <el-form-item label="死亡人数" prop="DEAD_NUM">
<el-input v-model.number="form.DEAD_NUM"> <el-input v-model.number="form.DEAD_NUM">
<template v-slot:append></template> <template #append></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="重伤人数" prop="SERIOUSLY_INJURED_NUM"> <el-form-item label="重伤人数" prop="SERIOUSLY_INJURED_NUM">
<el-input v-model.number="form.SERIOUSLY_INJURED_NUM"> <el-input v-model.number="form.SERIOUSLY_INJURED_NUM">
<template v-slot:append></template> <template #append></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -108,10 +108,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="form.IS_PUNISHMENT === 1"> <el-col v-if="form.IS_PUNISHMENT === 1" :span="12">
<el-form-item label="处罚金额" prop="PUNISHMENT_AMOUNT"> <el-form-item label="处罚金额" prop="PUNISHMENT_AMOUNT">
<el-input v-model.number="form.PUNISHMENT_AMOUNT"> <el-input v-model.number="form.PUNISHMENT_AMOUNT">
<template v-slot:append></template> <template #append></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@ -55,9 +55,9 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="ACCIDENT_ID" row-key="ACCIDENT_ID"
:data="list" :data="list"
v-model:pagination="pagination"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
@ -87,7 +87,7 @@
width="100" width="100"
/> />
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -43,7 +43,7 @@
<el-descriptions-item label="是否被处罚"> <el-descriptions-item label="是否被处罚">
{{ info.IS_PUNISHMENT === 1 ? "是" : "否" }} {{ info.IS_PUNISHMENT === 1 ? "是" : "否" }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="处罚金额" v-if="info.IS_PUNISHMENT === 1"> <el-descriptions-item v-if="info.IS_PUNISHMENT === 1" label="处罚金额">
{{ info.SERIOUSLY_INJURED_NUM || 0 }} {{ info.SERIOUSLY_INJURED_NUM || 0 }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="直接原因"> <el-descriptions-item label="直接原因">

View File

@ -19,7 +19,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="entrance === 'job_data'"> <el-col v-if="entrance === 'job_data'" :span="6">
<el-form-item label="状态" prop="APPLY_STATUS"> <el-form-item label="状态" prop="APPLY_STATUS">
<el-select v-model="searchForm.APPLY_STATUS"> <el-select v-model="searchForm.APPLY_STATUS">
<el-option <el-option
@ -44,12 +44,12 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
@ -77,7 +77,7 @@
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column label="审核状态"> <el-table-column label="审核状态">
<template v-slot="{ row }"> <template #default="{ row }">
{{ {{
entrance === "job_data" entrance === "job_data"
? translationStatus(row.APPLY_STATUS, stateList) ? translationStatus(row.APPLY_STATUS, stateList)
@ -86,7 +86,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="250"> <el-table-column label="操作" width="250">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6'" v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6'"
type="primary" type="primary"
@ -105,11 +105,11 @@
添加监控 添加监控
</el-button> </el-button>
<el-button <el-button
v-if="entrance === 'job_data'"
type="primary" type="primary"
text text
link link
@click="fnFlowChart(row)" @click="fnFlowChart(row)"
v-if="entrance === 'job_data'"
> >
流程图 流程图
</el-button> </el-button>

View File

@ -15,7 +15,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="entrance === 'job_data'"> <el-col v-if="entrance === 'job_data'" :span="6">
<el-form-item label="状态" prop="STEP_ID"> <el-form-item label="状态" prop="STEP_ID">
<el-select v-model="searchForm.STEP_ID"> <el-select v-model="searchForm.STEP_ID">
<el-option <el-option
@ -40,12 +40,12 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
@ -56,7 +56,7 @@
<el-table-column prop="LEADER_USER_NAME" label="所在单位负责人" /> <el-table-column prop="LEADER_USER_NAME" label="所在单位负责人" />
<el-table-column prop="ACCEPT_USER_NAME" label="验收部门负责人" /> <el-table-column prop="ACCEPT_USER_NAME" label="验收部门负责人" />
<el-table-column label="审核状态"> <el-table-column label="审核状态">
<template v-slot="{ row }"> <template #default="{ row }">
<span v-if="row.STEP_ID === 0"></span> <span v-if="row.STEP_ID === 0"></span>
<span v-else-if="row.STATUS === -2">气体检测打回</span> <span v-else-if="row.STATUS === -2">气体检测打回</span>
<span v-else-if="row.STEP_ID !== -1">{{ row.NEXT_STEP_NAME }}</span> <span v-else-if="row.STEP_ID !== -1">{{ row.NEXT_STEP_NAME }}</span>
@ -64,7 +64,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="250"> <el-table-column label="操作" width="250">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if=" v-if="
entrance === 'job_data' && entrance === 'job_data' &&
@ -96,11 +96,11 @@
查看验收视频 查看验收视频
</el-button> </el-button>
<el-button <el-button
v-if="entrance === 'job_data'"
type="primary" type="primary"
text text
link link
@click="fnFlowChart(row.CONFINEDSPACE_ID)" @click="fnFlowChart(row.CONFINEDSPACE_ID)"
v-if="entrance === 'job_data'"
> >
流程图 流程图
</el-button> </el-button>
@ -129,8 +129,8 @@
:flow-list="data.flowChartDialog.flowList" :flow-list="data.flowChartDialog.flowList"
/> />
<layout-video <layout-video
:src="data.videoDialog.src"
v-model:visible="data.videoDialog.visible" v-model:visible="data.videoDialog.visible"
:src="data.videoDialog.src"
append-to-body append-to-body
/> />
</div> </div>

View File

@ -30,9 +30,9 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
v-model:pagination="pagination"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
<template #default="{ $index }"> <template #default="{ $index }">
@ -47,7 +47,7 @@
<el-table-column prop="PRINCIPALNAME" label="主要负责人" /> <el-table-column prop="PRINCIPALNAME" label="主要负责人" />
<el-table-column prop="COMPILETIME" label="填报时间" /> <el-table-column prop="COMPILETIME" label="填报时间" />
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if="buttonJurisdiction.edit" v-if="buttonJurisdiction.edit"
type="primary" type="primary"

View File

@ -223,11 +223,11 @@
<td align="center">管控措施</td> <td align="center">管控措施</td>
</tr> </tr>
<tr v-for="(item, index) in data.riskLog" :key="index"> <tr v-for="(item, index) in data.riskLog" :key="index">
<td align="center" rowspan="2" v-if="index % 2 === 0"> <td v-if="index % 2 === 0" align="center" rowspan="2">
{{ item.risk_unit_name }} {{ item.risk_unit_name }}
</td> </td>
<td rowspan="2" v-if="index % 2 === 0">{{ item.parts_name }}</td> <td v-if="index % 2 === 0" rowspan="2">{{ item.parts_name }}</td>
<td rowspan="2" v-if="index % 2 === 0">{{ item.is_new }}</td> <td v-if="index % 2 === 0" rowspan="2">{{ item.is_new }}</td>
<td>{{ item.label }}</td> <td>{{ item.label }}</td>
<td>{{ item.risk_descr }}</td> <td>{{ item.risk_descr }}</td>
<td>{{ item.measures }}</td> <td>{{ item.measures }}</td>

View File

@ -1,6 +1,6 @@
<template> <template>
<el-dialog v-model="visible" title="分析" :before-close="fnClose"> <el-dialog v-model="visible" title="分析" :before-close="fnClose">
<layout-risk-add v-model:form="form" :rules="rules" ref="riskAddRef"> <layout-risk-add ref="riskAddRef" v-model:form="form" :rules="rules">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="是否生成新风险因素" prop="IS_NEW"> <el-form-item label="是否生成新风险因素" prop="IS_NEW">
<el-radio-group v-model="form.IS_NEW" disabled> <el-radio-group v-model="form.IS_NEW" disabled>

View File

@ -64,9 +64,9 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
v-model:pagination="pagination"
:data="list" :data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
v-model:pagination="pagination"
> >
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
<template #default="{ $index }"> <template #default="{ $index }">
@ -79,14 +79,14 @@
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column label="隐患处置" width="100"> <el-table-column label="隐患处置" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<span v-if="row.RECTIFICATIONTYPE === '1'"></span> <span v-if="row.RECTIFICATIONTYPE === '1'"></span>
<span v-else-if="row.RECTIFICATIONTYPE === '2'">限期整改</span> <span v-else-if="row.RECTIFICATIONTYPE === '2'">限期整改</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="HIDDENLEVELNAME" label="隐患级别" width="120" /> <el-table-column prop="HIDDENLEVELNAME" label="隐患级别" width="120" />
<el-table-column label="隐患状态" width="100"> <el-table-column label="隐患状态" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
{{ translationStatus(row.STATE, stateList) }} {{ translationStatus(row.STATE, stateList) }}
</template> </template>
</el-table-column> </el-table-column>
@ -103,7 +103,7 @@
width="100" width="100"
/> />
<el-table-column label="验收人" width="100"> <el-table-column label="验收人" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<span v-if="row.RECTIFICATIONTYPE === '2'"> <span v-if="row.RECTIFICATIONTYPE === '2'">
{{ row.CHECKNAME }} {{ row.CHECKNAME }}
</span> </span>

View File

@ -73,9 +73,9 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
v-model:pagination="pagination"
:data="list" :data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
v-model:pagination="pagination"
> >
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
<template #default="{ $index }"> <template #default="{ $index }">
@ -90,7 +90,7 @@
/> />
<el-table-column prop="PARTSNAME" label="辨识部位" width="250" /> <el-table-column prop="PARTSNAME" label="辨识部位" width="250" />
<el-table-column prop="LEVELID" label="风险分级" width="120"> <el-table-column prop="LEVELID" label="风险分级" width="120">
<template v-slot="{ row }"> <template #default="{ row }">
<span v-if="row.LEVELID === 'levelD'" class="text-blue"> <span v-if="row.LEVELID === 'levelD'" class="text-blue">
低风险/D级 低风险/D级
</span> </span>
@ -108,7 +108,7 @@
<el-table-column prop="ACCIDENTS_NAME" label="事故类型" /> <el-table-column prop="ACCIDENTS_NAME" label="事故类型" />
<el-table-column prop="USER_ID" label="管控责任人" width="100" /> <el-table-column prop="USER_ID" label="管控责任人" width="100" />
<el-table-column prop="STATUS" label="状态" width="90"> <el-table-column prop="STATUS" label="状态" width="90">
<template v-slot="{ row }"> <template #default="{ row }">
{{ row.STATUS === 1 ? "已审核" : "未审核" }} {{ row.STATUS === 1 ? "已审核" : "未审核" }}
</template> </template>
</el-table-column> </el-table-column>

View File

@ -52,10 +52,10 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
@get-data="fnGetData"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
:span-method="fnSpanMethod" :span-method="fnSpanMethod"
@get-data="fnGetData"
> >
<el-table-column <el-table-column
fixed fixed
@ -77,7 +77,7 @@
<el-table-column prop="accidents_name" label="事故类型" width="300px" /> <el-table-column prop="accidents_name" label="事故类型" width="300px" />
<el-table-column prop="dept_name_all" label="责任部门" width="150px" /> <el-table-column prop="dept_name_all" label="责任部门" width="150px" />
<el-table-column label="责任人" width="150px"> <el-table-column label="责任人" width="150px">
<template v-slot="{ row }"> <template #default="{ row }">
{{ row.dept_user_name ? row.dept_user_name : row.user_id }} {{ row.dept_user_name ? row.dept_user_name : row.user_id }}
</template> </template>
</el-table-column> </el-table-column>

View File

@ -74,12 +74,12 @@
:style="fnGetCurrentData(item, '5').STYLE" :style="fnGetCurrentData(item, '5').STYLE"
> >
<el-button <el-button
type="primary"
text
link
v-if=" v-if="
!fnGetCurrentData(item, '5').DESCRITPTION && type !== 'view' !fnGetCurrentData(item, '5').DESCRITPTION && type !== 'view'
" "
type="primary"
text
link
@click="fnEdit(fnGetCurrentData(item, '5'))" @click="fnEdit(fnGetCurrentData(item, '5'))"
> >
编辑 编辑
@ -91,11 +91,11 @@
</div> </div>
</div> </div>
<div class="tc mt-10"> <div class="tc mt-10">
<el-button type="primary" @click="fnSubmit" v-if="type !== 'view'"> <el-button v-if="type !== 'view'" type="primary" @click="fnSubmit">
确定 确定
</el-button> </el-button>
<!-- TODO"--> <!-- TODO"-->
<el-button type="primary" v-if="type === 'view'">PDF</el-button> <el-button v-if="type === 'view'" type="primary">PDF</el-button>
</div> </div>
</layout-card> </layout-card>
<assessment-results <assessment-results

View File

@ -31,9 +31,9 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
v-model:pagination="pagination"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
<template #default="{ $index }"> <template #default="{ $index }">
@ -44,7 +44,7 @@
<el-table-column prop="CREATTIME" label="报表生成时间" /> <el-table-column prop="CREATTIME" label="报表生成时间" />
<el-table-column prop="CREATOR_NAME" label="报表填写人" /> <el-table-column prop="CREATOR_NAME" label="报表填写人" />
<el-table-column prop="" label="操作" width="100"> <el-table-column prop="" label="操作" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -25,19 +25,19 @@
</el-row> </el-row>
</el-form> </el-form>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CODE" label="监控设备编码" /> <el-table-column prop="CODE" label="监控设备编码" />
<el-table-column prop="VIDEONAME" label="视频名称" /> <el-table-column prop="VIDEONAME" label="视频名称" />
<el-table-column label="操作" width="80"> <el-table-column label="操作" width="80">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button type="primary" text link @click="fnSubmit(row)"> <el-button type="primary" text link @click="fnSubmit(row)">
加入 加入
</el-button> </el-button>

View File

@ -28,19 +28,19 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CODE" label="监控设备编码" /> <el-table-column prop="CODE" label="监控设备编码" />
<el-table-column prop="VIDEONAME" label="视频名称" /> <el-table-column prop="VIDEONAME" label="视频名称" />
<el-table-column label="操作" width="250"> <el-table-column label="操作" width="250">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button type="primary" text link @click="fnDeleteVideo(row)"> <el-button type="primary" text link @click="fnDeleteVideo(row)">
删除 删除
</el-button> </el-button>

View File

@ -22,10 +22,10 @@
</el-form> </el-form>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYDRILLORG_ID" row-key="EMERGENCYDRILLORG_ID"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -37,7 +37,7 @@
<el-table-column prop="ORG_UNIT_IDS" label="组成单位" /> <el-table-column prop="ORG_UNIT_IDS" label="组成单位" />
<el-table-column prop="ORG_DUTY" label="机构职责" /> <el-table-column prop="ORG_DUTY" label="机构职责" />
<el-table-column label="操作" width="120"> <el-table-column label="操作" width="120">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -12,7 +12,7 @@
<el-input v-model="form.ORG_UNIT_IDS" /> <el-input v-model="form.ORG_UNIT_IDS" />
</el-form-item> </el-form-item>
<el-form-item label="机构职责" prop="ORG_DUTY"> <el-form-item label="机构职责" prop="ORG_DUTY">
<el-input :rows="3" v-model="form.ORG_DUTY" type="textarea" /> <el-input v-model="form.ORG_DUTY" :rows="3" type="textarea" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>

View File

@ -22,10 +22,10 @@
</el-form> </el-form>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYDRILLORGMEMBER_ID" row-key="EMERGENCYDRILLORGMEMBER_ID"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -48,7 +48,7 @@
width="110" width="110"
/> />
<el-table-column label="操作" width="120"> <el-table-column label="操作" width="120">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -22,10 +22,10 @@
</el-form> </el-form>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYDRILLCONTENT_ID" row-key="EMERGENCYDRILLCONTENT_ID"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -35,7 +35,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="DRILL_CONTENT" label="演练内容" /> <el-table-column prop="DRILL_CONTENT" label="演练内容" />
<el-table-column label="操作" width="120"> <el-table-column label="操作" width="120">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -22,10 +22,10 @@
</el-form> </el-form>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYDRILLSCENE_ID" row-key="EMERGENCYDRILLSCENE_ID"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -35,7 +35,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="DRILL_SCENE" label="演练场景" /> <el-table-column prop="DRILL_SCENE" label="演练场景" />
<el-table-column label="操作" width="120"> <el-table-column label="操作" width="120">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -43,10 +43,10 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYDRILLBASIC_ID" row-key="EMERGENCYDRILLBASIC_ID"
:data="list" :data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">

View File

@ -81,8 +81,8 @@
{{ data.summaryEvaluationInfo.DRILL_REPORT }} {{ data.summaryEvaluationInfo.DRILL_REPORT }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="附件"
v-if="data.summaryEvaluationInfo.DRILL_REPORT_FILE_PATH" v-if="data.summaryEvaluationInfo.DRILL_REPORT_FILE_PATH"
label="附件"
> >
{{ data.summaryEvaluationInfo.DRILL_REPORT_FILE_NAME }} {{ data.summaryEvaluationInfo.DRILL_REPORT_FILE_NAME }}
<el-button <el-button
@ -102,8 +102,8 @@
<el-divider content-position="left">应急演练方案文本</el-divider> <el-divider content-position="left">应急演练方案文本</el-divider>
<el-descriptions border> <el-descriptions border>
<el-descriptions-item <el-descriptions-item
label="附件"
v-if="data.schemeTextInfo.DRILL_ATTACHMENT_FILE_PATH" v-if="data.schemeTextInfo.DRILL_ATTACHMENT_FILE_PATH"
label="附件"
> >
{{ data.schemeTextInfo.DRILL_ATTACHMENT_FILE_NAME }} {{ data.schemeTextInfo.DRILL_ATTACHMENT_FILE_NAME }}
<el-button <el-button

View File

@ -38,10 +38,10 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYEQUIPMENT_ID" row-key="EMERGENCYEQUIPMENT_ID"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -50,7 +50,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="装备名称" show-overflow-tooltip> <el-table-column label="装备名称" show-overflow-tooltip>
<template v-slot="{ row }"> <template #default="{ row }">
<span <span
:class="{ :class="{
'text-red': 'text-red':

View File

@ -26,10 +26,10 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYPLAN_ID" row-key="EMERGENCYPLAN_ID"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -55,7 +55,7 @@
width="150" width="150"
/> />
<el-table-column label="相关附件"> <el-table-column label="相关附件">
<template v-slot="{ row }"> <template #default="{ row }">
{{ row.PLAN_ATTACH_NAME }} {{ row.PLAN_ATTACH_NAME }}
<layout-multiple-attachment-previews <layout-multiple-attachment-previews
:file-path="row.PLAN_ATTACH_IDS" :file-path="row.PLAN_ATTACH_IDS"

View File

@ -50,9 +50,9 @@
{{ info.PLAN_REMARK }} {{ info.PLAN_REMARK }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
v-if="info.PLAN_ATTACH_IDS"
label="相关附件" label="相关附件"
:span="2" :span="2"
v-if="info.PLAN_ATTACH_IDS"
> >
{{ info.PLAN_ATTACH_NAME }} {{ info.PLAN_ATTACH_NAME }}
<el-button <el-button

View File

@ -26,10 +26,10 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="EMERGENCYTEAM_ID" row-key="EMERGENCYTEAM_ID"
:data="list" :data="list"
@get-data="fnGetData" @get-data="fnGetData"
v-model:pagination="pagination"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">

View File

@ -32,10 +32,10 @@
</el-form-item> </el-form-item>
<el-form-item label="部门职能" prop="FUNCTIONS"> <el-form-item label="部门职能" prop="FUNCTIONS">
<el-input <el-input
v-model="form.FUNCTIONS"
:autosize="{ :autosize="{
minRows: 3, minRows: 3,
}" }"
v-model="form.FUNCTIONS"
type="textarea" type="textarea"
placeholder="请输入" placeholder="请输入"
/> />
@ -63,10 +63,10 @@
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="BZ"> <el-form-item label="备注" prop="BZ">
<el-input <el-input
v-model="form.BZ"
:autosize="{ :autosize="{
minRows: 3, minRows: 3,
}" }"
v-model="form.BZ"
type="textarea" type="textarea"
placeholder="请输入" placeholder="请输入"
/> />

View File

@ -1,7 +1,7 @@
<template> <template>
<el-dialog v-model="visible" title="组织机构结构图" width="80%"> <el-dialog v-model="visible" title="组织机构结构图" width="80%">
<div style="height: calc(100vh - 200px)"> <div style="height: calc(100vh - 200px)">
<RelationGraph ref="relationGraphRef" :options="graphOptions" /> <relation-graph ref="relationGraphRef" :options="graphOptions" />
</div> </div>
</el-dialog> </el-dialog>
</template> </template>

View File

@ -4,6 +4,7 @@
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :span="5"> <el-col :span="5">
<layout-department-tree <layout-department-tree
v-model:refresh="data.refreshTreeData"
:department-id="DEPARTMENT_ID" :department-id="DEPARTMENT_ID"
@throw-data="data.treeData = $event" @throw-data="data.treeData = $event"
@node-click=" @node-click="
@ -15,7 +16,6 @@
}, },
}) })
" "
v-model:refresh="data.refreshTreeData"
/> />
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">
@ -26,17 +26,17 @@
结构图 结构图
</el-button> </el-button>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="名称"> <el-table-column label="名称">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text
@ -51,7 +51,7 @@
}) })
" "
> >
{{ row.NAME }}<el-icon><ArrowRight /></el-icon> {{ row.NAME }}<el-icon><arrow-right /></el-icon>
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -60,21 +60,21 @@
<el-table-column prop="leName" label="部门级别" /> <el-table-column prop="leName" label="部门级别" />
<el-table-column prop="DEP_ORDER" label="排序" width="100" /> <el-table-column prop="DEP_ORDER" label="排序" width="100" />
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if="buttonJurisdiction.edit"
type="primary" type="primary"
text text
link link
v-if="buttonJurisdiction.edit"
@click="fnAddOrEdit(row.DEPARTMENT_ID, 'edit')" @click="fnAddOrEdit(row.DEPARTMENT_ID, 'edit')"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
v-if="buttonJurisdiction.del"
type="primary" type="primary"
text text
link link
v-if="buttonJurisdiction.del"
@click="fnDelete(row.DEPARTMENT_ID, row.NAME)" @click="fnDelete(row.DEPARTMENT_ID, row.NAME)"
> >
删除 删除
@ -82,10 +82,10 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template #button v-if="DEPARTMENT_ID !== '0'"> <template v-if="DEPARTMENT_ID !== '0'" #button>
<el-button <el-button
type="primary"
v-if="buttonJurisdiction.add" v-if="buttonJurisdiction.add"
type="primary"
@click="fnAddOrEdit('', 'add')" @click="fnAddOrEdit('', 'add')"
> >
新增 新增

View File

@ -16,14 +16,14 @@
/> />
<el-button <el-button
type="primary" type="primary"
@click="data.drawer = true"
style="margin-left: 10px" style="margin-left: 10px"
@click="data.drawer = true"
>添加</el-button >添加</el-button
> >
<el-button <el-button
type="danger" type="danger"
@click="fnRemoveRegName"
style="margin-left: 10px" style="margin-left: 10px"
@click="fnRemoveRegName"
>移除</el-button >移除</el-button
> >
</el-form-item> </el-form-item>
@ -41,10 +41,10 @@
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="BZ"> <el-form-item label="备注" prop="BZ">
<el-input <el-input
v-model="form.BZ"
:autosize="{ :autosize="{
minRows: 3, minRows: 3,
}" }"
v-model="form.BZ"
type="textarea" type="textarea"
placeholder="请输入" placeholder="请输入"
/> />

View File

@ -1,7 +1,7 @@
<template> <template>
<el-dialog v-model="visible" title="组织机构结构图" width="80%"> <el-dialog v-model="visible" title="组织机构结构图" width="80%">
<div style="height: calc(100vh - 200px)"> <div style="height: calc(100vh - 200px)">
<RelationGraph ref="relationGraphRef" :options="graphOptions" /> <relation-graph ref="relationGraphRef" :options="graphOptions" />
</div> </div>
</el-dialog> </el-dialog>
</template> </template>

View File

@ -4,6 +4,7 @@
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :span="5"> <el-col :span="5">
<electronic-fence-tree <electronic-fence-tree
v-model:refresh="data.refreshTreeData"
:electronic-fence-area-id="ELECTRONIC_FENCE_AREA_ID" :electronic-fence-area-id="ELECTRONIC_FENCE_AREA_ID"
@throw-data="data.treeData = $event" @throw-data="data.treeData = $event"
@node-click=" @node-click="
@ -15,7 +16,6 @@
}, },
}) })
" "
v-model:refresh="data.refreshTreeData"
/> />
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">
@ -26,17 +26,17 @@
结构图 结构图
</el-button> </el-button>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="电子围栏区域名称"> <el-table-column label="电子围栏区域名称">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text
@ -53,7 +53,7 @@
" "
> >
{{ row.ELECTRONIC_FENCE_AREA_NAME {{ row.ELECTRONIC_FENCE_AREA_NAME
}}<el-icon><ArrowRight /></el-icon> }}<el-icon><arrow-right /></el-icon>
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -66,21 +66,21 @@
<el-table-column prop="TEL" label="电话" /> <el-table-column prop="TEL" label="电话" />
<el-table-column prop="BZ" label="备注" /> <el-table-column prop="BZ" label="备注" />
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if="buttonJurisdiction.edit"
type="primary" type="primary"
text text
link link
v-if="buttonJurisdiction.edit"
@click="fnAddOrEdit(row.ELECTRONIC_FENCE_AREA_ID, 'edit')" @click="fnAddOrEdit(row.ELECTRONIC_FENCE_AREA_ID, 'edit')"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
v-if="buttonJurisdiction.del"
type="primary" type="primary"
text text
link link
v-if="buttonJurisdiction.del"
@click=" @click="
fnDelete( fnDelete(
row.ELECTRONIC_FENCE_AREA_ID, row.ELECTRONIC_FENCE_AREA_ID,
@ -93,10 +93,10 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template #button v-if="ELECTRONIC_FENCE_AREA_ID !== '0'"> <template v-if="ELECTRONIC_FENCE_AREA_ID !== '0'" #button>
<el-button <el-button
type="primary"
v-if="buttonJurisdiction.add" v-if="buttonJurisdiction.add"
type="primary"
@click="fnAddOrEdit('', 'add')" @click="fnAddOrEdit('', 'add')"
> >
新增 新增

View File

@ -21,10 +21,10 @@
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="DESCR"> <el-form-item label="备注" prop="DESCR">
<el-input <el-input
v-model="data.form.DESCR"
:autosize="{ :autosize="{
minRows: 3, minRows: 3,
}" }"
v-model="data.form.DESCR"
type="textarea" type="textarea"
/> />
</el-form-item> </el-form-item>

View File

@ -41,12 +41,12 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
@ -54,12 +54,12 @@
<el-table-column label="证书有效期" prop="VALIDITYTIME" /> <el-table-column label="证书有效期" prop="VALIDITYTIME" />
<el-table-column label="证书编号" prop="NUMBER" /> <el-table-column label="证书编号" prop="NUMBER" />
<el-table-column label="照片"> <el-table-column label="照片">
<template v-slot="{ row }"> <template #default="{ row }">
<layout-tooltip-img :imgs="row.imgs" /> <layout-tooltip-img :imgs="row.imgs" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -15,9 +15,9 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="证书图片"> <el-descriptions-item label="证书图片">
<img <img
v-viewer
v-for="item in info.file" v-for="item in info.file"
:key="item.FILEPATH" :key="item.FILEPATH"
v-viewer
:src="item.url" :src="item.url"
width="100" width="100"
height="100" height="100"

View File

@ -1,5 +1,5 @@
<template> <template>
<el-dialog title="请选择位置" v-model="visible"> <el-dialog v-model="visible" title="请选择位置">
<el-form label-position="right" label-width="50px"> <el-form label-position="right" label-width="50px">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
@ -19,7 +19,7 @@
element-loading-text="地图正在加载中..." element-loading-text="地图正在加载中..."
element-loading-background="rgba(0, 0, 0, 0.5)" element-loading-background="rgba(0, 0, 0, 0.5)"
> >
<div style="width: 100%; height: 500px" id="map_container" /> <div id="map_container" style="width: 100%; height: 500px" />
</div> </div>
<template #footer> <template #footer>
<el-button @click="fnClose"></el-button> <el-button @click="fnClose"></el-button>

View File

@ -32,8 +32,8 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="市行业监管部门" prop="INDUSTRY_DEPARTMENTName"> <el-form-item label="市行业监管部门" prop="INDUSTRY_DEPARTMENTName">
<el-input <el-input
disabled
v-model="data.form.INDUSTRY_DEPARTMENTName" v-model="data.form.INDUSTRY_DEPARTMENTName"
disabled
placeholder="请输入内容" placeholder="请输入内容"
/> />
</el-form-item> </el-form-item>
@ -243,7 +243,7 @@
</el-radio> </el-radio>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="data.form.FOURTYPE === 1"> <el-col v-if="data.form.FOURTYPE === 1" :span="24">
<el-form-item label="四色图" prop="four_images"> <el-form-item label="四色图" prop="four_images">
<layout-upload <layout-upload
v-model:file-list="data.form.four_images" v-model:file-list="data.form.four_images"

View File

@ -82,15 +82,15 @@
{{ data.info.USERS_NUM }} {{ data.info.USERS_NUM }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="四色图"
v-if="data.info.FOURTYPE === 1" v-if="data.info.FOURTYPE === 1"
label="四色图"
:span="2" :span="2"
> >
<img <img
v-viewer
v-for="item in data.four_images" v-for="item in data.four_images"
:src="item.url"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
v-viewer
:src="item.url"
width="100" width="100"
height="100" height="100"
class="ml-10" class="ml-10"
@ -98,10 +98,10 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="营业执照" :span="2"> <el-descriptions-item label="营业执照" :span="2">
<img <img
v-viewer
v-for="item in data.bus_images" v-for="item in data.bus_images"
:src="item.url"
:key="item.IMGFILES_ID" :key="item.IMGFILES_ID"
v-viewer
:src="item.url"
width="100" width="100"
height="100" height="100"
class="ml-10" class="ml-10"
@ -193,7 +193,7 @@
</el-button> </el-button>
<el-button @click="data.qrCodeDialogVisible = true">二维码</el-button> <el-button @click="data.qrCodeDialogVisible = true">二维码</el-button>
</div> </div>
<qr-code :info="data.info" v-model:visible="data.qrCodeDialogVisible" /> <qr-code v-model:visible="data.qrCodeDialogVisible" :info="data.info" />
</layout-card> </layout-card>
</template> </template>

View File

@ -13,10 +13,10 @@
</el-form-item> </el-form-item>
<el-form-item label="岗位职责" prop="DESCR"> <el-form-item label="岗位职责" prop="DESCR">
<el-input <el-input
v-model="form.DESCR"
:autosize="{ :autosize="{
minRows: 3, minRows: 3,
}" }"
v-model="form.DESCR"
type="textarea" type="textarea"
placeholder="请输入" placeholder="请输入"
/> />

View File

@ -18,44 +18,44 @@
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column post prop="DEPARTMENT_NAME" label="机构" /> <el-table-column post prop="DEPARTMENT_NAME" label="机构" />
<el-table-column post prop="NAME" label="岗位" /> <el-table-column post prop="NAME" label="岗位" />
<el-table-column label="状态" width="100"> <el-table-column label="状态" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<span v-if="row.STATUS === '0'"></span> <span v-if="row.STATUS === '0'"></span>
<span v-if="row.STATUS === '1'"></span> <span v-if="row.STATUS === '1'"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="照片"> <el-table-column label="照片">
<template v-slot="{ row }"> <template #default="{ row }">
<layout-tooltip-img :imgs="row.imgs" /> <layout-tooltip-img :imgs="row.imgs" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if="buttonJurisdiction.edit"
type="primary" type="primary"
text text
link link
v-if="buttonJurisdiction.edit"
@click="fnAddOrEdit(row.POST_ID, 'edit')" @click="fnAddOrEdit(row.POST_ID, 'edit')"
> >
编辑 编辑
</el-button> </el-button>
<el-button <el-button
v-if="buttonJurisdiction.del"
type="primary" type="primary"
text text
link link
v-if="buttonJurisdiction.del"
@click="fnDelete(row.POST_ID, row.NAME)" @click="fnDelete(row.POST_ID, row.NAME)"
> >
删除 删除
@ -64,8 +64,8 @@
</el-table-column> </el-table-column>
<template #button> <template #button>
<el-button <el-button
type="primary"
v-if="buttonJurisdiction.add" v-if="buttonJurisdiction.add"
type="primary"
@click="fnAddOrEdit('', 'add')" @click="fnAddOrEdit('', 'add')"
> >
新增 新增

View File

@ -48,8 +48,8 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="用户名" prop="USERNAME"> <el-form-item label="用户名" prop="USERNAME">
<el-input <el-input
:disabled="!!USER_ID"
v-model="data.form.USERNAME" v-model="data.form.USERNAME"
:disabled="!!USER_ID"
placeholder="请输入" placeholder="请输入"
/> />
</el-form-item> </el-form-item>
@ -139,7 +139,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-col> </el-col>
<el-col :span="24" v-show="data.periodList.length > 0"> <el-col v-show="data.periodList.length > 0" :span="24">
<el-form-item label="当前班次" prop="periodStr"> <el-form-item label="当前班次" prop="periodStr">
<el-radio-group <el-radio-group
v-model="data.form.periodStr" v-model="data.form.periodStr"
@ -158,10 +158,10 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注" prop="BZ"> <el-form-item label="备注" prop="BZ">
<el-input <el-input
v-model="data.form.BZ"
:autosize="{ :autosize="{
minRows: 3, minRows: 3,
}" }"
v-model="data.form.BZ"
type="textarea" type="textarea"
placeholder="请输入" placeholder="请输入"
/> />
@ -212,7 +212,7 @@
</el-col> </el-col>
</el-row> </el-row>
</el-col> </el-col>
<el-col :span="12" v-if="data.form.ISSTUDENT === 'true'"> <el-col v-if="data.form.ISSTUDENT === 'true'" :span="12">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="身份证号" prop="USER_ID_CARD"> <el-form-item label="身份证号" prop="USER_ID_CARD">
@ -404,9 +404,9 @@
<el-button type="primary" @click="fnSubmit"></el-button> <el-button type="primary" @click="fnSubmit"></el-button>
</div> </div>
<scheduling <scheduling
:id="data.form.SHIFTDUTYTWO"
v-model:visible="data.scheduleVisible" v-model:visible="data.scheduleVisible"
:info="data.scheduleInfo" :info="data.scheduleInfo"
:id="data.form.SHIFTDUTYTWO"
/> />
</layout-card> </layout-card>
</template> </template>

View File

@ -87,12 +87,12 @@
</el-row> </el-row>
</el-form> </el-form>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
@ -107,7 +107,7 @@
/> />
<el-table-column prop="ROLE_NAME" label="角色" /> <el-table-column prop="ROLE_NAME" label="角色" />
<el-table-column label="排班类型"> <el-table-column label="排班类型">
<template v-slot="{ row }"> <template #default="{ row }">
<span v-if="row.SHIFTDUTYONENAME && row.SHIFTDUTYTWONAME"> <span v-if="row.SHIFTDUTYONENAME && row.SHIFTDUTYTWONAME">
{{ row.SHIFTDUTYONENAME }}-{{ row.SHIFTDUTYTWONAME }} {{ row.SHIFTDUTYONENAME }}-{{ row.SHIFTDUTYTWONAME }}
</span> </span>
@ -115,7 +115,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="250"> <el-table-column label="操作" width="250">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if="buttonJurisdiction.edit" v-if="buttonJurisdiction.edit"
type="primary" type="primary"
@ -160,8 +160,8 @@
</el-table-column> </el-table-column>
<template #button> <template #button>
<el-button <el-button
type="primary"
v-if="buttonJurisdiction.add" v-if="buttonJurisdiction.add"
type="primary"
@click=" @click="
router.push({ path: '/enterprise_management/user/add' }) router.push({ path: '/enterprise_management/user/add' })
" "
@ -185,9 +185,9 @@
@submit="fnSubmitLearnersImport" @submit="fnSubmitLearnersImport"
/> />
<scheduling <scheduling
:id="data.scheduleDialog.id"
v-model:visible="data.scheduleDialog.visible" v-model:visible="data.scheduleDialog.visible"
:info="data.scheduleDialog.info" :info="data.scheduleDialog.info"
:id="data.scheduleDialog.id"
/> />
</div> </div>
</template> </template>

View File

@ -38,9 +38,9 @@
<layout-card> <layout-card>
<layout-table <layout-table
ref="tableRef" ref="tableRef"
v-model:pagination="pagination"
row-key="SPECIALEQUIPMENT_ID" row-key="SPECIALEQUIPMENT_ID"
:data="list" :data="list"
v-model:pagination="pagination"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column reserve-selection type="selection" width="55" /> <el-table-column reserve-selection type="selection" width="55" />
@ -67,7 +67,7 @@
/> />
<el-table-column prop="PERIOD_NAME" label="巡检周期" width="260" /> <el-table-column prop="PERIOD_NAME" label="巡检周期" width="260" />
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -37,7 +37,7 @@
<el-descriptions-item label="备注"> <el-descriptions-item label="备注">
{{ info.REMARKS }} {{ info.REMARKS }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="设备技术档案" v-if="info.TECHNICALFILENAME"> <el-descriptions-item v-if="info.TECHNICALFILENAME" label="设备技术档案">
{{ info.TECHNICALFILENAME }} {{ info.TECHNICALFILENAME }}
<el-button <el-button
class="ml" class="ml"

View File

@ -43,8 +43,8 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -60,7 +60,7 @@
<el-table-column prop="OPERATOR" label="操作人" /> <el-table-column prop="OPERATOR" label="操作人" />
<el-table-column prop="OPERATTIME" label="操作时间" width="150" /> <el-table-column prop="OPERATTIME" label="操作时间" width="150" />
<el-table-column label="操作" width="80"> <el-table-column label="操作" width="80">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

View File

@ -15,9 +15,9 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="故障照片"> <el-descriptions-item label="故障照片">
<img <img
v-viewer
v-for="item in info.faultPhotos" v-for="item in info.faultPhotos"
:key="item.url" :key="item.url"
v-viewer
:src="item.url" :src="item.url"
alt="" alt=""
class="ml-10" class="ml-10"
@ -25,9 +25,9 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="故障处理后照片"> <el-descriptions-item label="故障处理后照片">
<img <img
v-viewer
v-for="item in info.faultAfterProcessingPhotos" v-for="item in info.faultAfterProcessingPhotos"
:key="item.url" :key="item.url"
v-viewer
:src="item.url" :src="item.url"
alt="" alt=""
class="ml-10" class="ml-10"
@ -35,9 +35,9 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="巡检照片"> <el-descriptions-item label="巡检照片">
<img <img
v-viewer
v-for="item in info.inspectionPhotos" v-for="item in info.inspectionPhotos"
:key="item.url" :key="item.url"
v-viewer
:src="item.url" :src="item.url"
alt="" alt=""
class="ml-10" class="ml-10"

View File

@ -37,8 +37,8 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetData" @get-data="fnGetData"
> >
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -50,7 +50,7 @@
<el-table-column prop="EQUIPMENTTYPENAME" label="设备类型" /> <el-table-column prop="EQUIPMENTTYPENAME" label="设备类型" />
<el-table-column prop="XJCOUNT" label="巡检次数" /> <el-table-column prop="XJCOUNT" label="巡检次数" />
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text
@ -78,8 +78,8 @@
</layout-table> </layout-table>
</layout-card> </layout-card>
<inspection <inspection
v-model:visible="data.inspectionDialog.visible"
:id="data.inspectionDialog.SPECIALEQUIPMENT_ID" :id="data.inspectionDialog.SPECIALEQUIPMENT_ID"
v-model:visible="data.inspectionDialog.visible"
@get-data="fnResetPagination" @get-data="fnResetPagination"
/> />
</div> </div>

View File

@ -41,8 +41,8 @@
</el-card> </el-card>
<layout-card> <layout-card>
<layout-table <layout-table
:data="list"
v-model:pagination="data.pagination" v-model:pagination="data.pagination"
:data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
> >
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
@ -54,7 +54,7 @@
<el-table-column prop="INSPECTOR" label="巡检人" /> <el-table-column prop="INSPECTOR" label="巡检人" />
<el-table-column prop="ISFAULT" label="是否有故障" /> <el-table-column prop="ISFAULT" label="是否有故障" />
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
v-if="buttonJurisdiction.edit" v-if="buttonJurisdiction.edit"
type="primary" type="primary"

View File

@ -2,8 +2,8 @@
<el-dialog <el-dialog
:title="title" :title="title"
:model-value="type === 105" :model-value="type === 105"
@close="fnClose"
width="1100px" width="1100px"
@close="fnClose"
> >
<div class="tr"> <div class="tr">
<el-button type="primary" @click="list.push({})"></el-button> <el-button type="primary" @click="list.push({})"></el-button>

View File

@ -2,8 +2,8 @@
<el-dialog <el-dialog
:title="title" :title="title"
:model-value="type === 104" :model-value="type === 104"
@close="fnClose"
width="1100px" width="1100px"
@close="fnClose"
> >
<div class="tr"> <div class="tr">
<el-button type="primary" @click="list.push({})"></el-button> <el-button type="primary" @click="list.push({})"></el-button>

View File

@ -2,8 +2,8 @@
<el-dialog <el-dialog
:title="title" :title="title"
:model-value="type === 103" :model-value="type === 103"
@close="fnClose"
width="1100px" width="1100px"
@close="fnClose"
> >
<div class="tr"> <div class="tr">
<el-button type="primary" @click="list.push({})"></el-button> <el-button type="primary" @click="list.push({})"></el-button>

View File

@ -2,8 +2,8 @@
<el-dialog <el-dialog
:title="title" :title="title"
:model-value="type === 1 || type === 2 || type === 3 || type === 4" :model-value="type === 1 || type === 2 || type === 3 || type === 4"
@close="fnClose"
width="1100px" width="1100px"
@close="fnClose"
> >
<div> <div>
<layout-upload <layout-upload
@ -31,10 +31,10 @@
> >
<el-table-column prop="FILE_NAME" width="130px" /> <el-table-column prop="FILE_NAME" width="130px" />
<el-table-column label="操作"> <el-table-column label="操作">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button type="primary" text link @click.stop="fnDelete(row)"> <el-button type="primary" text link @click.stop="fnDelete(row)">
<el-icon color="red" class="mr-10"> <el-icon color="red" class="mr-10">
<Delete /> <delete />
</el-icon> </el-icon>
删除 删除
</el-button> </el-button>
@ -44,7 +44,7 @@
</el-scrollbar> </el-scrollbar>
</div> </div>
<div class="content-right"> <div class="content-right">
<div class="content-tip" v-if="!pdfSrc"> <div v-if="!pdfSrc" class="content-tip">
<div class="box"> <div class="box">
<div class="icon"> <div class="icon">
<icon-file-pdf-one <icon-file-pdf-one
@ -60,7 +60,7 @@
</div> </div>
</div> </div>
</div> </div>
<layout-pdf :src="pdfSrc" model="normal" v-if="pdfSrc" /> <layout-pdf v-if="pdfSrc" :src="pdfSrc" model="normal" />
</div> </div>
</div> </div>
<template #footer> <template #footer>

View File

@ -2,8 +2,8 @@
<el-dialog <el-dialog
:title="title" :title="title"
:model-value="type === 101" :model-value="type === 101"
@close="fnClose"
width="1100px" width="1100px"
@close="fnClose"
> >
<div class="tr"> <div class="tr">
<el-button type="primary" @click="list.push({})"></el-button> <el-button type="primary" @click="list.push({})"></el-button>

View File

@ -2,8 +2,8 @@
<el-dialog <el-dialog
:title="title" :title="title"
:model-value="type === 102" :model-value="type === 102"
@close="fnClose"
width="1100px" width="1100px"
@close="fnClose"
> >
<div class="tr"> <div class="tr">
<el-button type="primary" @click="list.push({})"></el-button> <el-button type="primary" @click="list.push({})"></el-button>

View File

@ -20,7 +20,7 @@
<layout-table :data="data.list" :show-pagination="false"> <layout-table :data="data.list" :show-pagination="false">
<el-table-column prop="NAME" label="目录" /> <el-table-column prop="NAME" label="目录" />
<el-table-column label="操作" width="80"> <el-table-column label="操作" width="80">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button type="primary" text link @click="fnView(row)"> <el-button type="primary" text link @click="fnView(row)">
查看 查看
</el-button> </el-button>
@ -29,8 +29,8 @@
</layout-table> </layout-table>
</layout-card> </layout-card>
<component <component
v-if="data.component"
:is="data.component" :is="data.component"
v-if="data.component"
v-model:type="data.type" v-model:type="data.type"
:title="data.title" :title="data.title"
:year="data.searchForm.YEAR" :year="data.searchForm.YEAR"

View File

@ -311,9 +311,9 @@
> >
<img <img
v-if="item.TYPE === '1' && item.USER_SIGN_FILE_PATH" v-if="item.TYPE === '1' && item.USER_SIGN_FILE_PATH"
v-viewer
:src="VITE_FILE_URL + item.USER_SIGN_FILE_PATH" :src="VITE_FILE_URL + item.USER_SIGN_FILE_PATH"
style="height: 50px; width: 50px" style="height: 50px; width: 50px"
v-viewer
alt="" alt=""
class="mt-10" class="mt-10"
/> />
@ -328,9 +328,9 @@
> >
<img <img
v-if="item.TYPE === '2' && item.USER_SIGN_FILE_PATH" v-if="item.TYPE === '2' && item.USER_SIGN_FILE_PATH"
v-viewer
:src="VITE_FILE_URL + item.USER_SIGN_FILE_PATH" :src="VITE_FILE_URL + item.USER_SIGN_FILE_PATH"
style="height: 50px; width: 50px" style="height: 50px; width: 50px"
v-viewer
alt="" alt=""
class="mt-10" class="mt-10"
/> />

View File

@ -17,12 +17,12 @@
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">
<layout-table <layout-table
:data="list"
v-model:pagination="pagination" v-model:pagination="pagination"
:data="list"
@get-data="fnGetDataTransfer" @get-data="fnGetDataTransfer"
> >
<el-table-column label="序号" width="70"> <el-table-column label="序号" width="70">
<template v-slot="{ $index }"> <template #default="{ $index }">
{{ serialNumber(pagination, $index) }} {{ serialNumber(pagination, $index) }}
</template> </template>
</el-table-column> </el-table-column>
@ -48,7 +48,7 @@
label="完成任务数" label="完成任务数"
/> />
<el-table-column label="操作" width="200"> <el-table-column label="操作" width="200">
<template v-slot="{ row }"> <template #default="{ row }">
<el-button <el-button
type="primary" type="primary"
text text

Some files were not shown because too many files have changed in this diff Show More