企业后台检查库添加删除功能
This commit is contained in:
parent
f3a55d7b21
commit
c34f2d2579
@ -14,6 +14,7 @@ export const editDangerItemRecordApi = data => post('xmgl/dangerItemRecord/edit
|
|||||||
export const getDangerItemRecordApi = data => post('xmgl/dangerItemRecord/list', data); //质量问题库信息 列表信息---右边
|
export const getDangerItemRecordApi = data => post('xmgl/dangerItemRecord/list', data); //质量问题库信息 列表信息---右边
|
||||||
export const getCompanyDangerItemRecordApi = data => post('xmgl/dangerItemRecord/selectCompanyDangerItemRecordList', data); //企业质量问题库信息 列表信息---右边
|
export const getCompanyDangerItemRecordApi = data => post('xmgl/dangerItemRecord/selectCompanyDangerItemRecordList', data); //企业质量问题库信息 列表信息---右边
|
||||||
export const delDangerItemRecordApi = data => post('xmgl/dangerItemRecord/delete', data); // 删除质量问题库—子项信息
|
export const delDangerItemRecordApi = data => post('xmgl/dangerItemRecord/delete', data); // 删除质量问题库—子项信息
|
||||||
|
export const delDangerTypeRecordApi = data => get('/xmgl/dangerTypeRecord/deleteByDangerTypeId',data) // 删除 左边
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -41,10 +41,10 @@ if (process.env.NODE_ENV == 'development') {
|
|||||||
// tag: 本地
|
// tag: 本地
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地
|
// axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.216:6023/' // 邱平毅本地
|
axios.defaults.baseURL = 'http://192.168.34.216:6023/' // 邱平毅本地
|
||||||
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
||||||
axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.216:18070/' // 邱平毅本地
|
// axios.defaults.baseURL = 'http://192.168.34.216:18070/' // 邱平毅本地
|
||||||
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
||||||
// axios.defaults.baseURL = 'http://47.97.202.104:6023/';
|
// axios.defaults.baseURL = 'http://47.97.202.104:6023/';
|
||||||
|
|||||||
@ -135,6 +135,7 @@ const routes2 = [
|
|||||||
name: '视频监控_视频中心',
|
name: '视频监控_视频中心',
|
||||||
component: () => import('@/views/companyFront/videoManage/playVideo.vue')
|
component: () => import('@/views/companyFront/videoManage/playVideo.vue')
|
||||||
},
|
},
|
||||||
|
// 企业前台 塔吊工效分析
|
||||||
{
|
{
|
||||||
path: '/firm/towerManage',
|
path: '/firm/towerManage',
|
||||||
name: 'towerManage',
|
name: 'towerManage',
|
||||||
|
|||||||
@ -90,13 +90,13 @@
|
|||||||
@click="edit1(name, 1)"
|
@click="edit1(name, 1)"
|
||||||
style="font-size: 14px"
|
style="font-size: 14px"
|
||||||
></el-button>
|
></el-button>
|
||||||
<!-- <el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
size="medium"
|
size="medium"
|
||||||
style="color: red;font-size: 14px;"
|
style="color: red;font-size: 14px;"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="del1(name.id)"
|
@click="del1(name.id,1)"
|
||||||
></el-button> -->
|
></el-button>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<ul
|
<ul
|
||||||
@ -163,13 +163,13 @@
|
|||||||
style="font-size: 14px"
|
style="font-size: 14px"
|
||||||
@click="edit1(item, 2)"
|
@click="edit1(item, 2)"
|
||||||
></el-button>
|
></el-button>
|
||||||
<!-- <el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
size="medium"
|
size="medium"
|
||||||
style="color: red;font-size: 14px;"
|
style="color: red;font-size: 14px;"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="del1(item.id)"
|
@click="del1(item.id,2)"
|
||||||
></el-button> -->
|
></el-button>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -432,6 +432,7 @@ import {
|
|||||||
addDangerTypeRecordApi,
|
addDangerTypeRecordApi,
|
||||||
editDangerTypeRecordApi,
|
editDangerTypeRecordApi,
|
||||||
delDangerItemRecordApi,
|
delDangerItemRecordApi,
|
||||||
|
delDangerTypeRecordApi,
|
||||||
getCompanyDangerTypeRecordApi,
|
getCompanyDangerTypeRecordApi,
|
||||||
addDangerItemRecordApi,
|
addDangerItemRecordApi,
|
||||||
editDangerItemRecordApi,
|
editDangerItemRecordApi,
|
||||||
@ -629,8 +630,8 @@ export default {
|
|||||||
this.dialogdata = data;
|
this.dialogdata = data;
|
||||||
},
|
},
|
||||||
delSave1() {
|
delSave1() {
|
||||||
delDangerItemRecordApi({ id: this.editId }).then((res) => {
|
if(this.type == 3){
|
||||||
console.log('========',res)
|
delDangerItemRecordApi({ id: this.editId }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '删除成功',
|
message: '删除成功',
|
||||||
@ -646,6 +647,25 @@ export default {
|
|||||||
}
|
}
|
||||||
this.dialogVisible1 = false;
|
this.dialogVisible1 = false;
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
delDangerTypeRecordApi({ id: this.editId }).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message({
|
||||||
|
message: '删除成功',
|
||||||
|
type: 'success',
|
||||||
|
});
|
||||||
|
this.loadList();
|
||||||
|
this.loadRigthtList()
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: '删除失败',
|
||||||
|
type: "error",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.dialogVisible1 = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// this.dialogVisible1 = false;
|
// this.dialogVisible1 = false;
|
||||||
// this.$message({
|
// this.$message({
|
||||||
// message: "删除成功",
|
// message: "删除成功",
|
||||||
@ -672,7 +692,7 @@ export default {
|
|||||||
// });
|
// });
|
||||||
},
|
},
|
||||||
del1(id, type) {
|
del1(id, type) {
|
||||||
console.log(id);
|
console.log('当前点击的id',id,'类型',type)
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.title = "删除";
|
this.title = "删除";
|
||||||
this.editId = id;
|
this.editId = id;
|
||||||
|
|||||||
@ -2185,7 +2185,9 @@ export default {
|
|||||||
'&enterDate=' +
|
'&enterDate=' +
|
||||||
this.tableParameter.enterDate +
|
this.tableParameter.enterDate +
|
||||||
'&codeState=' +
|
'&codeState=' +
|
||||||
this.tableParameter.codeState
|
this.tableParameter.codeState +
|
||||||
|
'&enterpriseId=' +
|
||||||
|
this.checkedId
|
||||||
},
|
},
|
||||||
getConfig() {
|
getConfig() {
|
||||||
getProjectUfaceConfigInfo({
|
getProjectUfaceConfigInfo({
|
||||||
|
|||||||
@ -2438,7 +2438,9 @@ export default {
|
|||||||
'&enterDate=' +
|
'&enterDate=' +
|
||||||
this.tableParameter.enterDate +
|
this.tableParameter.enterDate +
|
||||||
'&codeState=' +
|
'&codeState=' +
|
||||||
this.tableParameter.codeState
|
this.tableParameter.codeState +
|
||||||
|
'&enterpriseId=' +
|
||||||
|
this.checkedId
|
||||||
},
|
},
|
||||||
getConfig() {
|
getConfig() {
|
||||||
getProjectUfaceConfigInfo({
|
getProjectUfaceConfigInfo({
|
||||||
|
|||||||
@ -499,11 +499,16 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
breadcrumbClick(index){
|
breadcrumbClick(index){
|
||||||
console.log(index)
|
console.log('当前点击的',index)
|
||||||
if(this.tableType !== 0 && index === 0){
|
if(this.tableType !== 0 && index === 0){
|
||||||
this.breadcrumbItem.splice(1,this.tableType)
|
this.breadcrumbItem.splice(1,this.tableType)
|
||||||
this.tableType = 0
|
this.tableType = 0
|
||||||
}
|
}
|
||||||
|
// if(this.tableType === 1 && index === 1){
|
||||||
|
// // console.log('点击的是第二级')
|
||||||
|
// // console.log('=====',this.breadcrumbItem)
|
||||||
|
// // this.breadcrumbItem.splice(/* '编辑' */this.$t('message.projectInfo.edit'),1)
|
||||||
|
// }
|
||||||
console.log(this.tableData)
|
console.log(this.tableData)
|
||||||
},
|
},
|
||||||
handleClick(row,buildingIndex,index){
|
handleClick(row,buildingIndex,index){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user