107 lines
3.1 KiB
JavaScript
107 lines
3.1 KiB
JavaScript
export default {
|
||
height: 'auto',
|
||
calcHeight: 30,
|
||
tip: false,
|
||
searchShow: true,
|
||
searchMenuSpan: 6,
|
||
border: true,
|
||
index: true,
|
||
viewBtn: false,
|
||
delBtn: false,
|
||
addBtn: true,
|
||
editBtn: false,
|
||
selection: false,
|
||
dialogClickModal: false,
|
||
column: [
|
||
{
|
||
label: "应用类型",
|
||
prop: "appType",
|
||
type: 'radio',
|
||
dicUrl: '/blade-system/dict/dictionary?code=release_version_app_type',
|
||
props: {
|
||
label: 'dictValue',
|
||
value: 'dictKey',
|
||
},
|
||
dataType: 'number',
|
||
value: 1,
|
||
overHidden: true,
|
||
},
|
||
{
|
||
label: "强制更新",
|
||
prop: "isForceUpdate",
|
||
type: 'radio',
|
||
dicUrl: '/blade-system/dict/dictionary?code=app_yes_no',
|
||
props: {
|
||
label: 'dictValue',
|
||
value: 'dictKey',
|
||
},
|
||
dataType: 'number',
|
||
value: 0,
|
||
overHidden: true,
|
||
},
|
||
{
|
||
label: "版本号",
|
||
prop: "versionName",
|
||
type: "input",
|
||
rules: [
|
||
{
|
||
required: true,
|
||
message: '请输入版本号',
|
||
trigger: 'blur'
|
||
},
|
||
{
|
||
pattern: /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/,
|
||
message: '版本号格式必须为 x.y.z(例如:1.2.3),每段为非负整数,且不能有前导零',
|
||
trigger: 'blur'
|
||
}
|
||
],
|
||
overHidden: true,
|
||
},
|
||
{
|
||
label: "下载包",
|
||
prop: "downloadUrl",
|
||
type: "input",
|
||
overHidden: true,
|
||
required: true,
|
||
dataType: 'string',
|
||
rules: [{required: true, message: '请上传APK', trigger: 'blur'}],
|
||
multiple: false,
|
||
action: "/blade-resource/oss/endpoint/put-file",
|
||
accept: ".apk",
|
||
fileSize: 200 * 1024,
|
||
tip: "只能上传 APK 文件,且不超过 200MB",
|
||
propsHttp: {
|
||
res: 'data',
|
||
url: 'link'
|
||
},
|
||
span: 24,
|
||
hide: true,
|
||
},
|
||
{
|
||
label: "隐私政策",
|
||
prop: "privacyAgreementUrl",
|
||
type: "input",
|
||
overHidden: true,
|
||
value: "https://privacy.yicha1lu.com/",
|
||
placeholder: "请输入隐私政策链接",
|
||
},
|
||
{
|
||
label: "用户协议",
|
||
prop: "userAgreementUrl",
|
||
type: "input",
|
||
overHidden: true,
|
||
value: "https://terms.yicha1lu.com/",
|
||
placeholder: "请输入用户协议链接",
|
||
},
|
||
{
|
||
label: "更新内容",
|
||
prop: "updateContent",
|
||
type: "textarea",
|
||
rules: [{required: true, message: '请填写更新内容', trigger: 'blur'}],
|
||
overHidden: true,
|
||
dataType: 'string',
|
||
span: 24,
|
||
},
|
||
]
|
||
}
|