Bläddra i källkod

错题分析 批量导出

zhuf 1 år sedan
förälder
incheckning
9d3d2a8c53
3 ändrade filer med 1010 tillägg och 834 borttagningar
  1. 14 14
      package.json
  2. 980 820
      pnpm-lock.yaml
  3. 16 0
      src/pages/admin/back/ctfx.vue

+ 14 - 14
package.json

@@ -17,32 +17,32 @@
     "prepare": "husky install"
   },
   "dependencies": {
-    "@element-plus/icons-vue": "^2.1.0",
+    "@element-plus/icons-vue": "^2.3.1",
     "@vueuse/components": "^9.13.0",
     "@vueuse/core": "^9.13.0",
-    "axios": "^1.3.6",
-    "element-plus": "^2.3.4",
-    "tinymce": "^6.4.2",
-    "vue": "^3.2.47",
-    "vue-router": "^4.1.6"
+    "axios": "^1.6.2",
+    "element-plus": "^2.4.3",
+    "tinymce": "^6.8.1",
+    "vue": "^3.3.10",
+    "vue-router": "^4.2.5"
   },
   "devDependencies": {
     "@antfu/eslint-config": "^0.27.0",
-    "@iconify/json": "^2.2.56",
-    "@types/node": "^18.16.1",
-    "@vitejs/plugin-vue": "^4.2.1",
+    "@iconify/json": "^2.2.153",
+    "@types/node": "^18.19.2",
+    "@vitejs/plugin-vue": "^4.5.1",
     "@windicss/plugin-scrollbar": "^1.2.3",
-    "eslint": "^8.39.0",
+    "eslint": "^8.55.0",
     "husky": "^8.0.3",
     "magic-string": "^0.26.7",
-    "sass": "^1.62.1",
+    "sass": "^1.69.5",
     "typescript": "^4.9.5",
     "unplugin-auto-import": "^0.10.3",
     "unplugin-icons": "^0.14.15",
     "unplugin-vue-components": "^0.22.12",
-    "vite": "^4.3.3",
-    "vite-plugin-windicss": "^1.8.10",
-    "vue-tsc": "^1.6.0",
+    "vite": "^4.5.1",
+    "vite-plugin-windicss": "^1.9.2",
+    "vue-tsc": "^1.8.25",
     "windicss": "^3.5.6"
   }
 }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 980 - 820
pnpm-lock.yaml


+ 16 - 0
src/pages/admin/back/ctfx.vue

@@ -46,6 +46,8 @@ function doQuery() {
 }
 
 function doDelete() {
+  if (multipleSelection.value.length === 0)
+    return ElMessage.fail('请先勾选删除的数据')
   request({
     url: '/dyaw/ctfx/delete',
     data: {
@@ -61,6 +63,18 @@ function doDelete() {
   )
 }
 
+function doExport() {
+  if (multipleSelection.value.length === 0)
+    return ElMessage.fail('请先勾选导出的数据')
+  request({
+    url: '/dyaw/ctfx/index',
+    data: {
+      dc_id: multipleSelection.value.map(item => item.dc_id).join(','),
+      api: 'xls'
+    }
+  })
+}
+
 
 function formatTime(s: string) {
   return (new Date(s * 1000)).toLocaleString()
@@ -122,6 +136,7 @@ function doSubmit() {
         <el-input clearable size="large" placeholder="关键字搜索" class="max-w-240px" :suffix-icon="Search"
           v-model="queryForm.dc_keyword"></el-input>
         <el-button size="large" type="danger" @click="doDelete">删除</el-button>
+        <el-button size="large" type="primary" @click="doExport">批量导出</el-button>
       </div>
     </div>
 
@@ -133,6 +148,7 @@ function doSubmit() {
         <el-table-column property="dc_subject_name" label="科目" width="120" />
         <el-table-column property="dc_keyword" label="关键词" width="180" />
         <el-table-column property="create_user_realname" label="上传教师" width="120" />
+        <el-table-column property="sm_name" label="学校" width="120" />
         <el-table-column property="create_dateline" label="上传时间" width="180">
           <template #default="{ row }">
             <span>{{ formatTime(row.create_dateline) }}</span>