@newview/permission-service 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24202,25 +24202,28 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24202
24202
|
colType: "ro",
|
|
24203
24203
|
field: "label",
|
|
24204
24204
|
title: "标签文本",
|
|
24205
|
-
align: "left"
|
|
24205
|
+
align: "left",
|
|
24206
|
+
minWidth: 250
|
|
24206
24207
|
},
|
|
24207
24208
|
{
|
|
24208
24209
|
colType: "ro",
|
|
24209
24210
|
field: "prop",
|
|
24210
24211
|
title: "属性字段",
|
|
24211
|
-
align: "left"
|
|
24212
|
+
align: "left",
|
|
24213
|
+
minWidth: 250
|
|
24212
24214
|
},
|
|
24213
24215
|
{
|
|
24214
24216
|
colType: "ro",
|
|
24215
24217
|
field: "model",
|
|
24216
24218
|
title: "表单字段",
|
|
24217
|
-
align: "left"
|
|
24219
|
+
align: "left",
|
|
24220
|
+
minWidth: 250
|
|
24218
24221
|
},
|
|
24219
24222
|
{
|
|
24220
24223
|
colType: "select",
|
|
24221
24224
|
field: "seltype",
|
|
24222
24225
|
title: "类型",
|
|
24223
|
-
|
|
24226
|
+
minWidth: 240,
|
|
24224
24227
|
align: "center",
|
|
24225
24228
|
select: {
|
|
24226
24229
|
data: [
|
|
@@ -24240,6 +24243,9 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24240
24243
|
break;
|
|
24241
24244
|
case "InputNumber":
|
|
24242
24245
|
row.type = "InputNumber";
|
|
24246
|
+
row.rules = [
|
|
24247
|
+
{ required: true, type: "number", message: row.message, trigger: "blur" }
|
|
24248
|
+
];
|
|
24243
24249
|
break;
|
|
24244
24250
|
case "Textarea":
|
|
24245
24251
|
row.type = "Input";
|
|
@@ -24250,9 +24256,15 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24250
24256
|
break;
|
|
24251
24257
|
case "DatePicker":
|
|
24252
24258
|
row.type = "DatePicker";
|
|
24259
|
+
row.rules = [
|
|
24260
|
+
{ required: true, type: "date", message: row.message, trigger: "change" }
|
|
24261
|
+
];
|
|
24253
24262
|
break;
|
|
24254
24263
|
case "TimePicker":
|
|
24255
24264
|
row.type = "TimePicker";
|
|
24265
|
+
row.rules = [
|
|
24266
|
+
{ required: true, type: "date", message: row.message, trigger: "change" }
|
|
24267
|
+
];
|
|
24256
24268
|
break;
|
|
24257
24269
|
case "UploadFile":
|
|
24258
24270
|
row.type = "UploadFile";
|
|
@@ -24268,7 +24280,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24268
24280
|
colType: "ed",
|
|
24269
24281
|
field: "append",
|
|
24270
24282
|
title: "输入框单位",
|
|
24271
|
-
|
|
24283
|
+
minWidth: 120,
|
|
24272
24284
|
align: "center",
|
|
24273
24285
|
change: (row) => {
|
|
24274
24286
|
if (row.append && row.seltype == "Input") {
|
|
@@ -24287,7 +24299,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24287
24299
|
colType: "select",
|
|
24288
24300
|
field: "span",
|
|
24289
24301
|
title: "占位格数",
|
|
24290
|
-
|
|
24302
|
+
minWidth: 120,
|
|
24291
24303
|
align: "right",
|
|
24292
24304
|
select: {
|
|
24293
24305
|
data: [
|
|
@@ -24299,9 +24311,9 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24299
24311
|
},
|
|
24300
24312
|
{
|
|
24301
24313
|
colType: "select",
|
|
24302
|
-
field: "
|
|
24314
|
+
field: "requiredd",
|
|
24303
24315
|
title: "必填项",
|
|
24304
|
-
|
|
24316
|
+
minWidth: 120,
|
|
24305
24317
|
align: "center",
|
|
24306
24318
|
select: {
|
|
24307
24319
|
data: [
|
|
@@ -24310,7 +24322,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24310
24322
|
]
|
|
24311
24323
|
},
|
|
24312
24324
|
change: (row) => {
|
|
24313
|
-
if (row.
|
|
24325
|
+
if (row.requiredd == 1) {
|
|
24314
24326
|
row.rules = [
|
|
24315
24327
|
{ required: true, message: row.message, trigger: "blur" }
|
|
24316
24328
|
];
|
|
@@ -24323,7 +24335,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24323
24335
|
colType: "ed",
|
|
24324
24336
|
field: "message",
|
|
24325
24337
|
title: "提示信息",
|
|
24326
|
-
minWidth:
|
|
24338
|
+
minWidth: 200,
|
|
24327
24339
|
align: "left",
|
|
24328
24340
|
change: (row) => {
|
|
24329
24341
|
if (row.message) {
|
|
@@ -24339,7 +24351,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24339
24351
|
colType: "num",
|
|
24340
24352
|
field: "orderNum",
|
|
24341
24353
|
title: "排序号",
|
|
24342
|
-
|
|
24354
|
+
minWidth: 80,
|
|
24343
24355
|
align: "right"
|
|
24344
24356
|
}
|
|
24345
24357
|
],
|
|
@@ -24536,7 +24548,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24536
24548
|
span: 8,
|
|
24537
24549
|
orderNum: i,
|
|
24538
24550
|
// 排序号
|
|
24539
|
-
|
|
24551
|
+
requiredd: 1,
|
|
24540
24552
|
// 1 必填 0 可空
|
|
24541
24553
|
message: x.DetailInfor + "不能为空",
|
|
24542
24554
|
rules: [{ required: true, message: x.DetailInfor + "不能为空", trigger: "blur" }]
|