管理端细节修改
This commit is contained in:
@@ -19,18 +19,7 @@ const modalConfig: IModalConfig = {
|
||||
console.log("提交之前处理", data);
|
||||
},
|
||||
formItems: [
|
||||
{
|
||||
label: "状态",
|
||||
prop: "status",
|
||||
type: 'switch',
|
||||
attrs: {
|
||||
activeText: '开启',
|
||||
inactiveText: '关闭',
|
||||
activeValue: 1,
|
||||
inactiveValue: 0
|
||||
},
|
||||
initialValue: 1
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
label: "挂账人",
|
||||
@@ -66,6 +55,56 @@ const modalConfig: IModalConfig = {
|
||||
},
|
||||
initialValue: 0
|
||||
},
|
||||
// ===================== 新增 =====================
|
||||
{
|
||||
label: "还款提醒日",
|
||||
prop: "expireRemindDay",
|
||||
type: "input",
|
||||
rules: [
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (!value) return callback();
|
||||
const num = Number(value);
|
||||
if (!Number.isInteger(num) || num < 1 || num > 28) {
|
||||
callback(new Error("请输入 1~28 之间的整数"));
|
||||
}
|
||||
callback();
|
||||
}
|
||||
}
|
||||
],
|
||||
attrs: {
|
||||
type: "number",
|
||||
placeholder: "每月几号提醒(1-28)",
|
||||
style: { width: "200px" },
|
||||
oninput: "value=value.replace(/\\D|\\./g,'')" // 禁止输入小数点
|
||||
},
|
||||
initialValue: "",
|
||||
},
|
||||
{
|
||||
label: "还款提醒",
|
||||
prop: "expireRemind",
|
||||
type: "input",
|
||||
rules: [
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (!value) return callback();
|
||||
const num = Number(value);
|
||||
if (!Number.isInteger(num) || num < 0) {
|
||||
callback(new Error("请输入大于等于 0 的整数"));
|
||||
}
|
||||
callback();
|
||||
}
|
||||
}
|
||||
],
|
||||
attrs: {
|
||||
type: "number",
|
||||
placeholder: "提醒多久以前的数据单位(月)",
|
||||
style: { width: "240px" },
|
||||
oninput: "value=value.replace(/\\D|\\./g,'')" // 禁止输入小数点
|
||||
},
|
||||
initialValue: "",
|
||||
},
|
||||
// ================================================
|
||||
{
|
||||
label: "还款方式",
|
||||
prop: "repaymentMethod",
|
||||
@@ -73,6 +112,18 @@ const modalConfig: IModalConfig = {
|
||||
options: returnOptions('repaymentMethod'),
|
||||
initialValue: returnOptions('repaymentMethod')[0].value
|
||||
},
|
||||
{
|
||||
label: "状态",
|
||||
prop: "status",
|
||||
type: 'switch',
|
||||
attrs: {
|
||||
activeText: '开启',
|
||||
inactiveText: '关闭',
|
||||
activeValue: 1,
|
||||
inactiveValue: 0
|
||||
},
|
||||
initialValue: 1
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user