|
@@ -1562,7 +1562,7 @@ import { HcIsButton } from '~src/plugins/IsButtons'
|
|
import CollapseForm from './collapse-form/index.vue'
|
|
import CollapseForm from './collapse-form/index.vue'
|
|
import NodeTree from './components/nodeTree/index.vue'
|
|
import NodeTree from './components/nodeTree/index.vue'
|
|
import HcTreeNode from './components/HcTreeNode.vue'
|
|
import HcTreeNode from './components/HcTreeNode.vue'
|
|
-import { HcUploadFileApi } from 'hc-vue3-ui'
|
|
|
|
|
|
+import { HcFirmMsg, HcUploadFileApi } from 'hc-vue3-ui'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getChildList } from '~api/other'
|
|
import { getChildList } from '~api/other'
|
|
@@ -4420,29 +4420,39 @@ nodeDataInfo.value = data
|
|
|
|
|
|
}
|
|
}
|
|
const hideSaveLoading = ref(false)
|
|
const hideSaveLoading = ref(false)
|
|
-const hideTreeNode = async (data) => {
|
|
|
|
- hideSaveLoading.value = true
|
|
|
|
- if ([3, 4].includes(data.colorStatus)) {
|
|
|
|
- window.$message.warning('已审批”、“已填报-待审批”的节点不允许隐藏;')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+const hideTreeNode = (data) => {
|
|
|
|
+ console.log( data.isBussShow, ' data.isBussShow')
|
|
|
|
+
|
|
|
|
+ HcFirmMsg( {
|
|
|
|
+ title: data.isBussShow === 2 ? '确定要显示此节点吗?' : '确定要隐藏此节点吗?',
|
|
|
|
+ text: '请确认要执行此操作吗?',
|
|
|
|
+ }, async (resolve) => {
|
|
|
|
+ hideSaveLoading.value = true
|
|
|
|
+ if ([3, 4].includes(data.colorStatus)) {
|
|
|
|
+ window.$message.warning('已审批”、“已填报-待审批”的节点不允许隐藏;')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
|
|
- //发起请求
|
|
|
|
- hideSaveLoading.value = true
|
|
|
|
- const { error, code, msg } = await wbsApi.updateNodeStates(
|
|
|
|
- {
|
|
|
|
- ids: data['primaryKeyId'],
|
|
|
|
- // status: 2,
|
|
|
|
- status:data.isBussShow == 2 ? 0 : 2, //2隐藏 0显示
|
|
|
|
- },
|
|
|
|
- false,
|
|
|
|
- )
|
|
|
|
- hideSaveLoading.value = false
|
|
|
|
- if (!error && code === 200) {
|
|
|
|
|
|
+ //发起请求
|
|
|
|
+ hideSaveLoading.value = true
|
|
|
|
+ const { error, code, msg } = await wbsApi.updateNodeStates(
|
|
|
|
+ {
|
|
|
|
+ ids: data['primaryKeyId'],
|
|
|
|
+ // status: 2,
|
|
|
|
+ status:data.isBussShow == 2 ? 0 : 2, //2隐藏 0显示
|
|
|
|
+ },
|
|
|
|
+ false,
|
|
|
|
+ )
|
|
|
|
+ hideSaveLoading.value = false
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
|
|
- data.isBussShow = data.isBussShow == 2 ? 0 : 2
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ data.isBussShow = data.isBussShow == 2 ? 0 : 2
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ resolve()
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
const isLookHide = ref(true)
|
|
const isLookHide = ref(true)
|
|
const handleClickBack = ()=>{
|
|
const handleClickBack = ()=>{
|