|
@@ -27,6 +27,7 @@
|
|
|
<HcTable :column="tableBasicColumn" :datas="tableBasicData" :isIndex="false" border>
|
|
|
<template #type="{row}">{{getRowType(row['type'])}}</template>
|
|
|
<template #majorDataType="{row}">{{getRowMajorType(row['majorDataType'])}}</template>
|
|
|
+
|
|
|
</HcTable>
|
|
|
</HcCard>
|
|
|
</div>
|
|
@@ -41,6 +42,14 @@
|
|
|
<HcTable :column="tableProjectColumn" :datas="tableProjectData" :isIndex="false" border>
|
|
|
<template #tableType="{row}">{{getRowTableType(row['tableType'])}}</template>
|
|
|
<template #tableOwner="{row}">{{getRowTableOwnerType(row['tableOwner'])}}</template>
|
|
|
+ <template #action="{row}">
|
|
|
+ <HcTooltip keys="wbs_views_delexcel">
|
|
|
+ <el-button type="primary" plain size="small" @click="deltableexcel(row)">
|
|
|
+ <HcIcon name="delete-bin"/>
|
|
|
+ <span>删除</span>
|
|
|
+ </el-button>
|
|
|
+ </HcTooltip>
|
|
|
+ </template>
|
|
|
</HcTable>
|
|
|
</HcCard>
|
|
|
</div>
|
|
@@ -437,7 +446,8 @@ const tableBasicColumn = ref([
|
|
|
{key:'title', name: '节点名称'},
|
|
|
{key:'partitionCode', name: '划分编号'},
|
|
|
{key:'type', name: '节点类型'},
|
|
|
- {key:'majorDataType', name: '资料类型'}
|
|
|
+ {key:'majorDataType', name: '资料类型'},
|
|
|
+
|
|
|
])
|
|
|
const tableBasicData = ref([])
|
|
|
|
|
@@ -464,7 +474,8 @@ const tableProjectColumn = ref([
|
|
|
{key:'nodeName', name: '工程用表名称'},
|
|
|
{key:'tableType', name: '用表类型'},
|
|
|
{key:'tableOwner', name: '用表单位'},
|
|
|
- {key:'fillRate', name: '填报完整率'}
|
|
|
+ {key:'fillRate', name: '填报完整率'},
|
|
|
+ {key:'action', name: '操作', width: 100}
|
|
|
])
|
|
|
const tableProjectData = ref([])
|
|
|
//获取数据
|
|
@@ -981,7 +992,26 @@ const addingFormClick = () => {
|
|
|
window?.$message?.warning('请先选择一个最子级的节点')
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+//删除当前节点用表
|
|
|
+const deltableexcel = (row) => {
|
|
|
+ console.log('删除',row);
|
|
|
+ window?.$messageBox?.alert('请谨慎考虑后,确认是否需要删除?', '删除', {
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '确认删除',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ callback:async (action) => {
|
|
|
+ if (action === 'confirm') {
|
|
|
+ const {error, code} = await divisionApi.removeWbsTreeContract({
|
|
|
+ id: row.id
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window?.$message?.success('删除成功')
|
|
|
+ window?.location?.reload() //刷新页面
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
//树配置
|
|
|
const addingFormTreeRef = ref(null)
|
|
|
const addingFormTreeProps = {
|