|
@@ -8,10 +8,10 @@
|
|
<div class="text-lg truncate item-title">{{item.nodeName}}</div>
|
|
<div class="text-lg truncate item-title">{{item.nodeName}}</div>
|
|
<div class="hc-extra-text-box">
|
|
<div class="hc-extra-text-box">
|
|
<HcTooltip keys="wbs_del_table" v-if="item['isCopyTab'] === 1">
|
|
<HcTooltip keys="wbs_del_table" v-if="item['isCopyTab'] === 1">
|
|
- <el-button type="danger" plain :disabled="item['isBussShow'] === 2" @click.stop="delClick(item,index)">删除本表</el-button>
|
|
|
|
|
|
+ <el-button type="danger" plain :disabled="item['isBussShow'] === 2" @click.stop="delClick(item,index)" :loading="delClickLoading">删除本表</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_copy_table">
|
|
<HcTooltip keys="wbs_copy_table">
|
|
- <el-button type="primary" plain :disabled="item['isBussShow'] === 2" @click.stop="copyClick(item,index)">复制本表</el-button>
|
|
|
|
|
|
+ <el-button type="primary" plain :disabled="item['isBussShow'] === 2" @click.stop="copyClick(item,index)" :loading="copyClickLoading">复制本表</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_hide_table">
|
|
<HcTooltip keys="wbs_hide_table">
|
|
<el-button type="primary" plain @click.stop="hideClick(item,index)">
|
|
<el-button type="primary" plain @click.stop="hideClick(item,index)">
|
|
@@ -659,12 +659,13 @@ const getBussPdfInfo = async ({pKeyId}, showTip = true) => {
|
|
window?.$message?.warning('pkeyId为空')
|
|
window?.$message?.warning('pkeyId为空')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+const delClickLoading=ref(false)
|
|
//删除本表
|
|
//删除本表
|
|
const delClick = async ({pKeyId}) => {
|
|
const delClick = async ({pKeyId}) => {
|
|
const pkeyIds = getValString(pKeyId)
|
|
const pkeyIds = getValString(pKeyId)
|
|
if (pkeyIds) {
|
|
if (pkeyIds) {
|
|
const { id } = baseData.value
|
|
const { id } = baseData.value
|
|
|
|
+ delClickLoading.value=true
|
|
const {error, code} = await dataApi.removeBussTabInfo({
|
|
const {error, code} = await dataApi.removeBussTabInfo({
|
|
// id: id,
|
|
// id: id,
|
|
pKeyId: pkeyIds
|
|
pKeyId: pkeyIds
|
|
@@ -672,12 +673,14 @@ const delClick = async ({pKeyId}) => {
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
window?.$message?.success('操作成功')
|
|
window?.$message?.success('操作成功')
|
|
renewData()
|
|
renewData()
|
|
|
|
+ delClickLoading.value=false
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
window?.$message?.warning('pkeyId为空')
|
|
window?.$message?.warning('pkeyId为空')
|
|
|
|
+ delClickLoading.value=false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+const copyClickLoading=ref(false)
|
|
//复制本表
|
|
//复制本表
|
|
const copyClick = async (item,index) => {
|
|
const copyClick = async (item,index) => {
|
|
const pkeyIds = getValString(item.pKeyId)
|
|
const pkeyIds = getValString(item.pKeyId)
|
|
@@ -707,6 +710,7 @@ const copyClick = async (item,index) => {
|
|
|
|
|
|
const copeBussTab = async (pkeyIds) => {
|
|
const copeBussTab = async (pkeyIds) => {
|
|
const { id,contractId } = baseData.value
|
|
const { id,contractId } = baseData.value
|
|
|
|
+ copyClickLoading.value=true
|
|
const {error, code} = await dataApi.copyBussTab({
|
|
const {error, code} = await dataApi.copyBussTab({
|
|
id: id,
|
|
id: id,
|
|
pKeyId: pkeyIds,
|
|
pKeyId: pkeyIds,
|
|
@@ -717,6 +721,7 @@ const copeBussTab = async (pkeyIds) => {
|
|
renewData()
|
|
renewData()
|
|
chageOrinData()
|
|
chageOrinData()
|
|
}
|
|
}
|
|
|
|
+ copyClickLoading.value=false
|
|
}
|
|
}
|
|
|
|
|
|
//隐藏本表
|
|
//隐藏本表
|