| | |
| | | <el-table-column label="操作" align="center" width="250"> |
| | | <template #default="{ row }"> |
| | | <el-button class="table_btn" size="mini" v-if="showButton('update')" @click="updateProp(row)">修改</el-button> |
| | | <el-button class="delete_btn" size="mini" v-if="showButton('delete')" @click="deleteInfo(row)">删除</el-button> |
| | | <!-- <el-button class="delete_btn" size="mini" v-if="showButton('delete')" @click="deleteInfo(row)">删除</el-button> --> |
| | | <el-button class="table_btn" size="mini" v-if="showButton('update')&&row.auditStatus!==1" @click="checkHidden(row)">审核</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | dangerLocation: [{ |
| | | required: true, |
| | | message: '请输入隐患地点', |
| | | trigger: 'blur' |
| | | trigger: 'change' |
| | | }], |
| | | title: [{ |
| | | required: true, |
| | |
| | | optionsType:[],//设备类型 |
| | | optionsDevice:[],//设备名称 |
| | | optionsUser:[],//负责人 |
| | | dictId:null, |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.$api.Safety.detailsHiddenInfo({id: row.id}).then(res=>{ |
| | | if(res.statusMsg === 'ok'){ |
| | | this.ruleForm = res.data |
| | | this.dictId = res.data.dictId |
| | | res.data.imgEntities.map(item=>{ |
| | | this.imageList.push({ |
| | | id: this.imageList.length + 1, |
| | |
| | | arrTitle.push({imgPath:item.name}) |
| | | }) |
| | | params.imgEntities = arrTitle |
| | | params.dictId = this.dictId |
| | | this.$api.Safety.updateHiddenInfo(params).then((res) => { |
| | | if(res.statusMsg === 'ok') { |
| | | this.asyncVisible = false; |