From 4d5264ead8c96c78c9928e22fc66b0af190ed180 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Fri, 08 May 2026 11:06:42 +0800
Subject: [PATCH] 修改loading

---
 src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue |   28 +++++++++++++++++++++++-----
 1 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue b/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue
index 4eff802..938b4e8 100644
--- a/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue
+++ b/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue
@@ -11,7 +11,7 @@
               v-hasPermi="['inspectionStandards:add']"
           >新增</el-button>
         </el-form-item>
-        <el-form-item v-if="isAdmin" label="企业:" >
+        <el-form-item v-if="isAdmin" label="单位:" >
           <el-select v-model="data.queryParams.companyId" placeholder="请选择" clearable>
             <el-option
                 v-for="item in companyList"
@@ -21,7 +21,15 @@
             </el-option>
           </el-select>
         </el-form-item>
-        <el-form-item v-if="isAdmin">
+        <el-form-item label="年份:" style="margin-left: 20px">
+          <el-date-picker
+              v-model="data.queryParams.year"
+              type="year"
+              value-format="YYYY"
+              placeholder="请选择年份"
+          />
+        </el-form-item>
+        <el-form-item>
           <el-button  type="primary" @click="getList">查询</el-button>
           <el-button  type="primary" plain @click="reset">重置</el-button>
         </el-form-item>
@@ -30,6 +38,7 @@
     <!-- 表格数据 -->
     <el-table v-loading="loading" :data="dataList" :border="true">
       <el-table-column label="序号" type="index" align="center" width="80"/>
+      <el-table-column label="年份" prop="year" align="center"/>
       <el-table-column label="规范" prop="fileNameSimple" align="center"/>
       <el-table-column label="文件" prop="fileName" align="center">
         <template #default="scope">
@@ -87,7 +96,8 @@
     companyId: null,
     industryType: null,
     type: '',
-    templateName: ''
+    templateName: '',
+    year:''
   },
   total: 0,
   dataList: [],
@@ -111,12 +121,16 @@
     data.isAdmin = false
     data.queryParams.companyId = userStore.companyId
   }
+  await getNowYear()
   await getList()
 })
 
 onUnmounted(()=>{
 
 })
+const getNowYear = () =>{
+  data.queryParams.year = new Date().getFullYear().toString()
+}
 const openFile = async(path)=>{
   const ext = path.split('.').pop().toLowerCase();
   if (ext === 'doc' || ext === 'xls' || ext === 'xlsx'  || ext === 'ppt' || ext === 'pptx') {
@@ -229,7 +243,8 @@
       companyId: null,
       industryType: null,
       type: '',
-      templateName: ''
+      templateName: '',
+      year:''
     }
     await getCompanyList()
   }else {
@@ -239,11 +254,14 @@
       companyId: data.queryParams.companyId,
       industryType: null,
       type: '',
-      templateName: ''
+      templateName: '',
+      year:''
     }
   }
+  await getNowYear()
   await getList()
 }
+
 const handleDelete = (val) => {
   ElMessageBox.confirm(
       '确定删除此条数据?',

--
Gitblit v1.9.2