Kaynağa Gözat

档案鉴定搜索字段修改

duy 2 yıl önce
ebeveyn
işleme
04eadd17b4
1 değiştirilmiş dosya ile 22 ekleme ve 8 silme
  1. 22 8
      src/views/archives/appraisal.vue

+ 22 - 8
src/views/archives/appraisal.vue

@@ -33,7 +33,7 @@
                         </el-select>
                     </div>
                     <div class="w-40 ml-2">
-                        <el-select v-model="searchForm.certified" placeholder="文件大小" clearable>
+                        <el-select v-model="searchForm.fileSizeValue" placeholder="文件大小" clearable>
                             <el-option v-for="item in fileSize" :key="item.value" :label="item['label']" :value="item['value']"/>
                         </el-select>
                     </div>
@@ -48,8 +48,8 @@
                         </el-select>
                     </div>
                     <div class="w-40 ml-2" v-if="searchForm.isDeleted == 1">
-                        <el-select v-model="searchForm.certified" placeholder="销毁操作账户" clearable>
-                            <el-option v-for="item in operatingAccount" :key="item.value" :label="item['label']" :value="item['value']"/>
+                        <el-select v-model="searchForm.destroyUser" placeholder="销毁操作账户" clearable>
+                            <el-option v-for="item in operatingAccount" :key="item.id" :label="item['realName']" :value="item['id']"/>
                         </el-select>
                     </div>
                     <div class="ml-2">
@@ -118,6 +118,7 @@ watch(() => [
 onMounted(() => {
       getClassIfyList()
       getFilingUnitListdata()
+      getArchiveDestroyUserdata()
 })
 
 //树加载
@@ -186,11 +187,11 @@ const retentionPeriod = ref([
 
 //文件大小
 const fileSize = ref([
-    {label: '小于80M', value: '1'},
-    {label: '小于150M', value: '2'},
-    {label: '小于200M', value: '3'},
-    {label: '200M-500M', value: '4'},
-    {label: '大于500M', value: '5'},
+    {label: '小于80M', value: '小于80M'},
+    {label: '小于150M', value: '小于150M'},
+    {label: '小于200M', value: '小于200M'},
+    {label: '200M-500M', value: '200M-500M'},
+    {label: '大于500M', value: '大于500M'},
 ])
 //立卷单位
 const filingUnit = ref([
@@ -264,6 +265,19 @@ const getFilingUnitListdata=async()=>{
      
     }
  
+}
+//获取档案销毁账户
+const getArchiveDestroyUserdata=async()=>{
+    const { error, code, data } = await appraialApi.getArchiveDestroyUser()
+    if (!error && code === 200) {
+        console.log(data,'data');
+        operatingAccount.value = getArrValue(data)
+     
+    } else {
+        operatingAccount.value = []
+     
+    }
+ 
 }
 const showHistory=()=>{
     searchForm.value.isDeleted = 1