@fecp/designer 5.5.77 → 5.5.78
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.
- package/es/designer/package.json.mjs +1 -1
- package/es/designer.css +38 -38
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +8 -2
- package/es/packages/vue/src/components/forms/number/Number.vue.mjs +1 -2
- package/lib/designer/package.json.js +1 -1
- package/lib/designer.css +38 -38
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +26 -20
- package/lib/packages/vue/src/components/forms/number/Number.vue.js +1 -2
- package/package.json +1 -1
package/es/designer.css
CHANGED
|
@@ -6020,13 +6020,13 @@ body,
|
|
|
6020
6020
|
}
|
|
6021
6021
|
.textarea-field-wrapper[data-v-1bdb1a05] .el-textarea .el-textarea__inner {
|
|
6022
6022
|
height: 100%;
|
|
6023
|
-
}[data-v-
|
|
6023
|
+
}[data-v-7b177c06] .el-input-group__append {
|
|
6024
6024
|
background-color: #409eff;
|
|
6025
6025
|
color: #fff;
|
|
6026
6026
|
padding: 0 18px;
|
|
6027
6027
|
box-shadow: 0 1px 0 0 #a8abb2 inset, 0 -1px 0 0 #a8abb2 inset, -1px 0 0 0 #a8abb2 inset;
|
|
6028
6028
|
}
|
|
6029
|
-
[data-v-
|
|
6029
|
+
[data-v-7b177c06] .el-input-group__append:hover {
|
|
6030
6030
|
background-color: #79bbff;
|
|
6031
6031
|
border-color: #79bbff;
|
|
6032
6032
|
color: #fff;
|
|
@@ -6267,15 +6267,15 @@ body,
|
|
|
6267
6267
|
align-items: center;
|
|
6268
6268
|
flex-wrap: nowrap;
|
|
6269
6269
|
}
|
|
6270
|
-
.fec-form[data-v-
|
|
6270
|
+
.fec-form[data-v-b483ee57] {
|
|
6271
6271
|
height: 100%;
|
|
6272
6272
|
}
|
|
6273
|
-
.fec-form.inMinApp[data-v-
|
|
6273
|
+
.fec-form.inMinApp[data-v-b483ee57] {
|
|
6274
6274
|
height: 0px;
|
|
6275
6275
|
flex: 1;
|
|
6276
6276
|
padding: 8px;
|
|
6277
6277
|
}
|
|
6278
|
-
.fec-form-col[data-v-
|
|
6278
|
+
.fec-form-col[data-v-b483ee57] {
|
|
6279
6279
|
padding: 0px !important;
|
|
6280
6280
|
display: flex !important;
|
|
6281
6281
|
flex-direction: column;
|
|
@@ -6284,22 +6284,22 @@ body,
|
|
|
6284
6284
|
overflow: hidden;
|
|
6285
6285
|
flex: auto !important;
|
|
6286
6286
|
}
|
|
6287
|
-
[data-v-
|
|
6287
|
+
[data-v-b483ee57] .vgl-layout {
|
|
6288
6288
|
position: relative;
|
|
6289
6289
|
}
|
|
6290
|
-
[data-v-
|
|
6290
|
+
[data-v-b483ee57] .vgl-item {
|
|
6291
6291
|
transition: none;
|
|
6292
6292
|
}
|
|
6293
|
-
[data-v-
|
|
6293
|
+
[data-v-b483ee57] .vgl-item > .el-form-item {
|
|
6294
6294
|
width: 100%;
|
|
6295
6295
|
padding: 6px 8px 0 8px;
|
|
6296
6296
|
height: calc(100% - 15px);
|
|
6297
6297
|
display: flex;
|
|
6298
6298
|
}
|
|
6299
|
-
[data-v-
|
|
6299
|
+
[data-v-b483ee57] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
6300
6300
|
flex-direction: column;
|
|
6301
6301
|
}
|
|
6302
|
-
[data-v-
|
|
6302
|
+
[data-v-b483ee57] .vgl-item > .el-form-item .el-form-item__label {
|
|
6303
6303
|
line-height: 20px;
|
|
6304
6304
|
display: inline-flex;
|
|
6305
6305
|
align-items: center;
|
|
@@ -6313,107 +6313,107 @@ body,
|
|
|
6313
6313
|
flex-shrink: 0;
|
|
6314
6314
|
min-height: 45px;
|
|
6315
6315
|
}
|
|
6316
|
-
[data-v-
|
|
6316
|
+
[data-v-b483ee57] .vgl-item > .el-form-item {
|
|
6317
6317
|
/* .el-form-item__error {
|
|
6318
6318
|
padding-top: 10px;
|
|
6319
6319
|
} */
|
|
6320
6320
|
}
|
|
6321
|
-
[data-v-
|
|
6321
|
+
[data-v-b483ee57] .vgl-item > .el-form-item .el-input__wrapper {
|
|
6322
6322
|
padding: 1px 12px;
|
|
6323
6323
|
}
|
|
6324
|
-
[data-v-
|
|
6324
|
+
[data-v-b483ee57] .vgl-item > .el-container {
|
|
6325
6325
|
height: auto !important;
|
|
6326
6326
|
}
|
|
6327
6327
|
@media (min-width: 1720px) {
|
|
6328
|
-
[data-v-
|
|
6328
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6329
6329
|
max-width: 160px !important;
|
|
6330
6330
|
}
|
|
6331
|
-
[data-v-
|
|
6331
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6332
6332
|
padding: 6px 8px 0 8px !important;
|
|
6333
6333
|
}
|
|
6334
|
-
[data-v-
|
|
6334
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6335
6335
|
padding: 1px 12px;
|
|
6336
6336
|
}
|
|
6337
|
-
[data-v-
|
|
6337
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6338
6338
|
padding: 8px 12px;
|
|
6339
6339
|
}
|
|
6340
|
-
.fec-el-form[data-v-
|
|
6340
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6341
6341
|
padding: 12px !important;
|
|
6342
6342
|
}
|
|
6343
6343
|
}
|
|
6344
6344
|
/* 标准 PC(1200px ~ 1439px)*/
|
|
6345
6345
|
@media (min-width: 1366px) and (max-width: 1719px) {
|
|
6346
|
-
[data-v-
|
|
6346
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6347
6347
|
max-width: 130px !important;
|
|
6348
6348
|
padding-right: 6px !important;
|
|
6349
6349
|
}
|
|
6350
|
-
[data-v-
|
|
6350
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6351
6351
|
padding: 6px 0 0 0 !important;
|
|
6352
6352
|
}
|
|
6353
|
-
[data-v-
|
|
6353
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6354
6354
|
padding: 1px 8px;
|
|
6355
6355
|
}
|
|
6356
|
-
[data-v-
|
|
6356
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6357
6357
|
padding: 8px 8px;
|
|
6358
6358
|
}
|
|
6359
|
-
.fec-el-form[data-v-
|
|
6359
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6360
6360
|
padding: 8px !important;
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
6363
6363
|
/* 2. 标准 PC 992px ~ 1199px */
|
|
6364
6364
|
@media (min-width: 992px) and (max-width: 1365px) {
|
|
6365
|
-
[data-v-
|
|
6365
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6366
6366
|
max-width: 125px !important;
|
|
6367
6367
|
padding-right: 4px !important;
|
|
6368
6368
|
}
|
|
6369
|
-
[data-v-
|
|
6369
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6370
6370
|
padding: 0 !important;
|
|
6371
6371
|
}
|
|
6372
|
-
[data-v-
|
|
6372
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6373
6373
|
padding: 1px 6px;
|
|
6374
6374
|
}
|
|
6375
|
-
[data-v-
|
|
6375
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6376
6376
|
padding: 8px 6px;
|
|
6377
6377
|
}
|
|
6378
|
-
.fec-el-form[data-v-
|
|
6378
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6379
6379
|
padding: 6px !important;
|
|
6380
6380
|
}
|
|
6381
6381
|
}
|
|
6382
6382
|
/* 3. 小屏 PC / 窄窗口 <992px(最小到768px)*/
|
|
6383
6383
|
@media (max-width: 991px) and (min-width: 768px) {
|
|
6384
|
-
[data-v-
|
|
6384
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6385
6385
|
max-width: 100px !important;
|
|
6386
6386
|
padding-right: 4px !important;
|
|
6387
6387
|
}
|
|
6388
|
-
[data-v-
|
|
6388
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6389
6389
|
padding: 0 !important;
|
|
6390
6390
|
}
|
|
6391
|
-
[data-v-
|
|
6391
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6392
6392
|
padding: 1px 4px;
|
|
6393
6393
|
}
|
|
6394
|
-
[data-v-
|
|
6394
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6395
6395
|
padding: 8px 4px;
|
|
6396
6396
|
}
|
|
6397
|
-
.fec-el-form[data-v-
|
|
6397
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6398
6398
|
padding: 6px !important;
|
|
6399
6399
|
}
|
|
6400
6400
|
}
|
|
6401
6401
|
/* 超小屏 <768px */
|
|
6402
6402
|
@media (max-width: 767px) {
|
|
6403
|
-
[data-v-
|
|
6403
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6404
6404
|
max-width: 80px !important;
|
|
6405
6405
|
padding-right: 4px !important;
|
|
6406
6406
|
}
|
|
6407
|
-
[data-v-
|
|
6407
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6408
6408
|
padding: 0 !important;
|
|
6409
6409
|
}
|
|
6410
|
-
[data-v-
|
|
6410
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6411
6411
|
padding: 1px 2px;
|
|
6412
6412
|
}
|
|
6413
|
-
[data-v-
|
|
6413
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6414
6414
|
padding: 8px 2px;
|
|
6415
6415
|
}
|
|
6416
|
-
.fec-el-form[data-v-
|
|
6416
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6417
6417
|
padding: 6px !important;
|
|
6418
6418
|
}
|
|
6419
6419
|
}.table-pagination[data-v-142fdd35] {
|
|
@@ -48,6 +48,7 @@ import { checkFilterMatch, checkFieldInFilterConfig, checkFieldInResultConfig }
|
|
|
48
48
|
import hooks from "../../../../../../node_modules/moment/dist/moment.mjs";
|
|
49
49
|
import emitter from "../../../utils/eventBus.mjs";
|
|
50
50
|
/* empty css */
|
|
51
|
+
import { useLocale } from "../../../../../../node_modules/element-plus/es/hooks/use-locale/index.mjs";
|
|
51
52
|
import { ElMessage } from "../../../../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
52
53
|
import { ElContainer } from "../../../../../../node_modules/element-plus/es/components/container/index.mjs";
|
|
53
54
|
import { ElCol } from "../../../../../../node_modules/element-plus/es/components/col/index.mjs";
|
|
@@ -112,6 +113,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
112
113
|
],
|
|
113
114
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
114
115
|
const props = __props;
|
|
116
|
+
useLocale();
|
|
115
117
|
const emit = __emit;
|
|
116
118
|
const instance = getCurrentInstance();
|
|
117
119
|
const ctx = getCurrentVueInstance();
|
|
@@ -934,7 +936,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
934
936
|
}
|
|
935
937
|
});
|
|
936
938
|
for (let fieldName in prodRules.value) {
|
|
937
|
-
rules[fieldName]
|
|
939
|
+
if (rules[fieldName]) {
|
|
940
|
+
rules[fieldName].push(...prodRules.value[fieldName]);
|
|
941
|
+
} else {
|
|
942
|
+
rules[fieldName] = prodRules.value[fieldName];
|
|
943
|
+
}
|
|
938
944
|
}
|
|
939
945
|
formRules.value = rules;
|
|
940
946
|
if (formMode.value != "query") {
|
|
@@ -1229,7 +1235,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1229
1235
|
};
|
|
1230
1236
|
}
|
|
1231
1237
|
});
|
|
1232
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1238
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b483ee57"]]);
|
|
1233
1239
|
export {
|
|
1234
1240
|
_Form as default
|
|
1235
1241
|
};
|
|
@@ -226,7 +226,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
226
226
|
textValue.value = "";
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
|
-
console.log("🚀 ~ initTextValue ~ props.modelValue :", props.modelValue);
|
|
230
229
|
let displayValue = props.modelValue;
|
|
231
230
|
switch (props.format) {
|
|
232
231
|
case "wan":
|
|
@@ -508,7 +507,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
508
507
|
};
|
|
509
508
|
}
|
|
510
509
|
});
|
|
511
|
-
const _Number = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
510
|
+
const _Number = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b177c06"]]);
|
|
512
511
|
export {
|
|
513
512
|
_Number as default
|
|
514
513
|
};
|
package/lib/designer.css
CHANGED
|
@@ -6020,13 +6020,13 @@ body,
|
|
|
6020
6020
|
}
|
|
6021
6021
|
.textarea-field-wrapper[data-v-1bdb1a05] .el-textarea .el-textarea__inner {
|
|
6022
6022
|
height: 100%;
|
|
6023
|
-
}[data-v-
|
|
6023
|
+
}[data-v-7b177c06] .el-input-group__append {
|
|
6024
6024
|
background-color: #409eff;
|
|
6025
6025
|
color: #fff;
|
|
6026
6026
|
padding: 0 18px;
|
|
6027
6027
|
box-shadow: 0 1px 0 0 #a8abb2 inset, 0 -1px 0 0 #a8abb2 inset, -1px 0 0 0 #a8abb2 inset;
|
|
6028
6028
|
}
|
|
6029
|
-
[data-v-
|
|
6029
|
+
[data-v-7b177c06] .el-input-group__append:hover {
|
|
6030
6030
|
background-color: #79bbff;
|
|
6031
6031
|
border-color: #79bbff;
|
|
6032
6032
|
color: #fff;
|
|
@@ -6267,15 +6267,15 @@ body,
|
|
|
6267
6267
|
align-items: center;
|
|
6268
6268
|
flex-wrap: nowrap;
|
|
6269
6269
|
}
|
|
6270
|
-
.fec-form[data-v-
|
|
6270
|
+
.fec-form[data-v-b483ee57] {
|
|
6271
6271
|
height: 100%;
|
|
6272
6272
|
}
|
|
6273
|
-
.fec-form.inMinApp[data-v-
|
|
6273
|
+
.fec-form.inMinApp[data-v-b483ee57] {
|
|
6274
6274
|
height: 0px;
|
|
6275
6275
|
flex: 1;
|
|
6276
6276
|
padding: 8px;
|
|
6277
6277
|
}
|
|
6278
|
-
.fec-form-col[data-v-
|
|
6278
|
+
.fec-form-col[data-v-b483ee57] {
|
|
6279
6279
|
padding: 0px !important;
|
|
6280
6280
|
display: flex !important;
|
|
6281
6281
|
flex-direction: column;
|
|
@@ -6284,22 +6284,22 @@ body,
|
|
|
6284
6284
|
overflow: hidden;
|
|
6285
6285
|
flex: auto !important;
|
|
6286
6286
|
}
|
|
6287
|
-
[data-v-
|
|
6287
|
+
[data-v-b483ee57] .vgl-layout {
|
|
6288
6288
|
position: relative;
|
|
6289
6289
|
}
|
|
6290
|
-
[data-v-
|
|
6290
|
+
[data-v-b483ee57] .vgl-item {
|
|
6291
6291
|
transition: none;
|
|
6292
6292
|
}
|
|
6293
|
-
[data-v-
|
|
6293
|
+
[data-v-b483ee57] .vgl-item > .el-form-item {
|
|
6294
6294
|
width: 100%;
|
|
6295
6295
|
padding: 6px 8px 0 8px;
|
|
6296
6296
|
height: calc(100% - 15px);
|
|
6297
6297
|
display: flex;
|
|
6298
6298
|
}
|
|
6299
|
-
[data-v-
|
|
6299
|
+
[data-v-b483ee57] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
6300
6300
|
flex-direction: column;
|
|
6301
6301
|
}
|
|
6302
|
-
[data-v-
|
|
6302
|
+
[data-v-b483ee57] .vgl-item > .el-form-item .el-form-item__label {
|
|
6303
6303
|
line-height: 20px;
|
|
6304
6304
|
display: inline-flex;
|
|
6305
6305
|
align-items: center;
|
|
@@ -6313,107 +6313,107 @@ body,
|
|
|
6313
6313
|
flex-shrink: 0;
|
|
6314
6314
|
min-height: 45px;
|
|
6315
6315
|
}
|
|
6316
|
-
[data-v-
|
|
6316
|
+
[data-v-b483ee57] .vgl-item > .el-form-item {
|
|
6317
6317
|
/* .el-form-item__error {
|
|
6318
6318
|
padding-top: 10px;
|
|
6319
6319
|
} */
|
|
6320
6320
|
}
|
|
6321
|
-
[data-v-
|
|
6321
|
+
[data-v-b483ee57] .vgl-item > .el-form-item .el-input__wrapper {
|
|
6322
6322
|
padding: 1px 12px;
|
|
6323
6323
|
}
|
|
6324
|
-
[data-v-
|
|
6324
|
+
[data-v-b483ee57] .vgl-item > .el-container {
|
|
6325
6325
|
height: auto !important;
|
|
6326
6326
|
}
|
|
6327
6327
|
@media (min-width: 1720px) {
|
|
6328
|
-
[data-v-
|
|
6328
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6329
6329
|
max-width: 160px !important;
|
|
6330
6330
|
}
|
|
6331
|
-
[data-v-
|
|
6331
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6332
6332
|
padding: 6px 8px 0 8px !important;
|
|
6333
6333
|
}
|
|
6334
|
-
[data-v-
|
|
6334
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6335
6335
|
padding: 1px 12px;
|
|
6336
6336
|
}
|
|
6337
|
-
[data-v-
|
|
6337
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6338
6338
|
padding: 8px 12px;
|
|
6339
6339
|
}
|
|
6340
|
-
.fec-el-form[data-v-
|
|
6340
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6341
6341
|
padding: 12px !important;
|
|
6342
6342
|
}
|
|
6343
6343
|
}
|
|
6344
6344
|
/* 标准 PC(1200px ~ 1439px)*/
|
|
6345
6345
|
@media (min-width: 1366px) and (max-width: 1719px) {
|
|
6346
|
-
[data-v-
|
|
6346
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6347
6347
|
max-width: 130px !important;
|
|
6348
6348
|
padding-right: 6px !important;
|
|
6349
6349
|
}
|
|
6350
|
-
[data-v-
|
|
6350
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6351
6351
|
padding: 6px 0 0 0 !important;
|
|
6352
6352
|
}
|
|
6353
|
-
[data-v-
|
|
6353
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6354
6354
|
padding: 1px 8px;
|
|
6355
6355
|
}
|
|
6356
|
-
[data-v-
|
|
6356
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6357
6357
|
padding: 8px 8px;
|
|
6358
6358
|
}
|
|
6359
|
-
.fec-el-form[data-v-
|
|
6359
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6360
6360
|
padding: 8px !important;
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
6363
6363
|
/* 2. 标准 PC 992px ~ 1199px */
|
|
6364
6364
|
@media (min-width: 992px) and (max-width: 1365px) {
|
|
6365
|
-
[data-v-
|
|
6365
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6366
6366
|
max-width: 125px !important;
|
|
6367
6367
|
padding-right: 4px !important;
|
|
6368
6368
|
}
|
|
6369
|
-
[data-v-
|
|
6369
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6370
6370
|
padding: 0 !important;
|
|
6371
6371
|
}
|
|
6372
|
-
[data-v-
|
|
6372
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6373
6373
|
padding: 1px 6px;
|
|
6374
6374
|
}
|
|
6375
|
-
[data-v-
|
|
6375
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6376
6376
|
padding: 8px 6px;
|
|
6377
6377
|
}
|
|
6378
|
-
.fec-el-form[data-v-
|
|
6378
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6379
6379
|
padding: 6px !important;
|
|
6380
6380
|
}
|
|
6381
6381
|
}
|
|
6382
6382
|
/* 3. 小屏 PC / 窄窗口 <992px(最小到768px)*/
|
|
6383
6383
|
@media (max-width: 991px) and (min-width: 768px) {
|
|
6384
|
-
[data-v-
|
|
6384
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6385
6385
|
max-width: 100px !important;
|
|
6386
6386
|
padding-right: 4px !important;
|
|
6387
6387
|
}
|
|
6388
|
-
[data-v-
|
|
6388
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6389
6389
|
padding: 0 !important;
|
|
6390
6390
|
}
|
|
6391
|
-
[data-v-
|
|
6391
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6392
6392
|
padding: 1px 4px;
|
|
6393
6393
|
}
|
|
6394
|
-
[data-v-
|
|
6394
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6395
6395
|
padding: 8px 4px;
|
|
6396
6396
|
}
|
|
6397
|
-
.fec-el-form[data-v-
|
|
6397
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6398
6398
|
padding: 6px !important;
|
|
6399
6399
|
}
|
|
6400
6400
|
}
|
|
6401
6401
|
/* 超小屏 <768px */
|
|
6402
6402
|
@media (max-width: 767px) {
|
|
6403
|
-
[data-v-
|
|
6403
|
+
[data-v-b483ee57] .vgl-item .el-form-item__label {
|
|
6404
6404
|
max-width: 80px !important;
|
|
6405
6405
|
padding-right: 4px !important;
|
|
6406
6406
|
}
|
|
6407
|
-
[data-v-
|
|
6407
|
+
[data-v-b483ee57] .vgl-item .el-form-item {
|
|
6408
6408
|
padding: 0 !important;
|
|
6409
6409
|
}
|
|
6410
|
-
[data-v-
|
|
6410
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-input__wrapper {
|
|
6411
6411
|
padding: 1px 2px;
|
|
6412
6412
|
}
|
|
6413
|
-
[data-v-
|
|
6413
|
+
[data-v-b483ee57] .vgl-item .el-form-item .el-select__wrapper {
|
|
6414
6414
|
padding: 8px 2px;
|
|
6415
6415
|
}
|
|
6416
|
-
.fec-el-form[data-v-
|
|
6416
|
+
.fec-el-form[data-v-b483ee57] {
|
|
6417
6417
|
padding: 6px !important;
|
|
6418
6418
|
}
|
|
6419
6419
|
}.table-pagination[data-v-142fdd35] {
|
|
@@ -13,7 +13,7 @@ const Vue = require("vue");
|
|
|
13
13
|
require("../../../../../../node_modules/grid-layout-plus/es/index.js");
|
|
14
14
|
const getInstance = require("../../../utils/getInstance.js");
|
|
15
15
|
const getJsonAsyncUtil = require("../../../utils/getJsonAsyncUtil.js");
|
|
16
|
-
const index$
|
|
16
|
+
const index$8 = require("../formItem/index.js");
|
|
17
17
|
const datasource = require("../../../utils/datasource.js");
|
|
18
18
|
const validation = require("./validation.js");
|
|
19
19
|
const parseRouteParams = require("../../../utils/parseRouteParams.js");
|
|
@@ -37,23 +37,24 @@ const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_
|
|
|
37
37
|
;/* empty css */
|
|
38
38
|
;/* empty css */
|
|
39
39
|
;/* empty css */
|
|
40
|
-
const index$
|
|
40
|
+
const index$2 = require("../../../api/index.js");
|
|
41
41
|
;/* empty css */
|
|
42
42
|
;/* empty css */
|
|
43
43
|
const usePageEvents = require("../../../composables/usePageEvents.js");
|
|
44
|
-
const index$
|
|
45
|
-
const index$
|
|
46
|
-
const index$
|
|
44
|
+
const index$5 = require("../../details/header/index.js");
|
|
45
|
+
const index$6 = require("../../details/main/index.js");
|
|
46
|
+
const index$9 = require("../../details/footer/index.js");
|
|
47
47
|
const FormAnchorNav = require("./FormAnchorNav.vue.js");
|
|
48
48
|
const RightAnchorNav = require("./RightAnchorNav.vue.js");
|
|
49
49
|
const parseFilterConfig = require("../../../utils/parseFilterConfig.js");
|
|
50
50
|
const moment = require("../../../../../../node_modules/moment/dist/moment.js");
|
|
51
51
|
const eventBus = require("../../../utils/eventBus.js");
|
|
52
52
|
;/* empty css */
|
|
53
|
-
const index = require("../../../../../../node_modules/element-plus/es/
|
|
54
|
-
const index$
|
|
55
|
-
const index$3 = require("../../../../../../node_modules/element-plus/es/components/
|
|
56
|
-
const index$
|
|
53
|
+
const index = require("../../../../../../node_modules/element-plus/es/hooks/use-locale/index.js");
|
|
54
|
+
const index$1 = require("../../../../../../node_modules/element-plus/es/components/message/index.js");
|
|
55
|
+
const index$3 = require("../../../../../../node_modules/element-plus/es/components/container/index.js");
|
|
56
|
+
const index$4 = require("../../../../../../node_modules/element-plus/es/components/col/index.js");
|
|
57
|
+
const index$7 = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
57
58
|
const gridLayout_vue = require("../../../../../../node_modules/grid-layout-plus/es/components/grid-layout.vue.js");
|
|
58
59
|
const _hoisted_1 = ["name", "value"];
|
|
59
60
|
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
@@ -114,6 +115,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
114
115
|
],
|
|
115
116
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
116
117
|
const props = __props;
|
|
118
|
+
index.useLocale();
|
|
117
119
|
const emit = __emit;
|
|
118
120
|
const instance = Vue.getCurrentInstance();
|
|
119
121
|
const ctx = getInstance.getCurrentVueInstance();
|
|
@@ -215,7 +217,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
215
217
|
emit("loaded", option, getFormData());
|
|
216
218
|
} catch (error) {
|
|
217
219
|
console.error("加载配置失败:", error);
|
|
218
|
-
index.ElMessage.error("加载配置失败");
|
|
220
|
+
index$1.ElMessage.error("加载配置失败");
|
|
219
221
|
} finally {
|
|
220
222
|
configLoading.value = false;
|
|
221
223
|
}
|
|
@@ -399,7 +401,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
399
401
|
return;
|
|
400
402
|
}
|
|
401
403
|
try {
|
|
402
|
-
const response = await index$
|
|
404
|
+
const response = await index$2.default.getProductData(ctx.$http, prodIdValue);
|
|
403
405
|
productData.value = response;
|
|
404
406
|
console.log("产品数据加载成功:", productData.value);
|
|
405
407
|
} catch (error) {
|
|
@@ -936,7 +938,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
936
938
|
}
|
|
937
939
|
});
|
|
938
940
|
for (let fieldName in prodRules.value) {
|
|
939
|
-
rules[fieldName]
|
|
941
|
+
if (rules[fieldName]) {
|
|
942
|
+
rules[fieldName].push(...prodRules.value[fieldName]);
|
|
943
|
+
} else {
|
|
944
|
+
rules[fieldName] = prodRules.value[fieldName];
|
|
945
|
+
}
|
|
940
946
|
}
|
|
941
947
|
formRules.value = rules;
|
|
942
948
|
if (formMode.value != "query") {
|
|
@@ -1105,9 +1111,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1105
1111
|
hasSaveButton
|
|
1106
1112
|
});
|
|
1107
1113
|
return (_ctx, _cache) => {
|
|
1108
|
-
const _component_el_form = index$
|
|
1109
|
-
const _component_el_col = index$
|
|
1110
|
-
const _component_el_container = index$
|
|
1114
|
+
const _component_el_form = index$7.ElForm;
|
|
1115
|
+
const _component_el_col = index$4.ElCol;
|
|
1116
|
+
const _component_el_container = index$3.ElContainer;
|
|
1111
1117
|
const _directive_fec_layout = Vue.resolveDirective("fec-layout");
|
|
1112
1118
|
return !configLoading.value ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(_component_el_container, {
|
|
1113
1119
|
key: 0,
|
|
@@ -1126,7 +1132,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1126
1132
|
style: Vue.normalizeStyle({ marginRight: Vue.unref(navType) == "right" ? "4px" : "0" })
|
|
1127
1133
|
}, {
|
|
1128
1134
|
default: Vue.withCtx(() => [
|
|
1129
|
-
Vue.createVNode(Vue.unref(index$
|
|
1135
|
+
Vue.createVNode(Vue.unref(index$5.header), {
|
|
1130
1136
|
showBack: !__props.isSubForm && !__props.isDialog,
|
|
1131
1137
|
isApproval: __props.isApproval,
|
|
1132
1138
|
pageHeaderConfig: localConfig.value.pageHeaderConfig,
|
|
@@ -1139,7 +1145,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1139
1145
|
modelValue: navLinkCompId.value,
|
|
1140
1146
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => navLinkCompId.value = $event)
|
|
1141
1147
|
}, null, 8, ["fecFormRef", "links", "modelValue"])) : Vue.createCommentVNode("", true),
|
|
1142
|
-
Vue.createVNode(Vue.unref(index$
|
|
1148
|
+
Vue.createVNode(Vue.unref(index$6.main), {
|
|
1143
1149
|
scrollbar: !__props.isDialog
|
|
1144
1150
|
}, {
|
|
1145
1151
|
default: Vue.withCtx(() => [
|
|
@@ -1170,7 +1176,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1170
1176
|
onLayoutUpdated: layoutUpdated
|
|
1171
1177
|
}, {
|
|
1172
1178
|
item: Vue.withCtx(({ item: { component } }) => [
|
|
1173
|
-
Vue.createVNode(Vue.unref(index$
|
|
1179
|
+
Vue.createVNode(Vue.unref(index$8.FormItem), {
|
|
1174
1180
|
ref: (el) => setFormItemRef(el, component),
|
|
1175
1181
|
modelValue: formData.value[component.fieldName],
|
|
1176
1182
|
"onUpdate:modelValue": ($event) => formData.value[component.fieldName] = $event,
|
|
@@ -1198,7 +1204,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1198
1204
|
]),
|
|
1199
1205
|
_: 1
|
|
1200
1206
|
}, 8, ["scrollbar"]),
|
|
1201
|
-
!__props.isSubForm && !__props.isDialog && !__props.isApproval ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index$
|
|
1207
|
+
!__props.isSubForm && !__props.isDialog && !__props.isApproval ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index$9.footer), {
|
|
1202
1208
|
key: 1,
|
|
1203
1209
|
formMode: formMode.value,
|
|
1204
1210
|
pageFooterConfig: localConfig.value.pageFooterConfig,
|
|
@@ -1231,5 +1237,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1231
1237
|
};
|
|
1232
1238
|
}
|
|
1233
1239
|
});
|
|
1234
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1240
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b483ee57"]]);
|
|
1235
1241
|
exports.default = _Form;
|
|
@@ -228,7 +228,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
228
228
|
textValue.value = "";
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
|
-
console.log("🚀 ~ initTextValue ~ props.modelValue :", props.modelValue);
|
|
232
231
|
let displayValue = props.modelValue;
|
|
233
232
|
switch (props.format) {
|
|
234
233
|
case "wan":
|
|
@@ -510,5 +509,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
510
509
|
};
|
|
511
510
|
}
|
|
512
511
|
});
|
|
513
|
-
const _Number = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
512
|
+
const _Number = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-7b177c06"]]);
|
|
514
513
|
exports.default = _Number;
|