zhangjie 2 年之前
父節點
當前提交
44fb7fd2e9
共有 1 個文件被更改,包括 115 次插入97 次删除
  1. 115 97
      src/modules/main/PaperManage.vue

+ 115 - 97
src/modules/main/PaperManage.vue

@@ -1,102 +1,113 @@
 <template>
   <div class="paper-manage page-container-flex ">
-    <div class="part-box part-box-filter">
-      <Form ref="FilterForm" label-position="left" inline>
-        <FormItem>
-          <Select
-            v-model="filter.subject"
-            @on-change="subjectChange"
-            placeholder="科目"
-          >
-            <Option
-              v-for="(item, index) in subjects"
-              :key="index"
-              :value="item.subject"
-              :label="item.name"
-            ></Option>
-          </Select>
-        </FormItem>
-        <FormItem>
-          <Select v-model="filter.areaCode" placeholder="选择考区" clearable>
-            <Option
-              v-for="area in areas"
-              :key="area.id"
-              :value="area.areaCode"
-              :label="area.areaName"
-            ></Option>
-          </Select>
-        </FormItem>
-        <FormItem>
-          <Input
-            v-model="filter.startNumber"
-            type="text"
-            placeholder="输入开始编号"
-            clearable
-          />
-        </FormItem>
-        <FormItem>
-          <Input
-            v-model="filter.endNumber"
-            type="text"
-            placeholder="输入结束编号"
-            clearable
-          />
-        </FormItem>
-        <FormItem>
-          <Select
-            v-model="paperType"
-            @on-change="typeChange"
-            placeholder="类型"
-          >
-            <Option
-              v-for="(val, key) in CAFA_EXCEPTION_TYPE"
-              :key="key"
-              :value="key"
-              :label="val"
-            ></Option>
-          </Select>
-        </FormItem>
-        <FormItem>
-          <Select
-            v-model="filter.scanUserId"
-            placeholder="选择采集账号"
-            clearable
-          >
-            <Option
-              v-for="user in scanUsers"
-              :key="user.id"
-              :value="user.id"
-              :label="user.loginName"
-            ></Option>
-          </Select>
-        </FormItem>
-        <FormItem>
-          <Input
-            v-model.trim="filter.studentName"
-            placeholder="输入姓名"
-            clearable
-          ></Input>
-        </FormItem>
-        <FormItem>
-          <Select v-model="filter.sortBy" placeholder="排序方式" clearable>
-            <Option
-              v-for="(val, key) in SORT_RULE_TYPE"
-              :key="key"
-              :value="key"
-              :label="val"
-            ></Option>
-          </Select>
-        </FormItem>
-        <FormItem>
-          <Button
-            size="small"
-            class="btn-form-search"
-            type="primary"
-            @click="toPage(1)"
-            >查询</Button
-          >
-        </FormItem>
-      </Form>
+    <div class="part-box part-box-filter part-box-head">
+      <div class="part-box-head-left">
+        <Form ref="FilterForm" label-position="left" inline>
+          <FormItem>
+            <Select
+              v-model="filter.subject"
+              @on-change="subjectChange"
+              placeholder="科目"
+            >
+              <Option
+                v-for="(item, index) in subjects"
+                :key="index"
+                :value="item.subject"
+                :label="item.name"
+              ></Option>
+            </Select>
+          </FormItem>
+          <FormItem>
+            <Select v-model="filter.areaCode" placeholder="选择考区" clearable>
+              <Option
+                v-for="area in areas"
+                :key="area.id"
+                :value="area.areaCode"
+                :label="area.areaName"
+              ></Option>
+            </Select>
+          </FormItem>
+          <FormItem>
+            <Input
+              v-model="filter.startNumber"
+              type="text"
+              placeholder="输入开始编号"
+              clearable
+            />
+          </FormItem>
+          <FormItem>
+            <Input
+              v-model="filter.endNumber"
+              type="text"
+              placeholder="输入结束编号"
+              clearable
+            />
+          </FormItem>
+          <FormItem>
+            <Select
+              v-model="paperType"
+              @on-change="typeChange"
+              placeholder="类型"
+            >
+              <Option
+                v-for="(val, key) in CAFA_EXCEPTION_TYPE"
+                :key="key"
+                :value="key"
+                :label="val"
+              ></Option>
+            </Select>
+          </FormItem>
+          <FormItem>
+            <Select
+              v-model="filter.scanUserId"
+              placeholder="选择采集账号"
+              clearable
+            >
+              <Option
+                v-for="user in scanUsers"
+                :key="user.id"
+                :value="user.id"
+                :label="user.loginName"
+              ></Option>
+            </Select>
+          </FormItem>
+          <FormItem>
+            <Input
+              v-model.trim="filter.studentName"
+              placeholder="输入姓名"
+              clearable
+            ></Input>
+          </FormItem>
+          <FormItem>
+            <Select v-model="filter.sortBy" placeholder="排序方式" clearable>
+              <Option
+                v-for="(val, key) in SORT_RULE_TYPE"
+                :key="key"
+                :value="key"
+                :label="val"
+              ></Option>
+            </Select>
+          </FormItem>
+          <FormItem>
+            <Button
+              size="small"
+              class="btn-form-search"
+              type="primary"
+              @click="toPage(1)"
+              >查询</Button
+            >
+          </FormItem>
+        </Form>
+      </div>
+      <div class="part-box-head-right">
+        <Button
+          type="success"
+          shape="circle"
+          icon="upload-white icon"
+          @click="toExportMark"
+          >导出标记试卷</Button
+        >
+      </div>
     </div>
 
     <image-action-list
@@ -305,6 +316,13 @@ export default {
         this.filter[val] = typeToField[this.paperType] === val ? true : null;
       });
     },
+    toExportMark() {
+      window.open(
+        this.urlAddAuthor(
+          `${this.GLOBAL.domain}/api/export/paper/${this.filter.workId}/mark`
+        )
+      );
+    },
     // paper view
     toReview(index) {
       this.selectPaper(index);