flat: 123

This commit is contained in:
Apcallover
2024-04-10 23:07:47 +08:00
parent a3e62dd665
commit c325b0b0d1
6 changed files with 176 additions and 7 deletions

View File

@@ -286,6 +286,17 @@ const companyEnum = [
const wageUnitCategoryState = [[ const wageUnitCategoryState = [[
{ id: 1, label: "元/人·时", disable: false }, { id: 1, label: "元/人·时", disable: false },
{ id: 2, label: "元/人·天", disable: false }, { id: 2, label: "元/人·天", disable: false },
{ id: 3, label: "元/人·月", disable: false },
{ id: 4, label: "其他", disable: false },
// { value: 0, label: "元/人·次", disable: true },
// { value: 4, label: "元/人·周", disable: true },
// { value: 5, label: "元/人·个", disable: true },
// { value: 6, label: "元/人·件", disable: true },
]];
const workwageUnitCategoryState = [[
// { id: 1, label: "元/人·时", disable: false },
// { id: 2, label: "元/人·天", disable: false },
{ id: 3, label: "元/人·月", disable: true }, { id: 3, label: "元/人·月", disable: true },
{ id: 4, label: "其他", disable: true }, { id: 4, label: "其他", disable: true },
// { value: 0, label: "元/人·次", disable: true }, // { value: 0, label: "元/人·次", disable: true },
@@ -303,5 +314,6 @@ export default {
eduArr, eduArr,
expeArr, expeArr,
companyEnum, companyEnum,
wageUnitCategoryState wageUnitCategoryState,
workwageUnitCategoryState
} }

View File

@@ -1,4 +1,4 @@
export default [{ export const classifyData = [{
name: "学历", name: "学历",
data: [{ data: [{
name: "不限", name: "不限",
@@ -154,3 +154,152 @@ export default [{
], ],
}, },
]; ];
export const classifyData2 = [{
name: "学历",
data: [{
name: "不限",
id: "不限",
},
{
name: "初中及以下",
id: "初中及以下",
},
{
name: "中专/中技",
id: "中专/中技",
},
{
name: "高中",
id: "高中",
},
{
name: "大专",
id: "大专",
},
{
name: "本科",
id: "本科",
},
{
name: "硕士",
id: "硕士",
},
{
name: "博士",
id: "博士",
}, {
name: "MBA/EMBA",
id: "MBA/EMBA",
},
],
},
{
name: "工资",
data: [{
name: "2000元(含)以下",
id: "0-2000",
},
{
name: "2000-5000元元(含)",
id: "2000-5000",
},
{
name: "5000-8000元(含)",
id: "5000-8000",
},
{
name: "8000-10000元(含)",
id: "8000-10000",
},
{
name: "10000-15000元(含)",
id: "10000-15000",
},
{
name: "15000-20000元(含)",
id: "15000-20000",
},
{
name: "20000-25000元(含)",
id: "20000-25000",
},
{
name: "25000-30000元(含)",
id: "25000-30000",
},
{
name: "30000以上",
id: "30000-200000",
},
{
name: "面议、暂无要求",
id: "",
},
],
},
{
name: "行业",
data: [{
name: "不限年龄",
id: "不限年龄",
},
{
name: "30以下",
id: "30",
},
{
name: "35以下",
id: "35",
},
{
name: "40以下",
id: "40",
},
{
name: "45以下",
id: "45",
},
{
name: "50以下",
id: "50",
},
{
name: "55以下",
id: "55",
},
{
name: "60以下",
id: "60",
},
],
},
{
name: "区域",
data: [{
name: "薪资不限",
id: "薪资不限",
},
{
name: "100-150/天",
id: "100-150/天",
},
{
name: "151-200/天",
id: "151-200/天",
},
{
name: "201-250/天",
id: "201-250/天",
},
{
name: "251-300/天",
id: "251-300/天",
},
{
name: "300元/天以上",
id: "300元/天以上",
},
],
},
];

View File

@@ -65,7 +65,8 @@
</template> </template>
<script> <script>
import classifyData from './classifyData.js'; import {classifyData, classifyData2} from './classifyData.js';
console.log(classifyData, classifyData2)
import { getTrade } from '@/api/resume.js' import { getTrade } from '@/api/resume.js'
export default { export default {
props: { props: {
@@ -77,6 +78,10 @@ export default {
type: Function, type: Function,
required: true required: true
}, },
isTask: {
type: Boolean,
default: false
}
}, },
components: { components: {
// vTabs, // vTabs,
@@ -120,6 +125,9 @@ export default {
} }
}, },
created: function () { created: function () {
if(!this.isTask) {
this.tabbar = classifyData2
}
this.getData() this.getData()
this.getMenuItemTop() this.getMenuItemTop()
}, },

View File

@@ -28,7 +28,7 @@
<u-popup closeable :show="showPopUp" mode="right" @close="closePopUp"> <u-popup closeable :show="showPopUp" mode="right" @close="closePopUp">
<view class="popUpWrapper"> <view class="popUpWrapper">
<verticalMenu :closePopUp="closePopUp" :subMitPopUp="subMitPopUp" /> <verticalMenu :closePopUp="closePopUp" :subMitPopUp="subMitPopUp" :isTask="activeTab === 0" />
</view> </view>
</u-popup> </u-popup>

View File

@@ -547,7 +547,7 @@ export default {
} }
}) })
}).catch(errors => { }).catch(errors => {
uni.$u.toast('校验失败') uni.$u.toast('请完善内容')
}) })
}, },
reset() { reset() {

View File

@@ -229,7 +229,7 @@ export default {
showEdu: false, // 学历要求 showEdu: false, // 学历要求
showExpe: false, // 经验要求 showExpe: false, // 经验要求
birthday: Number(new Date()), birthday: Number(new Date()),
wageColumns: dic.wageUnitCategoryState, wageColumns: dic.workwageUnitCategoryState,
tradeColumns: dic.tradeArr, tradeColumns: dic.tradeArr,
skillColumns: [], skillColumns: [],
skillColumnsIndex: [0, 0, 0], skillColumnsIndex: [0, 0, 0],
@@ -540,7 +540,7 @@ export default {
} }
}) })
}).catch(errors => { }).catch(errors => {
uni.$u.toast('校验失败') uni.$u.toast('请完善内容')
}) })
}, },