project init
This commit is contained in:
18
src/const/company.js
Normal file
18
src/const/company.js
Normal file
@@ -0,0 +1,18 @@
|
||||
export const companyStatus = [
|
||||
{
|
||||
label: '已审核',
|
||||
value: 0,
|
||||
},
|
||||
{
|
||||
label: '未审核',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
label: '已驳回',
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
label: '终止合作',
|
||||
value: 9,
|
||||
},
|
||||
]
|
||||
213
src/const/system/dict.js
Normal file
213
src/const/system/dict.js
Normal file
@@ -0,0 +1,213 @@
|
||||
export const optionParent = {
|
||||
height: 'auto',
|
||||
calcHeight: 95,
|
||||
tip: false,
|
||||
searchShow: true,
|
||||
searchMenuSpan: 8,
|
||||
tree: true,
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel:'序号',
|
||||
selection: true,
|
||||
viewBtn: true,
|
||||
menuWidth: 150,
|
||||
dialogWidth: 880,
|
||||
dialogClickModal: false,
|
||||
column: [
|
||||
{
|
||||
label: "字典编号",
|
||||
prop: "code",
|
||||
search: true,
|
||||
span: 24,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典编号",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典名称",
|
||||
prop: "dictValue",
|
||||
search: true,
|
||||
align: "center",
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典名称",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典排序",
|
||||
prop: "sort",
|
||||
type: "number",
|
||||
align: "right",
|
||||
width: 80,
|
||||
hide: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典排序",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "封存",
|
||||
prop: "isSealed",
|
||||
type: "switch",
|
||||
align: "center",
|
||||
width: 80,
|
||||
dicData: [
|
||||
{
|
||||
label: "否",
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: "是",
|
||||
value: 1
|
||||
}
|
||||
],
|
||||
value: 0,
|
||||
slot: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择封存",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典备注",
|
||||
prop: "remark",
|
||||
hide: true
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export const optionChild = {
|
||||
height: 'auto',
|
||||
calcHeight: 95,
|
||||
tip: false,
|
||||
searchShow: true,
|
||||
searchMenuSpan: 6,
|
||||
tree: true,
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: "序号",
|
||||
selection: true,
|
||||
viewBtn: true,
|
||||
menuWidth: 150,
|
||||
dialogWidth: 880,
|
||||
dialogClickModal: false,
|
||||
column: [
|
||||
{
|
||||
label: "字典编号",
|
||||
prop: "code",
|
||||
addDisabled: true,
|
||||
editDisabled: true,
|
||||
search: true,
|
||||
span: 24,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典编号",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典名称",
|
||||
prop: "dictValue",
|
||||
search: true,
|
||||
align: "center",
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典名称",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "上级字典",
|
||||
prop: "parentId",
|
||||
type: "tree",
|
||||
dicData: [],
|
||||
hide: true,
|
||||
props: {
|
||||
label: "title"
|
||||
},
|
||||
addDisabled: true,
|
||||
editDisabled: true,
|
||||
rules: [
|
||||
{
|
||||
required: false,
|
||||
message: "请选择上级字典",
|
||||
trigger: "click"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典键值",
|
||||
prop: "dictKey",
|
||||
width: 80,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典键值",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典排序",
|
||||
prop: "sort",
|
||||
type: "number",
|
||||
align: "right",
|
||||
width: 80,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典排序",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "封存",
|
||||
prop: "isSealed",
|
||||
type: "switch",
|
||||
align: "center",
|
||||
width: 80,
|
||||
dicData: [
|
||||
{
|
||||
label: "否",
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: "是",
|
||||
value: 1
|
||||
}
|
||||
],
|
||||
value: 0,
|
||||
slot: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择封存",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典备注",
|
||||
prop: "remark",
|
||||
hide: true
|
||||
}
|
||||
]
|
||||
};
|
||||
213
src/const/system/dictbiz.js
Normal file
213
src/const/system/dictbiz.js
Normal file
@@ -0,0 +1,213 @@
|
||||
export const optionParent = {
|
||||
height: 'auto',
|
||||
calcHeight: 95,
|
||||
tip: false,
|
||||
searchShow: true,
|
||||
searchMenuSpan: 8,
|
||||
tree: true,
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel:'序号',
|
||||
selection: true,
|
||||
viewBtn: true,
|
||||
menuWidth: 150,
|
||||
dialogWidth: 880,
|
||||
dialogClickModal: false,
|
||||
column: [
|
||||
{
|
||||
label: "字典编号",
|
||||
prop: "code",
|
||||
search: true,
|
||||
span: 24,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典编号",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典名称",
|
||||
prop: "dictValue",
|
||||
search: true,
|
||||
align: "center",
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典名称",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典排序",
|
||||
prop: "sort",
|
||||
type: "number",
|
||||
align: "right",
|
||||
width: 80,
|
||||
hide: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典排序",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "封存",
|
||||
prop: "isSealed",
|
||||
type: "switch",
|
||||
align: "center",
|
||||
width: 80,
|
||||
dicData: [
|
||||
{
|
||||
label: "否",
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: "是",
|
||||
value: 1
|
||||
}
|
||||
],
|
||||
value: 0,
|
||||
slot: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择封存",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典备注",
|
||||
prop: "remark",
|
||||
hide: true
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export const optionChild = {
|
||||
height: 'auto',
|
||||
calcHeight: 95,
|
||||
tip: false,
|
||||
searchShow: true,
|
||||
searchMenuSpan: 6,
|
||||
tree: true,
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: "序号",
|
||||
selection: true,
|
||||
viewBtn: true,
|
||||
menuWidth: 150,
|
||||
dialogWidth: 880,
|
||||
dialogClickModal: false,
|
||||
column: [
|
||||
{
|
||||
label: "字典编号",
|
||||
prop: "code",
|
||||
addDisabled: true,
|
||||
editDisabled: true,
|
||||
search: true,
|
||||
span: 24,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典编号",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典名称",
|
||||
prop: "dictValue",
|
||||
search: true,
|
||||
align: "center",
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典名称",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "上级字典",
|
||||
prop: "parentId",
|
||||
type: "tree",
|
||||
dicData: [],
|
||||
hide: true,
|
||||
props: {
|
||||
label: "title"
|
||||
},
|
||||
addDisabled: true,
|
||||
editDisabled: true,
|
||||
rules: [
|
||||
{
|
||||
required: false,
|
||||
message: "请选择上级字典",
|
||||
trigger: "click"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典键值",
|
||||
prop: "dictKey",
|
||||
width: 80,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典键值",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典排序",
|
||||
prop: "sort",
|
||||
type: "number",
|
||||
align: "right",
|
||||
width: 80,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入字典排序",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "封存",
|
||||
prop: "isSealed",
|
||||
type: "switch",
|
||||
align: "center",
|
||||
width: 80,
|
||||
dicData: [
|
||||
{
|
||||
label: "否",
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: "是",
|
||||
value: 1
|
||||
}
|
||||
],
|
||||
value: 0,
|
||||
slot: true,
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择封存",
|
||||
trigger: "blur"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: "字典备注",
|
||||
prop: "remark",
|
||||
hide: true
|
||||
}
|
||||
]
|
||||
};
|
||||
72
src/const/user/info.js
Normal file
72
src/const/user/info.js
Normal file
@@ -0,0 +1,72 @@
|
||||
export default {
|
||||
column: [{
|
||||
label: '个人信息',
|
||||
prop: 'info',
|
||||
option: {
|
||||
submitText: '修改',
|
||||
column: [{
|
||||
label: '头像',
|
||||
type: 'upload',
|
||||
listType: 'picture-img',
|
||||
propsHttp: {
|
||||
res: 'data',
|
||||
url: 'link',
|
||||
},
|
||||
canvasOption: {
|
||||
text: ' ',
|
||||
ratio: 0.1
|
||||
},
|
||||
action: '/api/jobslink-api/resource/oss/endpoint/put-file',
|
||||
tip: '只能上传jpg/png用户头像,且不超过500kb',
|
||||
span: 12,
|
||||
row: true,
|
||||
prop: 'avatar'
|
||||
}, {
|
||||
label: '姓名',
|
||||
span: 12,
|
||||
row: true,
|
||||
prop: 'name'
|
||||
}, {
|
||||
label: '用户名',
|
||||
span: 12,
|
||||
row: true,
|
||||
prop: 'realName'
|
||||
}, {
|
||||
label: '手机号',
|
||||
span: 12,
|
||||
row: true,
|
||||
prop: 'phone'
|
||||
}, {
|
||||
label: '邮箱',
|
||||
prop: 'email',
|
||||
span: 12,
|
||||
row: true,
|
||||
}]
|
||||
}
|
||||
}, {
|
||||
label: '修改密码',
|
||||
prop: 'password',
|
||||
option: {
|
||||
submitText: '修改',
|
||||
column: [{
|
||||
label: '原密码',
|
||||
span: 12,
|
||||
row: true,
|
||||
type: 'password',
|
||||
prop: 'oldPassword'
|
||||
}, {
|
||||
label: '新密码',
|
||||
span: 12,
|
||||
row: true,
|
||||
type: 'password',
|
||||
prop: 'newPassword'
|
||||
}, {
|
||||
label: '确认密码',
|
||||
span: 12,
|
||||
row: true,
|
||||
type: 'password',
|
||||
prop: 'newPassword1'
|
||||
}]
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user