视频管理设备国标编号编辑出错,动火作业删除按钮权限
parent
8f3a8a02e3
commit
ef1eb7fe0b
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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: '' // 设备国标编号
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 搜索
|
// 搜索
|
||||||
|
|
Loading…
Reference in New Issue