增加安全隐患展示列配置&&修改安全隐患管理表单
This commit is contained in:
32
README.md
32
README.md
@ -1,30 +1,6 @@
|
||||
## 开发
|
||||
# 内蒙古红峡化工厂科研生产管理大屏项目
|
||||
|
||||
```bash
|
||||
# 克隆项目
|
||||
git clone https://gitee.com/y_project/RuoYi-Vue
|
||||
## 运行
|
||||
|
||||
# 进入项目目录
|
||||
cd ruoyi-ui
|
||||
|
||||
# 安装依赖
|
||||
npm install
|
||||
|
||||
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
|
||||
npm install --registry=https://registry.npm.taobao.org
|
||||
|
||||
# 启动服务
|
||||
npm run dev
|
||||
```
|
||||
|
||||
浏览器访问 http://localhost:80
|
||||
|
||||
## 发布
|
||||
|
||||
```bash
|
||||
# 构建测试环境
|
||||
npm run build:stage
|
||||
|
||||
# 构建生产环境
|
||||
npm run build:prod
|
||||
```
|
||||
`npm install`
|
||||
`npm run dev`
|
||||
|
@ -1,105 +1,123 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
/** --------------- left1 --------------- */
|
||||
// 危险源列表
|
||||
export function leftOneList(params) {
|
||||
return request({
|
||||
url: '/hx/dangerousSource/list',
|
||||
params,
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousSource/list",
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 导出模板
|
||||
export function importTemplate() {
|
||||
return request({
|
||||
url: '/hx/dangerousSource/importTemplate',
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousSource/importTemplate",
|
||||
});
|
||||
}
|
||||
/** --------------- left2 --------------- */
|
||||
// 危险点列表
|
||||
export function leftTwoList(params) {
|
||||
return request({
|
||||
url: '/hx/dangerousPoint/list',
|
||||
params,
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousPoint/list",
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 导出模板
|
||||
export function leftTwoImportTemplate() {
|
||||
return request({
|
||||
url: '/hx/dangerousPoint/importTemplate',
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousPoint/importTemplate",
|
||||
});
|
||||
}
|
||||
/** --------------- left3 --------------- */
|
||||
// 危险作业列表
|
||||
export function leftThreeList(params) {
|
||||
return request({
|
||||
url: '/hx/dangerousWork/list',
|
||||
params,
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousWork/list",
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 导出模板
|
||||
export function leftThreeImportTemplate() {
|
||||
return request({
|
||||
url: '/hx/dangerousWork/importTemplate',
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousWork/importTemplate",
|
||||
});
|
||||
}
|
||||
/** --------------- left4 --------------- */
|
||||
// 安全隐患列表
|
||||
export function leftFourList(params) {
|
||||
return request({
|
||||
url: '/hx/hiddenDanger/list',
|
||||
params,
|
||||
})
|
||||
return request({
|
||||
url: "/hx/hiddenDanger/list",
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 导出模板
|
||||
export function leftFourImportTemplate() {
|
||||
return request({
|
||||
url: '/hx/hiddenDanger/importTemplate',
|
||||
})
|
||||
return request({
|
||||
url: "/hx/hiddenDanger/importTemplate",
|
||||
});
|
||||
}
|
||||
|
||||
// 查看安全隐患展示列
|
||||
export function leftFourSetting(params) {
|
||||
return request({
|
||||
url: "/business/hxTableConfig",
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改安全隐患展示列
|
||||
export function editTroubleItemSetting(data) {
|
||||
return request({
|
||||
url: "/business/hxTableConfig",
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/** --------------- center1 --------------- */
|
||||
// 危险场所列表
|
||||
export function centerOneList(params) {
|
||||
return request({
|
||||
url: '/hx/dangerousPlace/list',
|
||||
params,
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousPlace/list",
|
||||
params,
|
||||
});
|
||||
}
|
||||
export function centerOneImportTemplate() {
|
||||
return request({
|
||||
url: '/hx/dangerousPlace/importTemplate',
|
||||
})
|
||||
return request({
|
||||
url: "/hx/dangerousPlace/importTemplate",
|
||||
});
|
||||
}
|
||||
/** --------------- center2 --------------- */
|
||||
// 视频管理
|
||||
export function centerTwoList(params) {
|
||||
return request({
|
||||
url: '/hx/video/list',
|
||||
params,
|
||||
})
|
||||
return request({
|
||||
url: "/hx/video/list",
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 删除视频
|
||||
export function delVideo(params) {
|
||||
return request({
|
||||
url: '/hx/video',
|
||||
method: 'delete',
|
||||
params
|
||||
})
|
||||
url: "/hx/video",
|
||||
method: "delete",
|
||||
params,
|
||||
});
|
||||
}
|
||||
// 新增视频
|
||||
export function addVideo(data) {
|
||||
return request({
|
||||
url: '/hx/video',
|
||||
method:'post',
|
||||
data
|
||||
})
|
||||
return request({
|
||||
url: "/hx/video",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 修改视频
|
||||
export function editVideo(data) {
|
||||
return request({
|
||||
url: '/hx/video',
|
||||
method:'put',
|
||||
data
|
||||
})
|
||||
return request({
|
||||
url: "/hx/video",
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// /** --------------- right1 --------------- */
|
||||
// // 质量问题
|
||||
|
@ -1,173 +1,327 @@
|
||||
<template>
|
||||
<el-row :gutter="20">
|
||||
<!--用户数据-->
|
||||
<el-col :span="24" :xs="24">
|
||||
<el-row :gutter="10" class="mb8 fr">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="info" plain icon="el-icon-upload2" size="mini" @click="handleImport">导入</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
:loading="exportLoading"
|
||||
@click="importTemplate"
|
||||
>导出模板</el-button
|
||||
>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<!--用户数据-->
|
||||
<el-col :span="24" :xs="24">
|
||||
<el-row :gutter="10" class="mb8 fr">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="info"
|
||||
plain
|
||||
icon="el-icon-upload2"
|
||||
size="mini"
|
||||
@click="handleImport"
|
||||
>导入</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
:loading="exportLoading"
|
||||
@click="importTemplate"
|
||||
>导出模板</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
@click="selectTroubleItem"
|
||||
icon="el-icon-s-tools"
|
||||
>展示列配置</el-button
|
||||
>
|
||||
<el-button @click="getTroubleItem">test</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="userList">
|
||||
<el-table-column label="序号" align="center" prop="id" width="80" />
|
||||
<el-table-column label="车间名称" align="center" prop="workshopName" />
|
||||
<el-table-column label="日期" align="center" prop="month" />
|
||||
<el-table-column label="隐患内容" align="center" prop="dangerContent" />
|
||||
<el-table-column label="类别" align="center" prop="category" />
|
||||
<el-table-column label="措施" align="center" prop="measures" />
|
||||
<el-table-column label="责任人" align="center" prop="personLiable" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
</el-table>
|
||||
<el-table v-loading="loading" :data="userList">
|
||||
<el-table-column label="序号" align="center" prop="id" width="80" />
|
||||
<el-table-column label="所在位置" align="center" prop="address" />
|
||||
<el-table-column label="类别" align="center" prop="category" />
|
||||
<el-table-column label="检查日期" align="center" prop="checkDate" />
|
||||
<el-table-column label="存在问题" align="center" prop="existProblem" />
|
||||
<el-table-column
|
||||
label="责任人"
|
||||
align="center"
|
||||
prop="responsiblePerson"
|
||||
/>
|
||||
<el-table-column
|
||||
label="责任单位"
|
||||
align="center"
|
||||
prop="responsibleUnit"
|
||||
/>
|
||||
<el-table-column
|
||||
label="建议完成日期"
|
||||
align="center"
|
||||
prop="suggestCompleteTime"
|
||||
/>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:autoScroll="false"
|
||||
:pageSizes="[2, 5, 10, 20]"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-col>
|
||||
<!-- 用户导入对话框 -->
|
||||
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
accept=".xlsx, .xls"
|
||||
:headers="upload.headers"
|
||||
:action="upload.url"
|
||||
:disabled="upload.isUploading"
|
||||
:on-progress="handleFileUploadProgress"
|
||||
:on-success="handleFileSuccess"
|
||||
:auto-upload="false"
|
||||
drag
|
||||
>
|
||||
<i class="el-icon-upload"></i>
|
||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||
<div class="el-upload__tip" slot="tip">
|
||||
<!-- <div class="el-upload__tip" slot="tip">
|
||||
<el-table-column
|
||||
label="临时控制措施"
|
||||
align="center"
|
||||
prop="tempUpdateMethod"
|
||||
/>
|
||||
|
||||
<el-table-column label="整改建议" align="center" prop="updateSuggest" />
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:autoScroll="false"
|
||||
:pageSizes="[2, 5, 10, 20]"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-col>
|
||||
<!-- 用户导入对话框 -->
|
||||
<el-dialog
|
||||
:title="upload.title"
|
||||
:visible.sync="upload.open"
|
||||
width="400px"
|
||||
append-to-body
|
||||
>
|
||||
<el-upload
|
||||
ref="upload"
|
||||
:limit="1"
|
||||
accept=".xlsx, .xls"
|
||||
:headers="upload.headers"
|
||||
:action="upload.url"
|
||||
:disabled="upload.isUploading"
|
||||
:on-progress="handleFileUploadProgress"
|
||||
:on-success="handleFileSuccess"
|
||||
:auto-upload="false"
|
||||
drag
|
||||
>
|
||||
<i class="el-icon-upload"></i>
|
||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||
<div class="el-upload__tip" slot="tip">
|
||||
<!-- <div class="el-upload__tip" slot="tip">
|
||||
<el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的用户数据
|
||||
</div> -->
|
||||
<span>仅允许导入xls、xlsx格式文件。</span>
|
||||
<!-- <el-link
|
||||
<span>仅允许导入xls、xlsx格式文件。</span>
|
||||
<!-- <el-link
|
||||
type="primary"
|
||||
:underline="false"
|
||||
style="font-size: 12px; vertical-align: baseline"
|
||||
@click="importTemplate"
|
||||
>下载模板</el-link
|
||||
> -->
|
||||
</div>
|
||||
</el-upload>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitFileForm">确 定</el-button>
|
||||
<el-button @click="upload.open = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</el-row>
|
||||
</div>
|
||||
</el-upload>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitFileForm">确 定</el-button>
|
||||
<el-button @click="upload.open = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 安全隐患选择展示列对话框 -->
|
||||
<el-dialog
|
||||
:title="troubleItem.title"
|
||||
:visible.sync="troubleItem.open"
|
||||
width="500px"
|
||||
>
|
||||
<el-checkbox-group v-model="checkList" @change="handleTroubleItemChanged">
|
||||
<el-checkbox v-for="item in listTitles" :label="item" :key="item">{{
|
||||
item
|
||||
}}</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitTroubleItem">确 定</el-button>
|
||||
<el-button @click="troubleItem.open = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</el-row>
|
||||
</template>
|
||||
<script>
|
||||
import { leftFourList, leftFourImportTemplate } from './indexApi'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import {
|
||||
leftFourList,
|
||||
leftFourImportTemplate,
|
||||
leftFourSetting,
|
||||
editTroubleItemSetting,
|
||||
} from "./indexApi";
|
||||
import { getToken } from "@/utils/auth";
|
||||
|
||||
const checkListTitles = ["车间名称", "隐患内容", "类别", "措施", "责任人"];
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 导出遮罩层
|
||||
exportLoading: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: this.page_size,
|
||||
},
|
||||
// 用户信息
|
||||
userList: [],
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 用户导入参数
|
||||
upload: {
|
||||
// 是否显示弹出层(用户导入)
|
||||
open: false,
|
||||
// 弹出层标题(用户导入)
|
||||
title: '',
|
||||
// 是否禁用上传
|
||||
isUploading: false,
|
||||
// 是否更新已经存在的用户数据
|
||||
updateSupport: 0,
|
||||
// 设置上传的请求头部
|
||||
headers: { Authorization: 'Bearer ' + getToken() },
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + '/hx/hiddenDanger/importData',
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 查询用户列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
leftFourList(this.queryParams).then(res => {
|
||||
this.userList = res.rows
|
||||
this.total = res.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams
|
||||
this.$modal
|
||||
.confirm('是否确认导出所有数据项?')
|
||||
.then(() => {
|
||||
this.exportLoading = true
|
||||
return exportUser(queryParams)
|
||||
})
|
||||
.then(response => {
|
||||
this.$download.name(response.msg)
|
||||
this.exportLoading = false
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
/** 导入按钮操作 */
|
||||
handleImport() {
|
||||
this.upload.title = '数据导入'
|
||||
this.upload.open = true
|
||||
},
|
||||
/** 下载模板操作 */
|
||||
importTemplate() {
|
||||
leftFourImportTemplate().then(response => {
|
||||
this.$download.name(response.msg)
|
||||
})
|
||||
},
|
||||
// 文件上传中处理
|
||||
handleFileUploadProgress(event, file, fileList) {
|
||||
this.upload.isUploading = true
|
||||
},
|
||||
// 文件上传成功处理
|
||||
handleFileSuccess(response, file, fileList) {
|
||||
this.upload.open = false
|
||||
this.upload.isUploading = false
|
||||
this.$refs.upload.clearFiles()
|
||||
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true })
|
||||
this.getList()
|
||||
},
|
||||
// 提交上传文件
|
||||
submitFileForm() {
|
||||
this.$refs.upload.submit()
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 导出遮罩层
|
||||
exportLoading: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: this.page_size,
|
||||
},
|
||||
// 用户信息
|
||||
userList: [],
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 用户导入参数
|
||||
upload: {
|
||||
// 是否显示弹出层(用户导入)
|
||||
open: false,
|
||||
// 弹出层标题(用户导入)
|
||||
title: "",
|
||||
// 是否禁用上传
|
||||
isUploading: false,
|
||||
// 是否更新已经存在的用户数据
|
||||
updateSupport: 0,
|
||||
// 设置上传的请求头部
|
||||
headers: { Authorization: "Bearer " + getToken() },
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + "/hx/hiddenDanger/importData",
|
||||
},
|
||||
// 安全隐患选择展示列
|
||||
troubleItem: {
|
||||
// 是否显示弹出层(安全隐患展示列)
|
||||
open: false,
|
||||
// 弹出层标题(安全隐患展示列)
|
||||
title: "",
|
||||
// 设置上传的请求头部
|
||||
headers: { Authorization: "Bearer " + getToken() },
|
||||
// 接口地址
|
||||
url: process.env.VUE_APP_BASE_API + "/business/hxTableConfig",
|
||||
},
|
||||
checkList: [],
|
||||
listTitles: checkListTitles,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
/** 查询用户列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
||||
leftFourList(this.queryParams).then((res) => {
|
||||
this.userList = res.rows;
|
||||
this.total = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 获取安全隐患展示列表
|
||||
getTroubleItem() {
|
||||
this.loading = true;
|
||||
const params = { tableName: "hx_hidden_danger" };
|
||||
// checkList 转化成参数
|
||||
leftFourSetting(params).then((res) => {
|
||||
let list = {};
|
||||
list = JSON.parse(res.data);
|
||||
|
||||
// 复选框
|
||||
let checkDate = list.checkDate ?? false;
|
||||
let category = list.category ?? false;
|
||||
let address = list.address ?? false;
|
||||
let existProblem = list.existProblem ?? false;
|
||||
let responsiblePerson = list.responsiblePerson ?? false;
|
||||
let responsibleUnit = list.responsibleUnit ?? false;
|
||||
let suggestCompleteTime = list.suggestCompleteTime ?? false;
|
||||
let tempUpdateMethod = list.tempUpdateMethod ?? false;
|
||||
let updateSuggest = list.updateSuggest ?? false;
|
||||
|
||||
this.checkList = [];
|
||||
|
||||
if (responsibleUnit) this.checkList.push("车间名称");
|
||||
if (address && existProblem) this.checkList.push("隐患内容");
|
||||
if (updateSuggest && tempUpdateMethod) this.checkList.push("措施");
|
||||
if (category) this.checkList.push("类别");
|
||||
if (responsiblePerson) this.checkList.push("责任人");
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams;
|
||||
this.$modal
|
||||
.confirm("是否确认导出所有数据项?")
|
||||
.then(() => {
|
||||
this.exportLoading = true;
|
||||
return exportUser(queryParams);
|
||||
})
|
||||
.then((response) => {
|
||||
this.$download.name(response.msg);
|
||||
this.exportLoading = false;
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 导入按钮操作 */
|
||||
handleImport() {
|
||||
this.upload.title = "数据导入";
|
||||
this.upload.open = true;
|
||||
},
|
||||
/** 下载模板操作 */
|
||||
importTemplate() {
|
||||
leftFourImportTemplate().then((response) => {
|
||||
this.$download.name(response.msg);
|
||||
});
|
||||
},
|
||||
// 文件上传中处理
|
||||
handleFileUploadProgress(event, file, fileList) {
|
||||
this.upload.isUploading = true;
|
||||
},
|
||||
// 文件上传成功处理
|
||||
handleFileSuccess(response, file, fileList) {
|
||||
this.upload.open = false;
|
||||
this.upload.isUploading = false;
|
||||
this.$refs.upload.clearFiles();
|
||||
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
|
||||
this.getList();
|
||||
},
|
||||
// 提交上传文件
|
||||
submitFileForm() {
|
||||
this.$refs.upload.submit();
|
||||
},
|
||||
handleTroubleItemChanged(value) {
|
||||
this.checkList = value;
|
||||
},
|
||||
// 编辑安全隐患列表展示列
|
||||
selectTroubleItem() {
|
||||
this.troubleItem.title = "编辑安全隐患展示列";
|
||||
this.troubleItem.open = true;
|
||||
},
|
||||
// 提交安全隐患列表展示列
|
||||
submitTroubleItem() {
|
||||
let keyInfo = {};
|
||||
keyInfo.checkDate = true;
|
||||
keyInfo.suggestCompleteTime = true;
|
||||
keyInfo.category = this.checkList.indexOf("类别") > -1;
|
||||
keyInfo.responsibleUnit = this.checkList.indexOf("车间名称") > -1;
|
||||
|
||||
if (this.checkList.indexOf("隐患内容") > -1) {
|
||||
keyInfo.address = true;
|
||||
keyInfo.existProblem = true;
|
||||
} else {
|
||||
keyInfo.address = false;
|
||||
keyInfo.existProblem = false;
|
||||
}
|
||||
|
||||
if (this.checkList.indexOf("措施") > -1) {
|
||||
keyInfo.updateSuggest = true;
|
||||
keyInfo.tempUpdateMethod = true;
|
||||
} else {
|
||||
keyInfo.updateSuggest = false;
|
||||
keyInfo.tempUpdateMethod = false;
|
||||
}
|
||||
|
||||
keyInfo.responsiblePerson = this.checkList.indexOf("责任人") > -1;
|
||||
|
||||
let reqData = {};
|
||||
reqData.tableName = "hx_hidden_danger";
|
||||
reqData.keyInfo = JSON.stringify(keyInfo);
|
||||
|
||||
editTroubleItemSetting(reqData).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.troubleItem.open = false;
|
||||
this.getTroubleItem();
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.getTroubleItem();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user