|
@@ -301,13 +301,12 @@ import { nextTick, onMounted, ref, watch } from 'vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import HcTree from '~src/components/tree/hc-tree.vue'
|
|
import HcTree from '~src/components/tree/hc-tree.vue'
|
|
import { delMessage, rowsToId } from '~uti/tools'
|
|
import { delMessage, rowsToId } from '~uti/tools'
|
|
-import { arrKeySort, deepClone, downloadBlob, getArrValue, getObjVal } from 'js-fast-way'
|
|
|
|
import { getTokenHeader } from '~src/api/request/header'
|
|
import { getTokenHeader } from '~src/api/request/header'
|
|
import archiveFileApi from '~api/archiveFile/archiveFileAuto.js'
|
|
import archiveFileApi from '~api/archiveFile/archiveFileAuto.js'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
import tasksApi from '~api/tasks/data'
|
|
import tasksApi from '~api/tasks/data'
|
|
import ossApi from '~api/oss'
|
|
import ossApi from '~api/oss'
|
|
-
|
|
|
|
|
|
+import { arrKeySort, deepClone, downloadBlob, getArrValue, getObjVal } from 'js-fast-way'
|
|
|
|
|
|
//变量
|
|
//变量
|
|
const useAppState = useAppStore()
|
|
const useAppState = useAppStore()
|
|
@@ -353,11 +352,12 @@ const splitDate = (val)=>{
|
|
}
|
|
}
|
|
//打开文件选择框
|
|
//打开文件选择框
|
|
const uploadFileClick = () => {
|
|
const uploadFileClick = () => {
|
|
|
|
+ HcUploadFileRef?.value?.cancelUpload()
|
|
HcUploadFileRef?.value.selectFile()
|
|
HcUploadFileRef?.value.selectFile()
|
|
}
|
|
}
|
|
|
|
|
|
// 文件上传进度
|
|
// 文件上传进度
|
|
-const HcUploadFileProgress = ({ file, status }) => {
|
|
|
|
|
|
+const HcUploadFileProgress = () => {
|
|
uploadsLoading.value = true
|
|
uploadsLoading.value = true
|
|
}
|
|
}
|
|
// 文件上传成功的回调
|
|
// 文件上传成功的回调
|
|
@@ -381,22 +381,6 @@ const treeNodeLoading = () => {
|
|
}
|
|
}
|
|
|
|
|
|
const treePanelLoading = ref(false)
|
|
const treePanelLoading = ref(false)
|
|
-const panelTreeLoading = () => {
|
|
|
|
- treePanelLoading.value = false
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-//审批状态
|
|
|
|
-const approvalStatus = ref([
|
|
|
|
- { label: '未上报', value: '1' },
|
|
|
|
- { label: '待审批', value: '2' },
|
|
|
|
- { label: '已审批', value: '3' },
|
|
|
|
-])
|
|
|
|
-
|
|
|
|
-//认证状态
|
|
|
|
-const certifiedStatus = ref([
|
|
|
|
- { label: '已认证', value: '1' },
|
|
|
|
- { label: '未认证', value: '2' },
|
|
|
|
-])
|
|
|
|
|
|
|
|
//搜索表单
|
|
//搜索表单
|
|
const searchForm = ref({
|
|
const searchForm = ref({
|
|
@@ -406,12 +390,10 @@ const searchForm = ref({
|
|
})
|
|
})
|
|
|
|
|
|
//树相关的变量
|
|
//树相关的变量
|
|
-const primaryKeyId = ref('')
|
|
|
|
-const isBuiltDrawing = ref(0)
|
|
|
|
const isStorageNode = ref(0)
|
|
const isStorageNode = ref(0)
|
|
const nodeIds = ref('')
|
|
const nodeIds = ref('')
|
|
const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
|
|
const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
|
|
-const projectTreeClick = ({ node, data, keys, key }) => {
|
|
|
|
|
|
+const projectTreeClick = ({ data, keys }) => {
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
treeAutoExpandKeys.value = keys || []
|
|
treeAutoExpandKeys.value = keys || []
|
|
nodeIds.value = data.id || ''
|
|
nodeIds.value = data.id || ''
|
|
@@ -426,10 +408,9 @@ const projectTreeClick = ({ node, data, keys, key }) => {
|
|
getTableData()
|
|
getTableData()
|
|
}
|
|
}
|
|
//树菜单被点击
|
|
//树菜单被点击
|
|
-const ElTreeMenuClick = async ({ key, node, data, keys }) => {
|
|
|
|
|
|
+const ElTreeMenuClick = async ({ keys }) => {
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
treeAutoExpandKeys.value = keys || []
|
|
treeAutoExpandKeys.value = keys || []
|
|
-
|
|
|
|
}
|
|
}
|
|
//回车搜索
|
|
//回车搜索
|
|
const keyUpEvent = (e) => {
|
|
const keyUpEvent = (e) => {
|