|
@@ -339,7 +339,7 @@
|
|
|
</div>
|
|
|
<!-- </el-form-item> -->
|
|
|
<div style="display: flex; justify-content: flex-end; width: 100%;height: 100%;">
|
|
|
- <el-button plain type="danger" @click="deleteById(e)" v-hasPermi="['zdsz:engineeringCivilNode:remove']" style="width: 94px;">删除</el-button>
|
|
|
+ <el-button plain type="danger" @click=" handleDelete(e)" v-hasPermi="['zdsz:engineeringCivilNode:remove']" style="width: 94px;">删除</el-button>
|
|
|
<!-- <hr>-->
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
@@ -404,6 +404,7 @@ import {
|
|
|
|
|
|
} from '@/api/zdsz/enginee'
|
|
|
import ObsVideoUpload from "@/components/ObsVideoUpload/index.vue";
|
|
|
+import {delEngineeringCivil} from "@/api/zdsz/engineeringCivil";
|
|
|
export default {
|
|
|
name: 'ConstructionDetails',
|
|
|
dicts:[
|
|
@@ -598,6 +599,20 @@ export default {
|
|
|
deleteinfoById(e).then(res=>{
|
|
|
this.viewSource(this.nodesource)
|
|
|
})
|
|
|
+
|
|
|
+ },
|
|
|
+ handleDelete(row) {
|
|
|
+ this.$modal.confirm('是否确认删除所选数据项?').then(() => {
|
|
|
+ this.loading = true;
|
|
|
+ return this.deleteById(row)
|
|
|
+ }).then(() => {
|
|
|
+ this.loading = false;
|
|
|
+ this.getList();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ }).catch(() => {
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
// 查看历史
|
|
|
open(dicts, type = null,currentStatus = null,kind = null,title= null) {
|