视频管理设备国标编号编辑出错,动火作业删除按钮权限

5_7_地图同步
limingyu 2024-04-03 09:31:50 +08:00
parent 8f3a8a02e3
commit ef1eb7fe0b
3 changed files with 28 additions and 2 deletions

View File

@ -74,7 +74,7 @@
<el-table-column label="操作" align="center" width="230" > <el-table-column label="操作" align="center" width="230" >
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID)"></el-button> <el-button type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID)"></el-button>
<el-button v-if="loginUserId == '1'" type="danger" icon="el-icon-delete" size="mini" @click="goDelete(row.HOTWORKAPPLICATION_ID)"></el-button> <el-button v-if="(loginUserId == '1' || loginUserId == row.APPLY_USER_ID) && row.STATE != 11" type="danger" icon="el-icon-delete" size="mini" @click="goDelete(row.HOTWORKAPPLICATION_ID)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@ -92,6 +92,7 @@
<el-table-column label="操作" align="center" width="230"> <el-table-column label="操作" align="center" width="230">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORK_ID)"></el-button> <el-button type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORK_ID)"></el-button>
<el-button v-if="(loginUserId == '1' || loginUserId == row.APPLY_USER_ID) && row.STATE != 11" type="danger" icon="el-icon-delete" size="mini" @click="goDelete(row.HOTWORK_ID)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -102,6 +103,7 @@
</div> </div>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" /> <pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div> </div>
<div style="height: 50px"/>
</div> </div>
</template> </template>
<script> <script>
@ -319,6 +321,28 @@ export default {
goDetail(id) { goDetail(id) {
this.$parent.activeName = 'DetailCfd' this.$parent.activeName = 'DetailCfd'
this.$parent.HOTWORK_ID = id this.$parent.HOTWORK_ID = id
},
goDelete(id) {
this.$confirm('确认删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
requestFN(
'/dangerousWork/hotwork/delete',
{
HOTWORK_ID: id
}
).then((data) => {
this.$message({
type: 'success',
message: '删除成功!'
})
this.getList()
}).catch((e) => {
this.listLoading = false
})
})
} }
} }
} }

View File

@ -511,6 +511,7 @@ export default {
this.addForm.info.PERSON = row.PERSON this.addForm.info.PERSON = row.PERSON
this.addForm.info.REMAKE = row.REMAKE this.addForm.info.REMAKE = row.REMAKE
this.addForm.info.CORPINFO_ID = row.CORPINFO_ID this.addForm.info.CORPINFO_ID = row.CORPINFO_ID
this.addForm.info.NATIONAL_STANDARD_ID = row.NATIONAL_STANDARD_ID
this.addForm.dialogType = 'edit' this.addForm.dialogType = 'edit'
this.addForm.dialogVisible = true this.addForm.dialogVisible = true
}, },
@ -594,7 +595,8 @@ export default {
REMAKE: '', // 线 REMAKE: '', // 线
PHONE: '', // PHONE: '', //
PERSON: '', // PERSON: '', //
CORPINFO_ID: '' // ID CORPINFO_ID: '', // ID
NATIONAL_STANDARD_ID: '' //
} }
}, },
// //