|
@@ -68,7 +68,7 @@
|
|
|
<!-- 左右拖动 -->
|
|
|
<div class="horizontal-drag-line" @mousedown="onmousedown" />
|
|
|
</div>
|
|
|
- <div id="wbs-content-box" class="hc-layout-content-box">
|
|
|
+ <div id="wbs-content-box" v-loading="ListItemLoading" class="hc-layout-content-box">
|
|
|
<!---展开收缩树 -->
|
|
|
<div class="hc-expansion-contraction-tree" @click="setWbsTreeShow">
|
|
|
<HcIcon v-show="isWbsTreeShow" name="arrow-left-s" />
|
|
@@ -103,7 +103,7 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
</template>
|
|
|
- <el-scrollbar v-if="ListItemDatas.length > 0" ref="ListItemScrollRef" v-loading="ListItemLoading">
|
|
|
+ <el-scrollbar v-if="ListItemDatas.length > 0" ref="ListItemScrollRef">
|
|
|
<CollapseForm
|
|
|
ref="ListItemRef"
|
|
|
:tree-auto-expand-keys="TreeAutoExpandKeys"
|
|
@@ -1535,39 +1535,30 @@ const ListItemOffsetTop = (offsetTop) => {
|
|
|
const ListItemDatas = ref([])
|
|
|
const ListItemLoading = ref(false)
|
|
|
const searchNodeAllTable = async () => {
|
|
|
+ ListItemLoading.value = true
|
|
|
ListItemDatas.value = []
|
|
|
const info = nodeDataInfo.value
|
|
|
- ListItemLoading.value = true
|
|
|
- const { error, code, data } = await wbsApi.searchNodeAllTable({
|
|
|
+ const { data } = await wbsApi.searchNodeAllTable({
|
|
|
projectId: projectId.value,
|
|
|
contractId: contractId.value,
|
|
|
primaryKeyId: info['primaryKeyId'],
|
|
|
type: authBtnTabKey.value,
|
|
|
})
|
|
|
- //处理数据
|
|
|
+ ListItemDatas.value = getArrValue(data)
|
|
|
ListItemLoading.value = false
|
|
|
- if (!error && code === 200) {
|
|
|
- ListItemDatas.value = getArrValue(data)
|
|
|
- } else {
|
|
|
- ListItemDatas.value = []
|
|
|
- }
|
|
|
}
|
|
|
+
|
|
|
const newlistdata = ref([])
|
|
|
const searchNodeAllTable1 = async () => {
|
|
|
console.log('重新获取表单列表')
|
|
|
const info = nodeDataInfo.value
|
|
|
- const { error, code, data } = await wbsApi.searchNodeAllTable({
|
|
|
+ const { data } = await wbsApi.searchNodeAllTable({
|
|
|
projectId: projectId.value,
|
|
|
contractId: contractId.value,
|
|
|
primaryKeyId: info['primaryKeyId'],
|
|
|
type: authBtnTabKey.value,
|
|
|
})
|
|
|
- //处理数据
|
|
|
- if (!error && code === 200) {
|
|
|
- newlistdata.value = getArrValue(data)
|
|
|
- } else {
|
|
|
- newlistdata.value = []
|
|
|
- }
|
|
|
+ newlistdata.value = getArrValue(data)
|
|
|
}
|
|
|
//查询状态
|
|
|
const NodeStatus = ref('1')
|