浏览代码

通过未通过选择框

gaozhangdian 2 年之前
父节点
当前提交
7add11e7a2
共有 1 个文件被更改,包括 27 次插入7 次删除
  1. 27 7
      src/views/bookManage/index.vue

+ 27 - 7
src/views/bookManage/index.vue

@@ -39,6 +39,19 @@
             }}</a-select-option>
           </a-select>
         </a-form-item>
+        <a-form-item
+          has-feedback
+          label="审核状态"
+          name="auditStatus"
+          :wrapper-col="selectWrapperCol"
+        >
+          <a-select
+            v-model:value="formState.auditStatus"
+            :options="auditStatusList"
+            placeholder="请选择"
+            allow-clear
+          />
+        </a-form-item>
         <a-form-item label="创建时间" name="dateRange">
           <a-range-picker
             v-model:value="formState.dateRange"
@@ -94,12 +107,12 @@
             text == '1'
               ? '电子图书'
               : text == '2'
-                ? '文献资料'
-                : text == '3'
-                  ? '学术论文'
-                  : text == '4'
-                    ? '其他'
-                    : ''
+              ? '文献资料'
+              : text == '3'
+              ? '学术论文'
+              : text == '4'
+              ? '其他'
+              : ''
           }}
         </template>
         <template #audit="{ record }">
@@ -110,7 +123,7 @@
         <template #action="{ record }">
           <a-space :size="10">
             <a-button type="link" @click="updateBook(record)" :disabled="record.status == '1'"
-            >编辑</a-button
+              >编辑</a-button
             >
             <a @click="backBook(record)" v-if="record.status == '1'">撤回</a>
             <a @click="bulkShelves(record)" v-if="record.status == '2'">发布</a>
@@ -159,12 +172,17 @@
   interface FormState {
     name: string;
     type: number;
+    auditStatus: number;
     dateRange: Array<any>;
     author: string;
     status: number;
     fileType: string;
     subType: number;
   }
+  const auditStatusList = ref([
+    { label: '已通过', value: 1 },
+    { label: '未通过', value: 0 },
+  ]);
   const fileTypeList = ref([
     { label: 'pdf', value: 'pdf' },
     { label: 'docx', value: 'docx' },
@@ -208,6 +226,7 @@
     name: '',
     type: null,
     dateRange: [],
+    auditStatus: null,
     author: '',
     status: null,
     fileType: undefined,
@@ -527,6 +546,7 @@
         : [],
       author: formState.author,
       status: formState.status,
+      auditStatus: formState.auditStatus,
       createBeginTime: createBeginTime,
       createEndTime: createEndTime,
       fileType: formState.fileType,