From 440522ea896377c45ffd80f4b70927d27e701c64 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 25 十二月 2023 17:30:30 +0800
Subject: [PATCH] 编写评估任务模块逻辑,未完成
---
src/components/search-option/FYOptionUserType.vue | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/src/components/search-option/FYOptionUserType.vue b/src/components/search-option/FYOptionUserType.vue
index e274241..050f772 100644
--- a/src/components/search-option/FYOptionUserType.vue
+++ b/src/components/search-option/FYOptionUserType.vue
@@ -6,12 +6,7 @@
placeholder="鐢ㄦ埛绫诲瀷"
style="width: 150px"
>
- <el-option
- v-for="s in userTypes"
- :key="s.value"
- :label="s.label"
- :value="s"
- />
+ <el-option v-for="s in userTypes" :key="s.value" :label="s.label" :value="s" />
</el-select>
</el-form-item>
</template>
@@ -24,21 +19,24 @@
// 鏄惁鍦ㄩ閫夐」澶勬坊鍔犫�滃叏閮ㄢ�濋�夐」
allOption: {
type: Boolean,
- default: true,
+ default: true
},
// 杩斿洖缁撴灉
value: Object,
// 鏄惁榛樿杩斿洖鍒濆閫夐」
initValue: {
type: Boolean,
- default: true,
+ default: true
},
- prop: String
+ prop: {
+ type: String,
+ default: '_usertype'
+ }
},
emits: ['update:value'],
data() {
return {
- userTypes: enumUser(this.allOption),
+ userTypes: enumUser(this.allOption)
};
},
methods: {
@@ -50,6 +48,6 @@
if (this.initValue) {
this.handleChange(this.userTypes[0]);
}
- },
+ }
};
</script>
--
Gitblit v1.9.3