cloud-web-corejs 1.1.0-dev.45 → 1.1.0-dev.48
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/package.json +1 -1
- package/src/app-bootstrap.js +6 -5
- package/src/components/Qrcode/fileParse.vue +11 -0
- package/src/components/VabUpload/index.js +11 -4
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +2 -0
- package/src/components/VabUpload/mixins.js +72 -40
- package/src/components/VabUpload/partUploadConfig.js +95 -0
- package/src/components/VabUpload/privateProfileDialogMixins.js +2 -0
- package/src/components/baseInputExport/mixins.js +1 -0
- package/src/components/fileLibrary/mixins/indexMixins.js +2 -0
- package/src/components/jdPrint/mixins.js +2 -0
- package/src/components/obsUpload/index.js +4 -1
- package/src/components/obsUpload/mixins.js +45 -15
- package/src/components/onlineTalk/mixins.js +11 -0
- package/src/components/table/index.js +74 -78
- package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/344/273/243/347/240/201/350/257/204/345/256/241.md" +255 -0
- package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/346/265/213/350/257/225/351/252/214/350/257/201/345/256/236/346/226/275/346/226/207/346/241/243.md" +595 -0
- package/src/components/xform/docs//346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206/344/270/216/344/277/256/345/244/215/350/220/275/345/234/260/346/226/271/346/241/210.md +324 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +24 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +420 -47
- package/src/components/xform/form-render/container-item/list-h5-item.vue +109 -38
- package/src/components/xform/styles/h5-designer.scss +13 -13
- package/src/components/xform/styles/h5-runtime.scss +520 -0
- package/src/components/xform/styles/h5.scss +5 -2
- package/src/components/xform/utils/util.js +9 -0
- package/src/layout/components/TagsView/index.vue +11 -10
- package/src/layout/components/TagsView/style.scss +92 -0
- package/src/styles/btn.scss +214 -3
- package/src/styles/dialog.scss +1710 -0
- package/src/styles/element-ui.scss +957 -36
- package/src/styles/index.scss +45 -0
- package/src/styles/layout-skins.scss +840 -0
- package/src/styles/mixin.scss +8 -0
- package/src/styles/page-shell.scss +622 -0
- package/src/styles/sidebar.scss +15 -0
- package/src/styles/utilities.scss +234 -118
- package/src/styles/variables.scss +28 -0
- package/src/views/user/home/wjl/content.vue +5 -0
- package/src/views/user/intf_permission/edit.vue +230 -0
- package/src/views/user/intf_permission/list.vue +196 -0
|
@@ -755,7 +755,8 @@ import {
|
|
|
755
755
|
} from "../../../../components/xform/utils/textMaskUtil";
|
|
756
756
|
import { extendDeeply } from "../../../../utils/index.js";
|
|
757
757
|
import { mergeQueryParam } from "../../../../components/xform/utils/queryParamUtil";
|
|
758
|
-
import render from "../../../../views/user/bill_setting/render.vue";
|
|
758
|
+
import render from "../../../../views/user/bill_setting/render.vue";
|
|
759
|
+
import axios from "axios";
|
|
759
760
|
|
|
760
761
|
const baseRefUtil = {
|
|
761
762
|
emitter,
|
|
@@ -841,7 +842,10 @@ export default {
|
|
|
841
842
|
},
|
|
842
843
|
keyword: null,
|
|
843
844
|
|
|
844
|
-
checkItemIds: [],
|
|
845
|
+
checkItemIds: [],
|
|
846
|
+
tableQuerySeq: 0,
|
|
847
|
+
tableQueryCancelSource: null,
|
|
848
|
+
tableDestroyed: false,
|
|
845
849
|
};
|
|
846
850
|
},
|
|
847
851
|
watch: {
|
|
@@ -992,10 +996,38 @@ export default {
|
|
|
992
996
|
this.handleOnMounted();
|
|
993
997
|
this.initTableList();
|
|
994
998
|
},
|
|
995
|
-
beforeDestroy: function () {
|
|
996
|
-
this.
|
|
997
|
-
|
|
998
|
-
|
|
999
|
+
beforeDestroy: function () {
|
|
1000
|
+
this.tableDestroyed = true;
|
|
1001
|
+
this.cancelActiveTableQuery("table destroyed");
|
|
1002
|
+
this.unregisterFromRefList();
|
|
1003
|
+
},
|
|
1004
|
+
methods: {
|
|
1005
|
+
cancelActiveTableQuery(reason) {
|
|
1006
|
+
if (this.tableQueryCancelSource) {
|
|
1007
|
+
this.tableQueryCancelSource.cancel(reason || "superseded table query");
|
|
1008
|
+
this.tableQueryCancelSource = null;
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
startTableQuery() {
|
|
1012
|
+
this.cancelActiveTableQuery();
|
|
1013
|
+
const source = axios.CancelToken.source();
|
|
1014
|
+
const context = { seq: ++this.tableQuerySeq, source };
|
|
1015
|
+
this.tableQueryCancelSource = source;
|
|
1016
|
+
return context;
|
|
1017
|
+
},
|
|
1018
|
+
isCurrentTableQuery(context) {
|
|
1019
|
+
return (
|
|
1020
|
+
!this.tableDestroyed &&
|
|
1021
|
+
context &&
|
|
1022
|
+
context.seq === this.tableQuerySeq &&
|
|
1023
|
+
this.tableQueryCancelSource === context.source
|
|
1024
|
+
);
|
|
1025
|
+
},
|
|
1026
|
+
finishTableQuery(context) {
|
|
1027
|
+
if (context && this.tableQueryCancelSource === context.source) {
|
|
1028
|
+
this.tableQueryCancelSource = null;
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
999
1031
|
openAdvancedSearchDialog() {
|
|
1000
1032
|
/*let formData = this.formModel;
|
|
1001
1033
|
let advancedFormData = {};
|
|
@@ -1199,15 +1231,15 @@ export default {
|
|
|
1199
1231
|
},*/
|
|
1200
1232
|
...dataTableConfig.config,
|
|
1201
1233
|
},
|
|
1202
|
-
exportAjax: (param) => {
|
|
1234
|
+
exportAjax: (param) => {
|
|
1203
1235
|
let $grid = this.getGridTable();
|
|
1204
1236
|
let pageSize = param.size;
|
|
1205
1237
|
let currentPage = param.current;
|
|
1206
1238
|
let page = { pageSize, currentPage };
|
|
1207
|
-
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1208
|
-
page,
|
|
1209
|
-
param,
|
|
1210
|
-
});
|
|
1239
|
+
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1240
|
+
page,
|
|
1241
|
+
param: { ...param, __exportQuery: true },
|
|
1242
|
+
});
|
|
1211
1243
|
},
|
|
1212
1244
|
};
|
|
1213
1245
|
|
|
@@ -1219,8 +1251,12 @@ export default {
|
|
|
1219
1251
|
total: isDataPage ? "objx.total" : "objx.length", // 配置响应结果总页数字段
|
|
1220
1252
|
},
|
|
1221
1253
|
ajax: {
|
|
1222
|
-
// 接收 Promise 对象
|
|
1223
|
-
query: ({ page, sorts, filters, form, param }) => {
|
|
1254
|
+
// 接收 Promise 对象
|
|
1255
|
+
query: ({ page, sorts, filters, form, param }) => {
|
|
1256
|
+
const isExportQuery = param?.__exportQuery === true;
|
|
1257
|
+
const queryContext = isExportQuery
|
|
1258
|
+
? null
|
|
1259
|
+
: this.startTableQuery();
|
|
1224
1260
|
let scriptCode = this.getScriptCode();
|
|
1225
1261
|
let formData = tableOption.param ? tableOption.param() || {} : {};
|
|
1226
1262
|
const queryParams = Object.assign({}, formData);
|
|
@@ -1236,8 +1272,9 @@ export default {
|
|
|
1236
1272
|
queryParams.current = page.currentPage;
|
|
1237
1273
|
}
|
|
1238
1274
|
|
|
1239
|
-
queryParams.searchCount = isQueryAllPage !== false;
|
|
1240
|
-
Object.assign(queryParams, param);
|
|
1275
|
+
queryParams.searchCount = isQueryAllPage !== false;
|
|
1276
|
+
Object.assign(queryParams, param);
|
|
1277
|
+
delete queryParams.__exportQuery;
|
|
1241
1278
|
|
|
1242
1279
|
// 与 PC 链路同规则:condition 追加合并,其余键平铺覆盖
|
|
1243
1280
|
if (that.dataTableConfig.queryParam) {
|
|
@@ -1249,8 +1286,18 @@ export default {
|
|
|
1249
1286
|
...queryParams,
|
|
1250
1287
|
};
|
|
1251
1288
|
if (scriptCode) {
|
|
1252
|
-
let done = (res) => {
|
|
1253
|
-
|
|
1289
|
+
let done = (res) => {
|
|
1290
|
+
if (
|
|
1291
|
+
!isExportQuery &&
|
|
1292
|
+
!this.isCurrentTableQuery(queryContext)
|
|
1293
|
+
) {
|
|
1294
|
+
reject(new axios.Cancel("stale table query"));
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
resolve(res);
|
|
1298
|
+
if (isExportQuery) return;
|
|
1299
|
+
const querySeq = queryContext.seq;
|
|
1300
|
+
this.finishTableQuery(queryContext);
|
|
1254
1301
|
if (res.type === "success") {
|
|
1255
1302
|
let rows = res.objx
|
|
1256
1303
|
? res.objx.records || res.objx || []
|
|
@@ -1264,8 +1311,13 @@ export default {
|
|
|
1264
1311
|
records: rows,
|
|
1265
1312
|
};
|
|
1266
1313
|
}
|
|
1267
|
-
that.$nextTick(() => {
|
|
1268
|
-
setTimeout(function () {
|
|
1314
|
+
that.$nextTick(() => {
|
|
1315
|
+
setTimeout(function () {
|
|
1316
|
+
if (
|
|
1317
|
+
that.tableDestroyed ||
|
|
1318
|
+
querySeq !== that.tableQuerySeq
|
|
1319
|
+
)
|
|
1320
|
+
return;
|
|
1269
1321
|
dataTableConfig.callback &&
|
|
1270
1322
|
dataTableConfig.callback(rows);
|
|
1271
1323
|
tableOption.callback && tableOption.callback(rows);
|
|
@@ -1286,11 +1338,17 @@ export default {
|
|
|
1286
1338
|
this.setValue([]);
|
|
1287
1339
|
}
|
|
1288
1340
|
};
|
|
1289
|
-
this.loadDefaultQueryList(
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1341
|
+
this.loadDefaultQueryList(
|
|
1342
|
+
reqData,
|
|
1343
|
+
done,
|
|
1344
|
+
queryContext?.source.token
|
|
1345
|
+
).catch((error) => {
|
|
1346
|
+
if (queryContext) this.finishTableQuery(queryContext);
|
|
1347
|
+
reject(error);
|
|
1348
|
+
});
|
|
1349
|
+
} else {
|
|
1350
|
+
if (queryContext) this.finishTableQuery(queryContext);
|
|
1351
|
+
resolve();
|
|
1294
1352
|
}
|
|
1295
1353
|
});
|
|
1296
1354
|
},
|
|
@@ -1402,10 +1460,14 @@ export default {
|
|
|
1402
1460
|
}
|
|
1403
1461
|
if (!isQueryTable && !this.formDataId) return;
|
|
1404
1462
|
|
|
1405
|
-
let scriptCode = this.getScriptCode();
|
|
1406
|
-
if (scriptCode) {
|
|
1407
|
-
this.loadDefaultViewList()
|
|
1408
|
-
|
|
1463
|
+
let scriptCode = this.getScriptCode();
|
|
1464
|
+
if (scriptCode) {
|
|
1465
|
+
this.loadDefaultViewList().catch((error) => {
|
|
1466
|
+
if (!axios.isCancel(error) && !this.tableDestroyed) {
|
|
1467
|
+
console.error("[data-table-h5] default view query failed", error);
|
|
1468
|
+
}
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1409
1471
|
},
|
|
1410
1472
|
getAccessParam() {
|
|
1411
1473
|
if (!this.widget.options.formScriptParam) return;
|
|
@@ -1451,7 +1513,7 @@ export default {
|
|
|
1451
1513
|
? { ...base, ...(innerData || {}) }
|
|
1452
1514
|
: { ...base, data: innerData || {} };
|
|
1453
1515
|
},
|
|
1454
|
-
loadDefaultQueryList(reqData, done) {
|
|
1516
|
+
loadDefaultQueryList(reqData, done, cancelToken) {
|
|
1455
1517
|
let reportTemplate = this.getFormRef().reportTemplate;
|
|
1456
1518
|
let scriptCode = this.getScriptCode();
|
|
1457
1519
|
let accessParam = this.getAccessParam() || {};
|
|
@@ -1469,14 +1531,16 @@ export default {
|
|
|
1469
1531
|
return this.formHttp({
|
|
1470
1532
|
scriptCode: scriptCode,
|
|
1471
1533
|
data: this.buildFormScriptData(reportTemplate, requestData),
|
|
1472
|
-
isLoading: false,
|
|
1534
|
+
isLoading: false,
|
|
1535
|
+
cancelToken,
|
|
1473
1536
|
...defaultOption,
|
|
1474
1537
|
callback: (res) => {
|
|
1475
1538
|
done(res);
|
|
1476
1539
|
},
|
|
1477
1540
|
});
|
|
1478
1541
|
},
|
|
1479
|
-
loadDefaultViewList() {
|
|
1542
|
+
loadDefaultViewList() {
|
|
1543
|
+
const queryContext = this.startTableQuery();
|
|
1480
1544
|
let dataId = this.formDataId;
|
|
1481
1545
|
let reportTemplate = this.getFormRef().reportTemplate;
|
|
1482
1546
|
let accessParam = this.getAccessParam() || {};
|
|
@@ -1486,23 +1550,30 @@ export default {
|
|
|
1486
1550
|
otherParam.attachmentType = attachmentType;
|
|
1487
1551
|
}
|
|
1488
1552
|
let scriptCode = this.getScriptCode();
|
|
1489
|
-
|
|
1490
|
-
scriptCode: scriptCode,
|
|
1553
|
+
const requestTask = this.formHttp({
|
|
1554
|
+
scriptCode: scriptCode,
|
|
1555
|
+
cancelToken: queryContext.source.token,
|
|
1491
1556
|
data: this.buildFormScriptData(reportTemplate, {
|
|
1492
1557
|
id: dataId,
|
|
1493
1558
|
...otherParam,
|
|
1494
1559
|
...accessParam,
|
|
1495
1560
|
}),
|
|
1496
|
-
callback: (res) => {
|
|
1497
|
-
|
|
1498
|
-
|
|
1561
|
+
callback: (res) => {
|
|
1562
|
+
if (!this.isCurrentTableQuery(queryContext)) return;
|
|
1563
|
+
let rows = res.objx ? res.objx.records || res.objx || [] : [];
|
|
1564
|
+
this.finishTableQuery(queryContext);
|
|
1565
|
+
this.setValue(rows);
|
|
1499
1566
|
this.handleCustomEvent(
|
|
1500
1567
|
this.widget.options.formScriptCallback,
|
|
1501
1568
|
["rows"],
|
|
1502
1569
|
[rows]
|
|
1503
1570
|
);
|
|
1504
|
-
},
|
|
1505
|
-
});
|
|
1571
|
+
},
|
|
1572
|
+
});
|
|
1573
|
+
return Promise.resolve(requestTask).catch((error) => {
|
|
1574
|
+
this.finishTableQuery(queryContext);
|
|
1575
|
+
throw error;
|
|
1576
|
+
});
|
|
1506
1577
|
},
|
|
1507
1578
|
getReqParam(item, dataId, billData) {
|
|
1508
1579
|
let param = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Core H5 designer-preview styles. Runtime
|
|
2
|
-
@import "~@base/styles/variables.scss";
|
|
3
|
-
|
|
1
|
+
// Core H5 designer-preview styles. Runtime 裸类名基线在 h5-runtime.scss;.xform-h5 覆盖仍在 h5.scss。
|
|
2
|
+
@import "~@base/styles/variables.scss";
|
|
3
|
+
|
|
4
4
|
.form-render-wrapper.h5-layout,
|
|
5
5
|
.el-form.H5-layout,
|
|
6
6
|
.designer-view.h5-layout {
|
|
@@ -88,15 +88,15 @@
|
|
|
88
88
|
float: right;
|
|
89
89
|
-webkit-appearance: none;
|
|
90
90
|
position: relative;
|
|
91
|
-
background: none;
|
|
92
|
-
&:after {
|
|
93
|
-
content: "";
|
|
94
|
-
position: absolute;
|
|
95
|
-
right: 0;
|
|
96
|
-
top: 50%;
|
|
97
|
-
margin-top: -4px;
|
|
98
|
-
border: 4px solid transparent;
|
|
99
|
-
border-left: 5px solid #999;
|
|
91
|
+
background: none;
|
|
92
|
+
&:after {
|
|
93
|
+
content: "";
|
|
94
|
+
position: absolute;
|
|
95
|
+
right: 0;
|
|
96
|
+
top: 50%;
|
|
97
|
+
margin-top: -4px;
|
|
98
|
+
border: 4px solid transparent;
|
|
99
|
+
border-left: 5px solid #999;
|
|
100
100
|
}
|
|
101
101
|
height: 29px;
|
|
102
102
|
padding-right: 12px;
|
|
@@ -188,4 +188,4 @@
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
}
|
|
191
|
+
}
|