|
@@ -114,7 +114,7 @@ import {useAppStore} from "~src/store";
|
|
|
import {ref, watch, onMounted,nextTick,toRefs,computed } from "vue";
|
|
|
import {roletree,getDictionary,archiveTreeSave,archiveTreeDetail,archiveTreeUpdate} from "~api/other";
|
|
|
import archiveFileApi from "~api/archiveFile/archiveFile";
|
|
|
-import {getArrValue} from "js-fast-way"
|
|
|
+import {getArrValue,isArrItem} from "js-fast-way"
|
|
|
const useAppState = useAppStore()
|
|
|
|
|
|
const contractId = ref(useAppState.getContractId);
|
|
@@ -312,7 +312,7 @@ const confirmClick = async () => {
|
|
|
}
|
|
|
|
|
|
const saveTreeNode = async (form)=>{
|
|
|
- if (form.majorDataType) {
|
|
|
+ if (isArrItem( form?.majorDataType)) {
|
|
|
if (form.majorDataType.length > 0) {
|
|
|
let das = ''
|
|
|
form.majorDataType.forEach((val, key) => {
|