From 896179d3faf66c5a88fe75961828d8ac465ac96f Mon Sep 17 00:00:00 2001
From: Li xia <2309368887@qq.com>
Date: Thu, 6 Mar 2025 10:07:36 +0800
Subject: [PATCH] xiugai
---
test_client/src/views/exam/issue.vue | 61 +++++++++++++++++++------
test_client/src/views/system/banner.vue | 4 +-
2 files changed, 49 insertions(+), 16 deletions(-)
diff --git a/test_client/src/views/exam/issue.vue b/test_client/src/views/exam/issue.vue
index 8aa4d24..25742a0 100644
--- a/test_client/src/views/exam/issue.vue
+++ b/test_client/src/views/exam/issue.vue
@@ -53,12 +53,14 @@
{{ scope.row.company_name }}
+
是
@@ -118,28 +120,27 @@
>
-
-
+
+
-
+
+
+
+
-
-
-
-
-
-
@@ -151,6 +152,7 @@
value-format="yyyy-MM-dd"
/>
+
+
+
+
+
+
+
+
+
+
+
@@ -251,8 +270,11 @@ import {
createCandidate,
updateCandidate
} from '@/api/candidate'
-import { deepClone } from '@/utils'
+import {
+ getWorkScopeAll,
+} from "@/api/examtest";
import { upUrl, upHeaders } from '@/api/file'
+import { genTree, deepClone } from '@/utils'
import checkPermission from '@/utils/permission'
import Pagination from '@/components/Pagination'
@@ -287,6 +309,10 @@ export default {
{ name: '技师', value: '技师'},
{ name: '高级技师', value: '高级技师' }
],
+ worksOption:[],
+ genderOption:[
+ { name: '男', value: '男' },
+ { name: '女', value: '女'}]
}
},
@@ -306,6 +332,12 @@ export default {
}
return isLt2M
},
+ //工作类别选择
+ getWorkScopeAll() {
+ getWorkScopeAll().then((response) => {
+ this.worksOption = genTree(response.data)
+ })
+ },
getList() {
this.listLoading = true
getCandidateList(this.listQuery).then((response) => {
@@ -346,6 +378,7 @@ export default {
},
handleAdd() {
this.dialogVisible = true
+ this.getWorkScopeAll();
this.dialogType = 'create'
this.$nextTick(() => {
this.$refs['candidateForm'].clearValidate()
diff --git a/test_client/src/views/system/banner.vue b/test_client/src/views/system/banner.vue
index a1d7712..20eee93 100644
--- a/test_client/src/views/system/banner.vue
+++ b/test_client/src/views/system/banner.vue
@@ -12,7 +12,7 @@
row-key="id"
default-expand-all
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
-
+
>
@@ -138,7 +138,7 @@ export default {
this.banner.path = res.data.path
},
beforeImgUpload(file) {
- const isLt2M = file.size / 1024 / 1024 < 0.6;
+ const isLt2M = file.size / 1024 / 1024 < 1;
if (!isLt2M) {
this.$message.error("上传图片大小不能超过 600KB!");
}