Sfoglia il codice sorgente

获取题名调接口

duy 2 anni fa
parent
commit
f6e39c5476

+ 8 - 0
src/api/modules/other-file/imageData.js

@@ -98,4 +98,12 @@ export default {
             responseType: 'blob'
         }, msg);
     },
+    //接口获取题名
+    async getFileTitleName(form, msg = true) {
+        return httpApi({
+            url: '/api/blade-business/imageClassificationFile/getFileTitleName',
+            method: 'get',
+            params: form
+        }, msg);
+    },
 }

+ 14 - 1
src/views/other-file/image-form.vue

@@ -157,6 +157,7 @@ onMounted(() => {
     formDataFormat({})
     queryById()
     formValue.value.shootingUser = userInfo.value['real_name']
+    getFileTitleNamedata()
 })
 
 //详情
@@ -172,7 +173,19 @@ const queryById = async () => {
         }
     }
 }
-
+//获取题名
+const getFileTitleNamedata = async () => {
+    if(wbsNodeIds){
+        const {error, code, data} = await imageApi.getFileTitleName({pKeyId: wbsNodeIds})
+        //判断状态
+        if (!error && code === 200) {
+           formValue.value.title=data
+           console.log(formValue.value.title,'formValue.value.title');
+        }
+    }
+      
+    
+}
 //项目树被点击
 const wbsId = ref('')
 const treeItemInfo = ref({})