From a013aea101294906be4af0f5081dc6f5c2878d02 Mon Sep 17 00:00:00 2001
From: 叶松 <2217086471@qq.com>
Date: 星期一, 27 十一月 2023 22:29:27 +0800
Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe
---
web/src/views/SecureManage/NipCheck/NipTips.vue | 30 ++++++++++++++++++++++++++++--
1 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/web/src/views/SecureManage/NipCheck/NipTips.vue b/web/src/views/SecureManage/NipCheck/NipTips.vue
index 8c76e13..21f07f7 100644
--- a/web/src/views/SecureManage/NipCheck/NipTips.vue
+++ b/web/src/views/SecureManage/NipCheck/NipTips.vue
@@ -74,7 +74,14 @@
</el-date-picker>
</el-form-item>
<el-form-item label="隐患地点:" prop="dangerLocation">
- <el-input v-model="ruleForm.dangerLocation" :size="size" clearable placeholder="请输入隐患地点" :disabled="disabled"></el-input>
+ <el-select v-model="ruleForm.dangerLocation" placeholder="请选择隐患地点" clearable :disabled="disabled">
+ <el-option
+ v-for="item in positonOptions"
+ :key="item.dictId"
+ :label="item.dictName"
+ :value="item.dictId">
+ </el-option>
+ </el-select>
</el-form-item>
<el-form-item label="隐患标题" prop="title">
<el-input v-model="ruleForm.title" :size="size" type="textarea" :rows="5" clearable placeholder="请输入隐患标题" :disabled="disabled"></el-input>
@@ -128,7 +135,9 @@
total: 0,
disabled:false,
loading: false,
+ userId:null,//创建人
dataList: [], //举报隐患信息列表
+ positonOptions:[],//隐患地点
imageList:[],
asyncTitle: true, // 对话框title 新增:true 修改:false
asyncVisible: false, // 添加 修改对话框
@@ -200,8 +209,23 @@
that.size = changeSize();
}
that.searchButtonInfo(true);
+ that.searchPositionInfos()
},
methods: {
+ //获取隐患地点
+ searchPositionInfos(){
+ let params = {
+ pageNum: 1,
+ pageSize: 100000000
+ }
+ this.$api.Dictionary.searchDictionary(params).then(res=>{
+ if(res.statusMsg === 'ok'){
+ this.positonOptions = res.data.list.filter(item =>item.dictType === 'danger_region')
+ }else{
+ this.$message.warning(res.statusMsg)
+ }
+ })
+ },
// 查询按钮列表信息
searchButtonInfo(bol) {
if(bol) {
@@ -231,6 +255,7 @@
},
// 审核按钮
checkHidden(row) {
+ this.userId = row.createUser
this.asyncTitle = true;
this.imageList = []
this.asyncVisible = true;
@@ -267,7 +292,7 @@
params.endTime = this.search.time&&this.search.time[1]
delete params.time
this.functionLoading();
- this.$api.Analyse.exportAuxilliaryCost(params).then(res => {
+ this.$api.Safety.exportHiddenFiles(params).then(res => {
downFiles(res, '举报信息', 'xls')
this.loadingView.close()
})
@@ -329,6 +354,7 @@
arrTitle.push({imgPath:item.name})
})
params.imgEntities = arrTitle
+ params.createUser = this.userId
this.$api.Safety.checkHiddenInfo(params).then((res) => {
if(res.statusMsg === 'ok') {
this.asyncVisible = false;
--
Gitblit v1.9.3