@zscreate/form-component 1.1.689-AI.7 → 1.1.689-AI.9
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/dist/form-component.css +371 -207
- package/dist/form-component.umd.js +2047 -634
- package/package.json +1 -1
|
@@ -67607,13 +67607,13 @@ let getFileExt = filename => {
|
|
|
67607
67607
|
};
|
|
67608
67608
|
},
|
|
67609
67609
|
created() {
|
|
67610
|
-
this.
|
|
67610
|
+
const columnCount = this.widget && this.widget.columns || this.source && this.source.columns || [];
|
|
67611
|
+
this.editArr.length = columnCount.length;
|
|
67611
67612
|
},
|
|
67612
67613
|
mounted() {
|
|
67613
67614
|
// 替换分页的三个点,保证在小米手机样式没问题
|
|
67614
67615
|
this.$nextTick(() => {
|
|
67615
67616
|
if (this.$isMobile) {
|
|
67616
|
-
debugger;
|
|
67617
67617
|
document.querySelector(".ant-pagination-item-ellipsis").innerText = "...";
|
|
67618
67618
|
document.querySelector(".ant-pagination-item-ellipsis").style.fontSize = "20px";
|
|
67619
67619
|
}
|
|
@@ -67691,13 +67691,13 @@ let getFileExt = filename => {
|
|
|
67691
67691
|
/* harmony import */ var _util_mathUtils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(29414);
|
|
67692
67692
|
/* harmony import */ var _util_util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(78393);
|
|
67693
67693
|
/* harmony import */ var _layoutItem__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(92241);
|
|
67694
|
-
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
|
|
67694
|
+
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40000);
|
|
67695
67695
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(55469);
|
|
67696
67696
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
67697
67697
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(9274);
|
|
67698
67698
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_20__);
|
|
67699
67699
|
/* harmony import */ var _form_components_MessageBox_confirmBox_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(97381);
|
|
67700
|
-
/* harmony import */ var _form_form_modules_common_tableItem_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
|
|
67700
|
+
/* harmony import */ var _form_form_modules_common_tableItem_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(48555);
|
|
67701
67701
|
/* harmony import */ var _form_api_manage__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(5335);
|
|
67702
67702
|
/* harmony import */ var _form_form_util__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(36113);
|
|
67703
67703
|
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(50522);
|
|
@@ -67709,6 +67709,8 @@ let getFileExt = filename => {
|
|
|
67709
67709
|
/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(97015);
|
|
67710
67710
|
/* harmony import */ var _form_api_api__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(68294);
|
|
67711
67711
|
/* harmony import */ var _form_utils_util__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(97031);
|
|
67712
|
+
/* harmony import */ var _form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(5229);
|
|
67713
|
+
/* harmony import */ var _form_form_util_dictDataCache__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(33883);
|
|
67712
67714
|
|
|
67713
67715
|
|
|
67714
67716
|
|
|
@@ -68145,6 +68147,38 @@ let getFileExt = filename => {
|
|
|
68145
68147
|
//
|
|
68146
68148
|
//
|
|
68147
68149
|
//
|
|
68150
|
+
//
|
|
68151
|
+
//
|
|
68152
|
+
//
|
|
68153
|
+
//
|
|
68154
|
+
//
|
|
68155
|
+
//
|
|
68156
|
+
//
|
|
68157
|
+
//
|
|
68158
|
+
//
|
|
68159
|
+
//
|
|
68160
|
+
//
|
|
68161
|
+
//
|
|
68162
|
+
//
|
|
68163
|
+
//
|
|
68164
|
+
//
|
|
68165
|
+
//
|
|
68166
|
+
//
|
|
68167
|
+
//
|
|
68168
|
+
//
|
|
68169
|
+
//
|
|
68170
|
+
//
|
|
68171
|
+
//
|
|
68172
|
+
//
|
|
68173
|
+
//
|
|
68174
|
+
//
|
|
68175
|
+
//
|
|
68176
|
+
//
|
|
68177
|
+
//
|
|
68178
|
+
//
|
|
68179
|
+
//
|
|
68180
|
+
|
|
68181
|
+
|
|
68148
68182
|
|
|
68149
68183
|
|
|
68150
68184
|
|
|
@@ -68167,7 +68201,7 @@ let getFileExt = filename => {
|
|
|
68167
68201
|
computed: {
|
|
68168
68202
|
tableWidgets() {
|
|
68169
68203
|
var _this$data;
|
|
68170
|
-
return ((_this$data = this.data) === null || _this$data === void 0 || (_this$data = _this$data.list) === null || _this$data === void 0 ? void 0 : _this$data.filter(item =>
|
|
68204
|
+
return ((_this$data = this.data) === null || _this$data === void 0 || (_this$data = _this$data.list) === null || _this$data === void 0 ? void 0 : _this$data.filter(item => (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(item))) || [];
|
|
68171
68205
|
},
|
|
68172
68206
|
tableItem() {
|
|
68173
68207
|
return _form_form_modules_common_tableItem_vue__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .A;
|
|
@@ -68249,7 +68283,8 @@ let getFileExt = filename => {
|
|
|
68249
68283
|
rulesOver: false,
|
|
68250
68284
|
userSignature: undefined,
|
|
68251
68285
|
tableNum: 0,
|
|
68252
|
-
timerObj: {}
|
|
68286
|
+
timerObj: {},
|
|
68287
|
+
virtualTableRefs: {}
|
|
68253
68288
|
// formList: [],
|
|
68254
68289
|
// allLoading: false,
|
|
68255
68290
|
// allLoadingTips: '正在加载表单数据0%...',
|
|
@@ -68383,14 +68418,17 @@ let getFileExt = filename => {
|
|
|
68383
68418
|
this.tableWidgets.forEach(tableWidget => {
|
|
68384
68419
|
let isAllHide = true;
|
|
68385
68420
|
tableWidget.columns.forEach((item, idx) => {
|
|
68421
|
+
var _this$tableData$table;
|
|
68386
68422
|
if (item.options.canView) isAllHide = false;
|
|
68387
|
-
|
|
68423
|
+
const rowCount = ((_this$tableData$table = this.tableData[tableWidget.model]) === null || _this$tableData$table === void 0 ? void 0 : _this$tableData$table.length) || 0;
|
|
68424
|
+
const skipRowSync = tableWidget._lightweightRows || rowCount > _form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .LARGE_TABLE_ROW_THRESHOLD */ .Oi;
|
|
68425
|
+
if (this.tableData[tableWidget.model] && !skipRowSync) {
|
|
68388
68426
|
this.tableData[tableWidget.model].forEach((row, rowIndex) => {
|
|
68389
68427
|
row.columns[idx].options.canView = item.options.canView;
|
|
68390
68428
|
row.columns[idx].options.disabled = item.options.disabled;
|
|
68391
68429
|
row.columns[idx].options.required = item.options.required;
|
|
68392
68430
|
// 解决存在分页情况导出序号空白;
|
|
68393
|
-
if (tableWidget.supportPage &&
|
|
68431
|
+
if (tableWidget.supportPage && (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(tableWidget) && Array.isArray(this.tableData[tableWidget.model]) && ['input', 'textarea'].includes(item.type)) {
|
|
68394
68432
|
this.tableData[tableWidget.model].forEach((el, index) => {
|
|
68395
68433
|
let value = this.models[tableWidget.model][index][item.model];
|
|
68396
68434
|
if (item.options.defaultValue.includes('script:')) value = item.options.defaultValue;
|
|
@@ -68463,6 +68501,45 @@ let getFileExt = filename => {
|
|
|
68463
68501
|
}
|
|
68464
68502
|
},
|
|
68465
68503
|
methods: {
|
|
68504
|
+
isTableUseVirtualScroll: _form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableUseVirtualScroll */ .Ce,
|
|
68505
|
+
isTablePaginationActive(widget) {
|
|
68506
|
+
var _widget$options;
|
|
68507
|
+
return !!((_widget$options = widget.options) !== null && _widget$options !== void 0 && _widget$options.supportPage);
|
|
68508
|
+
},
|
|
68509
|
+
scrollTableToLastPage(model) {
|
|
68510
|
+
var _this$tableData$model;
|
|
68511
|
+
const pageInfo = this.tablePageInfo[model];
|
|
68512
|
+
if (!pageInfo) return;
|
|
68513
|
+
const pageSize = pageInfo.pageSize || 10;
|
|
68514
|
+
const total = ((_this$tableData$model = this.tableData[model]) === null || _this$tableData$model === void 0 ? void 0 : _this$tableData$model.length) || 0;
|
|
68515
|
+
pageInfo.current = Math.max(1, Math.ceil(total / pageSize));
|
|
68516
|
+
},
|
|
68517
|
+
getTableVirtualKeeps: _form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .getTableVirtualKeeps */ .qh,
|
|
68518
|
+
setVirtualTableRef(el, model) {
|
|
68519
|
+
if (el) {
|
|
68520
|
+
this.$set(this.virtualTableRefs, model, el);
|
|
68521
|
+
} else if (this.virtualTableRefs[model]) {
|
|
68522
|
+
this.$delete(this.virtualTableRefs, model);
|
|
68523
|
+
}
|
|
68524
|
+
},
|
|
68525
|
+
scrollTableToNewRow(model) {
|
|
68526
|
+
this.$nextTick(() => {
|
|
68527
|
+
const vlist = this.virtualTableRefs[model];
|
|
68528
|
+
if (vlist && typeof vlist.scrollToNewRow === 'function') {
|
|
68529
|
+
vlist.scrollToNewRow();
|
|
68530
|
+
}
|
|
68531
|
+
});
|
|
68532
|
+
},
|
|
68533
|
+
syncVirtualTable(model) {
|
|
68534
|
+
this.$nextTick(() => {
|
|
68535
|
+
this.$nextTick(() => {
|
|
68536
|
+
const vlist = this.virtualTableRefs[model];
|
|
68537
|
+
if (vlist && typeof vlist.resetToHead === 'function') {
|
|
68538
|
+
vlist.resetToHead();
|
|
68539
|
+
}
|
|
68540
|
+
});
|
|
68541
|
+
});
|
|
68542
|
+
},
|
|
68466
68543
|
beforeUpload: function (file) {
|
|
68467
68544
|
var fileType = file.type;
|
|
68468
68545
|
if (fileType.indexOf("excel") < 0) {
|
|
@@ -68594,25 +68671,21 @@ let getFileExt = filename => {
|
|
|
68594
68671
|
},
|
|
68595
68672
|
//添加子表单里面的row
|
|
68596
68673
|
addToTableData(data, model, addModel = undefined, clickByUser = false) {
|
|
68597
|
-
|
|
68598
|
-
|
|
68599
|
-
dataTemp = JSON.parse(JSON.stringify(data));
|
|
68600
|
-
// }
|
|
68601
|
-
// this.tableIndex[model] === undefined ? this.$set(this.tableIndex, model, 0) : null;
|
|
68602
|
-
// dataTemp.index = this.tableIndex[model];
|
|
68603
|
-
// this.tableIndex[model]++;
|
|
68674
|
+
const tableWidget = this.tableModel[model];
|
|
68675
|
+
const lightweight = tableWidget && tableWidget._lightweightRows;
|
|
68604
68676
|
this.tableData[model] === undefined ? this.$set(this.tableData, model, []) : null;
|
|
68605
68677
|
if (addModel) {
|
|
68606
68678
|
let addModelObject = {};
|
|
68607
|
-
|
|
68608
|
-
|
|
68679
|
+
data.columns.forEach(item => {
|
|
68680
|
+
if (!lightweight) {
|
|
68681
|
+
item.options.isCorrect = false;
|
|
68682
|
+
}
|
|
68609
68683
|
if (clickByUser) {
|
|
68610
68684
|
item.tableColCanEdit = true;
|
|
68611
68685
|
}
|
|
68612
68686
|
let defaultValue = item.defaultValue ? item.defaultValue : item.options.defaultValue;
|
|
68613
68687
|
if (item.type == "imgupload" && item.options.defaultFiles) defaultValue = item.options.defaultFiles;
|
|
68614
68688
|
addModelObject[item.model] = defaultValue;
|
|
68615
|
-
// if (addModelObject[item.model] === undefined) addModelObject[item.model] = ''
|
|
68616
68689
|
});
|
|
68617
68690
|
this.unFreezeModels(model);
|
|
68618
68691
|
if (!Array.isArray(this.models[model])) {
|
|
@@ -68621,7 +68694,7 @@ let getFileExt = filename => {
|
|
|
68621
68694
|
const _cloneData = (0,_util_util__WEBPACK_IMPORTED_MODULE_16__/* .cloneObj */ .lR)(addModelObject);
|
|
68622
68695
|
this.models[model].push(addModelObject);
|
|
68623
68696
|
this.freezeModels(model);
|
|
68624
|
-
if (this.isDesign) {
|
|
68697
|
+
if (this.isDesign && !lightweight) {
|
|
68625
68698
|
if (!this.destoryTable) this.destoryTable = [];
|
|
68626
68699
|
this.destoryTable.push(() => {
|
|
68627
68700
|
for (const key in _cloneData) {
|
|
@@ -68632,18 +68705,30 @@ let getFileExt = filename => {
|
|
|
68632
68705
|
}
|
|
68633
68706
|
});
|
|
68634
68707
|
this.$on('hook:destroyed', () => {
|
|
68635
|
-
// addModelObject forin _cloneData
|
|
68636
68708
|
this.destoryTable.forEach(func => func());
|
|
68637
68709
|
});
|
|
68638
68710
|
}
|
|
68639
|
-
|
|
68711
|
+
}
|
|
68712
|
+
let dataTemp;
|
|
68713
|
+
if (lightweight) {
|
|
68714
|
+
dataTemp = (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .createLightweightTableRow */ .r)(model, this.tableData[model].length, `${Date.now()}_${Math.random()}`);
|
|
68640
68715
|
} else {
|
|
68641
|
-
dataTemp
|
|
68716
|
+
dataTemp = JSON.parse(JSON.stringify(data));
|
|
68717
|
+
if (addModel) {
|
|
68718
|
+
dataTemp.options.isCorrect = false;
|
|
68719
|
+
} else {
|
|
68720
|
+
dataTemp.options.isCorrect = true;
|
|
68721
|
+
}
|
|
68722
|
+
let random_number = Math.ceil(Math.random() * 10000) + '';
|
|
68723
|
+
dataTemp.hashKey = new Date().getTime() + random_number;
|
|
68724
|
+
dataTemp.rand_id = Math.random().toString();
|
|
68642
68725
|
}
|
|
68643
|
-
let random_number = Math.ceil(Math.random() * 10000) + '';
|
|
68644
|
-
dataTemp.hashKey = new Date().getTime() + random_number;
|
|
68645
|
-
dataTemp.rand_id = Math.random().toString();
|
|
68646
68726
|
this.tableData[model].push(dataTemp);
|
|
68727
|
+
if (tableWidget && this.isTablePaginationActive(tableWidget)) {
|
|
68728
|
+
this.$nextTick(() => this.scrollTableToLastPage(model));
|
|
68729
|
+
} else if (tableWidget && (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableUseVirtualScroll */ .Ce)(tableWidget)) {
|
|
68730
|
+
this.scrollTableToNewRow(model);
|
|
68731
|
+
}
|
|
68647
68732
|
this.publishCalc(model);
|
|
68648
68733
|
},
|
|
68649
68734
|
publishCalc(model) {
|
|
@@ -68687,10 +68772,31 @@ let getFileExt = filename => {
|
|
|
68687
68772
|
if (Array.isArray(curr)) {
|
|
68688
68773
|
return all.concat(this.findTableComponent(curr));
|
|
68689
68774
|
}
|
|
68690
|
-
if (
|
|
68775
|
+
if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(curr)) return all.concat(curr);
|
|
68691
68776
|
return all;
|
|
68692
68777
|
}, []);
|
|
68693
68778
|
},
|
|
68779
|
+
navigateToSubTableRow({
|
|
68780
|
+
tableModel,
|
|
68781
|
+
rowIndex
|
|
68782
|
+
}) {
|
|
68783
|
+
if (!this.tablePageInfo[tableModel]) return;
|
|
68784
|
+
const pageSize = this.tablePageInfo[tableModel].pageSize || 10;
|
|
68785
|
+
this.tablePageInfo[tableModel].current = Math.floor(rowIndex / pageSize) + 1;
|
|
68786
|
+
},
|
|
68787
|
+
scrollToFirstFormError() {
|
|
68788
|
+
setTimeout(() => {
|
|
68789
|
+
const explainDom = document.querySelector(".ant-form-explain");
|
|
68790
|
+
if (explainDom) {
|
|
68791
|
+
const y = explainDom.getBoundingClientRect().y - 100;
|
|
68792
|
+
document.documentElement.scrollTop += y;
|
|
68793
|
+
const scrollArea = document.querySelector(".scroll-area");
|
|
68794
|
+
if (scrollArea) {
|
|
68795
|
+
scrollArea.scrollTop += y;
|
|
68796
|
+
}
|
|
68797
|
+
}
|
|
68798
|
+
}, 0);
|
|
68799
|
+
},
|
|
68694
68800
|
//校验表单 获取数据
|
|
68695
68801
|
getFormData() {
|
|
68696
68802
|
if (this.verifyNode && this.models[this.verifyNode]) {
|
|
@@ -68701,56 +68807,33 @@ let getFileExt = filename => {
|
|
|
68701
68807
|
}
|
|
68702
68808
|
// 判断是否为 纠错审核内进来的, 纠错审核不用校验表单
|
|
68703
68809
|
if (this.isCorrectAudit()) return Promise.resolve(this.models);
|
|
68704
|
-
|
|
68705
|
-
|
|
68706
|
-
|
|
68707
|
-
if ([table.options.canView, !table.options.disabled].includes(false)) return;
|
|
68708
|
-
const {
|
|
68709
|
-
columns = []
|
|
68710
|
-
} = table;
|
|
68711
|
-
for (let i = 0; i < columns.length; i++) {
|
|
68712
|
-
var _columns$i$options;
|
|
68713
|
-
const {
|
|
68714
|
-
rules = []
|
|
68715
|
-
} = columns[i];
|
|
68716
|
-
if (rules.some(rule => rule.required)) return true;
|
|
68717
|
-
if ((_columns$i$options = columns[i].options) !== null && _columns$i$options !== void 0 && _columns$i$options.minValue) {
|
|
68718
|
-
return true;
|
|
68719
|
-
}
|
|
68720
|
-
}
|
|
68810
|
+
const subTables = this.findTableComponent(this.widgetList).filter(table => table.options.canView && !table.options.disabled);
|
|
68811
|
+
const tableErrors = (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .validateSubTableRows */ .gj)(subTables, this.models, {
|
|
68812
|
+
isCorrectAudit: this.m_isCorrectAudit()
|
|
68721
68813
|
});
|
|
68722
|
-
// 子表单有必填校验 判断有没有添加行, 没有添加行需要手动添加行, 让它触发校验
|
|
68723
|
-
//新疆科技不需要该逻辑,去除
|
|
68724
|
-
// tables.forEach(table => {
|
|
68725
|
-
// const model = this.models[table.model]
|
|
68726
|
-
// if ( !model || ( Array.isArray(model) && model.length === 0 )) {
|
|
68727
|
-
// this.addToTableData(table, table.model, 'addModel', true)
|
|
68728
|
-
// }
|
|
68729
|
-
// })
|
|
68730
|
-
debugger;
|
|
68731
68814
|
return new Promise((resolve, reject) => {
|
|
68732
|
-
|
|
68815
|
+
const runValidate = () => {
|
|
68733
68816
|
this.$refs.Form.validate(valid => {
|
|
68734
|
-
|
|
68735
|
-
if (valid) {
|
|
68817
|
+
if (valid && !tableErrors.length) {
|
|
68736
68818
|
resolve(this.models);
|
|
68737
68819
|
} else {
|
|
68820
|
+
var _tableErrors$;
|
|
68738
68821
|
console.log("error submit!!");
|
|
68739
|
-
|
|
68740
|
-
|
|
68741
|
-
|
|
68742
|
-
|
|
68743
|
-
|
|
68744
|
-
|
|
68745
|
-
const scrollArea = document.querySelector(".scroll-area");
|
|
68746
|
-
if (scrollArea) {
|
|
68747
|
-
scrollArea.scrollTop += y;
|
|
68748
|
-
}
|
|
68749
|
-
}
|
|
68750
|
-
}, 0);
|
|
68822
|
+
const message = ((_tableErrors$ = tableErrors[0]) === null || _tableErrors$ === void 0 ? void 0 : _tableErrors$.message) || "表单数据校验失败";
|
|
68823
|
+
if (tableErrors.length && valid) {
|
|
68824
|
+
this.$message.warning(message);
|
|
68825
|
+
}
|
|
68826
|
+
reject(new Error(message).message);
|
|
68827
|
+
this.scrollToFirstFormError();
|
|
68751
68828
|
}
|
|
68752
68829
|
});
|
|
68753
|
-
}
|
|
68830
|
+
};
|
|
68831
|
+
if (tableErrors.length) {
|
|
68832
|
+
this.navigateToSubTableRow(tableErrors[0]);
|
|
68833
|
+
this.$nextTick(runValidate);
|
|
68834
|
+
} else {
|
|
68835
|
+
this.$nextTick(runValidate);
|
|
68836
|
+
}
|
|
68754
68837
|
});
|
|
68755
68838
|
},
|
|
68756
68839
|
//重置表单
|
|
@@ -68822,10 +68905,7 @@ let getFileExt = filename => {
|
|
|
68822
68905
|
// });
|
|
68823
68906
|
// },
|
|
68824
68907
|
generateTableData(gen) {
|
|
68825
|
-
|
|
68826
|
-
// this.tableData = {}
|
|
68827
|
-
// this.tableIndex = {}
|
|
68828
|
-
if (gen.type === "table") {
|
|
68908
|
+
if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(gen)) {
|
|
68829
68909
|
var tableModel = gen.model;
|
|
68830
68910
|
if (this.tableData[tableModel] instanceof Array) {
|
|
68831
68911
|
this.tableData[tableModel].length = 0;
|
|
@@ -68833,7 +68913,12 @@ let getFileExt = filename => {
|
|
|
68833
68913
|
}
|
|
68834
68914
|
this.tableModel[tableModel] = gen;
|
|
68835
68915
|
this.tableModel[tableModel]["options"]["defaultValue"] = this.models[gen.model];
|
|
68836
|
-
this.tableInitByModel(tableModel);
|
|
68916
|
+
const initTable = () => this.tableInitByModel(tableModel);
|
|
68917
|
+
if (gen.type === 'newTable') {
|
|
68918
|
+
(0,_form_form_util_dictDataCache__WEBPACK_IMPORTED_MODULE_34__/* .prefetchTableDictData */ .sE)(gen.columns, this.applyId).finally(initTable);
|
|
68919
|
+
} else {
|
|
68920
|
+
initTable();
|
|
68921
|
+
}
|
|
68837
68922
|
}
|
|
68838
68923
|
},
|
|
68839
68924
|
timeout: _form_utils_util__WEBPACK_IMPORTED_MODULE_32__.timeout,
|
|
@@ -68842,14 +68927,15 @@ let getFileExt = filename => {
|
|
|
68842
68927
|
if (this.tableData[model] === undefined) {
|
|
68843
68928
|
this.$set(this.tableData, model, []);
|
|
68844
68929
|
}
|
|
68845
|
-
// console.log('--',this.tableModel[model], model)
|
|
68846
68930
|
setTimeout(async () => {
|
|
68847
68931
|
this.tableNum++;
|
|
68848
68932
|
this.$emit("tableLoading", true);
|
|
68849
68933
|
this.formLoading = true;
|
|
68850
68934
|
this.tableLoading = true;
|
|
68851
|
-
|
|
68852
|
-
|
|
68935
|
+
const tableWidget = this.tableModel[model];
|
|
68936
|
+
const rowCount = this.models[model].length;
|
|
68937
|
+
const lightweight = (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .shouldUseLightweightTableRows */ .K2)(rowCount);
|
|
68938
|
+
tableWidget._lightweightRows = lightweight;
|
|
68853
68939
|
if (this.isDesign) {
|
|
68854
68940
|
if (!this.destoryTable) this.destoryTable = [];
|
|
68855
68941
|
this.destoryTable.push(() => {
|
|
@@ -68859,29 +68945,29 @@ let getFileExt = filename => {
|
|
|
68859
68945
|
this.destoryTable.forEach(func => func());
|
|
68860
68946
|
});
|
|
68861
68947
|
}
|
|
68862
|
-
|
|
68863
|
-
|
|
68864
|
-
|
|
68865
|
-
|
|
68866
|
-
|
|
68867
|
-
|
|
68868
|
-
|
|
68948
|
+
if (lightweight) {
|
|
68949
|
+
this.tableData[model] = (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .createLightweightTableRows */ .eo)(model, rowCount);
|
|
68950
|
+
} else {
|
|
68951
|
+
const dataTemp = JSON.parse(JSON.stringify(tableWidget));
|
|
68952
|
+
dataTemp._clone = true;
|
|
68953
|
+
const seed = Date.now();
|
|
68954
|
+
this.tableData[model] = Array.from({
|
|
68955
|
+
length: rowCount
|
|
68956
|
+
}, (_, index) => {
|
|
68957
|
+
const row = (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .createFullTableRow */ .yk)(dataTemp);
|
|
68958
|
+
row.hashKey = `${model}_${index}_${seed}`;
|
|
68959
|
+
row.index = index;
|
|
68960
|
+
return row;
|
|
68961
|
+
});
|
|
68869
68962
|
}
|
|
68870
68963
|
this.freezeModels(model);
|
|
68871
|
-
let tableData = Array.from({
|
|
68872
|
-
length: this.models[model].length
|
|
68873
|
-
}, () => JSON.parse(JSON.stringify(dataTemp)));
|
|
68874
|
-
tableData.forEach((el, index) => {
|
|
68875
|
-
if (!el.hashKey) {
|
|
68876
|
-
el.hashKey = new Date().getTime() + Math.ceil(Math.random() * 10000) + '' + index;
|
|
68877
|
-
}
|
|
68878
|
-
});
|
|
68879
|
-
this.tableData[model] = tableData;
|
|
68880
68964
|
this.tableLoading = false;
|
|
68881
68965
|
if (this.tableNum > 0) this.tableNum--;
|
|
68882
68966
|
if (this.tableNum === 0) this.formLoading = false;
|
|
68883
|
-
console.log("tableLoading false");
|
|
68884
68967
|
this.$emit("tableLoading", false);
|
|
68968
|
+
if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableUseVirtualScroll */ .Ce)(tableWidget)) {
|
|
68969
|
+
this.syncVirtualTable(model);
|
|
68970
|
+
}
|
|
68885
68971
|
setTimeout(() => {
|
|
68886
68972
|
this.publishCalc(model);
|
|
68887
68973
|
}, 10);
|
|
@@ -69185,7 +69271,7 @@ let getFileExt = filename => {
|
|
|
69185
69271
|
this.handleLinkAge();
|
|
69186
69272
|
if (Array.isArray(genList) && genList.length > 0) {
|
|
69187
69273
|
genList.forEach((widget, index) => {
|
|
69188
|
-
if (["grid", "grid-lay-out", "all-lay-out"
|
|
69274
|
+
if (["grid", "grid-lay-out", "all-lay-out"].includes(widget.type) || (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(widget)) {
|
|
69189
69275
|
this.syncLayoutSubscribe(widget);
|
|
69190
69276
|
}
|
|
69191
69277
|
// 此类组件 需要深度遍历columns.list
|
|
@@ -69206,7 +69292,7 @@ let getFileExt = filename => {
|
|
|
69206
69292
|
this.models[widget.model] = ["imgupload", "deptSelector", "userSelector", "userSelectorByRole", "relateSub"].includes(widget.type) ? [] : "";
|
|
69207
69293
|
}
|
|
69208
69294
|
// 子表单
|
|
69209
|
-
if (
|
|
69295
|
+
if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(widget)) {
|
|
69210
69296
|
//生成tableModel
|
|
69211
69297
|
this.generateTableData(widget);
|
|
69212
69298
|
return false;
|
|
@@ -69252,7 +69338,26 @@ let getFileExt = filename => {
|
|
|
69252
69338
|
},
|
|
69253
69339
|
// 设置models值 通过defaultValue
|
|
69254
69340
|
setModelsbyDefaultValue(widget) {
|
|
69255
|
-
const defaultValue = !this.data.config.status || this.data.config.status == 'XZ' ?
|
|
69341
|
+
const defaultValue = !this.data.config.status || this.data.config.status == 'XZ' ? (0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(widget) && !widget.options.defaultValue ? [] : widget.options.defaultValue : widget.type === 'select' && !widget.options.defaultValue ? void 0 : '';
|
|
69342
|
+
if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(widget)) {
|
|
69343
|
+
const value = (0,_util_util__WEBPACK_IMPORTED_MODULE_16__/* .cloneObj */ .lR)(widget.options.defaultValue);
|
|
69344
|
+
// 子表单默认值, 如果 缺少 内部子组件key, 会导致校验失败, 所以需要补全
|
|
69345
|
+
const tableWidget = this.widgetList[0].find(item => item.model === widget.model);
|
|
69346
|
+
const childKeys = tableWidget ? tableWidget.columns.map(item => item.model) : [];
|
|
69347
|
+
if (Array.isArray(value)) {
|
|
69348
|
+
value.forEach(val => {
|
|
69349
|
+
const valKeys = Object.keys(val || {});
|
|
69350
|
+
childKeys.forEach(key => {
|
|
69351
|
+
if (!valKeys.includes(key)) {
|
|
69352
|
+
val[key] = undefined;
|
|
69353
|
+
}
|
|
69354
|
+
});
|
|
69355
|
+
});
|
|
69356
|
+
}
|
|
69357
|
+
this.models[widget.model] = value ? value : [];
|
|
69358
|
+
this.generateTableData(widget);
|
|
69359
|
+
return true;
|
|
69360
|
+
}
|
|
69256
69361
|
switch (widget.type) {
|
|
69257
69362
|
case "verify":
|
|
69258
69363
|
this.models[widget.model] = widget.operationColumns;
|
|
@@ -69281,29 +69386,12 @@ let getFileExt = filename => {
|
|
|
69281
69386
|
}
|
|
69282
69387
|
this.models[widget.model] = selectDefaultValue;
|
|
69283
69388
|
return true;
|
|
69284
|
-
case "table":
|
|
69285
|
-
const value = (0,_util_util__WEBPACK_IMPORTED_MODULE_16__/* .cloneObj */ .lR)(widget.options.defaultValue);
|
|
69286
|
-
// 子表单默认值, 如果 缺少 内部子组件key, 会导致校验失败, 所以需要补全
|
|
69287
|
-
const childKeys = this.widgetList[0].find(item => item.model === widget.model).columns.map(item => item.model);
|
|
69288
|
-
if (Array.isArray(value)) {
|
|
69289
|
-
value.forEach(val => {
|
|
69290
|
-
const valKeys = Object.keys(val || {});
|
|
69291
|
-
childKeys.forEach(key => {
|
|
69292
|
-
if (!valKeys.includes(key)) {
|
|
69293
|
-
val[key] = undefined;
|
|
69294
|
-
}
|
|
69295
|
-
});
|
|
69296
|
-
});
|
|
69297
|
-
}
|
|
69298
|
-
this.models[widget.model] = value ? value : [];
|
|
69299
|
-
this.generateTableData(widget);
|
|
69300
|
-
return true;
|
|
69301
69389
|
default:
|
|
69302
69390
|
return false;
|
|
69303
69391
|
}
|
|
69304
69392
|
},
|
|
69305
69393
|
generateRules(widget, parentWidget) {
|
|
69306
|
-
if (
|
|
69394
|
+
if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(widget)) {
|
|
69307
69395
|
var tableRlues = {};
|
|
69308
69396
|
if (widget.columns.length > 0) {
|
|
69309
69397
|
widget.columns.forEach(item => {
|
|
@@ -69313,13 +69401,15 @@ let getFileExt = filename => {
|
|
|
69313
69401
|
return {
|
|
69314
69402
|
...i,
|
|
69315
69403
|
validator: (rule, val, callback) => {
|
|
69404
|
+
var _this$models$tableMod;
|
|
69316
69405
|
let index = rule.field.split('.')[1];
|
|
69317
|
-
|
|
69406
|
+
const tableModel = item.tableKey || item.parentModel || widget.model;
|
|
69407
|
+
let value = val !== undefined && val !== null ? val : (_this$models$tableMod = this.models[tableModel]) === null || _this$models$tableMod === void 0 || (_this$models$tableMod = _this$models$tableMod[index]) === null || _this$models$tableMod === void 0 ? void 0 : _this$models$tableMod[item.model];
|
|
69318
69408
|
// 子表单组件不可见的时候, 内部组件都不校验
|
|
69319
69409
|
if (!widget.options.canView) {
|
|
69320
69410
|
return callback();
|
|
69321
69411
|
}
|
|
69322
|
-
if (!item.options.canView || item.options.disabled && !this.
|
|
69412
|
+
if (!item.options.canView || item.options.disabled && !this.m_isCorrectAudit() || !rule.required) {
|
|
69323
69413
|
return callback();
|
|
69324
69414
|
}
|
|
69325
69415
|
if (value === "" || value === undefined || value == null || Array.isArray(value) && !value.length) {
|
|
@@ -69464,7 +69554,7 @@ let getFileExt = filename => {
|
|
|
69464
69554
|
dataListReset() {
|
|
69465
69555
|
if (this.data.list.length > 0) {
|
|
69466
69556
|
this.data.list.forEach(item => {
|
|
69467
|
-
if (
|
|
69557
|
+
if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_33__/* .isTableWidget */ .X2)(item)) {
|
|
69468
69558
|
item.options.defaultValue = [];
|
|
69469
69559
|
}
|
|
69470
69560
|
});
|
|
@@ -70128,6 +70218,7 @@ const API = '/form/formdesiger/countLeaveDays';
|
|
|
70128
70218
|
/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(78014);
|
|
70129
70219
|
/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(38574);
|
|
70130
70220
|
/* harmony import */ var _form_utils_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(97031);
|
|
70221
|
+
/* harmony import */ var _form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(5229);
|
|
70131
70222
|
|
|
70132
70223
|
|
|
70133
70224
|
|
|
@@ -70149,6 +70240,7 @@ const API = '/form/formdesiger/countLeaveDays';
|
|
|
70149
70240
|
|
|
70150
70241
|
|
|
70151
70242
|
|
|
70243
|
+
|
|
70152
70244
|
__webpack_require__.g.dictData = {};
|
|
70153
70245
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
70154
70246
|
inject: {
|
|
@@ -70285,7 +70377,7 @@ __webpack_require__.g.dictData = {};
|
|
|
70285
70377
|
computed: {
|
|
70286
70378
|
applyId() {
|
|
70287
70379
|
var _this$formContext, _this$$route;
|
|
70288
|
-
return (this === null || this === void 0 || (_this$formContext = this.formContext) === null || _this$formContext === void 0 ? void 0 : _this$formContext.applyId) || ((_this$$route = this.$route) === null || _this$$route === void 0 || (_this$$route = _this$$route.query) === null || _this$$route === void 0 ? void 0 : _this$$route.applyId);
|
|
70380
|
+
return this.$attrs.applyId || (this === null || this === void 0 || (_this$formContext = this.formContext) === null || _this$formContext === void 0 ? void 0 : _this$formContext.applyId) || ((_this$$route = this.$route) === null || _this$$route === void 0 || (_this$$route = _this$$route.query) === null || _this$$route === void 0 ? void 0 : _this$$route.applyId);
|
|
70289
70381
|
},
|
|
70290
70382
|
currUserInfo() {
|
|
70291
70383
|
var _this$formContext2;
|
|
@@ -70453,7 +70545,7 @@ __webpack_require__.g.dictData = {};
|
|
|
70453
70545
|
item.columns.forEach(columnsItem => {
|
|
70454
70546
|
func(res_list, columnsItem.list);
|
|
70455
70547
|
});
|
|
70456
|
-
} else if (
|
|
70548
|
+
} else if ((0,_form_form_util_tableUtil__WEBPACK_IMPORTED_MODULE_19__/* .isTableWidget */ .X2)(item)) {
|
|
70457
70549
|
// columns
|
|
70458
70550
|
func(res_list, item.columns);
|
|
70459
70551
|
} else {
|
|
@@ -71092,7 +71184,7 @@ module.exports = {
|
|
|
71092
71184
|
|
|
71093
71185
|
/***/ },
|
|
71094
71186
|
|
|
71095
|
-
/***/
|
|
71187
|
+
/***/ 40000
|
|
71096
71188
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
71097
71189
|
|
|
71098
71190
|
"use strict";
|
|
@@ -72377,7 +72469,7 @@ if(templist.includes('匹配条件字段的值')){
|
|
|
72377
72469
|
components: {
|
|
72378
72470
|
JEllipsis: JEllipsis,
|
|
72379
72471
|
codemirror: vue_codemirror.codemirror,
|
|
72380
|
-
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
72472
|
+
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 89715))
|
|
72381
72473
|
},
|
|
72382
72474
|
props: {
|
|
72383
72475
|
datalist: {
|
|
@@ -74681,19 +74773,21 @@ var widgetDesign_component = (0,componentNormalizer/* default */.A)(
|
|
|
74681
74773
|
widgetSetup: widgetSetup,
|
|
74682
74774
|
widgetDesign: widgetDesign
|
|
74683
74775
|
});
|
|
74684
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Select/component.vue?vue&type=template&id=
|
|
74685
|
-
var
|
|
74776
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Select/component.vue?vue&type=template&id=ef4ced6e&scoped=true
|
|
74777
|
+
var componentvue_type_template_id_ef4ced6e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item select_component",style:({ height: _vm.widget.options.autoHeight ? 'auto' : _vm.widget.options.height + 'px',background: _vm.widget.options.bgColor, '--dropdown_width': _vm.dropDownWidth })},[_c('a-form-model-item',{ref:_vm.widget.model,attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol,"prop":_vm.tableKey ? (_vm.tableKey + "." + _vm.tableIndex + "." + (_vm.widget.model)) : _vm.widget.model,"rules":_vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]}},[(_vm.widget.options.labelWidth !== 0)?_c('div',{class:[
|
|
74686
74778
|
_vm.config.align,
|
|
74687
74779
|
_vm.config.validate === true && _vm.widget.options.required === true
|
|
74688
74780
|
? 'is_required'
|
|
74689
74781
|
: 'no_required' ],style:({ color: this.config.color }),attrs:{"slot":"label"},slot:"label"},[_vm._v(" "+_vm._s(_vm.widget.name)+" ")]):_vm._e(),_c('a-select',{attrs:{"dropdownStyle":{ zIndex: 3000, maxWidth: _vm.dropDownMaxWidth, minWidth: _vm.dropDownMinWidth },"placeholder":_vm.widget.options.placeholder,"disabled":_vm.isdisabled ? _vm.show : _vm.widget.options.disabled,"value":_vm.select_value,"showSearch":"","optionFilterProp":"label","allowClear":"","getPopupContainer":function (triggerNode) {
|
|
74690
74782
|
return triggerNode.parentNode || _vm.document.body;
|
|
74691
74783
|
},"mode":_vm.widget.options.multiple ? 'multiple' : 'default',"showArrow":""},on:{"change":_vm.handleChange,"search":_vm.handleSearch,"blur":_vm.handleBlur,"popupScroll":function (e) { _vm.handleScroll(e) }}},[(_vm.thrList.length > 0)?_vm._l((_vm.thrList),function(item,idx){return _c('a-select-option',{key:idx,attrs:{"title":item.xm,"value":item.gh,"label":item.xm}},[_vm._v(" "+_vm._s(item.xm)+" ")])}):_vm._l((_vm.filterDictOptions),function(item,idx){return _c('a-select-option',{key:idx,attrs:{"title":item.text,"value":item.value,"label":item.text}},[_vm._v(" "+_vm._s(item.text)+" ")])})],2)],1)],1):_vm._e()}
|
|
74692
|
-
var
|
|
74784
|
+
var componentvue_type_template_id_ef4ced6e_scoped_true_staticRenderFns = []
|
|
74693
74785
|
|
|
74694
74786
|
|
|
74695
74787
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.49.0@core-js/modules/es.array.unshift.js
|
|
74696
74788
|
var es_array_unshift = __webpack_require__(13255);
|
|
74789
|
+
// EXTERNAL MODULE: ./src/form/util/dictDataCache.js
|
|
74790
|
+
var dictDataCache = __webpack_require__(33883);
|
|
74697
74791
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
74698
74792
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
74699
74793
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
@@ -74785,6 +74879,7 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac
|
|
|
74785
74879
|
|
|
74786
74880
|
|
|
74787
74881
|
|
|
74882
|
+
|
|
74788
74883
|
if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select = {};
|
|
74789
74884
|
/* harmony default export */ const Select_componentvue_type_script_lang_js = ({
|
|
74790
74885
|
mixins: [widgetMixins/* default */.A],
|
|
@@ -74806,12 +74901,6 @@ if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select
|
|
|
74806
74901
|
thrList: []
|
|
74807
74902
|
};
|
|
74808
74903
|
},
|
|
74809
|
-
props: {
|
|
74810
|
-
applyId: {
|
|
74811
|
-
type: String,
|
|
74812
|
-
default: ""
|
|
74813
|
-
}
|
|
74814
|
-
},
|
|
74815
74904
|
components: {},
|
|
74816
74905
|
created() {
|
|
74817
74906
|
if (localStorage.getItem('isZJGMFormDesign') && this.widget.model === 'thr' && window._CONFIG.isZJGMFormDesign) {
|
|
@@ -74947,7 +75036,7 @@ if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select
|
|
|
74947
75036
|
if (!wight || !wight.model) return false;
|
|
74948
75037
|
const func = (msg, data) => {
|
|
74949
75038
|
__webpack_require__.g.linkage_select[wight.model] = data;
|
|
74950
|
-
|
|
75039
|
+
(0,dictDataCache/* clearDictCache */.ue)();
|
|
74951
75040
|
let currDataModel = this.dataModel;
|
|
74952
75041
|
if (typeof data == "object") {
|
|
74953
75042
|
//用此判断 来确定是否由消息发布者手动触发来启动
|
|
@@ -75018,7 +75107,6 @@ if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select
|
|
|
75018
75107
|
this.models[this.widget.model] = e;
|
|
75019
75108
|
}
|
|
75020
75109
|
}
|
|
75021
|
-
debugger;
|
|
75022
75110
|
if (this.tableKey) {
|
|
75023
75111
|
// this.models[this.tableKey][this.tableIndex][this.widget.model] = e
|
|
75024
75112
|
// this.dataModel = e
|
|
@@ -75040,7 +75128,6 @@ if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select
|
|
|
75040
75128
|
},
|
|
75041
75129
|
//获取数据
|
|
75042
75130
|
async initDictData() {
|
|
75043
|
-
// 代表自定义数据项
|
|
75044
75131
|
if (this.widget.options.remoteNumber == '4') {
|
|
75045
75132
|
this.dictOptions = this.widget.options.designDataList.map(item => {
|
|
75046
75133
|
return {
|
|
@@ -75048,70 +75135,8 @@ if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select
|
|
|
75048
75135
|
text: item.label
|
|
75049
75136
|
};
|
|
75050
75137
|
});
|
|
75051
|
-
} else {
|
|
75052
|
-
|
|
75053
|
-
dictTable
|
|
75054
|
-
} = this.widget.options;
|
|
75055
|
-
if (this.widget.options.dictName) {
|
|
75056
|
-
//根据字典Code, 初始化字典数组
|
|
75057
|
-
await (0,manage/* getAction */.Th)(`/sys/dict/getDictItems/${this.widget.options.dictName}`).then(res => {
|
|
75058
|
-
if (res.success && !this.isGetOptionsByPulish) {
|
|
75059
|
-
this.dictOptions = res.result;
|
|
75060
|
-
}
|
|
75061
|
-
});
|
|
75062
|
-
} else if (dictTable) {
|
|
75063
|
-
let params = {
|
|
75064
|
-
tableName: dictTable
|
|
75065
|
-
};
|
|
75066
|
-
if (!__webpack_require__.g['getDataCenterDict']) {
|
|
75067
|
-
__webpack_require__.g['getDataCenterDict'] = {};
|
|
75068
|
-
}
|
|
75069
|
-
let func = () => (0,manage/* getAction */.Th)('/form/formdesiger/getDataCenterDict', params);
|
|
75070
|
-
if (__webpack_require__.g['getDataCenterDict'][dictTable]) {
|
|
75071
|
-
func = () => Promise.resolve(__webpack_require__.g['getDataCenterDict'][dictTable]);
|
|
75072
|
-
}
|
|
75073
|
-
await func().then(res => {
|
|
75074
|
-
if (res.success && !this.isGetOptionsByPulish) {
|
|
75075
|
-
__webpack_require__.g['getDataCenterDict'][dictTable] = res;
|
|
75076
|
-
this.dictOptions = (res.result || []).map(item => {
|
|
75077
|
-
return {
|
|
75078
|
-
value: item.dictValue,
|
|
75079
|
-
text: item.dictLabel
|
|
75080
|
-
};
|
|
75081
|
-
});
|
|
75082
|
-
}
|
|
75083
|
-
});
|
|
75084
|
-
} else if (this.widget.options.dictUrl) {
|
|
75085
|
-
if (this.widget.options.dictUrl.indexOf("?") != -1) {
|
|
75086
|
-
let list = this.widget.options.dictUrl.split("?");
|
|
75087
|
-
let url = list[0];
|
|
75088
|
-
let params = this.getparams(list[1]);
|
|
75089
|
-
await (0,manage/* getAction */.Th)(url, params).then(res => {
|
|
75090
|
-
if (res.success && !this.isGetOptionsByPulish) {
|
|
75091
|
-
this.dictOptions = res.result.map(item => {
|
|
75092
|
-
return {
|
|
75093
|
-
value: item.dataKey,
|
|
75094
|
-
text: item.dataValue
|
|
75095
|
-
};
|
|
75096
|
-
});
|
|
75097
|
-
}
|
|
75098
|
-
});
|
|
75099
|
-
} else {
|
|
75100
|
-
const params = this.applyId ? {
|
|
75101
|
-
applyId: this.applyId
|
|
75102
|
-
} : {};
|
|
75103
|
-
await (0,manage/* getAction */.Th)(this.widget.options.dictUrl, params).then(res => {
|
|
75104
|
-
if (res.success && !this.isGetOptionsByPulish) {
|
|
75105
|
-
this.dictOptions = res.result.map(item => {
|
|
75106
|
-
return {
|
|
75107
|
-
value: item.id,
|
|
75108
|
-
text: item.departName
|
|
75109
|
-
};
|
|
75110
|
-
});
|
|
75111
|
-
}
|
|
75112
|
-
});
|
|
75113
|
-
}
|
|
75114
|
-
}
|
|
75138
|
+
} else if (!this.isGetOptionsByPulish) {
|
|
75139
|
+
this.dictOptions = await (0,dictDataCache/* fetchDictOptions */.$i)(this.widget.options, this.applyId);
|
|
75115
75140
|
}
|
|
75116
75141
|
__webpack_require__.g.dictData[this.widget.model] = this.dictOptions;
|
|
75117
75142
|
},
|
|
@@ -75131,10 +75156,10 @@ if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select
|
|
|
75131
75156
|
});
|
|
75132
75157
|
;// ./src/form/modules/components/Select/component.vue?vue&type=script&lang=js
|
|
75133
75158
|
/* harmony default export */ const components_Select_componentvue_type_script_lang_js = (Select_componentvue_type_script_lang_js);
|
|
75134
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Select/component.vue?vue&type=style&index=0&id=
|
|
75159
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Select/component.vue?vue&type=style&index=0&id=ef4ced6e&prod&lang=less&scoped=true
|
|
75135
75160
|
// extracted by mini-css-extract-plugin
|
|
75136
75161
|
|
|
75137
|
-
;// ./src/form/modules/components/Select/component.vue?vue&type=style&index=0&id=
|
|
75162
|
+
;// ./src/form/modules/components/Select/component.vue?vue&type=style&index=0&id=ef4ced6e&prod&lang=less&scoped=true
|
|
75138
75163
|
|
|
75139
75164
|
;// ./src/form/modules/components/Select/component.vue
|
|
75140
75165
|
|
|
@@ -75147,11 +75172,11 @@ if (!__webpack_require__.g.linkage_select) __webpack_require__.g.linkage_select
|
|
|
75147
75172
|
|
|
75148
75173
|
var component_component = (0,componentNormalizer/* default */.A)(
|
|
75149
75174
|
components_Select_componentvue_type_script_lang_js,
|
|
75150
|
-
|
|
75151
|
-
|
|
75175
|
+
componentvue_type_template_id_ef4ced6e_scoped_true_render,
|
|
75176
|
+
componentvue_type_template_id_ef4ced6e_scoped_true_staticRenderFns,
|
|
75152
75177
|
false,
|
|
75153
75178
|
null,
|
|
75154
|
-
"
|
|
75179
|
+
"ef4ced6e",
|
|
75155
75180
|
null
|
|
75156
75181
|
|
|
75157
75182
|
)
|
|
@@ -76679,103 +76704,994 @@ var widgetSetupvue_type_template_id_2b3989c5_scoped_true_staticRenderFns = []
|
|
|
76679
76704
|
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/widgetSetup.vue?vue&type=script&lang=js
|
|
76680
76705
|
|
|
76681
76706
|
//
|
|
76682
|
-
//
|
|
76683
|
-
//
|
|
76684
|
-
//
|
|
76685
|
-
//
|
|
76686
|
-
//
|
|
76687
|
-
//
|
|
76688
|
-
//
|
|
76689
|
-
//
|
|
76690
|
-
//
|
|
76691
|
-
//
|
|
76692
|
-
//
|
|
76693
|
-
//
|
|
76694
|
-
//
|
|
76695
|
-
//
|
|
76696
|
-
//
|
|
76697
|
-
//
|
|
76698
|
-
//
|
|
76699
|
-
//
|
|
76700
|
-
//
|
|
76701
|
-
//
|
|
76702
|
-
//
|
|
76703
|
-
//
|
|
76704
|
-
//
|
|
76705
|
-
//
|
|
76706
|
-
//
|
|
76707
|
-
//
|
|
76708
|
-
//
|
|
76709
|
-
//
|
|
76710
|
-
//
|
|
76711
|
-
//
|
|
76712
|
-
//
|
|
76713
|
-
//
|
|
76714
|
-
//
|
|
76715
|
-
//
|
|
76716
|
-
//
|
|
76717
|
-
//
|
|
76718
|
-
//
|
|
76719
|
-
//
|
|
76720
|
-
//
|
|
76721
|
-
//
|
|
76722
|
-
//
|
|
76723
|
-
//
|
|
76724
|
-
//
|
|
76725
|
-
//
|
|
76726
|
-
//
|
|
76727
|
-
//
|
|
76728
|
-
//
|
|
76729
|
-
//
|
|
76730
|
-
//
|
|
76731
|
-
//
|
|
76732
|
-
//
|
|
76733
|
-
//
|
|
76734
|
-
//
|
|
76735
|
-
//
|
|
76736
|
-
//
|
|
76737
|
-
//
|
|
76738
|
-
//
|
|
76739
|
-
//
|
|
76740
|
-
//
|
|
76741
|
-
//
|
|
76742
|
-
//
|
|
76743
|
-
//
|
|
76744
|
-
//
|
|
76745
|
-
//
|
|
76746
|
-
//
|
|
76747
|
-
//
|
|
76748
|
-
//
|
|
76749
|
-
//
|
|
76750
|
-
//
|
|
76751
|
-
//
|
|
76752
|
-
//
|
|
76753
|
-
//
|
|
76754
|
-
//
|
|
76755
|
-
//
|
|
76756
|
-
//
|
|
76757
|
-
//
|
|
76758
|
-
//
|
|
76759
|
-
//
|
|
76760
|
-
//
|
|
76761
|
-
//
|
|
76762
|
-
//
|
|
76763
|
-
//
|
|
76764
|
-
//
|
|
76765
|
-
//
|
|
76766
|
-
//
|
|
76767
|
-
//
|
|
76768
|
-
//
|
|
76769
|
-
//
|
|
76770
|
-
//
|
|
76771
|
-
//
|
|
76772
|
-
//
|
|
76773
|
-
//
|
|
76774
|
-
//
|
|
76775
|
-
//
|
|
76776
|
-
//
|
|
76777
|
-
//
|
|
76778
|
-
//
|
|
76707
|
+
//
|
|
76708
|
+
//
|
|
76709
|
+
//
|
|
76710
|
+
//
|
|
76711
|
+
//
|
|
76712
|
+
//
|
|
76713
|
+
//
|
|
76714
|
+
//
|
|
76715
|
+
//
|
|
76716
|
+
//
|
|
76717
|
+
//
|
|
76718
|
+
//
|
|
76719
|
+
//
|
|
76720
|
+
//
|
|
76721
|
+
//
|
|
76722
|
+
//
|
|
76723
|
+
//
|
|
76724
|
+
//
|
|
76725
|
+
//
|
|
76726
|
+
//
|
|
76727
|
+
//
|
|
76728
|
+
//
|
|
76729
|
+
//
|
|
76730
|
+
//
|
|
76731
|
+
//
|
|
76732
|
+
//
|
|
76733
|
+
//
|
|
76734
|
+
//
|
|
76735
|
+
//
|
|
76736
|
+
//
|
|
76737
|
+
//
|
|
76738
|
+
//
|
|
76739
|
+
//
|
|
76740
|
+
//
|
|
76741
|
+
//
|
|
76742
|
+
//
|
|
76743
|
+
//
|
|
76744
|
+
//
|
|
76745
|
+
//
|
|
76746
|
+
//
|
|
76747
|
+
//
|
|
76748
|
+
//
|
|
76749
|
+
//
|
|
76750
|
+
//
|
|
76751
|
+
//
|
|
76752
|
+
//
|
|
76753
|
+
//
|
|
76754
|
+
//
|
|
76755
|
+
//
|
|
76756
|
+
//
|
|
76757
|
+
//
|
|
76758
|
+
//
|
|
76759
|
+
//
|
|
76760
|
+
//
|
|
76761
|
+
//
|
|
76762
|
+
//
|
|
76763
|
+
//
|
|
76764
|
+
//
|
|
76765
|
+
//
|
|
76766
|
+
//
|
|
76767
|
+
//
|
|
76768
|
+
//
|
|
76769
|
+
//
|
|
76770
|
+
//
|
|
76771
|
+
//
|
|
76772
|
+
//
|
|
76773
|
+
//
|
|
76774
|
+
//
|
|
76775
|
+
//
|
|
76776
|
+
//
|
|
76777
|
+
//
|
|
76778
|
+
//
|
|
76779
|
+
//
|
|
76780
|
+
//
|
|
76781
|
+
//
|
|
76782
|
+
//
|
|
76783
|
+
//
|
|
76784
|
+
//
|
|
76785
|
+
//
|
|
76786
|
+
//
|
|
76787
|
+
//
|
|
76788
|
+
//
|
|
76789
|
+
//
|
|
76790
|
+
//
|
|
76791
|
+
//
|
|
76792
|
+
//
|
|
76793
|
+
//
|
|
76794
|
+
//
|
|
76795
|
+
//
|
|
76796
|
+
//
|
|
76797
|
+
//
|
|
76798
|
+
//
|
|
76799
|
+
//
|
|
76800
|
+
//
|
|
76801
|
+
//
|
|
76802
|
+
//
|
|
76803
|
+
//
|
|
76804
|
+
//
|
|
76805
|
+
//
|
|
76806
|
+
//
|
|
76807
|
+
//
|
|
76808
|
+
//
|
|
76809
|
+
//
|
|
76810
|
+
//
|
|
76811
|
+
//
|
|
76812
|
+
//
|
|
76813
|
+
//
|
|
76814
|
+
//
|
|
76815
|
+
//
|
|
76816
|
+
//
|
|
76817
|
+
//
|
|
76818
|
+
//
|
|
76819
|
+
//
|
|
76820
|
+
//
|
|
76821
|
+
//
|
|
76822
|
+
//
|
|
76823
|
+
//
|
|
76824
|
+
//
|
|
76825
|
+
//
|
|
76826
|
+
//
|
|
76827
|
+
//
|
|
76828
|
+
//
|
|
76829
|
+
//
|
|
76830
|
+
//
|
|
76831
|
+
//
|
|
76832
|
+
//
|
|
76833
|
+
//
|
|
76834
|
+
//
|
|
76835
|
+
//
|
|
76836
|
+
//
|
|
76837
|
+
//
|
|
76838
|
+
//
|
|
76839
|
+
//
|
|
76840
|
+
//
|
|
76841
|
+
//
|
|
76842
|
+
//
|
|
76843
|
+
//
|
|
76844
|
+
//
|
|
76845
|
+
//
|
|
76846
|
+
//
|
|
76847
|
+
//
|
|
76848
|
+
//
|
|
76849
|
+
//
|
|
76850
|
+
//
|
|
76851
|
+
//
|
|
76852
|
+
//
|
|
76853
|
+
//
|
|
76854
|
+
//
|
|
76855
|
+
//
|
|
76856
|
+
//
|
|
76857
|
+
//
|
|
76858
|
+
//
|
|
76859
|
+
//
|
|
76860
|
+
//
|
|
76861
|
+
//
|
|
76862
|
+
//
|
|
76863
|
+
//
|
|
76864
|
+
//
|
|
76865
|
+
//
|
|
76866
|
+
//
|
|
76867
|
+
//
|
|
76868
|
+
//
|
|
76869
|
+
//
|
|
76870
|
+
//
|
|
76871
|
+
//
|
|
76872
|
+
//
|
|
76873
|
+
//
|
|
76874
|
+
//
|
|
76875
|
+
//
|
|
76876
|
+
//
|
|
76877
|
+
//
|
|
76878
|
+
//
|
|
76879
|
+
//
|
|
76880
|
+
//
|
|
76881
|
+
//
|
|
76882
|
+
//
|
|
76883
|
+
//
|
|
76884
|
+
//
|
|
76885
|
+
//
|
|
76886
|
+
//
|
|
76887
|
+
//
|
|
76888
|
+
//
|
|
76889
|
+
//
|
|
76890
|
+
//
|
|
76891
|
+
//
|
|
76892
|
+
//
|
|
76893
|
+
//
|
|
76894
|
+
//
|
|
76895
|
+
//
|
|
76896
|
+
//
|
|
76897
|
+
//
|
|
76898
|
+
//
|
|
76899
|
+
//
|
|
76900
|
+
//
|
|
76901
|
+
//
|
|
76902
|
+
//
|
|
76903
|
+
//
|
|
76904
|
+
//
|
|
76905
|
+
//
|
|
76906
|
+
//
|
|
76907
|
+
//
|
|
76908
|
+
//
|
|
76909
|
+
//
|
|
76910
|
+
//
|
|
76911
|
+
//
|
|
76912
|
+
|
|
76913
|
+
|
|
76914
|
+
|
|
76915
|
+
|
|
76916
|
+
|
|
76917
|
+
/* harmony default export */ const Table_widgetSetupvue_type_script_lang_js = ({
|
|
76918
|
+
name: "widgetSetup",
|
|
76919
|
+
mixins: [widgetSetupMixins],
|
|
76920
|
+
data() {
|
|
76921
|
+
return {
|
|
76922
|
+
rules: {},
|
|
76923
|
+
defaultValue: "",
|
|
76924
|
+
source: '4'
|
|
76925
|
+
};
|
|
76926
|
+
},
|
|
76927
|
+
props: {
|
|
76928
|
+
widget: {
|
|
76929
|
+
type: Object,
|
|
76930
|
+
default: function () {
|
|
76931
|
+
return {};
|
|
76932
|
+
}
|
|
76933
|
+
}
|
|
76934
|
+
},
|
|
76935
|
+
components: {
|
|
76936
|
+
datasetManagement: datasetManagement,
|
|
76937
|
+
defaultValueWithSql: defaultValueWithSql
|
|
76938
|
+
},
|
|
76939
|
+
computed: {
|
|
76940
|
+
isFormDesignSQL() {
|
|
76941
|
+
return window._CONFIG.isFormDesignSQL;
|
|
76942
|
+
},
|
|
76943
|
+
isFormDesignSQLKey() {
|
|
76944
|
+
return window._CONFIG.isFormDesignSQLKey;
|
|
76945
|
+
}
|
|
76946
|
+
},
|
|
76947
|
+
created() {
|
|
76948
|
+
console.log(this.widget);
|
|
76949
|
+
this.defaultValue = typeof this.widget.options.defaultValue === "string" ? this.widget.options.defaultValue : "";
|
|
76950
|
+
this.addIndexColumnChange(this.widget.options.enableIndex);
|
|
76951
|
+
},
|
|
76952
|
+
watch: {
|
|
76953
|
+
"widget": {
|
|
76954
|
+
handler(widget, oldWidget) {
|
|
76955
|
+
// setTimeout(() => {
|
|
76956
|
+
//
|
|
76957
|
+
// }, 0)
|
|
76958
|
+
},
|
|
76959
|
+
deep: true
|
|
76960
|
+
},
|
|
76961
|
+
defaultValue(v) {
|
|
76962
|
+
this.widget.options.defaultValue = v;
|
|
76963
|
+
}
|
|
76964
|
+
},
|
|
76965
|
+
methods: {
|
|
76966
|
+
handleChange(selectedItems) {
|
|
76967
|
+
this.widget.options.computingMethod = selectedItems;
|
|
76968
|
+
},
|
|
76969
|
+
handleChangetwo(selectedItems) {
|
|
76970
|
+
this.widget.options.computingSub = selectedItems;
|
|
76971
|
+
},
|
|
76972
|
+
handleOptionsRemove(index) {
|
|
76973
|
+
this.widget.designList.splice(index, 1);
|
|
76974
|
+
},
|
|
76975
|
+
handleTableAddColumn() {
|
|
76976
|
+
this.widget.designList.push({
|
|
76977
|
+
x: 0,
|
|
76978
|
+
y: 1,
|
|
76979
|
+
w: 1,
|
|
76980
|
+
h: 1,
|
|
76981
|
+
i: new Date().getTime() + ""
|
|
76982
|
+
});
|
|
76983
|
+
},
|
|
76984
|
+
addIndexColumnChange(e) {
|
|
76985
|
+
__webpack_require__.g.addTableIndexColumn({
|
|
76986
|
+
widget: this.widget,
|
|
76987
|
+
targetValue: e
|
|
76988
|
+
});
|
|
76989
|
+
},
|
|
76990
|
+
openDefaultValueWithSql() {
|
|
76991
|
+
this.$refs.datasetManagement.init(this.widget.options, true);
|
|
76992
|
+
this.widget.options.source = this.source;
|
|
76993
|
+
},
|
|
76994
|
+
setDateOk(val) {
|
|
76995
|
+
this.widget.options.defaultValue = "defaultQuerySQL";
|
|
76996
|
+
this.widget.options.defaultSQL = val;
|
|
76997
|
+
},
|
|
76998
|
+
openDefaultValueWithSqlKey() {
|
|
76999
|
+
this.$refs.defaultValueWithSql.init(this.widget.options);
|
|
77000
|
+
},
|
|
77001
|
+
setDefalutValue(values) {
|
|
77002
|
+
this.widget.options.defaultValue = 'defaultQuerySQL';
|
|
77003
|
+
this.widget.options.defaultSQL = values;
|
|
77004
|
+
}
|
|
77005
|
+
}
|
|
77006
|
+
});
|
|
77007
|
+
;// ./src/form/modules/components/Table/widgetSetup.vue?vue&type=script&lang=js
|
|
77008
|
+
/* harmony default export */ const components_Table_widgetSetupvue_type_script_lang_js = (Table_widgetSetupvue_type_script_lang_js);
|
|
77009
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/widgetSetup.vue?vue&type=style&index=0&id=2b3989c5&prod&lang=less&scoped=true
|
|
77010
|
+
// extracted by mini-css-extract-plugin
|
|
77011
|
+
|
|
77012
|
+
;// ./src/form/modules/components/Table/widgetSetup.vue?vue&type=style&index=0&id=2b3989c5&prod&lang=less&scoped=true
|
|
77013
|
+
|
|
77014
|
+
;// ./src/form/modules/components/Table/widgetSetup.vue
|
|
77015
|
+
|
|
77016
|
+
|
|
77017
|
+
|
|
77018
|
+
;
|
|
77019
|
+
|
|
77020
|
+
|
|
77021
|
+
/* normalize component */
|
|
77022
|
+
|
|
77023
|
+
var Table_widgetSetup_component = (0,componentNormalizer/* default */.A)(
|
|
77024
|
+
components_Table_widgetSetupvue_type_script_lang_js,
|
|
77025
|
+
widgetSetupvue_type_template_id_2b3989c5_scoped_true_render,
|
|
77026
|
+
widgetSetupvue_type_template_id_2b3989c5_scoped_true_staticRenderFns,
|
|
77027
|
+
false,
|
|
77028
|
+
null,
|
|
77029
|
+
"2b3989c5",
|
|
77030
|
+
null
|
|
77031
|
+
|
|
77032
|
+
)
|
|
77033
|
+
|
|
77034
|
+
/* harmony default export */ const Table_widgetSetup = (Table_widgetSetup_component.exports);
|
|
77035
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/widgetDesign.vue?vue&type=template&id=47af2467&scoped=true
|
|
77036
|
+
var widgetDesignvue_type_template_id_47af2467_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget && _vm.widget.key)?_c('div',{key:_vm.widget.key,staticClass:"widget-form-list widget-view widget-grid",class:{ active: _vm.selectWidget.key == _vm.widget.key },attrs:{"align":_vm.widget.options.align},on:{"click":function($event){return _vm.handleSelectWidget(_vm.index, _vm.listindex)}}},[_c('div',{staticClass:"table_label"},[_vm._v(_vm._s(_vm.widget.name))]),_c('div',{staticClass:"grid-background",style:({
|
|
77037
|
+
top: '40px',
|
|
77038
|
+
height: _vm.setHeight(_vm.widget.options.rowsNum, _vm.widget.options.rowsHeight),
|
|
77039
|
+
}),attrs:{"type":"flex"}},_vm._l((_vm.transformArr(_vm.widget.options.rowsNum)),function(item,rowKey){return _c('div',{key:rowKey,staticClass:"rows"},_vm._l((_vm.transformArr(_vm.widget.options.columnsNum)),function(item,columnKey){return _c('div',{key:columnKey,staticClass:"columns",style:({
|
|
77040
|
+
width: _vm.getColumnsWidth(_vm.widget.options.columnsNum),
|
|
77041
|
+
height: _vm.widget.options.rowsHeight - 1 + 'px',
|
|
77042
|
+
})})}),0)}),0),_c('div',{staticStyle:{"width":"100%"},style:({
|
|
77043
|
+
height: _vm.setHeight(_vm.widget.options.rowsNum, _vm.widget.options.rowsHeight),
|
|
77044
|
+
})},[_c('grid-layout',{attrs:{"layout":_vm.widget.designList,"col-num":Number(_vm.widget.options.columnsNum),"row-height":Number(_vm.widget.options.rowsHeight),"maxRows":Number(_vm.widget.options.rowsNum),"is-draggable":true,"is-resizable":true,"is-mirrored":false,"vertical-compact":true,"margin":[0, 0],"use-css-transforms":true},on:{"update:layout":function($event){return _vm.$set(_vm.widget, "designList", $event)}}},_vm._l((_vm.widget.designList),function(item,colIndex){return _c('grid-item',{key:item.i,attrs:{"x":item.x,"y":item.y,"w":item.w,"h":item.h,"i":item.i}},[(_vm.widget.columns)?_c('div',{staticClass:"grid-lay-out-wrap"},[_c('draggable',_vm._b({staticClass:"grid-lay-out-wrap",attrs:{"setData":function (){},"no-transition-on-drag":true},on:{"end":_vm.handleMoveEnd,"add":function($event){return _vm.handleWidgetColAdd($event, _vm.widget, colIndex)}},model:{value:(_vm.widget.columns),callback:function ($$v) {_vm.$set(_vm.widget, "columns", $$v)},expression:"widget.columns"}},'draggable',_vm.draggableOptions,false),[_c('widget-form-item',{ref:"WidgetFormItem",refInFor:true,attrs:{"widget":_vm.getTableColumn(_vm.widget.columns, colIndex),"widgetListCell":_vm.widget.columns,"select":_vm.selectWidget,"index":colIndex,"deleteColIndex":colIndex},on:{"update:select":function($event){_vm.selectWidget=$event}}})],1)],1):_vm._e()])}),1),(_vm.selectWidget.key == _vm.widget.key)?_c('div',{staticClass:"widget-view-action widget-col-action"},[_c('i',{staticClass:"iconfont icon-trash",on:{"click":function($event){$event.stopPropagation();return _vm.handleWidgetDelete(_vm.index, _vm.listindex)}}})]):_vm._e(),(_vm.selectWidget.key == _vm.widget.key)?_c('div',{staticClass:"widget-view-drag widget-col-drag"},[_c('i',{staticClass:"iconfont icon-drag drag-widget"})]):_vm._e(),_c('div',{staticClass:"widget-view-model"},[_c('span',[_vm._v(_vm._s(_vm.widget.model))])])],1)]):_vm._e()}
|
|
77045
|
+
var widgetDesignvue_type_template_id_47af2467_scoped_true_staticRenderFns = []
|
|
77046
|
+
|
|
77047
|
+
|
|
77048
|
+
// EXTERNAL MODULE: ./node_modules/_vuedraggable@2.24.3@vuedraggable/dist/vuedraggable.umd.js
|
|
77049
|
+
var vuedraggable_umd = __webpack_require__(59715);
|
|
77050
|
+
var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
|
|
77051
|
+
// EXTERNAL MODULE: ./src/form/modules/common/dragItem.vue + 5 modules
|
|
77052
|
+
var dragItem = __webpack_require__(83523);
|
|
77053
|
+
// EXTERNAL MODULE: ./node_modules/_vue-grid-layout@2.4.0@vue-grid-layout/dist/vue-grid-layout.common.js
|
|
77054
|
+
var vue_grid_layout_common = __webpack_require__(23774);
|
|
77055
|
+
var vue_grid_layout_common_default = /*#__PURE__*/__webpack_require__.n(vue_grid_layout_common);
|
|
77056
|
+
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/widgetDesign.vue?vue&type=script&lang=js
|
|
77057
|
+
|
|
77058
|
+
|
|
77059
|
+
//
|
|
77060
|
+
//
|
|
77061
|
+
//
|
|
77062
|
+
//
|
|
77063
|
+
//
|
|
77064
|
+
//
|
|
77065
|
+
//
|
|
77066
|
+
//
|
|
77067
|
+
//
|
|
77068
|
+
//
|
|
77069
|
+
//
|
|
77070
|
+
//
|
|
77071
|
+
//
|
|
77072
|
+
//
|
|
77073
|
+
//
|
|
77074
|
+
//
|
|
77075
|
+
//
|
|
77076
|
+
//
|
|
77077
|
+
//
|
|
77078
|
+
//
|
|
77079
|
+
//
|
|
77080
|
+
//
|
|
77081
|
+
//
|
|
77082
|
+
//
|
|
77083
|
+
//
|
|
77084
|
+
//
|
|
77085
|
+
//
|
|
77086
|
+
//
|
|
77087
|
+
//
|
|
77088
|
+
//
|
|
77089
|
+
//
|
|
77090
|
+
//
|
|
77091
|
+
//
|
|
77092
|
+
//
|
|
77093
|
+
//
|
|
77094
|
+
//
|
|
77095
|
+
//
|
|
77096
|
+
//
|
|
77097
|
+
//
|
|
77098
|
+
//
|
|
77099
|
+
//
|
|
77100
|
+
//
|
|
77101
|
+
//
|
|
77102
|
+
//
|
|
77103
|
+
//
|
|
77104
|
+
//
|
|
77105
|
+
//
|
|
77106
|
+
//
|
|
77107
|
+
//
|
|
77108
|
+
//
|
|
77109
|
+
//
|
|
77110
|
+
//
|
|
77111
|
+
//
|
|
77112
|
+
//
|
|
77113
|
+
//
|
|
77114
|
+
//
|
|
77115
|
+
//
|
|
77116
|
+
//
|
|
77117
|
+
//
|
|
77118
|
+
//
|
|
77119
|
+
//
|
|
77120
|
+
//
|
|
77121
|
+
//
|
|
77122
|
+
//
|
|
77123
|
+
//
|
|
77124
|
+
//
|
|
77125
|
+
//
|
|
77126
|
+
//
|
|
77127
|
+
//
|
|
77128
|
+
//
|
|
77129
|
+
//
|
|
77130
|
+
//
|
|
77131
|
+
//
|
|
77132
|
+
//
|
|
77133
|
+
//
|
|
77134
|
+
//
|
|
77135
|
+
//
|
|
77136
|
+
//
|
|
77137
|
+
//
|
|
77138
|
+
//
|
|
77139
|
+
//
|
|
77140
|
+
//
|
|
77141
|
+
//
|
|
77142
|
+
//
|
|
77143
|
+
//
|
|
77144
|
+
//
|
|
77145
|
+
//
|
|
77146
|
+
//
|
|
77147
|
+
//
|
|
77148
|
+
//
|
|
77149
|
+
//
|
|
77150
|
+
//
|
|
77151
|
+
//
|
|
77152
|
+
//
|
|
77153
|
+
//
|
|
77154
|
+
//
|
|
77155
|
+
//
|
|
77156
|
+
//
|
|
77157
|
+
//
|
|
77158
|
+
//
|
|
77159
|
+
//
|
|
77160
|
+
//
|
|
77161
|
+
//
|
|
77162
|
+
//
|
|
77163
|
+
//
|
|
77164
|
+
//
|
|
77165
|
+
//
|
|
77166
|
+
//
|
|
77167
|
+
//
|
|
77168
|
+
|
|
77169
|
+
|
|
77170
|
+
|
|
77171
|
+
|
|
77172
|
+
const widgetFormItem = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 48942));
|
|
77173
|
+
/* harmony default export */ const Table_widgetDesignvue_type_script_lang_js = ({
|
|
77174
|
+
name: "widgetDesign",
|
|
77175
|
+
props: {
|
|
77176
|
+
config: {
|
|
77177
|
+
type: Object,
|
|
77178
|
+
default: function () {
|
|
77179
|
+
return {
|
|
77180
|
+
component: {}
|
|
77181
|
+
};
|
|
77182
|
+
}
|
|
77183
|
+
},
|
|
77184
|
+
value: {
|
|
77185
|
+
type: String,
|
|
77186
|
+
default: ""
|
|
77187
|
+
},
|
|
77188
|
+
widget: {
|
|
77189
|
+
type: Object,
|
|
77190
|
+
default: () => {
|
|
77191
|
+
return null;
|
|
77192
|
+
}
|
|
77193
|
+
},
|
|
77194
|
+
index: {
|
|
77195
|
+
type: Number,
|
|
77196
|
+
default: () => {
|
|
77197
|
+
return null;
|
|
77198
|
+
}
|
|
77199
|
+
},
|
|
77200
|
+
listindex: {
|
|
77201
|
+
type: Number,
|
|
77202
|
+
default: () => {
|
|
77203
|
+
return null;
|
|
77204
|
+
}
|
|
77205
|
+
},
|
|
77206
|
+
selectedWidget: {
|
|
77207
|
+
type: Object,
|
|
77208
|
+
default: () => {
|
|
77209
|
+
return {};
|
|
77210
|
+
}
|
|
77211
|
+
}
|
|
77212
|
+
},
|
|
77213
|
+
data() {
|
|
77214
|
+
return {
|
|
77215
|
+
draggableOptions: {
|
|
77216
|
+
group: {
|
|
77217
|
+
name: "widgetwrap"
|
|
77218
|
+
},
|
|
77219
|
+
ghostClass: "ghost",
|
|
77220
|
+
animation: 200,
|
|
77221
|
+
handle: ".drag-widget"
|
|
77222
|
+
},
|
|
77223
|
+
selectWidget: this.selectedWidget
|
|
77224
|
+
};
|
|
77225
|
+
},
|
|
77226
|
+
components: {
|
|
77227
|
+
Draggable: (vuedraggable_umd_default()),
|
|
77228
|
+
dragItem: dragItem/* default */.A,
|
|
77229
|
+
widgetFormItem,
|
|
77230
|
+
GridLayout: (vue_grid_layout_common_default()).GridLayout,
|
|
77231
|
+
GridItem: (vue_grid_layout_common_default()).GridItem
|
|
77232
|
+
},
|
|
77233
|
+
mounted() {
|
|
77234
|
+
console.log("grid-lay-out---");
|
|
77235
|
+
console.log(this.widget);
|
|
77236
|
+
},
|
|
77237
|
+
methods: {
|
|
77238
|
+
/***
|
|
77239
|
+
* @param { array } columns
|
|
77240
|
+
* @param { number } colIndex
|
|
77241
|
+
* @return { object } obj
|
|
77242
|
+
*/
|
|
77243
|
+
getTableColumn(columns, colIndex) {
|
|
77244
|
+
let obj = {};
|
|
77245
|
+
if (Array.isArray(columns) && columns.length > 0) {
|
|
77246
|
+
columns.forEach(item => {
|
|
77247
|
+
if (item.designColIndex === colIndex) {
|
|
77248
|
+
obj = item;
|
|
77249
|
+
}
|
|
77250
|
+
});
|
|
77251
|
+
}
|
|
77252
|
+
return obj;
|
|
77253
|
+
},
|
|
77254
|
+
/****设置grid-lay-out高度**/
|
|
77255
|
+
setHeight(number, height) {
|
|
77256
|
+
return number * height + "px";
|
|
77257
|
+
},
|
|
77258
|
+
/**string 转换为数组 **/
|
|
77259
|
+
transformArr(number) {
|
|
77260
|
+
return new Array(parseInt(number));
|
|
77261
|
+
},
|
|
77262
|
+
/****背景网格单元格的长度 */
|
|
77263
|
+
getColumnsWidth(number) {
|
|
77264
|
+
return 100 / number + "%";
|
|
77265
|
+
},
|
|
77266
|
+
handleMoveEnd(e, listindex) {},
|
|
77267
|
+
handleChange(e) {
|
|
77268
|
+
this.$emit("change", e);
|
|
77269
|
+
},
|
|
77270
|
+
handleSelectWidget(index, listindex) {
|
|
77271
|
+
// this.$emit("handleSelectWidget", index, listindex);
|
|
77272
|
+
},
|
|
77273
|
+
handleWidgetColAdd($event, widget, colIndex) {
|
|
77274
|
+
this.$emit("handleWidgetTableAdd", $event, widget, colIndex);
|
|
77275
|
+
},
|
|
77276
|
+
handleWidgetDelete(index, listindex) {
|
|
77277
|
+
this.$emit("handlTableDelete", index, listindex);
|
|
77278
|
+
}
|
|
77279
|
+
},
|
|
77280
|
+
watch: {
|
|
77281
|
+
selectedWidget(val) {
|
|
77282
|
+
this.selectWidget = val;
|
|
77283
|
+
},
|
|
77284
|
+
selectWidget(val) {
|
|
77285
|
+
this.$emit("update:selectedWidget", val);
|
|
77286
|
+
}
|
|
77287
|
+
}
|
|
77288
|
+
});
|
|
77289
|
+
;// ./src/form/modules/components/Table/widgetDesign.vue?vue&type=script&lang=js
|
|
77290
|
+
/* harmony default export */ const components_Table_widgetDesignvue_type_script_lang_js = (Table_widgetDesignvue_type_script_lang_js);
|
|
77291
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/widgetDesign.vue?vue&type=style&index=0&id=47af2467&prod&lang=less&scoped=true
|
|
77292
|
+
// extracted by mini-css-extract-plugin
|
|
77293
|
+
|
|
77294
|
+
;// ./src/form/modules/components/Table/widgetDesign.vue?vue&type=style&index=0&id=47af2467&prod&lang=less&scoped=true
|
|
77295
|
+
|
|
77296
|
+
;// ./src/form/modules/components/Table/widgetDesign.vue
|
|
77297
|
+
|
|
77298
|
+
|
|
77299
|
+
|
|
77300
|
+
;
|
|
77301
|
+
|
|
77302
|
+
|
|
77303
|
+
/* normalize component */
|
|
77304
|
+
|
|
77305
|
+
var Table_widgetDesign_component = (0,componentNormalizer/* default */.A)(
|
|
77306
|
+
components_Table_widgetDesignvue_type_script_lang_js,
|
|
77307
|
+
widgetDesignvue_type_template_id_47af2467_scoped_true_render,
|
|
77308
|
+
widgetDesignvue_type_template_id_47af2467_scoped_true_staticRenderFns,
|
|
77309
|
+
false,
|
|
77310
|
+
null,
|
|
77311
|
+
"47af2467",
|
|
77312
|
+
null
|
|
77313
|
+
|
|
77314
|
+
)
|
|
77315
|
+
|
|
77316
|
+
/* harmony default export */ const Table_widgetDesign = (Table_widgetDesign_component.exports);
|
|
77317
|
+
;// ./src/form/modules/components/Table/index.js
|
|
77318
|
+
|
|
77319
|
+
|
|
77320
|
+
|
|
77321
|
+
/* harmony default export */ const Table = ({
|
|
77322
|
+
component: Table_component,
|
|
77323
|
+
widgetSetup: Table_widgetSetup,
|
|
77324
|
+
widgetDesign: Table_widgetDesign
|
|
77325
|
+
});
|
|
77326
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/component.vue?vue&type=template&id=cab895c6&scoped=true
|
|
77327
|
+
var componentvue_type_template_id_cab895c6_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"table-design"},[(_vm.widget.options.height == 0 && !_vm.widget.options.disabled)?_c('span',{staticClass:"last-one no-label-add-button",attrs:{"title":"添加行"}},[(!_vm.widget.options.hiddenOperateBtn)?_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(_vm.widget, _vm.widget.model, 'addModel')}}},[_vm._v("添加行")]):_vm._e()],1):_c('div',{staticClass:"table_label",style:({ borderColor: _vm.widget.options.height == 0 ? 'rgba(0,0,0,0)' : _vm.config.borderColor, height: _vm.widget.options.height + 'px' })},[_c('span',{staticStyle:{"position":"absolute","display":"flex","height":"100%","align-items":"center"}},[(_vm.widget.options.enableImport && !_vm.widget.options.disabled)?_c('span',[_c('a-upload',{staticStyle:{"margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + _vm.formId + "&tableKey=" + (_vm.widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { _vm.handleChange(_vm.widget, params) }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(_vm.widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),(_vm.widget.options.auditorExport&&!_vm.isDesign&&_vm.isApply!=true)?_c('span',{staticStyle:{"float":"left","margin":"0 5px"}},[_c('a-button',{on:{"click":function($event){return _vm.auditorDownLoad(_vm.widget)}}},[_c('a-icon',{attrs:{"type":"download"}}),_vm._v("导出")],1)],1):_vm._e()]),_vm._v(" "+_vm._s(_vm.widget.options.height != 0 ? _vm.widget.name : '')+" "),(!_vm.widget.options.disabled)?_c('span',{class:{ 'last-one': true, 'no-label-add-button': _vm.widget.options.height == 0 },attrs:{"title":"添加行"}},[(!_vm.widget.options.hiddenOperateBtn)?_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(_vm.widget, _vm.widget.model, 'addModel')}}},[_vm._v("添加行")]):_vm._e()],1):_vm._e()]),_vm._l((_vm.tableData[_vm.widget.model]),function(tableColums,columsIndex){return _c('div',{key:columsIndex,staticClass:"table-design-content"},[_c('div',{staticClass:"widget-grid-lay-out-wrapper",style:({
|
|
77328
|
+
height: _vm.setHeight(
|
|
77329
|
+
tableColums.options.rowsNum,
|
|
77330
|
+
tableColums.options.rowsHeight
|
|
77331
|
+
),
|
|
77332
|
+
display: 'grid',
|
|
77333
|
+
gridTemplateColumns: _vm.setGridTemplateValue(
|
|
77334
|
+
tableColums.options.columnsNum
|
|
77335
|
+
),
|
|
77336
|
+
gridTemplateRows: _vm.setGridTemplateValue(
|
|
77337
|
+
tableColums.options.rowsNum,
|
|
77338
|
+
tableColums.options.rowsHeight
|
|
77339
|
+
),
|
|
77340
|
+
})},_vm._l((tableColums.designList),function(col,colIndex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.getTableColumn(tableColums.columns, colIndex).options.canView),expression:"getTableColumn(tableColums.columns, colIndex).options.canView"}],key:colIndex,style:({
|
|
77341
|
+
'grid-column': _vm.setItemPosition(col, 'column'),
|
|
77342
|
+
'grid-row': _vm.setItemPosition(col),
|
|
77343
|
+
})},[[_c('layoutItem',{key:colIndex,attrs:{"tableKey":tableColums.model,"tableIndex":columsIndex,"models":_vm.models,"rules":_vm.rules,"widget":_vm.getTableColumn(tableColums.columns, colIndex)},on:{"update:models":_vm.updateModels}})]],2)}),0),(!_vm.widget.options.disabled && !_vm.widget.options.hiddenOperateBtn)?_c('div',{staticClass:"table-design-delete"},[_c('span',{staticClass:"last-one del-button",attrs:{"title":"删除行"}},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.handleDeleteRow(columsIndex, _vm.widget.model)}}},[_vm._v("删除行")])],1)]):_vm._e()])})],2):_vm._e()}
|
|
77344
|
+
var componentvue_type_template_id_cab895c6_scoped_true_staticRenderFns = []
|
|
77345
|
+
|
|
77346
|
+
|
|
77347
|
+
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/component.vue?vue&type=script&lang=js
|
|
77348
|
+
|
|
77349
|
+
|
|
77350
|
+
|
|
77351
|
+
|
|
77352
|
+
|
|
77353
|
+
|
|
77354
|
+
|
|
77355
|
+
|
|
77356
|
+
|
|
77357
|
+
|
|
77358
|
+
|
|
77359
|
+
|
|
77360
|
+
|
|
77361
|
+
|
|
77362
|
+
//
|
|
77363
|
+
//
|
|
77364
|
+
//
|
|
77365
|
+
//
|
|
77366
|
+
//
|
|
77367
|
+
//
|
|
77368
|
+
//
|
|
77369
|
+
//
|
|
77370
|
+
//
|
|
77371
|
+
//
|
|
77372
|
+
//
|
|
77373
|
+
//
|
|
77374
|
+
//
|
|
77375
|
+
//
|
|
77376
|
+
//
|
|
77377
|
+
//
|
|
77378
|
+
//
|
|
77379
|
+
//
|
|
77380
|
+
//
|
|
77381
|
+
//
|
|
77382
|
+
//
|
|
77383
|
+
//
|
|
77384
|
+
//
|
|
77385
|
+
//
|
|
77386
|
+
//
|
|
77387
|
+
//
|
|
77388
|
+
//
|
|
77389
|
+
//
|
|
77390
|
+
//
|
|
77391
|
+
//
|
|
77392
|
+
//
|
|
77393
|
+
//
|
|
77394
|
+
//
|
|
77395
|
+
//
|
|
77396
|
+
//
|
|
77397
|
+
//
|
|
77398
|
+
//
|
|
77399
|
+
//
|
|
77400
|
+
//
|
|
77401
|
+
//
|
|
77402
|
+
//
|
|
77403
|
+
//
|
|
77404
|
+
//
|
|
77405
|
+
//
|
|
77406
|
+
//
|
|
77407
|
+
//
|
|
77408
|
+
//
|
|
77409
|
+
//
|
|
77410
|
+
//
|
|
77411
|
+
//
|
|
77412
|
+
//
|
|
77413
|
+
//
|
|
77414
|
+
//
|
|
77415
|
+
//
|
|
77416
|
+
//
|
|
77417
|
+
//
|
|
77418
|
+
//
|
|
77419
|
+
//
|
|
77420
|
+
//
|
|
77421
|
+
//
|
|
77422
|
+
//
|
|
77423
|
+
//
|
|
77424
|
+
//
|
|
77425
|
+
//
|
|
77426
|
+
//
|
|
77427
|
+
//
|
|
77428
|
+
//
|
|
77429
|
+
//
|
|
77430
|
+
//
|
|
77431
|
+
//
|
|
77432
|
+
//
|
|
77433
|
+
//
|
|
77434
|
+
//
|
|
77435
|
+
//
|
|
77436
|
+
//
|
|
77437
|
+
//
|
|
77438
|
+
//
|
|
77439
|
+
//
|
|
77440
|
+
//
|
|
77441
|
+
//
|
|
77442
|
+
//
|
|
77443
|
+
//
|
|
77444
|
+
//
|
|
77445
|
+
//
|
|
77446
|
+
//
|
|
77447
|
+
//
|
|
77448
|
+
//
|
|
77449
|
+
//
|
|
77450
|
+
//
|
|
77451
|
+
//
|
|
77452
|
+
//
|
|
77453
|
+
//
|
|
77454
|
+
//
|
|
77455
|
+
//
|
|
77456
|
+
//
|
|
77457
|
+
//
|
|
77458
|
+
//
|
|
77459
|
+
//
|
|
77460
|
+
//
|
|
77461
|
+
//
|
|
77462
|
+
|
|
77463
|
+
|
|
77464
|
+
|
|
77465
|
+
|
|
77466
|
+
/* harmony default export */ const NewTable_componentvue_type_script_lang_js = ({
|
|
77467
|
+
name: 'NewTableComponent',
|
|
77468
|
+
props: {
|
|
77469
|
+
rules: {
|
|
77470
|
+
type: Object
|
|
77471
|
+
},
|
|
77472
|
+
widget: {
|
|
77473
|
+
type: Object,
|
|
77474
|
+
default: () => {
|
|
77475
|
+
return {};
|
|
77476
|
+
}
|
|
77477
|
+
},
|
|
77478
|
+
models: {
|
|
77479
|
+
type: Object,
|
|
77480
|
+
default: () => {
|
|
77481
|
+
return {};
|
|
77482
|
+
}
|
|
77483
|
+
},
|
|
77484
|
+
formId: {
|
|
77485
|
+
type: String,
|
|
77486
|
+
default: ''
|
|
77487
|
+
},
|
|
77488
|
+
tableData: {
|
|
77489
|
+
type: Object,
|
|
77490
|
+
default: () => {
|
|
77491
|
+
return {};
|
|
77492
|
+
}
|
|
77493
|
+
},
|
|
77494
|
+
applyId: {
|
|
77495
|
+
type: String,
|
|
77496
|
+
default: ""
|
|
77497
|
+
},
|
|
77498
|
+
isDesign: {
|
|
77499
|
+
type: Boolean,
|
|
77500
|
+
default: false
|
|
77501
|
+
},
|
|
77502
|
+
//发起申请阶段
|
|
77503
|
+
isApply: {
|
|
77504
|
+
type: Boolean,
|
|
77505
|
+
default: false
|
|
77506
|
+
}
|
|
77507
|
+
},
|
|
77508
|
+
inject: ['config'],
|
|
77509
|
+
components: {
|
|
77510
|
+
ConfirmBox: confirmBox/* default */.A
|
|
77511
|
+
},
|
|
77512
|
+
data() {
|
|
77513
|
+
return {
|
|
77514
|
+
imgUrl: window._CONFIG['imgUrl'],
|
|
77515
|
+
actionUrl: (window._CONFIG['businessBaseUrl'] || window._CONFIG['domianURL']) + '/form/formdesiger/importTableExcel',
|
|
77516
|
+
headers: {
|
|
77517
|
+
'X-Access-Token': this.getToken()
|
|
77518
|
+
},
|
|
77519
|
+
customRowHeight: '',
|
|
77520
|
+
allHeight: undefined
|
|
77521
|
+
};
|
|
77522
|
+
},
|
|
77523
|
+
beforeCreate: function () {
|
|
77524
|
+
// 直接 components 申明layoutItem 会导致循环调用问题, 但是用 异步组件 () =>layoutItem.vue 会导致 副组件 $nextTick 无法获取dom 更新后回调
|
|
77525
|
+
this.$options.components.layoutItem = (__webpack_require__(92241)["default"]);
|
|
77526
|
+
},
|
|
77527
|
+
watch: {
|
|
77528
|
+
"widget": {
|
|
77529
|
+
handler(val) {
|
|
77530
|
+
const itemCol = this.widget;
|
|
77531
|
+
if (!itemCol || this.customRowHeight) return;
|
|
77532
|
+
|
|
77533
|
+
// 1. 计算最大行数(动态)
|
|
77534
|
+
// 行数 = 找出所有元素中 最大的结束行号 + 1
|
|
77535
|
+
const maxRow = Math.max(...itemCol.designList.map(item => item.y + item.h - 1)) + 1;
|
|
77536
|
+
|
|
77537
|
+
// 2. 找出需要隐藏的行(该行所有列都不可见)
|
|
77538
|
+
const hiddenRows = new Set();
|
|
77539
|
+
itemCol.columns.forEach(col => {
|
|
77540
|
+
const y = itemCol.designList[col.designColIndex].y;
|
|
77541
|
+
if (!col.options.canView) {
|
|
77542
|
+
const allInvisible = itemCol.columns.filter(c => itemCol.designList[c.designColIndex].y === y).every(c => !c.options.canView);
|
|
77543
|
+
if (allInvisible) hiddenRows.add(y);
|
|
77544
|
+
}
|
|
77545
|
+
});
|
|
77546
|
+
|
|
77547
|
+
// 3. 计算有效行高(跳过隐藏行)
|
|
77548
|
+
const rowHeight = itemCol.options.rowsHeight;
|
|
77549
|
+
const visibleRowHeights = [];
|
|
77550
|
+
for (let row = 0; row < maxRow; row++) {
|
|
77551
|
+
if (!hiddenRows.has(row)) {
|
|
77552
|
+
visibleRowHeights.push(rowHeight);
|
|
77553
|
+
}
|
|
77554
|
+
}
|
|
77555
|
+
|
|
77556
|
+
// 4. 设置结果
|
|
77557
|
+
this.customRowHeight = visibleRowHeights.map(h => `${h}px`).join(' ');
|
|
77558
|
+
this.allHeight = visibleRowHeights.reduce((sum, h) => sum + h, 0);
|
|
77559
|
+
console.log('可见行高度:', visibleRowHeights);
|
|
77560
|
+
console.log('总高度:', this.allHeight);
|
|
77561
|
+
},
|
|
77562
|
+
deep: true,
|
|
77563
|
+
immediate: true
|
|
77564
|
+
},
|
|
77565
|
+
'tableData': {
|
|
77566
|
+
handler(val) {},
|
|
77567
|
+
deep: true
|
|
77568
|
+
}
|
|
77569
|
+
},
|
|
77570
|
+
computed: {
|
|
77571
|
+
config() {
|
|
77572
|
+
var _this$tableData;
|
|
77573
|
+
return (_this$tableData = this.tableData) === null || _this$tableData === void 0 ? void 0 : _this$tableData[this.widget.model];
|
|
77574
|
+
}
|
|
77575
|
+
},
|
|
77576
|
+
created() {
|
|
77577
|
+
console.log(this, this.widget, '.......', this.tableData, (0,cloneDeep/* default */.A)(this.tableData[this.widget.model]));
|
|
77578
|
+
},
|
|
77579
|
+
methods: {
|
|
77580
|
+
handleChange(widget, {
|
|
77581
|
+
file
|
|
77582
|
+
}) {
|
|
77583
|
+
if (file.size > 100 * 1024 * 1024) {
|
|
77584
|
+
this.$message.error("文件超出100M");
|
|
77585
|
+
return false;
|
|
77586
|
+
}
|
|
77587
|
+
if (file.status == "done") {
|
|
77588
|
+
const res = file.response;
|
|
77589
|
+
if (res.success && res.result) {
|
|
77590
|
+
const parent = this.$parent.$parent.$parent.$parent;
|
|
77591
|
+
parent.tableIndex[widget.model] = 0;
|
|
77592
|
+
parent.$set(parent.tableData, widget.model, undefined);
|
|
77593
|
+
parent.models[widget.model] = res.result || [];
|
|
77594
|
+
parent.tableInitByModel(widget.model);
|
|
77595
|
+
} else {
|
|
77596
|
+
this.$message.error(res && res.message || '导入失败');
|
|
77597
|
+
}
|
|
77598
|
+
}
|
|
77599
|
+
},
|
|
77600
|
+
updateModels(val) {
|
|
77601
|
+
this.$emit('update:models', val);
|
|
77602
|
+
},
|
|
77603
|
+
setHeight(number, height) {
|
|
77604
|
+
if (this.allHeight) return this.allHeight + 'px';
|
|
77605
|
+
return number * height + 'px';
|
|
77606
|
+
},
|
|
77607
|
+
setGridTemplateValue(number, height) {
|
|
77608
|
+
if (height) {
|
|
77609
|
+
if (this.customRowHeight) return this.customRowHeight;
|
|
77610
|
+
return 'repeat(' + parseInt(number) + ',' + height + 'px)';
|
|
77611
|
+
} else {
|
|
77612
|
+
return 'repeat(' + parseInt(number) + ',' + 100 / number + '%)';
|
|
77613
|
+
}
|
|
77614
|
+
},
|
|
77615
|
+
setItemPosition(object, type) {
|
|
77616
|
+
if (type) {
|
|
77617
|
+
if (object && String(object.w) && String(object.x)) {
|
|
77618
|
+
return object.x + 1 + ' / span ' + object.w;
|
|
77619
|
+
}
|
|
77620
|
+
} else {
|
|
77621
|
+
if (object && String(object.h) && String(object.y)) {
|
|
77622
|
+
return object.y + 1 + ' / span ' + object.h;
|
|
77623
|
+
}
|
|
77624
|
+
}
|
|
77625
|
+
},
|
|
77626
|
+
getTableColumn(columns, colIndex) {
|
|
77627
|
+
let obj = {};
|
|
77628
|
+
if (Array.isArray(columns) && columns.length > 0) {
|
|
77629
|
+
columns.forEach(item => {
|
|
77630
|
+
if (item.designColIndex === colIndex) {
|
|
77631
|
+
obj = item;
|
|
77632
|
+
}
|
|
77633
|
+
});
|
|
77634
|
+
}
|
|
77635
|
+
return obj;
|
|
77636
|
+
},
|
|
77637
|
+
addToTableData(weight, model, addModel) {
|
|
77638
|
+
// console.log(weight,model,addModel)
|
|
77639
|
+
this.$emit('addToTableData', weight, model, addModel);
|
|
77640
|
+
},
|
|
77641
|
+
auditorDownLoad(widget) {
|
|
77642
|
+
util.exportFile.call(this, `/form/dataQuery/exportSubTableData?applyId=${this.applyId}&subTableCode=${widget.model}`, `${widget.name}.xls`);
|
|
77643
|
+
},
|
|
77644
|
+
downloadTableTemplate(widget) {
|
|
77645
|
+
if (widget.options.enableImportV2) {
|
|
77646
|
+
return util.exportFile.call(this, `/form/formdesiger/downloadTableTemplate?formId=${this.formId}&tableCode=${widget.model}`, `${widget.name}导入模板.xls`);
|
|
77647
|
+
}
|
|
77648
|
+
const templatePath = widget.options.templatePath;
|
|
77649
|
+
if (!templatePath) {
|
|
77650
|
+
this.$message.error('暂无模板');
|
|
77651
|
+
return;
|
|
77652
|
+
}
|
|
77653
|
+
window.open(this.imgUrl + templatePath);
|
|
77654
|
+
},
|
|
77655
|
+
handleDeleteRow(columsIndex, model) {
|
|
77656
|
+
this.$emit('handleDeleteRow', columsIndex, model);
|
|
77657
|
+
}
|
|
77658
|
+
}
|
|
77659
|
+
});
|
|
77660
|
+
;// ./src/form/modules/components/NewTable/component.vue?vue&type=script&lang=js
|
|
77661
|
+
/* harmony default export */ const components_NewTable_componentvue_type_script_lang_js = (NewTable_componentvue_type_script_lang_js);
|
|
77662
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/component.vue?vue&type=style&index=0&id=cab895c6&prod&lang=less&scoped=true
|
|
77663
|
+
// extracted by mini-css-extract-plugin
|
|
77664
|
+
|
|
77665
|
+
;// ./src/form/modules/components/NewTable/component.vue?vue&type=style&index=0&id=cab895c6&prod&lang=less&scoped=true
|
|
77666
|
+
|
|
77667
|
+
;// ./src/form/modules/components/NewTable/component.vue
|
|
77668
|
+
|
|
77669
|
+
|
|
77670
|
+
|
|
77671
|
+
;
|
|
77672
|
+
|
|
77673
|
+
|
|
77674
|
+
/* normalize component */
|
|
77675
|
+
|
|
77676
|
+
var NewTable_component_component = (0,componentNormalizer/* default */.A)(
|
|
77677
|
+
components_NewTable_componentvue_type_script_lang_js,
|
|
77678
|
+
componentvue_type_template_id_cab895c6_scoped_true_render,
|
|
77679
|
+
componentvue_type_template_id_cab895c6_scoped_true_staticRenderFns,
|
|
77680
|
+
false,
|
|
77681
|
+
null,
|
|
77682
|
+
"cab895c6",
|
|
77683
|
+
null
|
|
77684
|
+
|
|
77685
|
+
)
|
|
77686
|
+
|
|
77687
|
+
/* harmony default export */ const NewTable_component = (NewTable_component_component.exports);
|
|
77688
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/widgetSetup.vue?vue&type=template&id=770bc912&scoped=true
|
|
77689
|
+
var widgetSetupvue_type_template_id_770bc912_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control"},[_c('div',{staticClass:"form_wrap"},[_c('div',{staticClass:"form"},[_c('a-form-model',[_c('a-alert',{staticStyle:{"margin-bottom":"12px"},attrs:{"type":"info","show-icon":"","message":"新子表单已优化字典类组件的数据加载:相同数据源仅请求一次。未开启分页时全部行直接渲染;开启「支持分页显示」后走分页模式。"}}),_c('a-form-model-item',{attrs:{"label":"默认值"}},[(_vm.isFormDesignSQL && !_vm.isFormDesignSQLKey)?_c('a-input',{attrs:{"type":"textarea"},model:{value:(_vm.defaultValue),callback:function ($$v) {_vm.defaultValue=$$v},expression:"defaultValue"}}):_vm._e()],1),(!_vm.isFormDesignSQL && !_vm.isFormDesignSQLKey)?_c('a-button',{attrs:{"type":"primary"},on:{"click":_vm.openDefaultValueWithSql}},[_vm._v("关联数据集")]):_vm._e(),(_vm.isFormDesignSQLKey)?_c('a-button',{attrs:{"type":"primary"},on:{"click":_vm.openDefaultValueWithSqlKey}},[_vm._v("配置详情")]):_vm._e(),_c('a-form-model-item',{attrs:{"label":"审核人可导出"}},[_c('a-switch',{model:{value:(_vm.widget.options.auditorExport),callback:function ($$v) {_vm.$set(_vm.widget.options, "auditorExport", $$v)},expression:"widget.options.auditorExport"}})],1),_c('a-form-model-item',{attrs:{"label":"是否序号列"}},[_c('a-switch',{on:{"change":_vm.addIndexColumnChange},model:{value:(_vm.widget.options.enableIndex),callback:function ($$v) {_vm.$set(_vm.widget.options, "enableIndex", $$v)},expression:"widget.options.enableIndex"}})],1),_c('a-form-model-item',{attrs:{"label":"序列号提示文字"}},[_c('a-input',{attrs:{"placeholder":"格式:index;提示文字 / 提示文字;index"},on:{"change":function($event){return _vm.addIndexColumnChange('edit')}},model:{value:(_vm.widget.options.indexColumnName),callback:function ($$v) {_vm.$set(_vm.widget.options, "indexColumnName", $$v)},expression:"widget.options.indexColumnName"}})],1),_c('a-form-model-item',{attrs:{"label":"支持分页显示"}},[_c('a-switch',{model:{value:(_vm.widget.options.supportPage),callback:function ($$v) {_vm.$set(_vm.widget.options, "supportPage", $$v)},expression:"widget.options.supportPage"}})],1),_c('a-form-model-item',{attrs:{"label":"支持导入"}},[_c('a-switch',{model:{value:(_vm.widget.options.enableImport),callback:function ($$v) {_vm.$set(_vm.widget.options, "enableImport", $$v)},expression:"widget.options.enableImport"}})],1),(_vm.widget.options.enableImport)?_c('a-form-model-item',{attrs:{"label":"使用新版下载模板接口"}},[_c('a-switch',{model:{value:(_vm.widget.options.enableImportV2),callback:function ($$v) {_vm.$set(_vm.widget.options, "enableImportV2", $$v)},expression:"widget.options.enableImportV2"}})],1):_vm._e(),_c('a-form-model-item',{attrs:{"label":"禁用双击编辑"}},[_c('a-switch',{model:{value:(_vm.widget.options.disbaledDoubleClickEdit),callback:function ($$v) {_vm.$set(_vm.widget.options, "disbaledDoubleClickEdit", $$v)},expression:"widget.options.disbaledDoubleClickEdit"}})],1),_c('a-form-model-item',{attrs:{"label":"隐藏操作按钮"}},[_c('a-switch',{model:{value:(_vm.widget.options.hiddenOperateBtn),callback:function ($$v) {_vm.$set(_vm.widget.options, "hiddenOperateBtn", $$v)},expression:"widget.options.hiddenOperateBtn"}})],1),_c('a-form-model-item',{attrs:{"label":"子表单内组件宽度"}},[_c('a-switch',{model:{value:(_vm.widget.options.customSubWidth),callback:function ($$v) {_vm.$set(_vm.widget.options, "customSubWidth", $$v)},expression:"widget.options.customSubWidth"}}),_c('div',{staticStyle:{"margin-left":"10px"}},[_vm._l((_vm.widget.columns),function(col){return (_vm.widget.options.customSubWidth)?[_c('div',[_c('div',[_c('span',[_vm._v(_vm._s(col.name))])]),_c('a-input-number',{staticStyle:{"width":"100%"},attrs:{"min":0,"max":1000,"placeholder":"宽度设置(px), 不设置为自动分配"},model:{value:(col.subWidth),callback:function ($$v) {_vm.$set(col, "subWidth", $$v)},expression:"col.subWidth"}})],1)]:_vm._e()})],2)],1),_c('a-form-model-item',{ref:"title",attrs:{"label":"标题布局方式:","prop":"title"}},[_c('a-radio-group',{attrs:{"button-style":"solid"},model:{value:(_vm.widget.options.inline),callback:function ($$v) {_vm.$set(_vm.widget.options, "inline", $$v)},expression:"widget.options.inline"}},[_c('a-radio-button',{attrs:{"value":false}},[_vm._v(" 块级 ")]),_c('a-radio-button',{attrs:{"value":true}},[_vm._v(" 行内 ")])],1)],1),(_vm.widget.options && Object.keys(_vm.widget.options).indexOf('inline') >= 0 && _vm.widget.options.inline == false)?_c('a-form-model-item',{attrs:{"label":"子集布局方式:"}},[_c('a-radio-group',{attrs:{"button-style":"solid"},model:{value:(_vm.widget.options.layoutModel),callback:function ($$v) {_vm.$set(_vm.widget.options, "layoutModel", $$v)},expression:"widget.options.layoutModel"}},[_c('a-radio-button',{attrs:{"value":"auto"}},[_vm._v("默认")]),_c('a-radio-button',{attrs:{"value":"design"}},[_vm._v("自定义 ")])],1)],1):_vm._e(),(_vm.widget.options.inline == false && _vm.widget.options.layoutModel == 'design')?[_c('a-form-model-item',{attrs:{"label":"基础网格列数:"}},[_c('a-input-number',{attrs:{"step":2,"max":24,"min":0},model:{value:(_vm.widget.options.columnsNum),callback:function ($$v) {_vm.$set(_vm.widget.options, "columnsNum", $$v)},expression:"widget.options.columnsNum"}})],1),_c('a-form-model-item',{attrs:{"label":"基础网格行数"}},[_c('a-input-number',{attrs:{"step":1,"min":0},model:{value:(_vm.widget.options.rowsNum),callback:function ($$v) {_vm.$set(_vm.widget.options, "rowsNum", $$v)},expression:"widget.options.rowsNum"}})],1),_c('a-form-model-item',{attrs:{"label":"基础行高"}},[_c('a-input-number',{attrs:{"step":1,"min":20},model:{value:(_vm.widget.options.rowsHeight),callback:function ($$v) {_vm.$set(_vm.widget.options, "rowsHeight", $$v)},expression:"widget.options.rowsHeight"}})],1),_c('a-form-model-item',{attrs:{"label":"子集配置:"}},[_c('ul',[_c('li',[_c('span',[_vm._v("横向起点")]),_vm._v("/ "),_c('span',[_vm._v("步长")]),_vm._v("/ "),_c('span',[_vm._v("纵向起点")]),_vm._v("/ "),_c('span',[_vm._v("步长")])]),_vm._l((_vm.widget.designList),function(item,index){return _c('li',{key:index},[_c('i',{staticClass:"drag-item",staticStyle:{"font-size":"16px","margin":"0 5px"}},[_c('i',{staticClass:"iconfont icon-icon_bars"})]),_c('a-input-number',{staticStyle:{"width":"47px"},attrs:{"placeholder":"横向起始位置","type":"number","min":0},model:{value:(item.x),callback:function ($$v) {_vm.$set(item, "x", _vm._n($$v))},expression:"item.x"}}),_c('a-input-number',{staticStyle:{"width":"47px","margin-right":"3px"},attrs:{"placeholder":"行步长","type":"number","min":0},model:{value:(item.w),callback:function ($$v) {_vm.$set(item, "w", _vm._n($$v))},expression:"item.w"}}),_c('a-input-number',{staticStyle:{"width":"47px","margin-right":"3px"},attrs:{"placeholder":"竖向起始位置","type":"number","min":0},model:{value:(item.y),callback:function ($$v) {_vm.$set(item, "y", _vm._n($$v))},expression:"item.y"}}),_c('a-input-number',{staticStyle:{"width":"47px","margin-right":"3px"},attrs:{"placeholder":"列步长","type":"number","min":0},model:{value:(item.h),callback:function ($$v) {_vm.$set(item, "h", _vm._n($$v))},expression:"item.h"}}),_c('a-button',{staticStyle:{"margin-left":"5px","border-radius":"50%"},attrs:{"circle":"","plain":"","type":"danger","size":"small","icon":"minus"},on:{"click":function($event){return _vm.handleOptionsRemove(index)}}})],1)})],2),_c('div',{staticStyle:{"margin-left":"22px"}},[_c('a-button',{attrs:{"type":"link"},on:{"click":_vm.handleTableAddColumn}},[_vm._v("添加列")])],1)])]:_vm._e()],2),_c('datasetManagement',{ref:"datasetManagement",on:{"setDateOk":_vm.setDateOk}}),_c('default-value-with-sql',{ref:"defaultValueWithSql",on:{"setDefalutOk":_vm.setDefalutValue}})],1)])])}
|
|
77690
|
+
var widgetSetupvue_type_template_id_770bc912_scoped_true_staticRenderFns = []
|
|
77691
|
+
|
|
77692
|
+
|
|
77693
|
+
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/widgetSetup.vue?vue&type=script&lang=js
|
|
77694
|
+
|
|
76779
77695
|
//
|
|
76780
77696
|
//
|
|
76781
77697
|
//
|
|
@@ -76888,9 +77804,8 @@ var widgetSetupvue_type_template_id_2b3989c5_scoped_true_staticRenderFns = []
|
|
|
76888
77804
|
|
|
76889
77805
|
|
|
76890
77806
|
|
|
76891
|
-
|
|
76892
|
-
|
|
76893
|
-
name: "widgetSetup",
|
|
77807
|
+
/* harmony default export */ const NewTable_widgetSetupvue_type_script_lang_js = ({
|
|
77808
|
+
name: "newTableWidgetSetup",
|
|
76894
77809
|
mixins: [widgetSetupMixins],
|
|
76895
77810
|
data() {
|
|
76896
77811
|
return {
|
|
@@ -76920,30 +77835,15 @@ var widgetSetupvue_type_template_id_2b3989c5_scoped_true_staticRenderFns = []
|
|
|
76920
77835
|
}
|
|
76921
77836
|
},
|
|
76922
77837
|
created() {
|
|
76923
|
-
console.log(this.widget);
|
|
76924
77838
|
this.defaultValue = typeof this.widget.options.defaultValue === "string" ? this.widget.options.defaultValue : "";
|
|
76925
77839
|
this.addIndexColumnChange(this.widget.options.enableIndex);
|
|
76926
77840
|
},
|
|
76927
77841
|
watch: {
|
|
76928
|
-
"widget": {
|
|
76929
|
-
handler(widget, oldWidget) {
|
|
76930
|
-
// setTimeout(() => {
|
|
76931
|
-
//
|
|
76932
|
-
// }, 0)
|
|
76933
|
-
},
|
|
76934
|
-
deep: true
|
|
76935
|
-
},
|
|
76936
77842
|
defaultValue(v) {
|
|
76937
77843
|
this.widget.options.defaultValue = v;
|
|
76938
77844
|
}
|
|
76939
77845
|
},
|
|
76940
77846
|
methods: {
|
|
76941
|
-
handleChange(selectedItems) {
|
|
76942
|
-
this.widget.options.computingMethod = selectedItems;
|
|
76943
|
-
},
|
|
76944
|
-
handleChangetwo(selectedItems) {
|
|
76945
|
-
this.widget.options.computingSub = selectedItems;
|
|
76946
|
-
},
|
|
76947
77847
|
handleOptionsRemove(index) {
|
|
76948
77848
|
this.widget.designList.splice(index, 1);
|
|
76949
77849
|
},
|
|
@@ -76979,14 +77879,14 @@ var widgetSetupvue_type_template_id_2b3989c5_scoped_true_staticRenderFns = []
|
|
|
76979
77879
|
}
|
|
76980
77880
|
}
|
|
76981
77881
|
});
|
|
76982
|
-
;// ./src/form/modules/components/
|
|
76983
|
-
/* harmony default export */ const
|
|
76984
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/
|
|
77882
|
+
;// ./src/form/modules/components/NewTable/widgetSetup.vue?vue&type=script&lang=js
|
|
77883
|
+
/* harmony default export */ const components_NewTable_widgetSetupvue_type_script_lang_js = (NewTable_widgetSetupvue_type_script_lang_js);
|
|
77884
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/widgetSetup.vue?vue&type=style&index=0&id=770bc912&prod&lang=less&scoped=true
|
|
76985
77885
|
// extracted by mini-css-extract-plugin
|
|
76986
77886
|
|
|
76987
|
-
;// ./src/form/modules/components/
|
|
77887
|
+
;// ./src/form/modules/components/NewTable/widgetSetup.vue?vue&type=style&index=0&id=770bc912&prod&lang=less&scoped=true
|
|
76988
77888
|
|
|
76989
|
-
;// ./src/form/modules/components/
|
|
77889
|
+
;// ./src/form/modules/components/NewTable/widgetSetup.vue
|
|
76990
77890
|
|
|
76991
77891
|
|
|
76992
77892
|
|
|
@@ -76995,20 +77895,20 @@ var widgetSetupvue_type_template_id_2b3989c5_scoped_true_staticRenderFns = []
|
|
|
76995
77895
|
|
|
76996
77896
|
/* normalize component */
|
|
76997
77897
|
|
|
76998
|
-
var
|
|
76999
|
-
|
|
77000
|
-
|
|
77001
|
-
|
|
77898
|
+
var NewTable_widgetSetup_component = (0,componentNormalizer/* default */.A)(
|
|
77899
|
+
components_NewTable_widgetSetupvue_type_script_lang_js,
|
|
77900
|
+
widgetSetupvue_type_template_id_770bc912_scoped_true_render,
|
|
77901
|
+
widgetSetupvue_type_template_id_770bc912_scoped_true_staticRenderFns,
|
|
77002
77902
|
false,
|
|
77003
77903
|
null,
|
|
77004
|
-
"
|
|
77904
|
+
"770bc912",
|
|
77005
77905
|
null
|
|
77006
77906
|
|
|
77007
77907
|
)
|
|
77008
77908
|
|
|
77009
|
-
/* harmony default export */ const
|
|
77010
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/
|
|
77011
|
-
var
|
|
77909
|
+
/* harmony default export */ const NewTable_widgetSetup = (NewTable_widgetSetup_component.exports);
|
|
77910
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/widgetDesign.vue?vue&type=template&id=416eb027&scoped=true
|
|
77911
|
+
var widgetDesignvue_type_template_id_416eb027_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget && _vm.widget.key)?_c('div',{key:_vm.widget.key,staticClass:"widget-form-list widget-view widget-grid",class:{ active: _vm.selectWidget.key == _vm.widget.key },attrs:{"align":_vm.widget.options.align},on:{"click":function($event){return _vm.handleSelectWidget(_vm.index, _vm.listindex)}}},[_c('div',{staticClass:"table_label"},[_vm._v(_vm._s(_vm.widget.name))]),_c('div',{staticClass:"grid-background",style:({
|
|
77012
77912
|
top: '40px',
|
|
77013
77913
|
height: _vm.setHeight(_vm.widget.options.rowsNum, _vm.widget.options.rowsHeight),
|
|
77014
77914
|
}),attrs:{"type":"flex"}},_vm._l((_vm.transformArr(_vm.widget.options.rowsNum)),function(item,rowKey){return _c('div',{key:rowKey,staticClass:"rows"},_vm._l((_vm.transformArr(_vm.widget.options.columnsNum)),function(item,columnKey){return _c('div',{key:columnKey,staticClass:"columns",style:({
|
|
@@ -77017,18 +77917,10 @@ var widgetDesignvue_type_template_id_47af2467_scoped_true_render = function () {
|
|
|
77017
77917
|
})})}),0)}),0),_c('div',{staticStyle:{"width":"100%"},style:({
|
|
77018
77918
|
height: _vm.setHeight(_vm.widget.options.rowsNum, _vm.widget.options.rowsHeight),
|
|
77019
77919
|
})},[_c('grid-layout',{attrs:{"layout":_vm.widget.designList,"col-num":Number(_vm.widget.options.columnsNum),"row-height":Number(_vm.widget.options.rowsHeight),"maxRows":Number(_vm.widget.options.rowsNum),"is-draggable":true,"is-resizable":true,"is-mirrored":false,"vertical-compact":true,"margin":[0, 0],"use-css-transforms":true},on:{"update:layout":function($event){return _vm.$set(_vm.widget, "designList", $event)}}},_vm._l((_vm.widget.designList),function(item,colIndex){return _c('grid-item',{key:item.i,attrs:{"x":item.x,"y":item.y,"w":item.w,"h":item.h,"i":item.i}},[(_vm.widget.columns)?_c('div',{staticClass:"grid-lay-out-wrap"},[_c('draggable',_vm._b({staticClass:"grid-lay-out-wrap",attrs:{"setData":function (){},"no-transition-on-drag":true},on:{"end":_vm.handleMoveEnd,"add":function($event){return _vm.handleWidgetColAdd($event, _vm.widget, colIndex)}},model:{value:(_vm.widget.columns),callback:function ($$v) {_vm.$set(_vm.widget, "columns", $$v)},expression:"widget.columns"}},'draggable',_vm.draggableOptions,false),[_c('widget-form-item',{ref:"WidgetFormItem",refInFor:true,attrs:{"widget":_vm.getTableColumn(_vm.widget.columns, colIndex),"widgetListCell":_vm.widget.columns,"select":_vm.selectWidget,"index":colIndex,"deleteColIndex":colIndex},on:{"update:select":function($event){_vm.selectWidget=$event}}})],1)],1):_vm._e()])}),1),(_vm.selectWidget.key == _vm.widget.key)?_c('div',{staticClass:"widget-view-action widget-col-action"},[_c('i',{staticClass:"iconfont icon-trash",on:{"click":function($event){$event.stopPropagation();return _vm.handleWidgetDelete(_vm.index, _vm.listindex)}}})]):_vm._e(),(_vm.selectWidget.key == _vm.widget.key)?_c('div',{staticClass:"widget-view-drag widget-col-drag"},[_c('i',{staticClass:"iconfont icon-drag drag-widget"})]):_vm._e(),_c('div',{staticClass:"widget-view-model"},[_c('span',[_vm._v(_vm._s(_vm.widget.model))])])],1)]):_vm._e()}
|
|
77020
|
-
var
|
|
77920
|
+
var widgetDesignvue_type_template_id_416eb027_scoped_true_staticRenderFns = []
|
|
77021
77921
|
|
|
77022
77922
|
|
|
77023
|
-
|
|
77024
|
-
var vuedraggable_umd = __webpack_require__(59715);
|
|
77025
|
-
var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
|
|
77026
|
-
// EXTERNAL MODULE: ./src/form/modules/common/dragItem.vue + 5 modules
|
|
77027
|
-
var dragItem = __webpack_require__(83523);
|
|
77028
|
-
// EXTERNAL MODULE: ./node_modules/_vue-grid-layout@2.4.0@vue-grid-layout/dist/vue-grid-layout.common.js
|
|
77029
|
-
var vue_grid_layout_common = __webpack_require__(23774);
|
|
77030
|
-
var vue_grid_layout_common_default = /*#__PURE__*/__webpack_require__.n(vue_grid_layout_common);
|
|
77031
|
-
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/widgetDesign.vue?vue&type=script&lang=js
|
|
77923
|
+
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/widgetDesign.vue?vue&type=script&lang=js
|
|
77032
77924
|
|
|
77033
77925
|
|
|
77034
77926
|
//
|
|
@@ -77144,9 +78036,9 @@ var vue_grid_layout_common_default = /*#__PURE__*/__webpack_require__.n(vue_grid
|
|
|
77144
78036
|
|
|
77145
78037
|
|
|
77146
78038
|
|
|
77147
|
-
const
|
|
77148
|
-
/* harmony default export */ const
|
|
77149
|
-
name: "
|
|
78039
|
+
const widgetDesignvue_type_script_lang_js_widgetFormItem = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 48942));
|
|
78040
|
+
/* harmony default export */ const NewTable_widgetDesignvue_type_script_lang_js = ({
|
|
78041
|
+
name: "newTableWidgetDesign",
|
|
77150
78042
|
props: {
|
|
77151
78043
|
config: {
|
|
77152
78044
|
type: Object,
|
|
@@ -77201,7 +78093,7 @@ const widgetFormItem = () => Promise.resolve(/* import() */).then(__webpack_requ
|
|
|
77201
78093
|
components: {
|
|
77202
78094
|
Draggable: (vuedraggable_umd_default()),
|
|
77203
78095
|
dragItem: dragItem/* default */.A,
|
|
77204
|
-
widgetFormItem,
|
|
78096
|
+
widgetFormItem: widgetDesignvue_type_script_lang_js_widgetFormItem,
|
|
77205
78097
|
GridLayout: (vue_grid_layout_common_default()).GridLayout,
|
|
77206
78098
|
GridItem: (vue_grid_layout_common_default()).GridItem
|
|
77207
78099
|
},
|
|
@@ -77261,14 +78153,14 @@ const widgetFormItem = () => Promise.resolve(/* import() */).then(__webpack_requ
|
|
|
77261
78153
|
}
|
|
77262
78154
|
}
|
|
77263
78155
|
});
|
|
77264
|
-
;// ./src/form/modules/components/
|
|
77265
|
-
/* harmony default export */ const
|
|
77266
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/
|
|
78156
|
+
;// ./src/form/modules/components/NewTable/widgetDesign.vue?vue&type=script&lang=js
|
|
78157
|
+
/* harmony default export */ const components_NewTable_widgetDesignvue_type_script_lang_js = (NewTable_widgetDesignvue_type_script_lang_js);
|
|
78158
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/NewTable/widgetDesign.vue?vue&type=style&index=0&id=416eb027&prod&lang=less&scoped=true
|
|
77267
78159
|
// extracted by mini-css-extract-plugin
|
|
77268
78160
|
|
|
77269
|
-
;// ./src/form/modules/components/
|
|
78161
|
+
;// ./src/form/modules/components/NewTable/widgetDesign.vue?vue&type=style&index=0&id=416eb027&prod&lang=less&scoped=true
|
|
77270
78162
|
|
|
77271
|
-
;// ./src/form/modules/components/
|
|
78163
|
+
;// ./src/form/modules/components/NewTable/widgetDesign.vue
|
|
77272
78164
|
|
|
77273
78165
|
|
|
77274
78166
|
|
|
@@ -77277,26 +78169,26 @@ const widgetFormItem = () => Promise.resolve(/* import() */).then(__webpack_requ
|
|
|
77277
78169
|
|
|
77278
78170
|
/* normalize component */
|
|
77279
78171
|
|
|
77280
|
-
var
|
|
77281
|
-
|
|
77282
|
-
|
|
77283
|
-
|
|
78172
|
+
var NewTable_widgetDesign_component = (0,componentNormalizer/* default */.A)(
|
|
78173
|
+
components_NewTable_widgetDesignvue_type_script_lang_js,
|
|
78174
|
+
widgetDesignvue_type_template_id_416eb027_scoped_true_render,
|
|
78175
|
+
widgetDesignvue_type_template_id_416eb027_scoped_true_staticRenderFns,
|
|
77284
78176
|
false,
|
|
77285
78177
|
null,
|
|
77286
|
-
"
|
|
78178
|
+
"416eb027",
|
|
77287
78179
|
null
|
|
77288
78180
|
|
|
77289
78181
|
)
|
|
77290
78182
|
|
|
77291
|
-
/* harmony default export */ const
|
|
77292
|
-
;// ./src/form/modules/components/
|
|
78183
|
+
/* harmony default export */ const NewTable_widgetDesign = (NewTable_widgetDesign_component.exports);
|
|
78184
|
+
;// ./src/form/modules/components/NewTable/index.js
|
|
77293
78185
|
|
|
77294
78186
|
|
|
77295
78187
|
|
|
77296
|
-
/* harmony default export */ const
|
|
77297
|
-
component:
|
|
77298
|
-
widgetSetup:
|
|
77299
|
-
widgetDesign:
|
|
78188
|
+
/* harmony default export */ const NewTable = ({
|
|
78189
|
+
component: NewTable_component,
|
|
78190
|
+
widgetSetup: NewTable_widgetSetup,
|
|
78191
|
+
widgetDesign: NewTable_widgetDesign
|
|
77300
78192
|
});
|
|
77301
78193
|
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Cascader/component.vue?vue&type=template&id=410db45c
|
|
77302
78194
|
var componentvue_type_template_id_410db45c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item",style:({ height: _vm.widget.options.height + 'px' })},[_c('a-form-model-item',{ref:_vm.widget.model,attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol,"prop":_vm.tableKey ? (_vm.tableKey + "." + _vm.tableIndex + "." + (_vm.widget.model)) : _vm.widget.model,"rules":_vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]}},[(_vm.widget.options.labelWidth !== 0)?_c('div',{class:[
|
|
@@ -79098,8 +79990,8 @@ var Slider_widgetDesign_component = (0,componentNormalizer/* default */.A)(
|
|
|
79098
79990
|
widgetSetup: Slider_widgetSetup,
|
|
79099
79991
|
widgetDesign: Slider_widgetDesign
|
|
79100
79992
|
});
|
|
79101
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Radio/component.vue?vue&type=template&id=
|
|
79102
|
-
var
|
|
79993
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Radio/component.vue?vue&type=template&id=02f7d5e6&scoped=true
|
|
79994
|
+
var componentvue_type_template_id_02f7d5e6_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item",style:({ height: _vm.widget.options.autoHeight ? 'auto' : _vm.widget.options.height + 'px' })},[_c('a-form-model-item',{ref:_vm.widget.model,attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol,"prop":_vm.tableKey ? (_vm.tableKey + "." + _vm.tableIndex + "." + (_vm.widget.model)) : _vm.widget.model,"rules":_vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]}},[_c('a-radio-group',{attrs:{"disabled":_vm.isdisabled ? _vm.show : _vm.widget.options.disabled,"placeholder":_vm.widget.options.placeholder},on:{"change":_vm.onChange},nativeOn:{"click":function($event){_vm.isClickByUser = true}},model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}},[(_vm.widget.options.inline == true)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-radio',{key:index,style:({
|
|
79103
79995
|
display: 'inline-block',
|
|
79104
79996
|
}),attrs:{"value":item.value}},[_vm._v(" "+_vm._s(item.text)+" ")])}):_vm._e(),(_vm.widget.options.inline == false)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-radio',{key:index,style:({
|
|
79105
79997
|
display: 'block'
|
|
@@ -79108,13 +80000,12 @@ var componentvue_type_template_id_1277221d_scoped_true_render = function () {var
|
|
|
79108
80000
|
_vm.config.validate === true && _vm.widget.options.required === true
|
|
79109
80001
|
? 'is_required'
|
|
79110
80002
|
: 'no_required' ],style:({ color: this.config.color }),attrs:{"slot":"label"},slot:"label"},[_vm._v(" "+_vm._s(_vm.widget.name)+" ")]):_vm._e()],1)],1):_vm._e()}
|
|
79111
|
-
var
|
|
80003
|
+
var componentvue_type_template_id_02f7d5e6_scoped_true_staticRenderFns = []
|
|
79112
80004
|
|
|
79113
80005
|
|
|
79114
80006
|
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Radio/component.vue?vue&type=script&lang=js
|
|
79115
80007
|
|
|
79116
80008
|
|
|
79117
|
-
|
|
79118
80009
|
//
|
|
79119
80010
|
//
|
|
79120
80011
|
//
|
|
@@ -79186,6 +80077,7 @@ var componentvue_type_template_id_1277221d_scoped_true_staticRenderFns = []
|
|
|
79186
80077
|
|
|
79187
80078
|
|
|
79188
80079
|
|
|
80080
|
+
|
|
79189
80081
|
/* harmony default export */ const Radio_componentvue_type_script_lang_js = ({
|
|
79190
80082
|
name: "radio",
|
|
79191
80083
|
mixins: [widgetMixins/* default */.A],
|
|
@@ -79218,78 +80110,22 @@ var componentvue_type_template_id_1277221d_scoped_true_staticRenderFns = []
|
|
|
79218
80110
|
});
|
|
79219
80111
|
},
|
|
79220
80112
|
async initDictData() {
|
|
79221
|
-
this.dictOptions =
|
|
79222
|
-
// 代表自定义数据项
|
|
79223
|
-
if (this.widget.options.remoteNumber == '4') {
|
|
79224
|
-
this.dictOptions = this.widget.options.designDataList.map(item => {
|
|
79225
|
-
return {
|
|
79226
|
-
value: item.value,
|
|
79227
|
-
text: item.label
|
|
79228
|
-
};
|
|
79229
|
-
});
|
|
79230
|
-
} else {
|
|
79231
|
-
if (this.widget.options.dictName) {
|
|
79232
|
-
await (0,manage/* getAction */.Th)(`/sys/dict/getDictItems/${this.widget.options.dictName}`).then(res => {
|
|
79233
|
-
if (res.success) {
|
|
79234
|
-
this.dictOptions = res.result;
|
|
79235
|
-
}
|
|
79236
|
-
});
|
|
79237
|
-
} else if (this.widget.options.dictTable) {
|
|
79238
|
-
let params = {
|
|
79239
|
-
tableName: this.widget.options.dictTable
|
|
79240
|
-
};
|
|
79241
|
-
await (0,manage/* getAction */.Th)("form/formdesiger/getDataCenterDict", params).then(res => {
|
|
79242
|
-
this.dictOptions = res.result.map(item => {
|
|
79243
|
-
return {
|
|
79244
|
-
value: item.dictValue,
|
|
79245
|
-
text: item.dictLabel
|
|
79246
|
-
};
|
|
79247
|
-
});
|
|
79248
|
-
});
|
|
79249
|
-
} else if (this.widget.options.dictUrl) {
|
|
79250
|
-
if (this.widget.options.dictUrl.indexOf("?") != -1) {
|
|
79251
|
-
let list = this.widget.options.dictUrl.split("?");
|
|
79252
|
-
let url = list[0];
|
|
79253
|
-
let params = this.getparams(list[1]);
|
|
79254
|
-
await (0,manage/* getAction */.Th)(url, params).then(res => {
|
|
79255
|
-
if (res.success) {
|
|
79256
|
-
this.dictOptions = res.result.map(item => {
|
|
79257
|
-
return {
|
|
79258
|
-
value: item.dataKey,
|
|
79259
|
-
text: item.dataValue
|
|
79260
|
-
};
|
|
79261
|
-
});
|
|
79262
|
-
}
|
|
79263
|
-
});
|
|
79264
|
-
} else {
|
|
79265
|
-
await (0,manage/* getAction */.Th)(this.widget.options.dictUrl).then(res => {
|
|
79266
|
-
if (res.success) {
|
|
79267
|
-
this.dictOptions = res.result.map(item => {
|
|
79268
|
-
return {
|
|
79269
|
-
value: item.dataKey,
|
|
79270
|
-
text: item.dataValue
|
|
79271
|
-
};
|
|
79272
|
-
});
|
|
79273
|
-
}
|
|
79274
|
-
});
|
|
79275
|
-
}
|
|
79276
|
-
}
|
|
79277
|
-
}
|
|
80113
|
+
this.dictOptions = await (0,dictDataCache/* fetchDictOptions */.$i)(this.widget.options, this.applyId);
|
|
79278
80114
|
__webpack_require__.g.dictData[this.widget.model] = this.dictOptions;
|
|
79279
80115
|
}
|
|
79280
80116
|
}
|
|
79281
80117
|
});
|
|
79282
80118
|
;// ./src/form/modules/components/Radio/component.vue?vue&type=script&lang=js
|
|
79283
80119
|
/* harmony default export */ const components_Radio_componentvue_type_script_lang_js = (Radio_componentvue_type_script_lang_js);
|
|
79284
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Radio/component.vue?vue&type=style&index=0&id=
|
|
80120
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Radio/component.vue?vue&type=style&index=0&id=02f7d5e6&prod&lang=css
|
|
79285
80121
|
// extracted by mini-css-extract-plugin
|
|
79286
80122
|
|
|
79287
|
-
;// ./src/form/modules/components/Radio/component.vue?vue&type=style&index=0&id=
|
|
80123
|
+
;// ./src/form/modules/components/Radio/component.vue?vue&type=style&index=0&id=02f7d5e6&prod&lang=css
|
|
79288
80124
|
|
|
79289
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Radio/component.vue?vue&type=style&index=1&id=
|
|
80125
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Radio/component.vue?vue&type=style&index=1&id=02f7d5e6&prod&lang=less&scoped=true
|
|
79290
80126
|
// extracted by mini-css-extract-plugin
|
|
79291
80127
|
|
|
79292
|
-
;// ./src/form/modules/components/Radio/component.vue?vue&type=style&index=1&id=
|
|
80128
|
+
;// ./src/form/modules/components/Radio/component.vue?vue&type=style&index=1&id=02f7d5e6&prod&lang=less&scoped=true
|
|
79293
80129
|
|
|
79294
80130
|
;// ./src/form/modules/components/Radio/component.vue
|
|
79295
80131
|
|
|
@@ -79303,11 +80139,11 @@ var componentvue_type_template_id_1277221d_scoped_true_staticRenderFns = []
|
|
|
79303
80139
|
|
|
79304
80140
|
var Radio_component_component = (0,componentNormalizer/* default */.A)(
|
|
79305
80141
|
components_Radio_componentvue_type_script_lang_js,
|
|
79306
|
-
|
|
79307
|
-
|
|
80142
|
+
componentvue_type_template_id_02f7d5e6_scoped_true_render,
|
|
80143
|
+
componentvue_type_template_id_02f7d5e6_scoped_true_staticRenderFns,
|
|
79308
80144
|
false,
|
|
79309
80145
|
null,
|
|
79310
|
-
"
|
|
80146
|
+
"02f7d5e6",
|
|
79311
80147
|
null
|
|
79312
80148
|
|
|
79313
80149
|
)
|
|
@@ -79872,8 +80708,8 @@ var Radio_widgetDesign_component = (0,componentNormalizer/* default */.A)(
|
|
|
79872
80708
|
widgetSetup: Radio_widgetSetup,
|
|
79873
80709
|
widgetDesign: Radio_widgetDesign
|
|
79874
80710
|
});
|
|
79875
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Checkbox/component.vue?vue&type=template&id=
|
|
79876
|
-
var
|
|
80711
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Checkbox/component.vue?vue&type=template&id=22c73925
|
|
80712
|
+
var componentvue_type_template_id_22c73925_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item",style:({ height: _vm.widget.options.autoHeight ? 'auto' : _vm.widget.options.height + 'px' })},[_c('a-form-model-item',{ref:_vm.widget.model,attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol,"prop":_vm.tableKey ? (_vm.tableKey + "." + _vm.tableIndex + "." + (_vm.widget.model)) : _vm.widget.model,"rules":_vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]}},[_c('a-checkbox-group',{staticStyle:{"width":"100%"},attrs:{"disabled":_vm.isdisabled ? _vm.show : _vm.widget.options.disabled,"placeholder":_vm.widget.options.placeholder,"value":_vm.dataModel},on:{"change":_vm.onChange},nativeOn:{"click":function($event){return _vm.handleClick.apply(null, arguments)}}},[(_vm.widget.options.inline == true)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-checkbox',{key:index,class:{inlineCheckbox:_vm.checkboxDesign_CZXY},style:({
|
|
79877
80713
|
display: 'inline-block',
|
|
79878
80714
|
}),attrs:{"value":item.value}},[_vm._v(_vm._s(item.text))])}):_vm._e(),(_vm.widget.options.inline == false)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-checkbox',{key:index,style:({
|
|
79879
80715
|
display: 'block',
|
|
@@ -79882,7 +80718,7 @@ var componentvue_type_template_id_652c6ca2_render = function () {var _vm=this;va
|
|
|
79882
80718
|
_vm.config.validate === true && _vm.widget.options.required === true
|
|
79883
80719
|
? 'is_required'
|
|
79884
80720
|
: 'no_required' ],style:({ color: this.config.color }),attrs:{"slot":"label"},slot:"label"},[_vm._v(" "+_vm._s(_vm.widget.name)+" ")]):_vm._e()],1)],1):_vm._e()}
|
|
79885
|
-
var
|
|
80721
|
+
var componentvue_type_template_id_22c73925_staticRenderFns = []
|
|
79886
80722
|
|
|
79887
80723
|
|
|
79888
80724
|
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Checkbox/component.vue?vue&type=script&lang=js
|
|
@@ -79960,6 +80796,7 @@ var componentvue_type_template_id_652c6ca2_staticRenderFns = []
|
|
|
79960
80796
|
|
|
79961
80797
|
|
|
79962
80798
|
|
|
80799
|
+
|
|
79963
80800
|
// import { ajaxGetDictItems } from "@form/api/api";
|
|
79964
80801
|
// import { getAction } from "@form/api/manage";
|
|
79965
80802
|
/* harmony default export */ const Checkbox_componentvue_type_script_lang_js = ({
|
|
@@ -80029,77 +80866,17 @@ var componentvue_type_template_id_652c6ca2_staticRenderFns = []
|
|
|
80029
80866
|
}
|
|
80030
80867
|
},
|
|
80031
80868
|
async initDictData() {
|
|
80032
|
-
|
|
80033
|
-
|
|
80034
|
-
this.dictOptions = this.widget.options.designDataList.map(item => {
|
|
80035
|
-
return {
|
|
80036
|
-
value: item.value,
|
|
80037
|
-
text: item.label
|
|
80038
|
-
};
|
|
80039
|
-
});
|
|
80040
|
-
} else {
|
|
80041
|
-
if (this.widget.options.dictName) {
|
|
80042
|
-
await (0,manage/* getAction */.Th)(`/sys/dict/getDictItems/${this.widget.options.dictName}`).then(res => {
|
|
80043
|
-
if (res.success) {
|
|
80044
|
-
this.dictOptions = res.result;
|
|
80045
|
-
}
|
|
80046
|
-
});
|
|
80047
|
-
} else if (this.widget.options.dictTable) {
|
|
80048
|
-
let params = {
|
|
80049
|
-
tableName: this.widget.options.dictTable
|
|
80050
|
-
};
|
|
80051
|
-
await (0,manage/* getAction */.Th)("/form/formdesiger/getDataCenterDict", params).then(res => {
|
|
80052
|
-
console.log(res);
|
|
80053
|
-
this.dictOptions = res.result.map(item => {
|
|
80054
|
-
return {
|
|
80055
|
-
value: item.dictValue,
|
|
80056
|
-
text: item.dictLabel
|
|
80057
|
-
};
|
|
80058
|
-
});
|
|
80059
|
-
console.log(this.dictOptions);
|
|
80060
|
-
});
|
|
80061
|
-
} else if (this.widget.options.dictUrl) {
|
|
80062
|
-
if (this.widget.options.dictUrl.indexOf("?") != -1) {
|
|
80063
|
-
let list = this.widget.options.dictUrl.split("?");
|
|
80064
|
-
let url = list[0];
|
|
80065
|
-
let params = this.getparams(list[1]);
|
|
80066
|
-
console.log(url, "1111", params);
|
|
80067
|
-
await (0,manage/* getAction */.Th)(url, params).then(res => {
|
|
80068
|
-
console.log(res);
|
|
80069
|
-
if (res.success) {
|
|
80070
|
-
this.dictOptions = res.result.map(item => {
|
|
80071
|
-
return {
|
|
80072
|
-
value: item.dataKey,
|
|
80073
|
-
text: item.dataValue
|
|
80074
|
-
};
|
|
80075
|
-
});
|
|
80076
|
-
}
|
|
80077
|
-
});
|
|
80078
|
-
} else {
|
|
80079
|
-
(0,manage/* getAction */.Th)(this.widget.options.dictUrl).then(res => {
|
|
80080
|
-
console.log(res);
|
|
80081
|
-
if (res.success) {
|
|
80082
|
-
this.dictOptions = res.result.map(item => {
|
|
80083
|
-
return {
|
|
80084
|
-
value: item.dataKey,
|
|
80085
|
-
text: item.dataValue
|
|
80086
|
-
};
|
|
80087
|
-
});
|
|
80088
|
-
}
|
|
80089
|
-
});
|
|
80090
|
-
}
|
|
80091
|
-
__webpack_require__.g.dictData[this.widget.model] = this.dictOptions;
|
|
80092
|
-
}
|
|
80093
|
-
}
|
|
80869
|
+
this.dictOptions = await (0,dictDataCache/* fetchDictOptions */.$i)(this.widget.options, this.applyId);
|
|
80870
|
+
__webpack_require__.g.dictData[this.widget.model] = this.dictOptions;
|
|
80094
80871
|
}
|
|
80095
80872
|
}
|
|
80096
80873
|
});
|
|
80097
80874
|
;// ./src/form/modules/components/Checkbox/component.vue?vue&type=script&lang=js
|
|
80098
80875
|
/* harmony default export */ const components_Checkbox_componentvue_type_script_lang_js = (Checkbox_componentvue_type_script_lang_js);
|
|
80099
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Checkbox/component.vue?vue&type=style&index=0&id=
|
|
80876
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Checkbox/component.vue?vue&type=style&index=0&id=22c73925&prod&lang=css
|
|
80100
80877
|
// extracted by mini-css-extract-plugin
|
|
80101
80878
|
|
|
80102
|
-
;// ./src/form/modules/components/Checkbox/component.vue?vue&type=style&index=0&id=
|
|
80879
|
+
;// ./src/form/modules/components/Checkbox/component.vue?vue&type=style&index=0&id=22c73925&prod&lang=css
|
|
80103
80880
|
|
|
80104
80881
|
;// ./src/form/modules/components/Checkbox/component.vue
|
|
80105
80882
|
|
|
@@ -80112,8 +80889,8 @@ var componentvue_type_template_id_652c6ca2_staticRenderFns = []
|
|
|
80112
80889
|
|
|
80113
80890
|
var Checkbox_component_component = (0,componentNormalizer/* default */.A)(
|
|
80114
80891
|
components_Checkbox_componentvue_type_script_lang_js,
|
|
80115
|
-
|
|
80116
|
-
|
|
80892
|
+
componentvue_type_template_id_22c73925_render,
|
|
80893
|
+
componentvue_type_template_id_22c73925_staticRenderFns,
|
|
80117
80894
|
false,
|
|
80118
80895
|
null,
|
|
80119
80896
|
null,
|
|
@@ -82473,7 +83250,7 @@ var widgetDesignvue_type_template_id_1f623548_scoped_true_staticRenderFns = []
|
|
|
82473
83250
|
|
|
82474
83251
|
|
|
82475
83252
|
|
|
82476
|
-
const
|
|
83253
|
+
const GridLayout_widgetDesignvue_type_script_lang_js_widgetFormItem = () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 48942));
|
|
82477
83254
|
/* harmony default export */ const GridLayout_widgetDesignvue_type_script_lang_js = ({
|
|
82478
83255
|
name: "widgetDesign",
|
|
82479
83256
|
props: {
|
|
@@ -82530,7 +83307,7 @@ const widgetDesignvue_type_script_lang_js_widgetFormItem = () => Promise.resolve
|
|
|
82530
83307
|
components: {
|
|
82531
83308
|
Draggable: (vuedraggable_umd_default()),
|
|
82532
83309
|
dragItem: dragItem/* default */.A,
|
|
82533
|
-
widgetFormItem:
|
|
83310
|
+
widgetFormItem: GridLayout_widgetDesignvue_type_script_lang_js_widgetFormItem,
|
|
82534
83311
|
GridLayout: (vue_grid_layout_common_default()).GridLayout,
|
|
82535
83312
|
GridItem: (vue_grid_layout_common_default()).GridItem
|
|
82536
83313
|
},
|
|
@@ -113922,19 +114699,21 @@ var componentvue_type_template_id_3afb410c_scoped_true_render = function () {var
|
|
|
113922
114699
|
var componentvue_type_template_id_3afb410c_scoped_true_staticRenderFns = []
|
|
113923
114700
|
|
|
113924
114701
|
|
|
113925
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=template&id=
|
|
113926
|
-
var
|
|
114702
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=template&id=627f4e94&scoped=true
|
|
114703
|
+
var conferenceRoomModalvue_type_template_id_627f4e94_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{attrs:{"title":_vm.title,"width":"100%","height":"100%","wrapClassName":"full-modal","visible":_vm.visible,"confirmLoading":_vm.confirmLoading,"cancelText":"关闭","destroyOnClose":true},on:{"ok":_vm.handleOk,"cancel":_vm.handleCancel}},[_c('div',{staticClass:"conference-room-content"},[_c('div',{staticClass:"conference-room-content-hard"},[_c('div',{staticClass:"left"},[_c('div',{staticClass:"left-date-type"},[_c('a-radio-group',{attrs:{"button-style":"solid","disabled":_vm.loading},on:{"change":_vm.changeDateType},model:{value:(_vm.dataObj.dateType),callback:function ($$v) {_vm.$set(_vm.dataObj, "dateType", $$v)},expression:"dataObj.dateType"}},[_c('a-radio-button',{attrs:{"value":0}},[_vm._v(" 日 ")]),_c('a-radio-button',{attrs:{"value":1}},[_vm._v(" 周 ")]),_c('a-radio-button',{attrs:{"value":2}},[_vm._v(" 月 ")])],1)],1),_c('div',{staticClass:"left-date-content"},[_c('a-icon',{attrs:{"type":"left"},on:{"click":function($event){return _vm.changeDate(false)}}}),(_vm.dataObj.dateType === 0)?_c('a-date-picker',{staticClass:"left-date-content-show",staticStyle:{"width":"136px"},attrs:{"allowClear":false,"format":"YYYY年MM月DD日","suffixIcon":false,"getCalendarContainer":function (triggerNode) {
|
|
113927
114704
|
return triggerNode.parentNode || _vm.document.body;
|
|
113928
114705
|
}},on:{"change":_vm.onChange},model:{value:(_vm.dataObj.date),callback:function ($$v) {_vm.$set(_vm.dataObj, "date", $$v)},expression:"dataObj.date"}}):(_vm.dataObj.dateType === 1)?_c('a-week-picker',{staticClass:"left-date-content-show",staticStyle:{"width":"103px"},attrs:{"allowClear":false,"placeholder":"Select week","format":"YYYY年wo","getCalendarContainer":function (triggerNode) {
|
|
113929
114706
|
return triggerNode.parentNode || _vm.document.body;
|
|
113930
114707
|
}},on:{"change":_vm.onChange},model:{value:(_vm.dataObj.date),callback:function ($$v) {_vm.$set(_vm.dataObj, "date", $$v)},expression:"dataObj.date"}}):_c('a-month-picker',{staticClass:"left-date-content-show",staticStyle:{"width":"103px"},attrs:{"allowClear":false,"placeholder":"Select month","format":"YYYY年MM月","getCalendarContainer":function (triggerNode) {
|
|
113931
114708
|
return triggerNode.parentNode || _vm.document.body;
|
|
113932
114709
|
}},on:{"change":_vm.onChange},model:{value:(_vm.dataObj.date),callback:function ($$v) {_vm.$set(_vm.dataObj, "date", $$v)},expression:"dataObj.date"}}),_c('a-icon',{attrs:{"type":"right"},on:{"click":function($event){return _vm.changeDate(true)}}})],1),_c('div',{staticClass:"left-date-button"},[_c('a-button',{attrs:{"disabled":_vm.loading},on:{"click":_vm.resetDate}},[_vm._v(_vm._s(_vm.dataObj.dateType === 0 ? '今天' : _vm.dataObj.dateType === 1 ? '本周' : '本月'))]),_c('a-icon',{staticStyle:{"margin-left":"20px","color":"#999","font-size":"20px"},attrs:{"type":"redo"},on:{"click":function($event){return _vm.debounceGetDataListFunction()}}})],1)]),_c('div',{staticClass:"right"},[_c('div',{staticClass:"right-content"},[_c('div',{staticClass:"right-content-item"},[_c('div',{staticClass:"color-0"}),_c('div',{staticClass:"text"},[_vm._v("占用")])]),_c('div',{staticClass:"right-content-item"},[_c('div',{staticClass:"color-1"}),_c('div',{staticClass:"text"},[_vm._v("待审批")])]),_c('div',{staticClass:"right-content-item"},[_c('div',{staticClass:"color-2"}),_c('div',{staticClass:"text"},[_vm._v("冲突")])])])])]),_c('div',{staticClass:"conference-room-body"},[_c('a-spin',{staticStyle:{"width":"100%"},attrs:{"spinning":_vm.loading}},[_c('table',{staticClass:"table",attrs:{"cellspacing":"0","cellpadding":"0","border":"0"}},[_c('thead',[_c('tr',[_c('th',{attrs:{"colspan":"1"}},[_c('div',{staticStyle:{"display":"flex","justify-content":"center","align-items":"center","font-size":"16px"}},[_c('img',{staticStyle:{"width":"20px","margin-right":"5px"},attrs:{"src":__webpack_require__(44193),"alt":""}}),_c('div',[_vm._v(_vm._s(_vm.title))])])]),_c('th',{attrs:{"colspan":(_vm.dateTime.length * (_vm.dataObj.dateType === 0 ? 2 : 1)) || 1}},[(_vm.dataObj.dateShow)?_c('div',{staticStyle:{"display":"flex","justify-content":"center","align-items":"center","font-size":"14px"}},[_c('div',[_vm._v(_vm._s(_vm.moment(_vm.dataObj.dateShow).format(_vm.dataObj.dateType === 0 ? 'MM月DD日' : _vm.dataObj.dateType === 1 ? 'YYYY年wo' : 'YYYY年MM月')))]),(_vm.dataObj.dateType === 0)?_c('div',[_vm._v("("+_vm._s(_vm.moment(_vm.dataObj.dateShow).format('dddd'))+")")]):_vm._e(),(_vm.dataObj.dateType === 0)?_c('div',[_vm._v("单位:时")]):_vm._e(),(_vm.dataObj.dateType === 2)?_c('div',[_vm._v("("+_vm._s(_vm.moment(_vm.dataObj.dateShow).daysInMonth())+"天)")]):_vm._e()]):_vm._e()])])]),_c('tbody',[_c('tr',[_c('td',{staticStyle:{"background-color":"#fff","padding":"0"},attrs:{"colspan":"1"}},[_c('div',{staticStyle:{"display":"flex","justify-content":"space-between"}},[_c('a-input',{staticClass:"input-no-border",attrs:{"placeholder":"请输入会议室"},model:{value:(_vm.searchKey),callback:function ($$v) {_vm.searchKey=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:"searchKey"}}),_c('div',{staticStyle:{"display":"flex","align-items":"center","justify-content":"center"}},[_c('div',{staticStyle:{"width":"30px","text-align":"center"}},[_c('img',{staticStyle:{"width":"20px","cursor":"pointer"},attrs:{"src":__webpack_require__(85081),"alt":""},on:{"click":_vm.search}})])])],1)]),_vm._l((_vm.dateTime),function(i){return _c('td',{directives:[{name:"show",rawName:"v-show",value:(_vm.dateTime.length),expression:"dateTime.length"}],attrs:{"colspan":_vm.dataObj.dateType === 0 ? 2 : 1}},[_vm._v(_vm._s(i)+" ")])}),_c('td',{directives:[{name:"show",rawName:"v-show",value:(!_vm.dateTime.length),expression:"!dateTime.length"}],attrs:{"colspan":"1"}})],2),_vm._l((_vm.dataList),function(item,index){return _c('tr',[_c('td',{attrs:{"colspan":"1"}},[_c('div',{staticClass:"ellipsis",attrs:{"title":item.hysName}},[_vm._v(" "+_vm._s(item.hysName)+" ")])]),_vm._l((_vm.getdateTime(item.dateTime)),function(el){return _c('td',{directives:[{name:"show",rawName:"v-show",value:(_vm.dateTime.length),expression:"dateTime.length"}],class:'td-bg-' + el.status,staticStyle:{"padding":"0"},attrs:{"colspan":"1"}},[(el.dataList.length)?_c('a-tooltip',{attrs:{"placement":"bottom","overlayClassName":"tooltip-data"}},[_c('template',{slot:"title"},[_c('div',{staticStyle:{"max-height":"460px","overflow-y":"auto"}},_vm._l((el.dataList),function(info){return _c('div',{staticClass:"tooltip-data-body"},[_c('div',{staticClass:"tooltip-data-body-item"},_vm._l((_vm.dataObj.dataColumns),function(j){return _c('div',{attrs:{"title":j.name + ':' + info[j.model]}},[_vm._v(" "+_vm._s(j.name)+":"+_vm._s(info[j.model])+" ")])}),0)])}),0)]),_c('div',{staticStyle:{"width":"100%","height":"32px","line-height":"32px"}},[_vm._v(_vm._s(el.dataList.length > 1 ? el.dataList.length : ' '))])],2):_c('div',{staticStyle:{"width":"100%","height":"32px","line-height":"32px"}},[_vm._v(" ")])],1)}),_c('td',{directives:[{name:"show",rawName:"v-show",value:(!_vm.dateTime.length),expression:"!dateTime.length"}],attrs:{"colspan":"1"}})],2)})],2)])])],1),_c('div',{staticClass:"conference-room-table"},[_c('a-table',{attrs:{"columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"size":"small","rowKey":"id","loading":_vm.tableLoading},on:{"change":_vm.handleTableChange},scopedSlots:_vm._u([{key:"ableCancel",fn:function(text,record){return (text == '1')?_c('a',{attrs:{"href":"javascript:;"},on:{"click":function($event){return _vm.closeRomm(record.id)}}},[_vm._v("取消")]):_vm._e()}}],null,true)})],1)])])}
|
|
113933
|
-
var
|
|
114710
|
+
var conferenceRoomModalvue_type_template_id_627f4e94_scoped_true_staticRenderFns = []
|
|
113934
114711
|
|
|
113935
114712
|
|
|
113936
|
-
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=template&id=
|
|
114713
|
+
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=template&id=627f4e94&scoped=true
|
|
113937
114714
|
|
|
114715
|
+
// EXTERNAL MODULE: ./src/form/util/tableUtil.js
|
|
114716
|
+
var tableUtil = __webpack_require__(5229);
|
|
113938
114717
|
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=script&lang=js
|
|
113939
114718
|
|
|
113940
114719
|
|
|
@@ -114099,6 +114878,7 @@ var conferenceRoomModalvue_type_template_id_057ba4e5_scoped_true_staticRenderFns
|
|
|
114099
114878
|
|
|
114100
114879
|
|
|
114101
114880
|
|
|
114881
|
+
|
|
114102
114882
|
/* harmony default export */ const conferenceRoomModalvue_type_script_lang_js = ({
|
|
114103
114883
|
name: "TaskScriptAddModal",
|
|
114104
114884
|
inject: {
|
|
@@ -114174,7 +114954,7 @@ var conferenceRoomModalvue_type_template_id_057ba4e5_scoped_true_staticRenderFns
|
|
|
114174
114954
|
debugger;
|
|
114175
114955
|
let arr = [];
|
|
114176
114956
|
dataList.forEach(item => {
|
|
114177
|
-
if (
|
|
114957
|
+
if ((0,tableUtil/* isTableWidget */.X2)(item) && item.columns && item.columns.length > 0) {
|
|
114178
114958
|
arr.push(...item.columns);
|
|
114179
114959
|
} else if (['all-lay-out', 'grid', 'grid-lay-out'].includes(item.type) && item.columns && item.columns.length > 0) {
|
|
114180
114960
|
item.columns.forEach(i => {
|
|
@@ -114393,15 +115173,15 @@ var conferenceRoomModalvue_type_template_id_057ba4e5_scoped_true_staticRenderFns
|
|
|
114393
115173
|
});
|
|
114394
115174
|
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=script&lang=js
|
|
114395
115175
|
/* harmony default export */ const component_conferenceRoomModalvue_type_script_lang_js = (conferenceRoomModalvue_type_script_lang_js);
|
|
114396
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=0&id=
|
|
115176
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=0&id=627f4e94&prod&lang=less&scoped=true
|
|
114397
115177
|
// extracted by mini-css-extract-plugin
|
|
114398
115178
|
|
|
114399
|
-
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=0&id=
|
|
115179
|
+
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=0&id=627f4e94&prod&lang=less&scoped=true
|
|
114400
115180
|
|
|
114401
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=1&id=
|
|
115181
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=1&id=627f4e94&prod&lang=css
|
|
114402
115182
|
// extracted by mini-css-extract-plugin
|
|
114403
115183
|
|
|
114404
|
-
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=1&id=
|
|
115184
|
+
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue?vue&type=style&index=1&id=627f4e94&prod&lang=css
|
|
114405
115185
|
|
|
114406
115186
|
;// ./src/form/modules/components/conferenceRoom/component/conferenceRoomModal.vue
|
|
114407
115187
|
|
|
@@ -114415,11 +115195,11 @@ var conferenceRoomModalvue_type_template_id_057ba4e5_scoped_true_staticRenderFns
|
|
|
114415
115195
|
|
|
114416
115196
|
var conferenceRoomModal_component = (0,componentNormalizer/* default */.A)(
|
|
114417
115197
|
component_conferenceRoomModalvue_type_script_lang_js,
|
|
114418
|
-
|
|
114419
|
-
|
|
115198
|
+
conferenceRoomModalvue_type_template_id_627f4e94_scoped_true_render,
|
|
115199
|
+
conferenceRoomModalvue_type_template_id_627f4e94_scoped_true_staticRenderFns,
|
|
114420
115200
|
false,
|
|
114421
115201
|
null,
|
|
114422
|
-
"
|
|
115202
|
+
"627f4e94",
|
|
114423
115203
|
null
|
|
114424
115204
|
|
|
114425
115205
|
)
|
|
@@ -114499,9 +115279,9 @@ var conferenceRoom_component_component = (0,componentNormalizer/* default */.A)(
|
|
|
114499
115279
|
)
|
|
114500
115280
|
|
|
114501
115281
|
/* harmony default export */ const conferenceRoom_component = (conferenceRoom_component_component.exports);
|
|
114502
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/widgetSetup.vue?vue&type=template&id=
|
|
114503
|
-
var
|
|
114504
|
-
var
|
|
115282
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/widgetSetup.vue?vue&type=template&id=b87a9ec2&scoped=true
|
|
115283
|
+
var widgetSetupvue_type_template_id_b87a9ec2_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control"},[_c('div',{staticClass:"form_wrap"},[_c('div',{staticClass:"form"},[_c('a-form-model',[_c('a-form-model-item',{ref:"title",attrs:{"label":"授权人","prop":"title"}},[_c('select-app-modal',{attrs:{"widget":_vm.widget}})],1),_c('a-form-model-item',{attrs:{"label":"数据源"}},[_c('a-select',{attrs:{"allowClear":"","placeholder":"请选择数据源"},model:{value:(_vm.widget.dataKey),callback:function ($$v) {_vm.$set(_vm.widget, "dataKey", $$v)},expression:"widget.dataKey"}},_vm._l((_vm.dataKeyList),function(info){return _c('a-select-option',{key:info.model,attrs:{"title":info.name,"value":info.model}},[_vm._v(" "+_vm._s(info.name)+" ")])}),1)],1),_c('a-form-model-item',{attrs:{"label":"数据项"}},[_c('a-select',{attrs:{"allowClear":"","show-search":"","option-filter-prop":"children","filter-option":_vm.filterOption,"placeholder":"请选择数据项","mode":"multiple"},model:{value:(_vm.widget.dataColumns),callback:function ($$v) {_vm.$set(_vm.widget, "dataColumns", $$v)},expression:"widget.dataColumns"}},_vm._l((_vm.dataColumnsList),function(info){return _c('a-select-option',{key:info.model,attrs:{"title":info.name,"value":info.model}},[_vm._v(" "+_vm._s(info.name)+" ")])}),1)],1),_c('a-form-model-item',{attrs:{"label":"开始时间"}},[_c('a-select',{attrs:{"allowClear":"","show-search":"","option-filter-prop":"children","filter-option":_vm.filterOption,"placeholder":"请选择时间","mode":"multiple"},model:{value:(_vm.widget.dateStartList),callback:function ($$v) {_vm.$set(_vm.widget, "dateStartList", $$v)},expression:"widget.dateStartList"}},_vm._l((_vm.dateDateList),function(info){return _c('a-select-option',{key:info.model,attrs:{"title":info.name,"value":info.model}},[_vm._v(" "+_vm._s(info.name)+" ")])}),1)],1),_c('a-form-model-item',{attrs:{"label":"结束时间"}},[_c('a-select',{attrs:{"allowClear":"","show-search":"","option-filter-prop":"children","filter-option":_vm.filterOption,"placeholder":"请选择时间","mode":"multiple"},model:{value:(_vm.widget.dateEndList),callback:function ($$v) {_vm.$set(_vm.widget, "dateEndList", $$v)},expression:"widget.dateEndList"}},_vm._l((_vm.dateDateList),function(info){return _c('a-select-option',{key:info.model,attrs:{"title":info.name,"value":info.model}},[_vm._v(" "+_vm._s(info.name)+" ")])}),1)],1)],1)],1)])])}
|
|
115284
|
+
var widgetSetupvue_type_template_id_b87a9ec2_scoped_true_staticRenderFns = []
|
|
114505
115285
|
|
|
114506
115286
|
|
|
114507
115287
|
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/component/selectAppModal.vue?vue&type=template&id=397a2098&scoped=true
|
|
@@ -114632,6 +115412,7 @@ var component_selectAppModal_component = (0,componentNormalizer/* default */.A)(
|
|
|
114632
115412
|
//
|
|
114633
115413
|
|
|
114634
115414
|
|
|
115415
|
+
|
|
114635
115416
|
/* harmony default export */ const conferenceRoom_widgetSetupvue_type_script_lang_js = ({
|
|
114636
115417
|
name: "widgetSetup",
|
|
114637
115418
|
data() {
|
|
@@ -114668,7 +115449,7 @@ var component_selectAppModal_component = (0,componentNormalizer/* default */.A)(
|
|
|
114668
115449
|
//时间
|
|
114669
115450
|
this.dateDateList.push(item);
|
|
114670
115451
|
this.dataColumnsList.push(item);
|
|
114671
|
-
} else if (
|
|
115452
|
+
} else if ((0,tableUtil/* isTableWidget */.X2)(item) && item.columns && item.columns.length > 0) {
|
|
114672
115453
|
if (item.columns.some(i => i.type === 'select')) arr.push(...item.columns.filter(i => i.type === 'select'));
|
|
114673
115454
|
if (item.columns.some(i => ['date', 'time'].includes(i.type))) this.dateDateList.push(...item.columns.filter(i => ['date', 'time'].includes(i.type)));
|
|
114674
115455
|
this.dataColumnsList.push(...item.columns);
|
|
@@ -114700,10 +115481,10 @@ var component_selectAppModal_component = (0,componentNormalizer/* default */.A)(
|
|
|
114700
115481
|
});
|
|
114701
115482
|
;// ./src/form/modules/components/conferenceRoom/widgetSetup.vue?vue&type=script&lang=js
|
|
114702
115483
|
/* harmony default export */ const components_conferenceRoom_widgetSetupvue_type_script_lang_js = (conferenceRoom_widgetSetupvue_type_script_lang_js);
|
|
114703
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/widgetSetup.vue?vue&type=style&index=0&id=
|
|
115484
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/conferenceRoom/widgetSetup.vue?vue&type=style&index=0&id=b87a9ec2&prod&lang=less&scoped=true
|
|
114704
115485
|
// extracted by mini-css-extract-plugin
|
|
114705
115486
|
|
|
114706
|
-
;// ./src/form/modules/components/conferenceRoom/widgetSetup.vue?vue&type=style&index=0&id=
|
|
115487
|
+
;// ./src/form/modules/components/conferenceRoom/widgetSetup.vue?vue&type=style&index=0&id=b87a9ec2&prod&lang=less&scoped=true
|
|
114707
115488
|
|
|
114708
115489
|
;// ./src/form/modules/components/conferenceRoom/widgetSetup.vue
|
|
114709
115490
|
|
|
@@ -114716,11 +115497,11 @@ var component_selectAppModal_component = (0,componentNormalizer/* default */.A)(
|
|
|
114716
115497
|
|
|
114717
115498
|
var conferenceRoom_widgetSetup_component = (0,componentNormalizer/* default */.A)(
|
|
114718
115499
|
components_conferenceRoom_widgetSetupvue_type_script_lang_js,
|
|
114719
|
-
|
|
114720
|
-
|
|
115500
|
+
widgetSetupvue_type_template_id_b87a9ec2_scoped_true_render,
|
|
115501
|
+
widgetSetupvue_type_template_id_b87a9ec2_scoped_true_staticRenderFns,
|
|
114721
115502
|
false,
|
|
114722
115503
|
null,
|
|
114723
|
-
"
|
|
115504
|
+
"b87a9ec2",
|
|
114724
115505
|
null
|
|
114725
115506
|
|
|
114726
115507
|
)
|
|
@@ -117503,6 +118284,7 @@ let widgetSetupList = {
|
|
|
117503
118284
|
//单行文本
|
|
117504
118285
|
//下拉选择
|
|
117505
118286
|
//子表单
|
|
118287
|
+
//新子表单
|
|
117506
118288
|
//地区选择
|
|
117507
118289
|
//多行文本
|
|
117508
118290
|
//计数器
|
|
@@ -117542,6 +118324,7 @@ let components_componentList = {
|
|
|
117542
118324
|
inputComponent: Input.component,
|
|
117543
118325
|
selectComponent: Select.component,
|
|
117544
118326
|
tableComponent: Table.component,
|
|
118327
|
+
newTableComponent: NewTable.component,
|
|
117545
118328
|
textareaComponent: Textarea.component,
|
|
117546
118329
|
numberComponent: components_Number.component,
|
|
117547
118330
|
switchComponent: Switch.component,
|
|
@@ -117584,6 +118367,7 @@ let components_widgetDesignList = {
|
|
|
117584
118367
|
inputWidgetDesign: Input.widgetDesign,
|
|
117585
118368
|
selectWidgetDesign: Select.widgetDesign,
|
|
117586
118369
|
tableWidgetDesign: Table.widgetDesign,
|
|
118370
|
+
newTableWidgetDesign: NewTable.widgetDesign,
|
|
117587
118371
|
textareaWidgetDesign: Textarea.widgetDesign,
|
|
117588
118372
|
numberWidgetDesign: components_Number.widgetDesign,
|
|
117589
118373
|
switchWidgetDesign: Switch.widgetDesign,
|
|
@@ -117622,6 +118406,7 @@ let components_widgetSetupList = {
|
|
|
117622
118406
|
inputWidgetSetup: Input.widgetSetup,
|
|
117623
118407
|
selectWidgetSetup: Select.widgetSetup,
|
|
117624
118408
|
tableWidgetSetup: Table.widgetSetup,
|
|
118409
|
+
newTableWidgetSetup: NewTable.widgetSetup,
|
|
117625
118410
|
textareaWidgetSetup: Textarea.widgetSetup,
|
|
117626
118411
|
numberWidgetSetup: components_Number.widgetSetup,
|
|
117627
118412
|
switchWidgetSetup: Switch.widgetSetup,
|
|
@@ -117895,6 +118680,193 @@ const Bus = new (vue__WEBPACK_IMPORTED_MODULE_0___default())();
|
|
|
117895
118680
|
|
|
117896
118681
|
/***/ },
|
|
117897
118682
|
|
|
118683
|
+
/***/ 33883
|
|
118684
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
118685
|
+
|
|
118686
|
+
"use strict";
|
|
118687
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
118688
|
+
/* harmony export */ $i: () => (/* binding */ fetchDictOptions),
|
|
118689
|
+
/* harmony export */ sE: () => (/* binding */ prefetchTableDictData),
|
|
118690
|
+
/* harmony export */ ue: () => (/* binding */ clearDictCache)
|
|
118691
|
+
/* harmony export */ });
|
|
118692
|
+
/* unused harmony export getDictCacheKey */
|
|
118693
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7068);
|
|
118694
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
118695
|
+
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48753);
|
|
118696
|
+
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
118697
|
+
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65546);
|
|
118698
|
+
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
118699
|
+
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33975);
|
|
118700
|
+
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
118701
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53304);
|
|
118702
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
118703
|
+
/* harmony import */ var core_js_modules_es_set_difference_v2_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92088);
|
|
118704
|
+
/* harmony import */ var core_js_modules_es_set_difference_v2_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_difference_v2_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
118705
|
+
/* harmony import */ var core_js_modules_es_set_intersection_v2_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(27302);
|
|
118706
|
+
/* harmony import */ var core_js_modules_es_set_intersection_v2_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_intersection_v2_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
118707
|
+
/* harmony import */ var core_js_modules_es_set_is_disjoint_from_v2_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(90575);
|
|
118708
|
+
/* harmony import */ var core_js_modules_es_set_is_disjoint_from_v2_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_is_disjoint_from_v2_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
118709
|
+
/* harmony import */ var core_js_modules_es_set_is_subset_of_v2_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12742);
|
|
118710
|
+
/* harmony import */ var core_js_modules_es_set_is_subset_of_v2_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_is_subset_of_v2_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
118711
|
+
/* harmony import */ var core_js_modules_es_set_is_superset_of_v2_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(99149);
|
|
118712
|
+
/* harmony import */ var core_js_modules_es_set_is_superset_of_v2_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_is_superset_of_v2_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
118713
|
+
/* harmony import */ var core_js_modules_es_set_symmetric_difference_v2_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(81938);
|
|
118714
|
+
/* harmony import */ var core_js_modules_es_set_symmetric_difference_v2_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_symmetric_difference_v2_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
118715
|
+
/* harmony import */ var core_js_modules_es_set_union_v2_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(42588);
|
|
118716
|
+
/* harmony import */ var core_js_modules_es_set_union_v2_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set_union_v2_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
118717
|
+
/* harmony import */ var _form_api_manage__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(5335);
|
|
118718
|
+
|
|
118719
|
+
|
|
118720
|
+
|
|
118721
|
+
|
|
118722
|
+
|
|
118723
|
+
|
|
118724
|
+
|
|
118725
|
+
|
|
118726
|
+
|
|
118727
|
+
|
|
118728
|
+
|
|
118729
|
+
|
|
118730
|
+
|
|
118731
|
+
const cache = Object.create(null);
|
|
118732
|
+
const pending = Object.create(null);
|
|
118733
|
+
function parseUrlParams(url) {
|
|
118734
|
+
const obj = {};
|
|
118735
|
+
const strs = url.split('&');
|
|
118736
|
+
for (let i = 0; i < strs.length; i++) {
|
|
118737
|
+
const pair = strs[i].split('=');
|
|
118738
|
+
if (pair[0]) obj[pair[0]] = pair[1];
|
|
118739
|
+
}
|
|
118740
|
+
return obj;
|
|
118741
|
+
}
|
|
118742
|
+
|
|
118743
|
+
/** 根据字典配置生成唯一缓存键(同行子表单多行共用同一数据源) */
|
|
118744
|
+
function getDictCacheKey(options = {}, applyId) {
|
|
118745
|
+
if (options.remoteNumber === '4') {
|
|
118746
|
+
return `custom:${JSON.stringify(options.designDataList || [])}`;
|
|
118747
|
+
}
|
|
118748
|
+
if (options.dictName) {
|
|
118749
|
+
return `dict:${options.dictName}`;
|
|
118750
|
+
}
|
|
118751
|
+
if (options.dictTable) {
|
|
118752
|
+
return `table:${options.dictTable}`;
|
|
118753
|
+
}
|
|
118754
|
+
if (options.dictUrl) {
|
|
118755
|
+
const base = options.dictUrl.split('?')[0];
|
|
118756
|
+
const query = options.dictUrl.indexOf('?') !== -1 ? options.dictUrl.split('?')[1] : '';
|
|
118757
|
+
const applyPart = applyId ? `&applyId=${applyId}` : '';
|
|
118758
|
+
return `url:${base}?${query}${applyPart}`;
|
|
118759
|
+
}
|
|
118760
|
+
if (Array.isArray(options.options) && options.options.length) {
|
|
118761
|
+
return `static:${JSON.stringify(options.options)}`;
|
|
118762
|
+
}
|
|
118763
|
+
return null;
|
|
118764
|
+
}
|
|
118765
|
+
function mapDictTableResult(result) {
|
|
118766
|
+
return (result || []).map(item => ({
|
|
118767
|
+
value: item.dictValue,
|
|
118768
|
+
text: item.dictLabel
|
|
118769
|
+
}));
|
|
118770
|
+
}
|
|
118771
|
+
function mapDictUrlResult(result, useDepart) {
|
|
118772
|
+
return (result || []).map(item => ({
|
|
118773
|
+
value: useDepart ? item.id || item.dataKey : item.dataKey,
|
|
118774
|
+
text: useDepart ? item.departName || item.dataValue : item.dataValue
|
|
118775
|
+
}));
|
|
118776
|
+
}
|
|
118777
|
+
async function loadDictOptions(options = {}, applyId) {
|
|
118778
|
+
if (options.remoteNumber === '4') {
|
|
118779
|
+
return (options.designDataList || []).map(item => ({
|
|
118780
|
+
value: item.value,
|
|
118781
|
+
text: item.label
|
|
118782
|
+
}));
|
|
118783
|
+
}
|
|
118784
|
+
if (options.dictName) {
|
|
118785
|
+
const res = await (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_12__/* .getAction */ .Th)(`/sys/dict/getDictItems/${options.dictName}`);
|
|
118786
|
+
if (res.success) return res.result || [];
|
|
118787
|
+
return [];
|
|
118788
|
+
}
|
|
118789
|
+
if (options.dictTable) {
|
|
118790
|
+
const res = await (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_12__/* .getAction */ .Th)('/form/formdesiger/getDataCenterDict', {
|
|
118791
|
+
tableName: options.dictTable
|
|
118792
|
+
});
|
|
118793
|
+
if (res.success) return mapDictTableResult(res.result);
|
|
118794
|
+
return [];
|
|
118795
|
+
}
|
|
118796
|
+
if (options.dictUrl) {
|
|
118797
|
+
if (options.dictUrl.indexOf('?') !== -1) {
|
|
118798
|
+
const list = options.dictUrl.split('?');
|
|
118799
|
+
const url = list[0];
|
|
118800
|
+
const params = parseUrlParams(list[1]);
|
|
118801
|
+
const res = await (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_12__/* .getAction */ .Th)(url, params);
|
|
118802
|
+
if (res.success) return mapDictUrlResult(res.result, false);
|
|
118803
|
+
return [];
|
|
118804
|
+
}
|
|
118805
|
+
const params = applyId ? {
|
|
118806
|
+
applyId
|
|
118807
|
+
} : {};
|
|
118808
|
+
const res = await (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_12__/* .getAction */ .Th)(options.dictUrl, params);
|
|
118809
|
+
if (res.success) return mapDictUrlResult(res.result, true);
|
|
118810
|
+
return [];
|
|
118811
|
+
}
|
|
118812
|
+
if (Array.isArray(options.options)) {
|
|
118813
|
+
return options.options;
|
|
118814
|
+
}
|
|
118815
|
+
return [];
|
|
118816
|
+
}
|
|
118817
|
+
|
|
118818
|
+
/**
|
|
118819
|
+
* 获取字典选项(带内存缓存与并发去重)
|
|
118820
|
+
* @returns {Promise<Array<{value, text}>>}
|
|
118821
|
+
*/
|
|
118822
|
+
function fetchDictOptions(options = {}, applyId) {
|
|
118823
|
+
const cacheKey = getDictCacheKey(options, applyId);
|
|
118824
|
+
if (!cacheKey) {
|
|
118825
|
+
return Promise.resolve(Array.isArray(options.options) ? options.options : []);
|
|
118826
|
+
}
|
|
118827
|
+
if (cache[cacheKey]) {
|
|
118828
|
+
return Promise.resolve(cache[cacheKey]);
|
|
118829
|
+
}
|
|
118830
|
+
if (pending[cacheKey]) {
|
|
118831
|
+
return pending[cacheKey];
|
|
118832
|
+
}
|
|
118833
|
+
pending[cacheKey] = loadDictOptions(options, applyId).then(data => {
|
|
118834
|
+
cache[cacheKey] = data;
|
|
118835
|
+
delete pending[cacheKey];
|
|
118836
|
+
return data;
|
|
118837
|
+
}).catch(err => {
|
|
118838
|
+
delete pending[cacheKey];
|
|
118839
|
+
throw err;
|
|
118840
|
+
});
|
|
118841
|
+
return pending[cacheKey];
|
|
118842
|
+
}
|
|
118843
|
+
|
|
118844
|
+
/** 子表单列字典预加载:每类数据源只请求一次 */
|
|
118845
|
+
function prefetchTableDictData(columns = [], applyId) {
|
|
118846
|
+
const dictTypes = ['select', 'radio', 'checkbox'];
|
|
118847
|
+
const seen = new Set();
|
|
118848
|
+
const tasks = [];
|
|
118849
|
+
columns.forEach(col => {
|
|
118850
|
+
if (!dictTypes.includes(col.type)) return;
|
|
118851
|
+
const key = getDictCacheKey(col.options, applyId);
|
|
118852
|
+
if (!key || seen.has(key)) return;
|
|
118853
|
+
seen.add(key);
|
|
118854
|
+
tasks.push(fetchDictOptions(col.options, applyId));
|
|
118855
|
+
});
|
|
118856
|
+
return Promise.all(tasks);
|
|
118857
|
+
}
|
|
118858
|
+
function clearDictCache(cacheKey) {
|
|
118859
|
+
if (cacheKey) {
|
|
118860
|
+
delete cache[cacheKey];
|
|
118861
|
+
delete pending[cacheKey];
|
|
118862
|
+
} else {
|
|
118863
|
+
Object.keys(cache).forEach(k => delete cache[k]);
|
|
118864
|
+
Object.keys(pending).forEach(k => delete pending[k]);
|
|
118865
|
+
}
|
|
118866
|
+
}
|
|
118867
|
+
|
|
118868
|
+
/***/ },
|
|
118869
|
+
|
|
117898
118870
|
/***/ 36113
|
|
117899
118871
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
117900
118872
|
|
|
@@ -117910,6 +118882,8 @@ const Bus = new (vue__WEBPACK_IMPORTED_MODULE_0___default())();
|
|
|
117910
118882
|
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
117911
118883
|
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65546);
|
|
117912
118884
|
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
118885
|
+
/* harmony import */ var _tableUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5229);
|
|
118886
|
+
|
|
117913
118887
|
|
|
117914
118888
|
|
|
117915
118889
|
|
|
@@ -117955,7 +118929,7 @@ function getRecursionWidget(widgetList) {
|
|
|
117955
118929
|
columnsItem.list.p_model = item.model;
|
|
117956
118930
|
func(res_list, columnsItem.list);
|
|
117957
118931
|
});
|
|
117958
|
-
} else if (
|
|
118932
|
+
} else if ((0,_tableUtil__WEBPACK_IMPORTED_MODULE_3__/* .isTableWidget */ .X2)(item)) {
|
|
117959
118933
|
// columns
|
|
117960
118934
|
item.columns.p_type = item.type;
|
|
117961
118935
|
item.columns.p_model = item.model;
|
|
@@ -118068,6 +119042,166 @@ const getMathResult = (method, arr, sub) => {
|
|
|
118068
119042
|
|
|
118069
119043
|
/***/ },
|
|
118070
119044
|
|
|
119045
|
+
/***/ 5229
|
|
119046
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
119047
|
+
|
|
119048
|
+
"use strict";
|
|
119049
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
119050
|
+
/* harmony export */ Ce: () => (/* binding */ isTableUseVirtualScroll),
|
|
119051
|
+
/* harmony export */ K2: () => (/* binding */ shouldUseLightweightTableRows),
|
|
119052
|
+
/* harmony export */ Oi: () => (/* binding */ LARGE_TABLE_ROW_THRESHOLD),
|
|
119053
|
+
/* harmony export */ X2: () => (/* binding */ isTableWidget),
|
|
119054
|
+
/* harmony export */ eo: () => (/* binding */ createLightweightTableRows),
|
|
119055
|
+
/* harmony export */ gj: () => (/* binding */ validateSubTableRows),
|
|
119056
|
+
/* harmony export */ qh: () => (/* binding */ getTableVirtualKeeps),
|
|
119057
|
+
/* harmony export */ r: () => (/* binding */ createLightweightTableRow),
|
|
119058
|
+
/* harmony export */ yk: () => (/* binding */ createFullTableRow)
|
|
119059
|
+
/* harmony export */ });
|
|
119060
|
+
/* unused harmony exports TABLE_WIDGET_TYPES, isNewTableWidget, isLightweightTableRow */
|
|
119061
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7068);
|
|
119062
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
119063
|
+
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(48753);
|
|
119064
|
+
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
119065
|
+
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20362);
|
|
119066
|
+
/* harmony import */ var core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
119067
|
+
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65546);
|
|
119068
|
+
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
119069
|
+
/* harmony import */ var core_js_modules_es_json_parse_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12822);
|
|
119070
|
+
/* harmony import */ var core_js_modules_es_json_parse_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_parse_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
119071
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53304);
|
|
119072
|
+
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
119073
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35064);
|
|
119074
|
+
/* harmony import */ var core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
119075
|
+
|
|
119076
|
+
|
|
119077
|
+
|
|
119078
|
+
|
|
119079
|
+
|
|
119080
|
+
|
|
119081
|
+
|
|
119082
|
+
const TABLE_WIDGET_TYPES = ['table', 'newTable'];
|
|
119083
|
+
|
|
119084
|
+
/** 超过此行数时使用轻量行结构,避免深拷贝导致内存崩溃 */
|
|
119085
|
+
const LARGE_TABLE_ROW_THRESHOLD = 100;
|
|
119086
|
+
function isTableWidget(widget) {
|
|
119087
|
+
return widget && TABLE_WIDGET_TYPES.includes(widget.type);
|
|
119088
|
+
}
|
|
119089
|
+
function isNewTableWidget(widget) {
|
|
119090
|
+
return widget && widget.type === 'newTable';
|
|
119091
|
+
}
|
|
119092
|
+
|
|
119093
|
+
/** 仅原子表单在未开分页时使用虚拟滚动 */
|
|
119094
|
+
function isTableUseVirtualScroll(widget) {
|
|
119095
|
+
var _widget$options;
|
|
119096
|
+
return widget && widget.type === 'table' && !((_widget$options = widget.options) !== null && _widget$options !== void 0 && _widget$options.supportPage);
|
|
119097
|
+
}
|
|
119098
|
+
function getTableVirtualKeeps(widget) {
|
|
119099
|
+
if (!widget || !widget.options) return 50;
|
|
119100
|
+
if (widget.options.virtualKeeps) return widget.options.virtualKeeps;
|
|
119101
|
+
return 50;
|
|
119102
|
+
}
|
|
119103
|
+
function shouldUseLightweightTableRows(rowCount) {
|
|
119104
|
+
return rowCount > LARGE_TABLE_ROW_THRESHOLD;
|
|
119105
|
+
}
|
|
119106
|
+
function createLightweightTableRow(model, index, seed = Date.now()) {
|
|
119107
|
+
return {
|
|
119108
|
+
model,
|
|
119109
|
+
_lightweight: true,
|
|
119110
|
+
hashKey: `${model}_${index}_${seed}`,
|
|
119111
|
+
rand_id: `${index}_${seed}`,
|
|
119112
|
+
index
|
|
119113
|
+
};
|
|
119114
|
+
}
|
|
119115
|
+
function createLightweightTableRows(model, rowCount, seed = Date.now()) {
|
|
119116
|
+
return Array.from({
|
|
119117
|
+
length: rowCount
|
|
119118
|
+
}, (_, index) => createLightweightTableRow(model, index, seed));
|
|
119119
|
+
}
|
|
119120
|
+
function createFullTableRow(template) {
|
|
119121
|
+
const row = JSON.parse(JSON.stringify(template));
|
|
119122
|
+
row._clone = true;
|
|
119123
|
+
row.hashKey = `${Date.now()}${Math.ceil(Math.random() * 10000)}`;
|
|
119124
|
+
row.rand_id = Math.random().toString();
|
|
119125
|
+
return row;
|
|
119126
|
+
}
|
|
119127
|
+
function isLightweightTableRow(row) {
|
|
119128
|
+
return row && row._lightweight === true;
|
|
119129
|
+
}
|
|
119130
|
+
function isEmptyValue(value) {
|
|
119131
|
+
return value === '' || value === undefined || value === null || Array.isArray(value) && !value.length;
|
|
119132
|
+
}
|
|
119133
|
+
|
|
119134
|
+
/** 不依赖 DOM,遍历子表单全部行做必填/最少选校验(分页、虚拟滚动下未挂载行也能拦截) */
|
|
119135
|
+
function validateSubTableRows(tables, models, {
|
|
119136
|
+
isCorrectAudit = false
|
|
119137
|
+
} = {}) {
|
|
119138
|
+
const errors = [];
|
|
119139
|
+
for (const table of tables) {
|
|
119140
|
+
var _table$options, _table$options2;
|
|
119141
|
+
if (!((_table$options = table.options) !== null && _table$options !== void 0 && _table$options.canView) || (_table$options2 = table.options) !== null && _table$options2 !== void 0 && _table$options2.disabled) continue;
|
|
119142
|
+
const tableModel = table.model;
|
|
119143
|
+
const rows = models[tableModel];
|
|
119144
|
+
const columns = table.columns || [];
|
|
119145
|
+
for (const col of columns) {
|
|
119146
|
+
var _col$options, _col$options2;
|
|
119147
|
+
if (!((_col$options = col.options) !== null && _col$options !== void 0 && _col$options.canView)) continue;
|
|
119148
|
+
if ((_col$options2 = col.options) !== null && _col$options2 !== void 0 && _col$options2.disabled && !isCorrectAudit) continue;
|
|
119149
|
+
const rules = col.rules || [];
|
|
119150
|
+
const requiredRule = rules.find(r => r.required);
|
|
119151
|
+
const {
|
|
119152
|
+
minValue,
|
|
119153
|
+
maxValue
|
|
119154
|
+
} = col.options || {};
|
|
119155
|
+
if (!requiredRule && !minValue) continue;
|
|
119156
|
+
if (!Array.isArray(rows) || rows.length === 0) {
|
|
119157
|
+
if (requiredRule) {
|
|
119158
|
+
errors.push({
|
|
119159
|
+
tableModel,
|
|
119160
|
+
rowIndex: 0,
|
|
119161
|
+
columnModel: col.model,
|
|
119162
|
+
message: requiredRule.message || `${(col.name || '').replaceAll(' ', '')}必须填写`
|
|
119163
|
+
});
|
|
119164
|
+
}
|
|
119165
|
+
continue;
|
|
119166
|
+
}
|
|
119167
|
+
rows.forEach((row, rowIndex) => {
|
|
119168
|
+
const value = row[col.model];
|
|
119169
|
+
if (requiredRule && isEmptyValue(value)) {
|
|
119170
|
+
errors.push({
|
|
119171
|
+
tableModel,
|
|
119172
|
+
rowIndex,
|
|
119173
|
+
columnModel: col.model,
|
|
119174
|
+
message: requiredRule.message || `${(col.name || '').replaceAll(' ', '')}必须填写`
|
|
119175
|
+
});
|
|
119176
|
+
return;
|
|
119177
|
+
}
|
|
119178
|
+
if (minValue) {
|
|
119179
|
+
if (maxValue && minValue === maxValue) {
|
|
119180
|
+
if (!value || Array.isArray(value) && value.length !== maxValue) {
|
|
119181
|
+
errors.push({
|
|
119182
|
+
tableModel,
|
|
119183
|
+
rowIndex,
|
|
119184
|
+
columnModel: col.model,
|
|
119185
|
+
message: `${col.name}必须选择${maxValue}项`
|
|
119186
|
+
});
|
|
119187
|
+
}
|
|
119188
|
+
} else if (!value || Array.isArray(value) && value.length < minValue) {
|
|
119189
|
+
errors.push({
|
|
119190
|
+
tableModel,
|
|
119191
|
+
rowIndex,
|
|
119192
|
+
columnModel: col.model,
|
|
119193
|
+
message: `${col.name}最少选择${minValue}项`
|
|
119194
|
+
});
|
|
119195
|
+
}
|
|
119196
|
+
}
|
|
119197
|
+
});
|
|
119198
|
+
}
|
|
119199
|
+
}
|
|
119200
|
+
return errors;
|
|
119201
|
+
}
|
|
119202
|
+
|
|
119203
|
+
/***/ },
|
|
119204
|
+
|
|
118071
119205
|
/***/ 78393
|
|
118072
119206
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
118073
119207
|
|
|
@@ -140821,8 +141955,8 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
140821
141955
|
var staticRenderFns = []
|
|
140822
141956
|
|
|
140823
141957
|
|
|
140824
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
140825
|
-
var components = __webpack_require__(
|
|
141958
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 1029 modules
|
|
141959
|
+
var components = __webpack_require__(40000);
|
|
140826
141960
|
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/CorrectionItem.vue?vue&type=script&lang=js
|
|
140827
141961
|
//
|
|
140828
141962
|
//
|
|
@@ -142485,7 +143619,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
142485
143619
|
|
|
142486
143620
|
/***/ },
|
|
142487
143621
|
|
|
142488
|
-
/***/
|
|
143622
|
+
/***/ 48555
|
|
142489
143623
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
142490
143624
|
|
|
142491
143625
|
"use strict";
|
|
@@ -142495,7 +143629,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
142495
143629
|
A: () => (/* binding */ tableItem)
|
|
142496
143630
|
});
|
|
142497
143631
|
|
|
142498
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/tableItem.vue?vue&type=template&id=
|
|
143632
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/tableItem.vue?vue&type=template&id=0536d5fe&scoped=true
|
|
142499
143633
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sub-table-col sub-table-col-no-border"},[_vm._l((_vm.widget.columns),function(tableItem,col_index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(tableItem.type !== 'hidden' && tableItem.options.canView),expression:"tableItem.type !== 'hidden' && tableItem.options.canView"}],key:_vm.index + '_' + col_index,staticClass:"sub-table-item",style:(Object.assign({}, _vm.handleSubTableStyle(_vm.widget, tableItem)))},[(['input', 'textarea'].includes(tableItem.type) && !_vm.editArr[col_index] && !tableItem.tableColCanEdit && (!_vm.widget.options.disbaledDoubleClickEdit))?_c('div',{style:(("color: #000; border-right: 1px solid " + (_vm.config.borderColor) + "; border-bottom: 1px solid " + (_vm.config.borderColor) + "; line-height: normal; padding: 0 15px; line-break: anywhere; overflow: hidden; display: flex; align-items: center; height: " + (tableItem.options.height ? tableItem.options.height+'px':'initial'))),attrs:{"title":_vm.showValue(_vm.models[_vm.source.model][_vm.index][tableItem.model], tableItem, _vm.index)},on:{"dblclick":function($event){return _vm.tableColumnsDBClick(col_index, tableItem, _vm.source.model + '_' + _vm.index + '_' + tableItem.model)}}},[(!_vm.$isMobile)?_c('span',[_vm._v(_vm._s(_vm.showValue(_vm.models[_vm.source.model][_vm.index][tableItem.model], tableItem, _vm.index)))]):_c('AutoScrollText',{attrs:{"text":_vm.showValue(_vm.models[_vm.source.model][_vm.index][tableItem.model], tableItem, _vm.index) || '',"maxWidth":280 / _vm.widget.columns.length,"duration":18 / _vm.widget.columns.length,"delay":1.5,"pauseOnHover":true}})],1):_c('layout-item',{directives:[{name:"show",rawName:"v-show",value:(tableItem.options.canView),expression:"tableItem.options.canView"}],key:_vm.source.hashKey,attrs:{"tableKey":_vm.source.model,"rules":_vm.rules,"tableIndex":_vm.index,"hashKey":_vm.source.hashKey,"widget":tableItem,"models":_vm.models,"showLabel":false,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event}}})],1)}),(!_vm.widget.options.disabled && !_vm.widget.options.hiddenOperateBtn)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.handleDeleteRow(_vm.index, _vm.widget.model, _vm.source.hashKey)}}},[_vm._v("删除行")])],1):_vm._e()],2)}
|
|
142500
143634
|
var staticRenderFns = []
|
|
142501
143635
|
|
|
@@ -142504,10 +143638,10 @@ var staticRenderFns = []
|
|
|
142504
143638
|
var tableItemvue_type_script_lang_js = __webpack_require__(19361);
|
|
142505
143639
|
;// ./src/form/modules/common/tableItem.vue?vue&type=script&lang=js
|
|
142506
143640
|
/* harmony default export */ const common_tableItemvue_type_script_lang_js = (tableItemvue_type_script_lang_js/* default */.A);
|
|
142507
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/tableItem.vue?vue&type=style&index=0&id=
|
|
143641
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/tableItem.vue?vue&type=style&index=0&id=0536d5fe&prod&scoped=true&lang=less
|
|
142508
143642
|
// extracted by mini-css-extract-plugin
|
|
142509
143643
|
|
|
142510
|
-
;// ./src/form/modules/common/tableItem.vue?vue&type=style&index=0&id=
|
|
143644
|
+
;// ./src/form/modules/common/tableItem.vue?vue&type=style&index=0&id=0536d5fe&prod&scoped=true&lang=less
|
|
142511
143645
|
|
|
142512
143646
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
142513
143647
|
var componentNormalizer = __webpack_require__(64008);
|
|
@@ -142526,7 +143660,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
142526
143660
|
staticRenderFns,
|
|
142527
143661
|
false,
|
|
142528
143662
|
null,
|
|
142529
|
-
"
|
|
143663
|
+
"0536d5fe",
|
|
142530
143664
|
null
|
|
142531
143665
|
|
|
142532
143666
|
)
|
|
@@ -143053,7 +144187,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
143053
144187
|
|
|
143054
144188
|
/***/ },
|
|
143055
144189
|
|
|
143056
|
-
/***/
|
|
144190
|
+
/***/ 89715
|
|
143057
144191
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
143058
144192
|
|
|
143059
144193
|
"use strict";
|
|
@@ -143065,11 +144199,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
143065
144199
|
"default": () => (/* binding */ layoutForPaper)
|
|
143066
144200
|
});
|
|
143067
144201
|
|
|
143068
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=
|
|
143069
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },style:({ 'overflow-x': _vm.data.config.layout === 'horizontal' ? 'auto' : 'initial' }),attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[(_vm.pageLoading && _vm.showLayoutLoading)?_c('div',{class:{ form_skeleton: _vm.pageLoading }},[(_vm.pageLoading)?_c('a-skeleton',{attrs:{"active":"","loading":_vm.pageLoading,"paragraph":{ rows: 12 }}}):_vm._e()],1):_vm._e(),_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event},"validate":_vm.validate}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.value && _vm.value.formIndex)?_c('div',{staticStyle:{"text-align":"right","font-weight":"bold"}},[_vm._v(_vm._s(_vm.value.formIndex))]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(
|
|
144202
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=7dc51789&scoped=true
|
|
144203
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },style:({ 'overflow-x': _vm.data.config.layout === 'horizontal' ? 'auto' : 'initial' }),attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[(_vm.pageLoading && _vm.showLayoutLoading)?_c('div',{class:{ form_skeleton: _vm.pageLoading }},[(_vm.pageLoading)?_c('a-skeleton',{attrs:{"active":"","loading":_vm.pageLoading,"paragraph":{ rows: 12 }}}):_vm._e()],1):_vm._e(),_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event},"validate":_vm.validate}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.value && _vm.value.formIndex)?_c('div',{staticStyle:{"text-align":"right","font-weight":"bold"}},[_vm._v(_vm._s(_vm.value.formIndex))]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table' || widget.type == 'newTable')?[(
|
|
143070
144204
|
widget.options.layoutModel === 'auto' ||
|
|
143071
144205
|
widget.options.layoutModel === undefined
|
|
143072
|
-
)?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:[widget
|
|
144206
|
+
)?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:[_vm.isTablePaginationActive(widget)?'pagiAfter':'',widget.options.inline == true ? 'row-table' : ''],style:({ borderColor: _vm.data.config.borderColor, marginBottom: (_vm.isTablePaginationActive(widget) && _vm.tablePageInfo[widget.model] && _vm.tablePageInfo[widget.model].total > 10) ? '50px' : '' }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[(widget.options.inline)?_c('div',{staticClass:"table-left",style:({
|
|
143073
144207
|
width: widget.options.labelWidth + 'px',
|
|
143074
144208
|
borderColor: _vm.data.config.borderColor,
|
|
143075
144209
|
backgroundColor: _vm.data.config.bgc,
|
|
@@ -143081,7 +144215,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
143081
144215
|
_vm.data.config.align,
|
|
143082
144216
|
_vm.data.config.validate === true && children.options.required === true
|
|
143083
144217
|
? 'is_required'
|
|
143084
|
-
: 'no_required' ],staticStyle:{"border-right":"1px solid #333","border-bottom":"1px solid #333"},style:(Object.assign({}, {borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc}, _vm.handleSubTableStyle(widget, children)))},[_vm._v(_vm._s(children.name))])}),(!widget.options.hiddenOperateBtn && _vm.tableWidgetColumns(widget).length > 0 && !widget.options.disabled)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc, color: _vm.data.config.color })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(widget, widget.model, 'addModel', true)}}},[_vm._v("添加行")])],1):_vm._e()],2),(Array.isArray(_vm.tableData[widget.model]))?[(widget
|
|
144218
|
+
: 'no_required' ],staticStyle:{"border-right":"1px solid #333","border-bottom":"1px solid #333"},style:(Object.assign({}, {borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc}, _vm.handleSubTableStyle(widget, children)))},[_vm._v(_vm._s(children.name))])}),(!widget.options.hiddenOperateBtn && _vm.tableWidgetColumns(widget).length > 0 && !widget.options.disabled)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc, color: _vm.data.config.color })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(widget, widget.model, 'addModel', true)}}},[_vm._v("添加行")])],1):_vm._e()],2),(Array.isArray(_vm.tableData[widget.model]))?[(_vm.isTablePaginationActive(widget))?[_vm._l((_vm.currTablePageData(widget.model)),function(source,idx){return _c('table-item',{key:(_vm.tablePageInfo[widget.model].current - 1) * _vm.tablePageInfo[widget.model].pageSize + idx,attrs:{"widget":widget,"index":(_vm.tablePageInfo[widget.model].current - 1) * _vm.tablePageInfo[widget.model].pageSize + idx,"data":_vm.data,"rules":_vm.rules,"models":_vm.models,"handleDeleteRow":_vm.handleDeleteRow,"source":source}})}),(_vm.tablePageInfo[widget.model] && _vm.tablePageInfo[widget.model].total > 10)?_c('div',{staticClass:"hasWidgetAfter",staticStyle:{"padding":"10px","position":"absolute","top":"100%"},style:({borderColor:_vm.data.config.borderColor})},[_c('a-pagination',{attrs:{"show-quick-jumper":"","show-size-changer":"","total":_vm.tablePageInfo[widget.model].total},on:{"change":function () {
|
|
143085
144219
|
var args = [], len = arguments.length;
|
|
143086
144220
|
while ( len-- ) args[ len ] = arguments[ len ];
|
|
143087
144221
|
|
|
@@ -143091,17 +144225,17 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
143091
144225
|
while ( len-- ) args[ len ] = arguments[ len ];
|
|
143092
144226
|
|
|
143093
144227
|
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
143094
|
-
}},model:{value:(_vm.tablePageInfo[widget.model].current),callback:function ($$v) {_vm.$set(_vm.tablePageInfo[widget.model], "current", $$v)},expression:"tablePageInfo[widget.model].current"}})],1):_vm._e()]:_c('virtual-list',{staticClass:"virtual-list",attrs:{"keeps":
|
|
144228
|
+
}},model:{value:(_vm.tablePageInfo[widget.model].current),callback:function ($$v) {_vm.$set(_vm.tablePageInfo[widget.model], "current", $$v)},expression:"tablePageInfo[widget.model].current"}})],1):_vm._e()]:(widget.type === 'newTable')?_vm._l((_vm.tableData[widget.model]),function(source,idx){return _c('table-item',{key:source.rand_id || source.hashKey || idx,attrs:{"widget":widget,"index":idx,"data":_vm.data,"rules":_vm.rules,"models":_vm.models,"handleDeleteRow":_vm.handleDeleteRow,"source":source}})}):(_vm.isTableUseVirtualScroll(widget) && _vm.tableData[widget.model].length)?_c('virtual-list',{ref:function (el) { return _vm.setVirtualTableRef(el, widget.model); },refInFor:true,staticClass:"virtual-list",attrs:{"keeps":_vm.getTableVirtualKeeps(widget),"estimate-size":45,"page-mode":"","data-key":function (ref) {
|
|
143095
144229
|
var model = ref.model;
|
|
143096
144230
|
var idx = ref.index;
|
|
143097
144231
|
var rand_id = ref.rand_id;
|
|
143098
|
-
return rand_id || (model + idx) },"data-sources":_vm.tableData[widget.model],"data-component":_vm.tableItem,"extra-props":{ widget: widget, models: _vm.models, data: _vm.data, rules: _vm.rules, handleDeleteRow: _vm.handleDeleteRow}}})]:_vm._e(),(
|
|
144232
|
+
return rand_id || (model + idx) },"data-sources":_vm.tableData[widget.model],"data-component":_vm.tableItem,"extra-props":{ widget: widget, models: _vm.models, data: _vm.data, rules: _vm.rules, handleDeleteRow: _vm.handleDeleteRow}}}):_vm._e()]:_vm._e(),(
|
|
143099
144233
|
widget.options.computingSub.length > 0 &&
|
|
143100
144234
|
widget.options.computingMethod.length > 0 &&
|
|
143101
144235
|
_vm.tableData &&
|
|
143102
144236
|
_vm.tableData[widget.model] &&
|
|
143103
144237
|
_vm.tableData[widget.model].length > 0
|
|
143104
|
-
)?_c('div',{staticClass:"computed-wrap"},[_c('div',{staticClass:"item"},[_c('div',[_vm._v("需统计字段")]),_vm._l((widget.options.computingSub),function(_item,key){return _c('div',{key:key},[_vm._v(" "+_vm._s(_vm.getSubName(_item, _vm.tableWidgetColumns(widget)))+" ")])})],2),_vm._l((widget.options.computingMethod),function(_methodItem,key){return _c('div',{key:key,staticClass:"item"},[_c('div',[_vm._v(_vm._s(_vm.getMethodName(_methodItem)))]),_vm._l((widget.options.computingSub),function(_subItem,it_key){return _c('div',{key:it_key},[_vm._v(" "+_vm._s(_vm.getMathResult(_methodItem, _vm.models[widget.model], _subItem))+" ")])})],2)})],2):_vm._e()],2)]):(widget.options.layoutModel === 'design')?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"table_border row-item",style:({ borderColor: _vm.data.config.borderColor }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[_c('tableComponent',{attrs:{"isApply":_vm.isApply,"isDesign":_vm.isDesign,"widget":widget,"tableData":_vm.tableData,"rules":_vm.rules,"models":_vm.models,"formId":_vm.data.formId,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event},"addToTableData":_vm.addToTableData,"handleDeleteRow":_vm.handleDeleteRow}})],1):_vm._e()]:(widget.type === 'grid')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-component',{attrs:{"rules":_vm.rules,"models":_vm.models,"widget":widget,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"config":_vm.data.config,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'grid-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:widget.type == 'grid-lay-out' ? ' no-row-item ' : '',style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"listindex":listindex,"config":_vm.data.config,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'verify')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('verify-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'all-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('all-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'placeholder')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,class:{
|
|
144238
|
+
)?_c('div',{staticClass:"computed-wrap"},[_c('div',{staticClass:"item"},[_c('div',[_vm._v("需统计字段")]),_vm._l((widget.options.computingSub),function(_item,key){return _c('div',{key:key},[_vm._v(" "+_vm._s(_vm.getSubName(_item, _vm.tableWidgetColumns(widget)))+" ")])})],2),_vm._l((widget.options.computingMethod),function(_methodItem,key){return _c('div',{key:key,staticClass:"item"},[_c('div',[_vm._v(_vm._s(_vm.getMethodName(_methodItem)))]),_vm._l((widget.options.computingSub),function(_subItem,it_key){return _c('div',{key:it_key},[_vm._v(" "+_vm._s(_vm.getMathResult(_methodItem, _vm.models[widget.model], _subItem))+" ")])})],2)})],2):_vm._e()],2)]):(widget.options.layoutModel === 'design')?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"table_border row-item",style:({ borderColor: _vm.data.config.borderColor }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[(widget.type === 'newTable')?_c('newTableComponent',{attrs:{"isApply":_vm.isApply,"isDesign":_vm.isDesign,"widget":widget,"tableData":_vm.tableData,"rules":_vm.rules,"models":_vm.models,"formId":_vm.data.formId,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event},"addToTableData":_vm.addToTableData,"handleDeleteRow":_vm.handleDeleteRow}}):_c('tableComponent',{attrs:{"isApply":_vm.isApply,"isDesign":_vm.isDesign,"widget":widget,"tableData":_vm.tableData,"rules":_vm.rules,"models":_vm.models,"formId":_vm.data.formId,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event},"addToTableData":_vm.addToTableData,"handleDeleteRow":_vm.handleDeleteRow}})],1):_vm._e()]:(widget.type === 'grid')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-component',{attrs:{"rules":_vm.rules,"models":_vm.models,"widget":widget,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"config":_vm.data.config,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'grid-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:widget.type == 'grid-lay-out' ? ' no-row-item ' : '',style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"listindex":listindex,"config":_vm.data.config,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'verify')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('verify-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'all-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('all-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'placeholder')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,class:{
|
|
143105
144239
|
'item-bottom': !widget.options.border,
|
|
143106
144240
|
'row-item': widget.options.border,
|
|
143107
144241
|
},style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"rules":_vm.rules,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"applyId":_vm.applyId},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1):_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",class:{hiddenWidget:widget.type == 'hidden'},style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"dataObj":_vm.data,"rules":_vm.rules,"applyId":_vm.applyId},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1)]})],2),(_vm.data.config.pageFooter && listindex === _vm.widgetList.length - 1)?_c('div',{style:(_vm.data.config.footerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageFooter)}}):_vm._e()],2)}),0)],1)}
|
|
@@ -143112,15 +144246,15 @@ var staticRenderFns = []
|
|
|
143112
144246
|
var layoutForPapervue_type_script_lang_js = __webpack_require__(49218);
|
|
143113
144247
|
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
|
|
143114
144248
|
/* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
|
|
143115
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
144249
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=7dc51789&prod&lang=less&scoped=true
|
|
143116
144250
|
// extracted by mini-css-extract-plugin
|
|
143117
144251
|
|
|
143118
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
144252
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=7dc51789&prod&lang=less&scoped=true
|
|
143119
144253
|
|
|
143120
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=
|
|
144254
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=7dc51789&prod&lang=css
|
|
143121
144255
|
// extracted by mini-css-extract-plugin
|
|
143122
144256
|
|
|
143123
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=
|
|
144257
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=7dc51789&prod&lang=css
|
|
143124
144258
|
|
|
143125
144259
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
143126
144260
|
var componentNormalizer = __webpack_require__(64008);
|
|
@@ -143140,7 +144274,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
143140
144274
|
staticRenderFns,
|
|
143141
144275
|
false,
|
|
143142
144276
|
null,
|
|
143143
|
-
"
|
|
144277
|
+
"7dc51789",
|
|
143144
144278
|
null
|
|
143145
144279
|
|
|
143146
144280
|
)
|
|
@@ -143221,8 +144355,8 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
143221
144355
|
)
|
|
143222
144356
|
|
|
143223
144357
|
/* harmony default export */ const CorrectionModal = (component.exports);
|
|
143224
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
143225
|
-
var components = __webpack_require__(
|
|
144358
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 1029 modules
|
|
144359
|
+
var components = __webpack_require__(40000);
|
|
143226
144360
|
// EXTERNAL MODULE: ./node_modules/_pubsub-js@1.9.5@pubsub-js/src/pubsub.js
|
|
143227
144361
|
var pubsub = __webpack_require__(55469);
|
|
143228
144362
|
var pubsub_default = /*#__PURE__*/__webpack_require__.n(pubsub);
|
|
@@ -144415,8 +145549,8 @@ var vuedraggable_umd = __webpack_require__(59715);
|
|
|
144415
145549
|
var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
|
|
144416
145550
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
144417
145551
|
var manage = __webpack_require__(5335);
|
|
144418
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
144419
|
-
var components = __webpack_require__(
|
|
145552
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 1029 modules
|
|
145553
|
+
var components = __webpack_require__(40000);
|
|
144420
145554
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
144421
145555
|
var Bus = __webpack_require__(31227);
|
|
144422
145556
|
// EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
|
|
@@ -162354,7 +163488,7 @@ function toString(value) {
|
|
|
162354
163488
|
(module) {
|
|
162355
163489
|
|
|
162356
163490
|
"use strict";
|
|
162357
|
-
module.exports = /*#__PURE__*/JSON.parse('{"rE":"1.1.689-AI.
|
|
163491
|
+
module.exports = /*#__PURE__*/JSON.parse('{"rE":"1.1.689-AI.9"}');
|
|
162358
163492
|
|
|
162359
163493
|
/***/ }
|
|
162360
163494
|
|
|
@@ -176156,7 +177290,7 @@ var SvgIcon_component = (0,componentNormalizer/* default */.A)(
|
|
|
176156
177290
|
|
|
176157
177291
|
/* harmony default export */ const SvgIcon = (SvgIcon_component.exports);
|
|
176158
177292
|
// EXTERNAL MODULE: ./src/form/modules/layout/layoutForPaper.vue + 6 modules
|
|
176159
|
-
var layoutForPaper = __webpack_require__(
|
|
177293
|
+
var layoutForPaper = __webpack_require__(89715);
|
|
176160
177294
|
// EXTERNAL MODULE: ./src/form/modules/layout/layoutItem.vue + 10 modules
|
|
176161
177295
|
var layoutItem = __webpack_require__(92241);
|
|
176162
177296
|
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/Container.vue?vue&type=template&id=497bb086
|
|
@@ -176170,9 +177304,9 @@ var es_array_reduce = __webpack_require__(69686);
|
|
|
176170
177304
|
var es_iterator_reduce = __webpack_require__(38331);
|
|
176171
177305
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.49.0@core-js/modules/web.dom-exception.stack.js
|
|
176172
177306
|
var web_dom_exception_stack = __webpack_require__(17305);
|
|
176173
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetList.vue?vue&type=template&id=
|
|
176174
|
-
var
|
|
176175
|
-
var
|
|
177307
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetList.vue?vue&type=template&id=27422f7c&scoped=true
|
|
177308
|
+
var widgetListvue_type_template_id_27422f7c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"components-list"},[_c('div',{staticClass:"tabs"},[_c('span',{class:{ activeTab: _vm.activeTab == 0 },on:{"click":function($event){return _vm.triggertab(0)}}},[_vm._v("基础控件")]),_c('span',{class:{ activeTab: _vm.activeTab == 1 },on:{"click":function($event){return _vm.triggertab(1)}}},[_vm._v("高级控件")]),_c('span',{class:{ activeTab: _vm.activeTab == 2 },on:{"click":function($event){return _vm.triggertab(2)}}},[_vm._v("布局控件")]),_c('span',{class:{ activeTab: _vm.activeTab == 3 },on:{"click":function($event){return _vm.triggertab(3)}}},[_vm._v("公文相关")]),_c('span',{class:{ activeTab: _vm.activeTab == 4 },on:{"click":function($event){return _vm.triggertab(4)}}},[_vm._v("个性化")])]),(_vm.basicFields.length && _vm.activeTab == 0)?[_c('draggable',_vm._b({attrs:{"setData":function () {},"tag":"ul","list":_vm.basicComponents,"move":_vm.handleMove},on:{"end":_vm.handleMoveEnd,"start":_vm.handleMoveStart}},'draggable',_vm.draggableOptions,false),[_vm._l((_vm.basicComponents),function(item,index){return [_c('li',{key:index,staticClass:"widget-control",class:{ 'no-put': item.type == 'divider' }},[_c('a',[_c('i',{staticClass:"icon iconfont",class:item.icon}),_c('span',[_vm._v(_vm._s(item.name))])])])]})],2)]:_vm._e(),(_vm.advanceFields.length && _vm.activeTab == 1)?[_c('draggable',_vm._b({attrs:{"setData":function () {},"tag":"ul","list":_vm.advanceComponents,"move":_vm.handleMove},on:{"end":_vm.handleMoveEnd,"start":_vm.handleMoveStart}},'draggable',_vm.draggableOptions,false),[_vm._l((_vm.advanceComponents),function(item,index){return [(_vm.advanceFields.indexOf(item.type) >= 0)?_c('li',{key:index,staticClass:"widget-control",class:{ 'no-put': item.type == 'table' || item.type == 'newTable' }},[_c('a',[_c('i',{staticClass:"icon iconfont",class:item.icon}),_c('span',[_vm._v(_vm._s(item.name))])])]):_vm._e()]})],2)]:_vm._e(),(_vm.layoutFields.length && _vm.activeTab == 2)?[_c('draggable',_vm._b({attrs:{"setData":function () {},"tag":"ul","list":_vm.layoutComponents,"move":_vm.handleMove},on:{"end":_vm.handleMoveEnd,"start":_vm.handleMoveStart}},'draggable',_vm.draggableOptions,false),[_vm._l((_vm.layoutComponents),function(item,index){return [(_vm.layoutFields.indexOf(item.type) >= 0)?_c('li',{key:index,staticClass:"widget-control no-put"},[_c('a',[_c('i',{staticClass:"icon iconfont",class:item.icon}),_c('span',[_vm._v(_vm._s(item.name))])])]):_vm._e()]})],2)]:_vm._e(),(_vm.specFields.length && _vm.activeTab == 3)?[_c('draggable',_vm._b({attrs:{"setData":function () {},"tag":"ul","list":_vm.specComponents,"move":_vm.handleMove},on:{"end":_vm.handleMoveEnd,"start":_vm.handleMoveStart}},'draggable',_vm.draggableOptions,false),[_vm._l((_vm.specComponents),function(item,index){return [(_vm.specFields.indexOf(item.type) >= 0)?_c('li',{key:index,staticClass:"widget-control no-put"},[_c('a',[_c('i',{staticClass:"icon iconfont",class:item.icon}),_c('span',[_vm._v(_vm._s(item.name))])])]):_vm._e()]})],2)]:_vm._e(),(_vm.hnkjComponentsConfig.length && _vm.activeTab == 4)?[_c('draggable',_vm._b({attrs:{"setData":function () {},"tag":"ul","list":_vm.hnkjComponentsConfig,"move":_vm.handleMove},on:{"end":_vm.handleMoveEnd,"start":_vm.handleMoveStart}},'draggable',_vm.draggableOptions,false),[_vm._l((_vm.hnkjComponentsConfig),function(item,index){return [_c('li',{key:index,staticClass:"widget-control no-put"},[_c('a',[_c('i',{staticClass:"icon iconfont",class:item.icon}),_c('span',[_vm._v(_vm._s(item.name))])])])]})],2)]:_vm._e()],2)}
|
|
177309
|
+
var widgetListvue_type_template_id_27422f7c_scoped_true_staticRenderFns = []
|
|
176176
177310
|
|
|
176177
177311
|
|
|
176178
177312
|
;// ./src/form/modules/config/defaultConfig.js
|
|
@@ -176659,6 +177793,43 @@ const advanceComponents = [{
|
|
|
176659
177793
|
key: '',
|
|
176660
177794
|
model: '',
|
|
176661
177795
|
rules: []
|
|
177796
|
+
}, {
|
|
177797
|
+
type: 'newTable',
|
|
177798
|
+
name: '新子表单',
|
|
177799
|
+
icon: 'icon-input',
|
|
177800
|
+
options: {
|
|
177801
|
+
layoutModel: 'auto',
|
|
177802
|
+
defaultValue: [],
|
|
177803
|
+
columnsNum: 4,
|
|
177804
|
+
rowsNum: 2,
|
|
177805
|
+
rowsHeight: 50,
|
|
177806
|
+
inline: false,
|
|
177807
|
+
inlineWidth: 200,
|
|
177808
|
+
customClass: '',
|
|
177809
|
+
remoteFunc: '',
|
|
177810
|
+
remoteOptions: [],
|
|
177811
|
+
canEdit: true,
|
|
177812
|
+
height: 70,
|
|
177813
|
+
canView: true,
|
|
177814
|
+
enableIndex: true,
|
|
177815
|
+
hiddenOperateBtn: false,
|
|
177816
|
+
defaulcanView: true,
|
|
177817
|
+
computingMethod: [],
|
|
177818
|
+
computingSub: [],
|
|
177819
|
+
auditorExport: false,
|
|
177820
|
+
supportPage: false
|
|
177821
|
+
},
|
|
177822
|
+
columns: [],
|
|
177823
|
+
designList: [{
|
|
177824
|
+
x: 0,
|
|
177825
|
+
y: 0,
|
|
177826
|
+
w: 1,
|
|
177827
|
+
h: 1,
|
|
177828
|
+
i: '1'
|
|
177829
|
+
}],
|
|
177830
|
+
key: '',
|
|
177831
|
+
model: '',
|
|
177832
|
+
rules: []
|
|
176662
177833
|
},
|
|
176663
177834
|
// {
|
|
176664
177835
|
// type: 'blank',
|
|
@@ -177430,7 +178601,7 @@ const specComponents = [{
|
|
|
177430
178601
|
},
|
|
177431
178602
|
advanceFields: {
|
|
177432
178603
|
type: Array,
|
|
177433
|
-
default: () => ["table", "blank", "imgupload", "fileupload", "uploadModel", "editor", "cascader", "deptSelector", "userSelector", "userSelectorByRole", "idea-sign", "relateSub", "signatureWrite", "location", "imgCode", "publicSign", "responsibility", "dataTable"]
|
|
178604
|
+
default: () => ["table", "newTable", "blank", "imgupload", "fileupload", "uploadModel", "editor", "cascader", "deptSelector", "userSelector", "userSelectorByRole", "idea-sign", "relateSub", "signatureWrite", "location", "imgCode", "publicSign", "responsibility", "dataTable"]
|
|
177434
178605
|
},
|
|
177435
178606
|
layoutFields: {
|
|
177436
178607
|
type: Array,
|
|
@@ -177493,10 +178664,10 @@ const specComponents = [{
|
|
|
177493
178664
|
});
|
|
177494
178665
|
;// ./src/form/modules/widgetList.vue?vue&type=script&lang=js
|
|
177495
178666
|
/* harmony default export */ const modules_widgetListvue_type_script_lang_js = (widgetListvue_type_script_lang_js);
|
|
177496
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetList.vue?vue&type=style&index=0&id=
|
|
178667
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetList.vue?vue&type=style&index=0&id=27422f7c&prod&lang=less&scoped=true
|
|
177497
178668
|
// extracted by mini-css-extract-plugin
|
|
177498
178669
|
|
|
177499
|
-
;// ./src/form/modules/widgetList.vue?vue&type=style&index=0&id=
|
|
178670
|
+
;// ./src/form/modules/widgetList.vue?vue&type=style&index=0&id=27422f7c&prod&lang=less&scoped=true
|
|
177500
178671
|
|
|
177501
178672
|
;// ./src/form/modules/widgetList.vue
|
|
177502
178673
|
|
|
@@ -177509,22 +178680,22 @@ const specComponents = [{
|
|
|
177509
178680
|
|
|
177510
178681
|
var widgetList_component = (0,componentNormalizer/* default */.A)(
|
|
177511
178682
|
modules_widgetListvue_type_script_lang_js,
|
|
177512
|
-
|
|
177513
|
-
|
|
178683
|
+
widgetListvue_type_template_id_27422f7c_scoped_true_render,
|
|
178684
|
+
widgetListvue_type_template_id_27422f7c_scoped_true_staticRenderFns,
|
|
177514
178685
|
false,
|
|
177515
178686
|
null,
|
|
177516
|
-
"
|
|
178687
|
+
"27422f7c",
|
|
177517
178688
|
null
|
|
177518
178689
|
|
|
177519
178690
|
)
|
|
177520
178691
|
|
|
177521
178692
|
/* harmony default export */ const widgetList = (widgetList_component.exports);
|
|
177522
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetForm.vue?vue&type=template&id=
|
|
177523
|
-
var
|
|
178693
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetForm.vue?vue&type=template&id=aa7a7266&scoped=true
|
|
178694
|
+
var widgetFormvue_type_template_id_aa7a7266_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"widget-form",class:{ 'no-border': !_vm.data.config.border },style:(_vm.widgetFormStyle)},[(_vm.widgetList[0].length == 0)?_c('div',{staticClass:"form-empty"},[_c('a-icon',{attrs:{"type":"inbox"}}),_c('p',[_vm._v("从左侧拖拽控件到此区域")])],1):_vm._e(),_c('a-form-model',{attrs:{"model":_vm.form,"label-col":{ style: 'width:200px' },"wrapper-col":{}}},[_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, {height: _vm.formNameHeight}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.data.config.pageHeader && listindex == 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('draggable',_vm._b({attrs:{"setData":function () {}},on:{"end":function (e) {
|
|
177524
178695
|
_vm.handleMoveEnd(e, listindex);
|
|
177525
178696
|
},"add":function (e) {
|
|
177526
178697
|
_vm.handleWidgetAdd(e, listindex);
|
|
177527
|
-
}},model:{value:(_vm.widgetList[listindex]),callback:function ($$v) {_vm.$set(_vm.widgetList, listindex, $$v)},expression:"widgetList[listindex]"}},'draggable',_vm.draggableOptions,false),[_c('transition-group',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[listindex].length > 0),expression:"widgetList[listindex].length > 0"}],staticClass:"widget-form-list",attrs:{"name":"fade","tag":"div"}},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(widget && widget.key)?_c('div',{key:widget.key,staticClass:"row-item"},[(
|
|
178698
|
+
}},model:{value:(_vm.widgetList[listindex]),callback:function ($$v) {_vm.$set(_vm.widgetList, listindex, $$v)},expression:"widgetList[listindex]"}},'draggable',_vm.draggableOptions,false),[_c('transition-group',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[listindex].length > 0),expression:"widgetList[listindex].length > 0"}],staticClass:"widget-form-list",attrs:{"name":"fade","tag":"div"}},[_vm._l((list),function(widget,index){return [(widget.type == 'table' || widget.type == 'newTable')?[(widget && widget.key)?_c('div',{key:widget.key,staticClass:"row-item"},[(
|
|
177528
178699
|
widget.options.layoutModel === 'auto' ||
|
|
177529
178700
|
widget.options.layoutModel === undefined
|
|
177530
178701
|
)?_c('div',{key:index,staticClass:"row_table",class:{
|
|
@@ -177535,7 +178706,15 @@ var widgetFormvue_type_template_id_ca6b73ae_scoped_true_render = function () {va
|
|
|
177535
178706
|
index,
|
|
177536
178707
|
listindex,
|
|
177537
178708
|
'auto'
|
|
177538
|
-
)}},model:{value:(widget.columns),callback:function ($$v) {_vm.$set(widget, "columns", $$v)},expression:"widget.columns"}},'draggable',_vm.draggableOptions,false),_vm._l((widget.columns),function(item,idx){return _c('div',{key:idx},[_c('widget-form-item',{staticStyle:{"max-width":"200px","min-width":"200px","border":"1px dashed rgba(170, 170, 170, 0.7)","margin":"8px"},attrs:{"showLabel":false,"index":idx,"widget":item,"widgetListCell":widget.columns,"widgetList":_vm.widgetList,"select":_vm.selectWidget,"tableKey":widget.model},on:{"update:select":function($event){_vm.selectWidget=$event}}})],1)}),0),(_vm.selectWidget.key == widget.key)?_c('div',{staticClass:"widget-view-action"},[_c('i',{staticClass:"iconfont icon-trash",on:{"click":function($event){$event.stopPropagation();return _vm.handleWidgetDelete(index, listindex)}}})]):_vm._e(),(_vm.selectWidget.key == widget.key)?_c('div',{staticClass:"widget-view-drag"},[_c('i',{staticClass:"iconfont icon-drag drag-widget"})]):_vm._e(),_c('div',{staticClass:"widget-view-model"},[_c('span',[_vm._v(_vm._s(widget.model))])])],1)])]):(widget.options.layoutModel === 'design')?_c('div',{staticClass:"table-design"},[(widget && widget.key)?_c('div',{key:widget.key,attrs:{"title":widget.key},on:{"click":function($event){$event.stopPropagation();return _vm.handleSelectWidget(index, listindex)}}},[_c('table-widget-design',{attrs:{"index":index,"listindex":listindex,"widget":widget,"selectedWidget":_vm.selectWidget},on:{"update:selectedWidget":function($event){_vm.selectWidget=$event},"update:selected-widget":function($event){_vm.selectWidget=$event},"handleWidgetTableAdd":function ($event, widget, colIndex) {
|
|
178709
|
+
)}},model:{value:(widget.columns),callback:function ($$v) {_vm.$set(widget, "columns", $$v)},expression:"widget.columns"}},'draggable',_vm.draggableOptions,false),_vm._l((widget.columns),function(item,idx){return _c('div',{key:idx},[_c('widget-form-item',{staticStyle:{"max-width":"200px","min-width":"200px","border":"1px dashed rgba(170, 170, 170, 0.7)","margin":"8px"},attrs:{"showLabel":false,"index":idx,"widget":item,"widgetListCell":widget.columns,"widgetList":_vm.widgetList,"select":_vm.selectWidget,"tableKey":widget.model},on:{"update:select":function($event){_vm.selectWidget=$event}}})],1)}),0),(_vm.selectWidget.key == widget.key)?_c('div',{staticClass:"widget-view-action"},[_c('i',{staticClass:"iconfont icon-trash",on:{"click":function($event){$event.stopPropagation();return _vm.handleWidgetDelete(index, listindex)}}})]):_vm._e(),(_vm.selectWidget.key == widget.key)?_c('div',{staticClass:"widget-view-drag"},[_c('i',{staticClass:"iconfont icon-drag drag-widget"})]):_vm._e(),_c('div',{staticClass:"widget-view-model"},[_c('span',[_vm._v(_vm._s(widget.model))])])],1)])]):(widget.options.layoutModel === 'design')?_c('div',{staticClass:"table-design"},[(widget && widget.key)?_c('div',{key:widget.key,attrs:{"title":widget.key},on:{"click":function($event){$event.stopPropagation();return _vm.handleSelectWidget(index, listindex)}}},[(widget.type === 'newTable')?_c('new-table-widget-design',{attrs:{"index":index,"listindex":listindex,"widget":widget,"selectedWidget":_vm.selectWidget},on:{"update:selectedWidget":function($event){_vm.selectWidget=$event},"update:selected-widget":function($event){_vm.selectWidget=$event},"handleWidgetTableAdd":function ($event, widget, colIndex) {
|
|
178710
|
+
_vm.handleWidgetTableAdd(
|
|
178711
|
+
$event,
|
|
178712
|
+
widget,
|
|
178713
|
+
colIndex,
|
|
178714
|
+
listindex,
|
|
178715
|
+
'design'
|
|
178716
|
+
);
|
|
178717
|
+
},"handlTableDelete":_vm.handleWidgetDelete}}):_c('table-widget-design',{attrs:{"index":index,"listindex":listindex,"widget":widget,"selectedWidget":_vm.selectWidget},on:{"update:selectedWidget":function($event){_vm.selectWidget=$event},"update:selected-widget":function($event){_vm.selectWidget=$event},"handleWidgetTableAdd":function ($event, widget, colIndex) {
|
|
177539
178718
|
_vm.handleWidgetTableAdd(
|
|
177540
178719
|
$event,
|
|
177541
178720
|
widget,
|
|
@@ -177571,7 +178750,7 @@ var widgetFormvue_type_template_id_ca6b73ae_scoped_true_render = function () {va
|
|
|
177571
178750
|
'item-bottom': !widget.options.border,
|
|
177572
178751
|
'row-item': widget.options.border,
|
|
177573
178752
|
},style:({ borderColor: _vm.data.config.borderColor })},[_c('widget-form-item',{key:widget.key,attrs:{"index":index,"widget":widget,"widgetListCell":_vm.widgetList[listindex],"widgetList":_vm.widgetList,"select":_vm.selectWidget},on:{"updatePaperLayout":_vm.updatePaperLayout,"update:select":function($event){_vm.selectWidget=$event}}})],1)]:[(widget && widget.key)?_c('div',{key:widget.key,staticClass:"row-item"},[_c('widget-form-item',{key:widget.key,attrs:{"index":index,"widget":widget,"widgetListCell":_vm.widgetList[listindex],"widgetList":_vm.widgetList,"select":_vm.selectWidget},on:{"updatePaperLayout":_vm.updatePaperLayout,"update:select":function($event){_vm.selectWidget=$event}}})],1):_vm._e()]]})],2)],1),(_vm.data.config.pageFooter && listindex === _vm.widgetList.length - 1)?_c('div',{staticClass:"form-page-footer",style:(_vm.data.config.footerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageFooter)}}):_vm._e()],1)}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length == 0),expression:"widgetList[0].length == 0"}],staticClass:"paper",style:(_vm.contentStyle)},[_c('div',{staticClass:"form-title"},[_vm._v(_vm._s(_vm.data.config.formName))]),(_vm.data.config.pageHeader)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('draggable',_vm._b({attrs:{"setData":function () {}},on:{"end":_vm.handleMoveEnd,"add":_vm.handleWidgetAdd},model:{value:(_vm.widgetList[0]),callback:function ($$v) {_vm.$set(_vm.widgetList, 0, $$v)},expression:"widgetList[0]"}},'draggable',_vm.draggableOptions,false),[_c('transition-group',{staticClass:"widget-form-list widget-form-ocuupied",attrs:{"name":"fade","tag":"div"}})],1),(_vm.data.config.pageFooter)?_c('div',{style:(_vm.data.config.footerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageFooter)}}):_vm._e()],1)],2)],1)}
|
|
177574
|
-
var
|
|
178753
|
+
var widgetFormvue_type_template_id_aa7a7266_scoped_true_staticRenderFns = []
|
|
177575
178754
|
|
|
177576
178755
|
|
|
177577
178756
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.49.0@core-js/modules/es.array.sort.js
|
|
@@ -177580,8 +178759,8 @@ var es_array_sort = __webpack_require__(15360);
|
|
|
177580
178759
|
var es_array_unshift = __webpack_require__(13255);
|
|
177581
178760
|
// EXTERNAL MODULE: ./src/form/util/util.js
|
|
177582
178761
|
var util_util = __webpack_require__(78393);
|
|
177583
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
177584
|
-
var components = __webpack_require__(
|
|
178762
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 1029 modules
|
|
178763
|
+
var components = __webpack_require__(40000);
|
|
177585
178764
|
// EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 5 modules
|
|
177586
178765
|
var widgetFormItem = __webpack_require__(48942);
|
|
177587
178766
|
// EXTERNAL MODULE: ./src/form/modules/WidgetIdeaSignItem.vue + 5 modules
|
|
@@ -178011,6 +179190,26 @@ var form_util = __webpack_require__(36113);
|
|
|
178011
179190
|
//
|
|
178012
179191
|
//
|
|
178013
179192
|
//
|
|
179193
|
+
//
|
|
179194
|
+
//
|
|
179195
|
+
//
|
|
179196
|
+
//
|
|
179197
|
+
//
|
|
179198
|
+
//
|
|
179199
|
+
//
|
|
179200
|
+
//
|
|
179201
|
+
//
|
|
179202
|
+
//
|
|
179203
|
+
//
|
|
179204
|
+
//
|
|
179205
|
+
//
|
|
179206
|
+
//
|
|
179207
|
+
//
|
|
179208
|
+
//
|
|
179209
|
+
//
|
|
179210
|
+
//
|
|
179211
|
+
//
|
|
179212
|
+
//
|
|
178014
179213
|
|
|
178015
179214
|
|
|
178016
179215
|
|
|
@@ -178029,7 +179228,7 @@ var form_util = __webpack_require__(36113);
|
|
|
178029
179228
|
name: "widgetForm",
|
|
178030
179229
|
data() {
|
|
178031
179230
|
return {
|
|
178032
|
-
fiBlist: ["verify", "grid", "table", "
|
|
179231
|
+
fiBlist: ["verify", "grid", "table", "newTable", "all-lay-out", "idea-sign", "editorAirt", "dataTable", "hnkj-confirm"],
|
|
178033
179232
|
form: this.$form.createForm(this),
|
|
178034
179233
|
widgetList: [[]],
|
|
178035
179234
|
selectWidget: this.selectedWidget,
|
|
@@ -178355,11 +179554,11 @@ var form_util = __webpack_require__(36113);
|
|
|
178355
179554
|
key,
|
|
178356
179555
|
model: (this.widgetList[listindex][newIndex]["model"] ? this.widgetList[listindex][newIndex]["model"] : this.widgetList[listindex][newIndex].type) + "_" + key,
|
|
178357
179556
|
rules: [],
|
|
178358
|
-
columns: this.widgetList[listindex][newIndex].type
|
|
179557
|
+
columns: ['table', 'newTable'].includes(this.widgetList[listindex][newIndex].type) ? [] : this.widgetList[listindex][newIndex].columns
|
|
178359
179558
|
});
|
|
178360
179559
|
|
|
178361
179560
|
/****table 避免共享designList***/
|
|
178362
|
-
if (this.widgetList[listindex][newIndex].type
|
|
179561
|
+
if (['table', 'newTable'].includes(this.widgetList[listindex][newIndex].type)) {
|
|
178363
179562
|
const newWidget = (0,cloneDeep/* default */.A)(this.widgetList[listindex][newIndex]);
|
|
178364
179563
|
if (newWidget.options.enableIndex) {
|
|
178365
179564
|
newWidget.columns.unshift(this.generateTableIndexConf(newWidget));
|
|
@@ -178528,7 +179727,7 @@ var form_util = __webpack_require__(36113);
|
|
|
178528
179727
|
this.$set(row.columns, newIndex, {
|
|
178529
179728
|
...row.columns[newIndex],
|
|
178530
179729
|
designColIndex: colIndex,
|
|
178531
|
-
parentType: 'table',
|
|
179730
|
+
parentType: row.type || 'table',
|
|
178532
179731
|
options: {
|
|
178533
179732
|
...row.columns[newIndex].options,
|
|
178534
179733
|
remoteFunc: "func_" + key
|
|
@@ -178572,10 +179771,10 @@ var form_util = __webpack_require__(36113);
|
|
|
178572
179771
|
});
|
|
178573
179772
|
;// ./src/form/modules/widgetForm.vue?vue&type=script&lang=js
|
|
178574
179773
|
/* harmony default export */ const modules_widgetFormvue_type_script_lang_js = (widgetFormvue_type_script_lang_js);
|
|
178575
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetForm.vue?vue&type=style&index=0&id=
|
|
179774
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetForm.vue?vue&type=style&index=0&id=aa7a7266&prod&lang=less&scoped=true
|
|
178576
179775
|
// extracted by mini-css-extract-plugin
|
|
178577
179776
|
|
|
178578
|
-
;// ./src/form/modules/widgetForm.vue?vue&type=style&index=0&id=
|
|
179777
|
+
;// ./src/form/modules/widgetForm.vue?vue&type=style&index=0&id=aa7a7266&prod&lang=less&scoped=true
|
|
178579
179778
|
|
|
178580
179779
|
;// ./src/form/modules/widgetForm.vue
|
|
178581
179780
|
|
|
@@ -178588,23 +179787,23 @@ var form_util = __webpack_require__(36113);
|
|
|
178588
179787
|
|
|
178589
179788
|
var widgetForm_component = (0,componentNormalizer/* default */.A)(
|
|
178590
179789
|
modules_widgetFormvue_type_script_lang_js,
|
|
178591
|
-
|
|
178592
|
-
|
|
179790
|
+
widgetFormvue_type_template_id_aa7a7266_scoped_true_render,
|
|
179791
|
+
widgetFormvue_type_template_id_aa7a7266_scoped_true_staticRenderFns,
|
|
178593
179792
|
false,
|
|
178594
179793
|
null,
|
|
178595
|
-
"
|
|
179794
|
+
"aa7a7266",
|
|
178596
179795
|
null
|
|
178597
179796
|
|
|
178598
179797
|
)
|
|
178599
179798
|
|
|
178600
179799
|
/* harmony default export */ const widgetForm = (widgetForm_component.exports);
|
|
178601
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetConfig.vue?vue&type=template&id=
|
|
178602
|
-
var
|
|
178603
|
-
var
|
|
179800
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetConfig.vue?vue&type=template&id=6aa7533c&scoped=true
|
|
179801
|
+
var widgetConfigvue_type_template_id_6aa7533c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.selectedWidget && _vm.selectedWidget.key)?_c('div',[(_vm.selectedWidget.type)?_c('widget-public-config',{attrs:{"widget":_vm.selectedWidget,"datalist":_vm.datalist}},[(_vm.selectedWidget.type == 'input')?[_c('inputWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'textarea')?[_c('textareaWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'number')?[_c('numberWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'switch')?[_c('switchWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'radio')?[_c('radioWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'checkbox')?[_c('checkboxWidgetSetup',{attrs:{"widget":_vm.selectedWidget,"datalist":_vm.datalist}})]:(_vm.selectedWidget.type == 'rate')?[_c('rateWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'slider')?[_c('sliderWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'hidden')?[_c('hiddenWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'superLink')?[_c('superLinkWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'codeControl')?[_c('codeControlWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'placeholder')?[_c('placeholderWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'select')?[_c('selectWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'cascaderSelect')?[_c('cascader-select-setup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'table' || _vm.selectedWidget.type == 'newTable')?[(_vm.selectedWidget.type == 'table')?_c('tableWidgetSetup',{attrs:{"widget":_vm.selectedWidget}}):_c('newTableWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'signature')?[_c('signatureWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'grid')?[_c('gridWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'grid-lay-out')?[_c('gridLayoutWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'all-lay-out')?[_c('allLayoutWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'verify')?[_c('verifyWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'idea-sign')?[_c('ideaSignWidgetSetup',{attrs:{"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'uploadModel')?[_c('uploadModelWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'relateSub')?[_c('relateSubWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'userSelector')?[_c('userSelectorWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'userSelectorByRole')?[_c('userSelectorByRoleWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'imgupload')?[_c('imgUploadWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'deptSelector')?[_c('departSelectorWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'dataTable')?[_c('dataTableWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'fileupload')?[_c('fileUploadWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'time')?[_c('timeWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'date')?[_c('dateWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'editorAirt')?[_c('editorAirtWidgetSetup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'responsibility')?[_c('responsibility-setup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:(_vm.selectedWidget.type == 'location')?[_c('location-setup',{attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}})]:_vm._e(),_vm._l((_vm.HnKjTypes),function(hnkjType){return [(hnkjType === _vm.selectedWidget.type)?_c(hnkjType + 'Setup',{tag:"component",attrs:{"datalist":_vm.datalist,"widget":_vm.selectedWidget}}):_vm._e()]})],2):_vm._e(),_c('editorDefalutModal',{ref:"editorDefalutModal",on:{"ok":_vm.editorDefalutModalOk}})],1):_c('div',{staticClass:"config-empty"},[_c('a-icon',{attrs:{"type":"select"}}),_c('p',[_vm._v("请选择一个控件以配置属性")])],1)}
|
|
179802
|
+
var widgetConfigvue_type_template_id_6aa7533c_scoped_true_staticRenderFns = []
|
|
178604
179803
|
|
|
178605
179804
|
|
|
178606
|
-
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=template&id=
|
|
178607
|
-
var
|
|
179805
|
+
;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=template&id=34cf2307&scoped=true
|
|
179806
|
+
var widgetPublicConfigvue_type_template_id_34cf2307_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form"},[_c('a-form-model',[_c('a-form-model-item',{ref:"title",attrs:{"label":"标题"}},[_c('a-input',{model:{value:(_vm.widget.name),callback:function ($$v) {_vm.$set(_vm.widget, "name", $$v)},expression:"widget.name"}})],1),_c('a-form-model-item',{attrs:{"label":"标签宽度","prop":"title"}},[_c('a-input-number',{attrs:{"placeholder":"auto"},model:{value:(_vm.widget.options.labelWidth),callback:function ($$v) {_vm.$set(_vm.widget.options, "labelWidth", $$v)},expression:"widget.options.labelWidth"}})],1),(_vm.hasAutoHeight)?_c('a-form-model-item',{attrs:{"label":"自适应高度:"}},[_c('a-switch',{model:{value:(_vm.widget.options.autoHeight),callback:function ($$v) {_vm.$set(_vm.widget.options, "autoHeight", $$v)},expression:"widget.options.autoHeight"}})],1):_vm._e(),(!_vm.widget.options.autoHeight)?_c('a-form-model-item',{attrs:{"label":"高度","prop":"title"}},[_c('a-input-number',{attrs:{"placeholder":"auto"},model:{value:(_vm.widget.options.height),callback:function ($$v) {_vm.$set(_vm.widget.options, "height", $$v)},expression:"widget.options.height"}})],1):_vm._e(),(_vm.widget.type === 'select')?_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1):_vm._e(),(!['placeholder', 'responsibility', 'fileupload', 'number', 'radio', 'checkbox', 'rate', 'switch', 'slider', 'superLink', 'codeControl', 'imgupload', 'fileupload', 'uploadModel', 'signatureWrite', 'location', 'imgCode', 'publicSign', 'responsibility', 'grid', 'editorAirt', 'hnkj-richEditor', 'hnkj-nameSignature', 'hnkj-sealSignature', 'conferenceRoom', 'all-lay-out', 'grid-lay-out', 'table' ].includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"组件无边框","prop":"title"}},[_c('a-switch',{model:{value:(_vm.widget.options.noBorder),callback:function ($$v) {_vm.$set(_vm.widget.options, "noBorder", $$v)},expression:"widget.options.noBorder"}})],1):_vm._e(),(['input','textarea','placeholder'].includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"下划线"}},[_c('a-switch',{model:{value:(_vm.widget.options.underline),callback:function ($$v) {_vm.$set(_vm.widget.options, "underline", $$v)},expression:"widget.options.underline"}})],1):_vm._e(),(['input','textarea','placeholder'].includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"倾斜"}},[_c('a-switch',{model:{value:(_vm.widget.options.fontItalic),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontItalic", $$v)},expression:"widget.options.fontItalic"}})],1):_vm._e(),(['input', 'textarea'].includes(_vm.widget.type))?_c('div',[_c('a-form-model-item',{ref:"bgc",attrs:{"label":"字体颜色","prop":"labelwordcolor"}},[_c('colorPicker',{staticStyle:{"z-index":"3"},attrs:{"defaultColor":"#000000"},model:{value:(_vm.widget.options.fontColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontColor", $$v)},expression:"widget.options.fontColor"}})],1),_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1),_c('a-form-model-item',{attrs:{"label":"字体类型","prop":"title"}},[_c('a-select',{attrs:{"placeholder":"请选择字体"},model:{value:(_vm.widget.options.fontFamily),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontFamily", $$v)},expression:"widget.options.fontFamily"}},_vm._l((_vm.fontNames),function(item,idx){return _c('a-select-option',{key:idx,attrs:{"value":item}},[_vm._v(" "+_vm._s(item)+" ")])}),1)],1)],1):_vm._e(),(_vm.widget.type == 'codeControl')?_c('a-form-model-item',{attrs:{"label":"默认值"}},[_c('a-input',{attrs:{"disabled":""},model:{value:(_vm.widget.key),callback:function ($$v) {_vm.$set(_vm.widget, "key", $$v)},expression:"widget.key"}})],1):_vm._e(),(['imgupload', 'fileupload'].includes(_vm.widget.type) && _vm.widget.options.placeholder_1 !== undefined)?[(!_vm.seatList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"PC占位内容"}},[_c('a-input',{model:{value:(_vm.widget.options.placeholder_1),callback:function ($$v) {_vm.$set(_vm.widget.options, "placeholder_1", $$v)},expression:"widget.options.placeholder_1"}})],1):_vm._e()]:(!_vm.seatList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"占位内容"}},[_c('a-input',{model:{value:(_vm.widget.options.placeholder),callback:function ($$v) {_vm.$set(_vm.widget.options, "placeholder", $$v)},expression:"widget.options.placeholder"}})],1):_vm._e(),(_vm.widget.type == 'superLink')?_c('a-form-model-item',{attrs:{"label":"超链接名称"}},[_c('a-input',{model:{value:(_vm.widget.options.title),callback:function ($$v) {_vm.$set(_vm.widget.options, "title", $$v)},expression:"widget.options.title"}})],1):_vm._e(),_vm._t("default"),(['input', 'textarea', 'number', 'date'].includes(_vm.widget.type) && !_vm.widget.form_table_index )?[_c('a-form-model-item',{attrs:{"label":"公式联动"}},[_c('warp-formula-edit',{attrs:{"datalist":_vm.datalist,"widget":_vm.widget}})],1)]:_vm._e(),(!['dataTable', 'workflowApp', 'cascaderSelect', 'hnkj-confirm', 'conferenceRoom'].includes(_vm.widget.type) && !_vm.widget.options.accurate)?_c('a-form-model-item',{attrs:{"label":"数据操作类型"}},[_c('a-select',{attrs:{"placeholder":"默认覆盖"},model:{value:(_vm.widget.options.zhuijiaType),callback:function ($$v) {_vm.$set(_vm.widget.options, "zhuijiaType", $$v)},expression:"widget.options.zhuijiaType"}},[_c('a-select-option',{attrs:{"value":"1"}},[_vm._v("覆盖")]),_c('a-select-option',{attrs:{"value":"2"}},[_vm._v("追加")])],1)],1):_vm._e(),(_vm.$route.query.jghsj === '1')?_c('a-form-model-item',{attrs:{"label":"选择入库唯一key"}},[_c('a-switch',{model:{value:(_vm.widget.isJghsjKey),callback:function ($$v) {_vm.$set(_vm.widget, "isJghsjKey", $$v)},expression:"widget.isJghsjKey"}})],1):_vm._e(),(_vm.$route.query.jghsj === '1' && _vm.widget.isJghsjKey)?_c('a-form-model-item',{attrs:{"label":"唯一key"}},[_c('a-select',{model:{value:(_vm.widget.model),callback:function ($$v) {_vm.$set(_vm.widget, "model", $$v)},expression:"widget.model"}},_vm._l((_vm.filedNameList),function(item){return _c('a-select-option',{key:item.field_name,attrs:{"value":item.field_name,"title":item.field_name_value}},[_vm._v(" "+_vm._s(item.field_name_value)+" ")])}),1)],1):_c('a-form-model-item',{attrs:{"label":"唯一key"}},[_c('a-input',{model:{value:(_vm.widget.model),callback:function ($$v) {_vm.$set(_vm.widget, "model", $$v)},expression:"widget.model"}})],1),(
|
|
178608
179807
|
_vm.widget.options && Object.keys(_vm.widget.options).indexOf('multiple') >= 0 && !_vm.excludeMultipleList.includes(_vm.widget.type) && !_vm.widget.options.accurate
|
|
178609
179808
|
)?_c('a-form-model-item',{attrs:{"label":"是否多选"}},[_c('a-switch',{on:{"change":_vm.changeMutiple},model:{value:(_vm.widget.options.multiple),callback:function ($$v) {_vm.$set(_vm.widget.options, "multiple", $$v)},expression:"widget.options.multiple"}})],1):_vm._e(),(_vm.widget.options && (['checkbox'].includes(_vm.widget.type) || (['select'].includes(_vm.widget.type) && _vm.widget.options.multiple) ))?_c('a-form-model-item',{attrs:{"label":"选择区间限制"}},[_c('a-input-number',{attrs:{"id":"minValue","precision":0,"min":1,"placeholder":"最少选"},model:{value:(_vm.widget.options.minValue),callback:function ($$v) {_vm.$set(_vm.widget.options, "minValue", $$v)},expression:"widget.options.minValue"}}),_vm._v(" - "),_c('a-input-number',{attrs:{"id":"maxValue","precision":0,"min":Number(_vm.widget.options.minValue),"placeholder":"最多选"},model:{value:(_vm.widget.options.maxValue),callback:function ($$v) {_vm.$set(_vm.widget.options, "maxValue", $$v)},expression:"widget.options.maxValue"}})],1):_vm._e(),(
|
|
178610
179809
|
!_vm.widget.form_table_index &&
|
|
@@ -178627,13 +179826,15 @@ var widgetPublicConfigvue_type_template_id_5f94fdfc_scoped_true_render = functio
|
|
|
178627
179826
|
)?_c('a-select',{staticStyle:{"width":"100%"},attrs:{"show-search":"","filter-option":_vm.searchDataType,"placeholder":"请选择数据类型"},model:{value:(_vm.widget.options.dataType),callback:function ($$v) {_vm.$set(_vm.widget.options, "dataType", $$v)},expression:"widget.options.dataType"}},[_c('a-select-option',{attrs:{"name":"字符串","value":"string"}},[_vm._v("字符串")]),_c('a-select-option',{attrs:{"name":"URL地址","value":"url"}},[_vm._v("URL地址")]),_c('a-select-option',{attrs:{"name":"邮箱地址","value":"email"}},[_vm._v("邮箱地址")]),(_vm.regularCheckDicts.length > 0)?_vm._l((_vm.regularCheckDicts),function(regular,idx){return _c('a-select-option',{key:idx,attrs:{"name":regular.title,"value":'regular__' + regular.value}},[_vm._v(_vm._s(regular.title))])}):_vm._e()],2):_vm._e(),(
|
|
178628
179827
|
['input', 'textarea'].includes(_vm.widget.type)
|
|
178629
179828
|
)?_c('div',[(_vm.widget.type !== 'dataTable' && _vm.widget.type != 'hnkj-verify')?_c('a-input',{staticStyle:{"width":"100%"},attrs:{"disabled":String(_vm.widget.options.dataType).startsWith('regular__'),"placeholder":"填写正则表达式"},model:{value:(_vm.widget.options.pattern),callback:function ($$v) {_vm.$set(_vm.widget.options, "pattern", $$v)},expression:"widget.options.pattern"}}):_vm._e(),_c('a-input',{directives:[{name:"show",rawName:"v-show",value:(_vm.widget.options.pattern),expression:"widget.options.pattern"}],staticStyle:{"width":"100%"},attrs:{"placeholder":"请填写错误提示"},on:{"blur":_vm.valideError},model:{value:(_vm.widget.options.patternError),callback:function ($$v) {_vm.$set(_vm.widget.options, "patternError", $$v)},expression:"widget.options.patternError"}})],1):_vm._e()]:_vm._e()],2):_vm._e()],2)],1)}
|
|
178630
|
-
var
|
|
179829
|
+
var widgetPublicConfigvue_type_template_id_34cf2307_scoped_true_staticRenderFns = []
|
|
178631
179830
|
|
|
178632
179831
|
|
|
178633
179832
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.49.0@core-js/modules/es.symbol.description.js
|
|
178634
179833
|
var es_symbol_description = __webpack_require__(81325);
|
|
178635
179834
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.49.0@core-js/modules/es.string.replace-all.js
|
|
178636
179835
|
var es_string_replace_all = __webpack_require__(35064);
|
|
179836
|
+
// EXTERNAL MODULE: ./src/form/util/tableUtil.js
|
|
179837
|
+
var tableUtil = __webpack_require__(5229);
|
|
178637
179838
|
;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=script&lang=js
|
|
178638
179839
|
|
|
178639
179840
|
|
|
@@ -179029,6 +180230,7 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
179029
180230
|
|
|
179030
180231
|
|
|
179031
180232
|
|
|
180233
|
+
|
|
179032
180234
|
/* harmony default export */ const widgetPublicConfigvue_type_script_lang_js = ({
|
|
179033
180235
|
name: "widgetPublicConfig",
|
|
179034
180236
|
inject: {
|
|
@@ -179108,7 +180310,7 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
179108
180310
|
// return regularCheckDicts ? regularCheckDicts() : []
|
|
179109
180311
|
// },
|
|
179110
180312
|
hasAutoHeight() {
|
|
179111
|
-
return ['select', 'radio', 'checkbox'].includes(this.widget.type) && this.widget.parentType
|
|
180313
|
+
return ['select', 'radio', 'checkbox'].includes(this.widget.type) && !['table', 'newTable'].includes(this.widget.parentType);
|
|
179112
180314
|
}
|
|
179113
180315
|
},
|
|
179114
180316
|
methods: {
|
|
@@ -179157,7 +180359,7 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
179157
180359
|
if (['date', 'time'].includes(item.type)) {
|
|
179158
180360
|
//时间
|
|
179159
180361
|
this.dateDateList.push(item);
|
|
179160
|
-
} else if (item.type
|
|
180362
|
+
} else if (['table', 'newTable'].includes(item.type) && item.columns && item.columns.length > 0) {
|
|
179161
180363
|
if (item.columns.some(i => ['date', 'time'].includes(i.type))) this.dateDateList.push(...item.columns.filter(i => ['date', 'time'].includes(i.type)));
|
|
179162
180364
|
} else if (['all-lay-out', 'grid', 'grid-lay-out'].includes(item.type) && item.columns && item.columns.length > 0) {
|
|
179163
180365
|
item.columns.forEach(i => {
|
|
@@ -179191,7 +180393,7 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
179191
180393
|
item.columns.forEach(columnsItem => {
|
|
179192
180394
|
this.recursionSameType(columnsItem.list, type);
|
|
179193
180395
|
});
|
|
179194
|
-
} else if (
|
|
180396
|
+
} else if ((0,tableUtil/* isTableWidget */.X2)(item)) {
|
|
179195
180397
|
// columns
|
|
179196
180398
|
this.recursionSameType(item.columns, type);
|
|
179197
180399
|
} else {
|
|
@@ -179361,10 +180563,10 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
179361
180563
|
});
|
|
179362
180564
|
;// ./src/form/modules/widgetPublicConfig.vue?vue&type=script&lang=js
|
|
179363
180565
|
/* harmony default export */ const modules_widgetPublicConfigvue_type_script_lang_js = (widgetPublicConfigvue_type_script_lang_js);
|
|
179364
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
180566
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=34cf2307&prod&lang=less&scoped=true
|
|
179365
180567
|
// extracted by mini-css-extract-plugin
|
|
179366
180568
|
|
|
179367
|
-
;// ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
180569
|
+
;// ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=34cf2307&prod&lang=less&scoped=true
|
|
179368
180570
|
|
|
179369
180571
|
;// ./src/form/modules/widgetPublicConfig.vue
|
|
179370
180572
|
|
|
@@ -179377,11 +180579,11 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
179377
180579
|
|
|
179378
180580
|
var widgetPublicConfig_component = (0,componentNormalizer/* default */.A)(
|
|
179379
180581
|
modules_widgetPublicConfigvue_type_script_lang_js,
|
|
179380
|
-
|
|
179381
|
-
|
|
180582
|
+
widgetPublicConfigvue_type_template_id_34cf2307_scoped_true_render,
|
|
180583
|
+
widgetPublicConfigvue_type_template_id_34cf2307_scoped_true_staticRenderFns,
|
|
179382
180584
|
false,
|
|
179383
180585
|
null,
|
|
179384
|
-
"
|
|
180586
|
+
"34cf2307",
|
|
179385
180587
|
null
|
|
179386
180588
|
|
|
179387
180589
|
)
|
|
@@ -179671,6 +180873,7 @@ var WangEditor_component = (0,componentNormalizer/* default */.A)(
|
|
|
179671
180873
|
//
|
|
179672
180874
|
//
|
|
179673
180875
|
//
|
|
180876
|
+
//
|
|
179674
180877
|
|
|
179675
180878
|
|
|
179676
180879
|
|
|
@@ -179722,10 +180925,10 @@ var WangEditor_component = (0,componentNormalizer/* default */.A)(
|
|
|
179722
180925
|
});
|
|
179723
180926
|
;// ./src/form/modules/widgetConfig.vue?vue&type=script&lang=js
|
|
179724
180927
|
/* harmony default export */ const modules_widgetConfigvue_type_script_lang_js = (widgetConfigvue_type_script_lang_js);
|
|
179725
|
-
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetConfig.vue?vue&type=style&index=0&id=
|
|
180928
|
+
;// ./node_modules/_mini-css-extract-plugin@2.10.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/widgetConfig.vue?vue&type=style&index=0&id=6aa7533c&prod&lang=less&scoped=true
|
|
179726
180929
|
// extracted by mini-css-extract-plugin
|
|
179727
180930
|
|
|
179728
|
-
;// ./src/form/modules/widgetConfig.vue?vue&type=style&index=0&id=
|
|
180931
|
+
;// ./src/form/modules/widgetConfig.vue?vue&type=style&index=0&id=6aa7533c&prod&lang=less&scoped=true
|
|
179729
180932
|
|
|
179730
180933
|
;// ./src/form/modules/widgetConfig.vue
|
|
179731
180934
|
|
|
@@ -179738,11 +180941,11 @@ var WangEditor_component = (0,componentNormalizer/* default */.A)(
|
|
|
179738
180941
|
|
|
179739
180942
|
var widgetConfig_component = (0,componentNormalizer/* default */.A)(
|
|
179740
180943
|
modules_widgetConfigvue_type_script_lang_js,
|
|
179741
|
-
|
|
179742
|
-
|
|
180944
|
+
widgetConfigvue_type_template_id_6aa7533c_scoped_true_render,
|
|
180945
|
+
widgetConfigvue_type_template_id_6aa7533c_scoped_true_staticRenderFns,
|
|
179743
180946
|
false,
|
|
179744
180947
|
null,
|
|
179745
|
-
"
|
|
180948
|
+
"6aa7533c",
|
|
179746
180949
|
null
|
|
179747
180950
|
|
|
179748
180951
|
)
|
|
@@ -182126,13 +183329,26 @@ class Virtual {
|
|
|
182126
183329
|
// try goiong to render next range by a leading buffer according to current direction
|
|
182127
183330
|
handleDataSourcesChange() {
|
|
182128
183331
|
let start = this.range.start;
|
|
182129
|
-
if (this.
|
|
183332
|
+
if (this.direction === DIRECTION_TYPE.FRONT) {
|
|
182130
183333
|
start = start - LEADING_BUFFER;
|
|
182131
|
-
} else if (this.
|
|
183334
|
+
} else if (this.direction === DIRECTION_TYPE.BEHIND) {
|
|
182132
183335
|
start = start + LEADING_BUFFER;
|
|
182133
183336
|
}
|
|
182134
183337
|
start = Math.max(start, 0);
|
|
182135
|
-
this.
|
|
183338
|
+
this.checkRange(start, this.getEndByStart(start));
|
|
183339
|
+
}
|
|
183340
|
+
|
|
183341
|
+
// 数据增长时(如添加行)将渲染窗口移到末尾,确保新增行进入 DOM
|
|
183342
|
+
showTailRange() {
|
|
183343
|
+
const total = this.param.uniqueIds.length;
|
|
183344
|
+
const keeps = this.param.keeps;
|
|
183345
|
+
if (total <= keeps) {
|
|
183346
|
+
this.checkRange(0, this.getLastIndex());
|
|
183347
|
+
return;
|
|
183348
|
+
}
|
|
183349
|
+
const lastIndex = this.getLastIndex();
|
|
183350
|
+
const start = Math.max(0, lastIndex - keeps + 1);
|
|
183351
|
+
this.checkRange(start, lastIndex);
|
|
182136
183352
|
}
|
|
182137
183353
|
|
|
182138
183354
|
// when slot size change, we also need force update
|
|
@@ -182142,11 +183358,24 @@ class Virtual {
|
|
|
182142
183358
|
|
|
182143
183359
|
// calculating range on scroll
|
|
182144
183360
|
handleScroll(offset) {
|
|
182145
|
-
|
|
183361
|
+
const prevOffset = this.offset;
|
|
183362
|
+
if (offset < prevOffset || offset === 0) {
|
|
183363
|
+
this.direction = DIRECTION_TYPE.FRONT;
|
|
183364
|
+
} else if (offset > prevOffset) {
|
|
183365
|
+
this.direction = DIRECTION_TYPE.BEHIND;
|
|
183366
|
+
}
|
|
182146
183367
|
this.offset = offset;
|
|
182147
183368
|
if (!this.param) {
|
|
182148
183369
|
return;
|
|
182149
183370
|
}
|
|
183371
|
+
const overs = this.getScrollOvers();
|
|
183372
|
+
const buffer = this.param.buffer;
|
|
183373
|
+
// 滚动位置已超出当前渲染窗口时强制同步(避免卡在 keeps 边界)
|
|
183374
|
+
if (overs < this.range.start || overs > this.range.end - buffer) {
|
|
183375
|
+
const start = Math.max(overs - buffer, 0);
|
|
183376
|
+
this.checkRange(start, this.getEndByStart(start));
|
|
183377
|
+
return;
|
|
183378
|
+
}
|
|
182150
183379
|
if (this.direction === DIRECTION_TYPE.FRONT) {
|
|
182151
183380
|
this.handleFront();
|
|
182152
183381
|
} else if (this.direction === DIRECTION_TYPE.BEHIND) {
|
|
@@ -182247,7 +183476,7 @@ class Virtual {
|
|
|
182247
183476
|
// if range length is less than keeps, corrent it base on end
|
|
182248
183477
|
start = end - keeps + 1;
|
|
182249
183478
|
}
|
|
182250
|
-
if (this.range.start !== start) {
|
|
183479
|
+
if (this.range.start !== start || this.range.end !== end) {
|
|
182251
183480
|
this.updateRange(start, end);
|
|
182252
183481
|
}
|
|
182253
183482
|
}
|
|
@@ -182483,7 +183712,7 @@ const Wrapper = {
|
|
|
182483
183712
|
},
|
|
182484
183713
|
// tell parent current size identify by unqiue key
|
|
182485
183714
|
dispatchSizeChange() {
|
|
182486
|
-
|
|
183715
|
+
this.$parent.$emit(this.event, this.uniqueKey, this.getCurrentSize(), this.hasInitial);
|
|
182487
183716
|
}
|
|
182488
183717
|
}
|
|
182489
183718
|
};
|
|
@@ -182591,13 +183820,39 @@ const VirtualList = {
|
|
|
182591
183820
|
props: VirtualProps,
|
|
182592
183821
|
data() {
|
|
182593
183822
|
return {
|
|
182594
|
-
range: null
|
|
183823
|
+
range: null,
|
|
183824
|
+
scrollParentEl: null
|
|
182595
183825
|
};
|
|
182596
183826
|
},
|
|
182597
183827
|
watch: {
|
|
182598
|
-
'dataSources.length'() {
|
|
183828
|
+
'dataSources.length'(newLen, oldLen) {
|
|
182599
183829
|
this.virtual.updateParam('uniqueIds', this.getUniqueIdFromDataSources());
|
|
182600
|
-
|
|
183830
|
+
const prevLen = oldLen || 0;
|
|
183831
|
+
// 异步灌入数据(如子表单 tableInit)必须从第 0 行开始渲染,不能误跳到底部
|
|
183832
|
+
if (!prevLen && newLen > 0) {
|
|
183833
|
+
this.resetToHead();
|
|
183834
|
+
return;
|
|
183835
|
+
}
|
|
183836
|
+
if (newLen > prevLen) {
|
|
183837
|
+
const offset = this.getOffset();
|
|
183838
|
+
const clientSize = this.getClientSize();
|
|
183839
|
+
const scrollSize = this.getScrollSize();
|
|
183840
|
+
const atBottom = scrollSize > clientSize && offset + clientSize >= scrollSize - 50;
|
|
183841
|
+
if (atBottom) {
|
|
183842
|
+
this.virtual.showTailRange();
|
|
183843
|
+
} else {
|
|
183844
|
+
this.virtual.handleDataSourcesChange();
|
|
183845
|
+
}
|
|
183846
|
+
this.scheduleScrollSync();
|
|
183847
|
+
} else if (newLen < prevLen) {
|
|
183848
|
+
const lastIndex = Math.max(0, newLen - 1);
|
|
183849
|
+
const start = Math.min(this.virtual.range.start, lastIndex);
|
|
183850
|
+
this.virtual.checkRange(start, Math.min(this.virtual.getEndByStart(start), lastIndex));
|
|
183851
|
+
this.scheduleScrollSync();
|
|
183852
|
+
} else {
|
|
183853
|
+
this.virtual.handleDataSourcesChange();
|
|
183854
|
+
this.scheduleScrollSync();
|
|
183855
|
+
}
|
|
182601
183856
|
},
|
|
182602
183857
|
keeps(newValue) {
|
|
182603
183858
|
this.virtual.updateParam('keeps', newValue);
|
|
@@ -182627,14 +183882,12 @@ const VirtualList = {
|
|
|
182627
183882
|
// set back offset when awake from keep-alive
|
|
182628
183883
|
this.scrollToOffset(this.virtual.offset);
|
|
182629
183884
|
if (this.pageMode) {
|
|
182630
|
-
|
|
182631
|
-
passive: false
|
|
182632
|
-
});
|
|
183885
|
+
this.bindPageScroll();
|
|
182633
183886
|
}
|
|
182634
183887
|
},
|
|
182635
183888
|
deactivated() {
|
|
182636
183889
|
if (this.pageMode) {
|
|
182637
|
-
|
|
183890
|
+
this.unbindPageScroll();
|
|
182638
183891
|
}
|
|
182639
183892
|
},
|
|
182640
183893
|
mounted() {
|
|
@@ -182647,16 +183900,19 @@ const VirtualList = {
|
|
|
182647
183900
|
|
|
182648
183901
|
// in page mode we bind scroll event to document
|
|
182649
183902
|
if (this.pageMode) {
|
|
183903
|
+
this.scrollParentEl = this.findScrollParent(this.$refs.root);
|
|
182650
183904
|
this.updatePageModeFront();
|
|
182651
|
-
|
|
182652
|
-
|
|
183905
|
+
this.$nextTick(() => {
|
|
183906
|
+
this.refreshListScrollAnchor();
|
|
183907
|
+
this.bindPageScroll();
|
|
183908
|
+
this.syncScrollRange();
|
|
182653
183909
|
});
|
|
182654
183910
|
}
|
|
182655
183911
|
},
|
|
182656
183912
|
beforeDestroy() {
|
|
182657
183913
|
this.virtual.destroy();
|
|
182658
183914
|
if (this.pageMode) {
|
|
182659
|
-
|
|
183915
|
+
this.unbindPageScroll();
|
|
182660
183916
|
}
|
|
182661
183917
|
},
|
|
182662
183918
|
methods: {
|
|
@@ -182668,10 +183924,74 @@ const VirtualList = {
|
|
|
182668
183924
|
getSizes() {
|
|
182669
183925
|
return this.virtual.sizes.size;
|
|
182670
183926
|
},
|
|
183927
|
+
findScrollParent(el) {
|
|
183928
|
+
if (!el) return null;
|
|
183929
|
+
let node = el.parentElement;
|
|
183930
|
+
while (node && node !== document.body && node !== document.documentElement) {
|
|
183931
|
+
if (node.classList && node.classList.contains('scroll-area')) {
|
|
183932
|
+
return node;
|
|
183933
|
+
}
|
|
183934
|
+
const style = window.getComputedStyle(node);
|
|
183935
|
+
const overflowY = style.overflowY;
|
|
183936
|
+
const overflow = style.overflow;
|
|
183937
|
+
if (/(auto|scroll|overlay)/.test(overflowY) || /(auto|scroll|overlay)/.test(overflow)) {
|
|
183938
|
+
return node;
|
|
183939
|
+
}
|
|
183940
|
+
node = node.parentElement;
|
|
183941
|
+
}
|
|
183942
|
+
const scrollArea = document.querySelector('.scroll-area');
|
|
183943
|
+
if (scrollArea && scrollArea.contains(el)) {
|
|
183944
|
+
return scrollArea;
|
|
183945
|
+
}
|
|
183946
|
+
return null;
|
|
183947
|
+
},
|
|
183948
|
+
getListTopInScrollContent() {
|
|
183949
|
+
const {
|
|
183950
|
+
root
|
|
183951
|
+
} = this.$refs;
|
|
183952
|
+
const parent = this.scrollParentEl;
|
|
183953
|
+
if (!root || !parent) return 0;
|
|
183954
|
+
return parent.scrollTop + (root.getBoundingClientRect().top - parent.getBoundingClientRect().top);
|
|
183955
|
+
},
|
|
183956
|
+
refreshListScrollAnchor() {
|
|
183957
|
+
this._listTopInContent = this.getListTopInScrollContent();
|
|
183958
|
+
},
|
|
183959
|
+
bindPageScroll() {
|
|
183960
|
+
window.addEventListener('scroll', this.onScroll, {
|
|
183961
|
+
passive: false
|
|
183962
|
+
});
|
|
183963
|
+
if (this.scrollParentEl) {
|
|
183964
|
+
this.scrollParentEl.addEventListener('scroll', this.onScroll, {
|
|
183965
|
+
passive: false
|
|
183966
|
+
});
|
|
183967
|
+
}
|
|
183968
|
+
},
|
|
183969
|
+
unbindPageScroll() {
|
|
183970
|
+
window.removeEventListener('scroll', this.onScroll);
|
|
183971
|
+
if (this.scrollParentEl) {
|
|
183972
|
+
this.scrollParentEl.removeEventListener('scroll', this.onScroll);
|
|
183973
|
+
}
|
|
183974
|
+
},
|
|
183975
|
+
getPageModeOffset() {
|
|
183976
|
+
const {
|
|
183977
|
+
root
|
|
183978
|
+
} = this.$refs;
|
|
183979
|
+
if (!root) return 0;
|
|
183980
|
+
if (this.scrollParentEl) {
|
|
183981
|
+
// 必须用 scrollTop 计算:rect 差值在容器内滚动时不变,会导致超过 keeps 后窗口不更新
|
|
183982
|
+
if (this._listTopInContent == null) {
|
|
183983
|
+
this.refreshListScrollAnchor();
|
|
183984
|
+
}
|
|
183985
|
+
const listTop = this._listTopInContent || 0;
|
|
183986
|
+
const scrollTop = this.scrollParentEl[this.directionKey] || 0;
|
|
183987
|
+
return Math.max(0, Math.ceil(scrollTop - listTop));
|
|
183988
|
+
}
|
|
183989
|
+
return document.documentElement[this.directionKey] || document.body[this.directionKey];
|
|
183990
|
+
},
|
|
182671
183991
|
// return current scroll offset
|
|
182672
183992
|
getOffset() {
|
|
182673
183993
|
if (this.pageMode) {
|
|
182674
|
-
return
|
|
183994
|
+
return this.getPageModeOffset();
|
|
182675
183995
|
} else {
|
|
182676
183996
|
const {
|
|
182677
183997
|
root
|
|
@@ -182683,6 +184003,9 @@ const VirtualList = {
|
|
|
182683
184003
|
getClientSize() {
|
|
182684
184004
|
const key = this.isHorizontal ? 'clientWidth' : 'clientHeight';
|
|
182685
184005
|
if (this.pageMode) {
|
|
184006
|
+
if (this.scrollParentEl) {
|
|
184007
|
+
return Math.ceil(this.scrollParentEl[key]);
|
|
184008
|
+
}
|
|
182686
184009
|
return document.documentElement[key] || document.body[key];
|
|
182687
184010
|
} else {
|
|
182688
184011
|
const {
|
|
@@ -182691,10 +184014,31 @@ const VirtualList = {
|
|
|
182691
184014
|
return root ? Math.ceil(root[key]) : 0;
|
|
182692
184015
|
}
|
|
182693
184016
|
},
|
|
184017
|
+
getListScrollSize() {
|
|
184018
|
+
const {
|
|
184019
|
+
root,
|
|
184020
|
+
shepherd
|
|
184021
|
+
} = this.$refs;
|
|
184022
|
+
if (!root || !shepherd) return 0;
|
|
184023
|
+
const offsetKey = this.isHorizontal ? 'offsetLeft' : 'offsetTop';
|
|
184024
|
+
const sizeKey = this.isHorizontal ? 'offsetWidth' : 'offsetHeight';
|
|
184025
|
+
return shepherd[offsetKey] + (shepherd[sizeKey] || 0);
|
|
184026
|
+
},
|
|
184027
|
+
getEstimatedScrollSize() {
|
|
184028
|
+
const itemSize = this.virtual ? this.virtual.getEstimateSize() : this.estimateSize;
|
|
184029
|
+
return Math.ceil(this.dataSources.length * itemSize);
|
|
184030
|
+
},
|
|
182694
184031
|
// return all scroll size
|
|
182695
184032
|
getScrollSize() {
|
|
182696
184033
|
const key = this.isHorizontal ? 'scrollWidth' : 'scrollHeight';
|
|
182697
184034
|
if (this.pageMode) {
|
|
184035
|
+
const listSize = this.getListScrollSize();
|
|
184036
|
+
const estimatedSize = this.getEstimatedScrollSize();
|
|
184037
|
+
const virtualSize = Math.max(listSize, estimatedSize);
|
|
184038
|
+
if (virtualSize) return virtualSize;
|
|
184039
|
+
if (this.scrollParentEl) {
|
|
184040
|
+
return Math.ceil(this.scrollParentEl[key]);
|
|
184041
|
+
}
|
|
182698
184042
|
return document.documentElement[key] || document.body[key];
|
|
182699
184043
|
} else {
|
|
182700
184044
|
const {
|
|
@@ -182703,11 +184047,31 @@ const VirtualList = {
|
|
|
182703
184047
|
return root ? Math.ceil(root[key]) : 0;
|
|
182704
184048
|
}
|
|
182705
184049
|
},
|
|
184050
|
+
scrollLastItemIntoView() {
|
|
184051
|
+
const {
|
|
184052
|
+
root
|
|
184053
|
+
} = this.$refs;
|
|
184054
|
+
if (!root) return;
|
|
184055
|
+
const lastItem = root.querySelector('[role="listitem"]:last-of-type');
|
|
184056
|
+
if (lastItem) {
|
|
184057
|
+
lastItem.scrollIntoView({
|
|
184058
|
+
block: 'nearest',
|
|
184059
|
+
behavior: 'auto'
|
|
184060
|
+
});
|
|
184061
|
+
}
|
|
184062
|
+
},
|
|
182706
184063
|
// set current scroll position to a expectant offset
|
|
182707
184064
|
scrollToOffset(offset) {
|
|
182708
184065
|
if (this.pageMode) {
|
|
182709
|
-
|
|
182710
|
-
|
|
184066
|
+
if (this.scrollParentEl) {
|
|
184067
|
+
if (this._listTopInContent == null) {
|
|
184068
|
+
this.refreshListScrollAnchor();
|
|
184069
|
+
}
|
|
184070
|
+
this.scrollParentEl[this.directionKey] = (this._listTopInContent || 0) + offset;
|
|
184071
|
+
} else {
|
|
184072
|
+
document.body[this.directionKey] = offset;
|
|
184073
|
+
document.documentElement[this.directionKey] = offset;
|
|
184074
|
+
}
|
|
182711
184075
|
} else {
|
|
182712
184076
|
const {
|
|
182713
184077
|
root
|
|
@@ -182728,23 +184092,18 @@ const VirtualList = {
|
|
|
182728
184092
|
}
|
|
182729
184093
|
},
|
|
182730
184094
|
// set current scroll position to bottom
|
|
182731
|
-
scrollToBottom() {
|
|
184095
|
+
scrollToBottom(retryCount = 0) {
|
|
182732
184096
|
const {
|
|
182733
184097
|
shepherd
|
|
182734
184098
|
} = this.$refs;
|
|
182735
|
-
if (shepherd)
|
|
182736
|
-
|
|
182737
|
-
|
|
182738
|
-
|
|
182739
|
-
|
|
182740
|
-
|
|
182741
|
-
|
|
182742
|
-
|
|
182743
|
-
if (this.getOffset() + this.getClientSize() + 1 < this.getScrollSize()) {
|
|
182744
|
-
this.scrollToBottom();
|
|
182745
|
-
}
|
|
182746
|
-
}, 3);
|
|
182747
|
-
}
|
|
184099
|
+
if (!shepherd || retryCount > 15) return;
|
|
184100
|
+
const offset = shepherd[this.isHorizontal ? 'offsetLeft' : 'offsetTop'];
|
|
184101
|
+
this.scrollToOffset(offset);
|
|
184102
|
+
setTimeout(() => {
|
|
184103
|
+
if (this.getOffset() + this.getClientSize() + 1 < this.getScrollSize()) {
|
|
184104
|
+
this.scrollToBottom(retryCount + 1);
|
|
184105
|
+
}
|
|
184106
|
+
}, 3);
|
|
182748
184107
|
},
|
|
182749
184108
|
// when using page mode we need update slot header size manually
|
|
182750
184109
|
// taking root offset relative to the browser as slot header size
|
|
@@ -182752,14 +184111,50 @@ const VirtualList = {
|
|
|
182752
184111
|
const {
|
|
182753
184112
|
root
|
|
182754
184113
|
} = this.$refs;
|
|
182755
|
-
if (root)
|
|
182756
|
-
|
|
182757
|
-
|
|
182758
|
-
|
|
182759
|
-
} = root.ownerDocument;
|
|
182760
|
-
const offsetFront = this.isHorizontal ? rect.left + defaultView.pageXOffset : rect.top + defaultView.pageYOffset;
|
|
182761
|
-
this.virtual.updateParam('slotHeaderSize', offsetFront);
|
|
184114
|
+
if (!root) return;
|
|
184115
|
+
if (this.scrollParentEl) {
|
|
184116
|
+
this.virtual.updateParam('slotHeaderSize', 0);
|
|
184117
|
+
return;
|
|
182762
184118
|
}
|
|
184119
|
+
const rect = root.getBoundingClientRect();
|
|
184120
|
+
const {
|
|
184121
|
+
defaultView
|
|
184122
|
+
} = root.ownerDocument;
|
|
184123
|
+
const offsetFront = this.isHorizontal ? rect.left + defaultView.pageXOffset : rect.top + defaultView.pageYOffset;
|
|
184124
|
+
this.virtual.updateParam('slotHeaderSize', offsetFront);
|
|
184125
|
+
},
|
|
184126
|
+
refreshScrollParent() {
|
|
184127
|
+
const {
|
|
184128
|
+
root
|
|
184129
|
+
} = this.$refs;
|
|
184130
|
+
if (!root) return;
|
|
184131
|
+
this.scrollParentEl = this.findScrollParent(root);
|
|
184132
|
+
this._listTopInContent = null;
|
|
184133
|
+
},
|
|
184134
|
+
scheduleScrollSync() {
|
|
184135
|
+
this.$nextTick(() => {
|
|
184136
|
+
this.syncScrollRange();
|
|
184137
|
+
requestAnimationFrame(() => {
|
|
184138
|
+
this.syncScrollRange();
|
|
184139
|
+
});
|
|
184140
|
+
});
|
|
184141
|
+
},
|
|
184142
|
+
resetToHead() {
|
|
184143
|
+
this.refreshScrollParent();
|
|
184144
|
+
this.updatePageModeFront();
|
|
184145
|
+
this.refreshListScrollAnchor();
|
|
184146
|
+
this.virtual.updateParam('uniqueIds', this.getUniqueIdFromDataSources());
|
|
184147
|
+
const lastIndex = Math.max(0, this.dataSources.length - 1);
|
|
184148
|
+
this.virtual.checkRange(0, Math.min(this.keeps - 1, lastIndex));
|
|
184149
|
+
this.scheduleScrollSync();
|
|
184150
|
+
},
|
|
184151
|
+
scrollToNewRow() {
|
|
184152
|
+
this.virtual.updateParam('uniqueIds', this.getUniqueIdFromDataSources());
|
|
184153
|
+
this.virtual.showTailRange();
|
|
184154
|
+
this.$nextTick(() => {
|
|
184155
|
+
this.scrollLastItemIntoView();
|
|
184156
|
+
this.scheduleScrollSync();
|
|
184157
|
+
});
|
|
182763
184158
|
},
|
|
182764
184159
|
// reset all state back to initial
|
|
182765
184160
|
reset() {
|
|
@@ -182793,6 +184188,15 @@ const VirtualList = {
|
|
|
182793
184188
|
onItemResized(id, size) {
|
|
182794
184189
|
this.virtual.saveSize(id, size);
|
|
182795
184190
|
this.$emit('resized', id, size);
|
|
184191
|
+
if (!this._scrollSyncFrame) {
|
|
184192
|
+
this._scrollSyncFrame = requestAnimationFrame(() => {
|
|
184193
|
+
this._scrollSyncFrame = null;
|
|
184194
|
+
if (this.pageMode && this.scrollParentEl) {
|
|
184195
|
+
this.refreshListScrollAnchor();
|
|
184196
|
+
}
|
|
184197
|
+
this.syncScrollRange();
|
|
184198
|
+
});
|
|
184199
|
+
}
|
|
182796
184200
|
},
|
|
182797
184201
|
// event called when slot mounted or size changed
|
|
182798
184202
|
onSlotResized(type, size, hasInit) {
|
|
@@ -182809,13 +184213,22 @@ const VirtualList = {
|
|
|
182809
184213
|
onRangeChanged(range) {
|
|
182810
184214
|
this.range = range;
|
|
182811
184215
|
},
|
|
184216
|
+
syncScrollRange() {
|
|
184217
|
+
this.$nextTick(() => {
|
|
184218
|
+
this.onScroll();
|
|
184219
|
+
});
|
|
184220
|
+
},
|
|
182812
184221
|
onScroll(evt) {
|
|
182813
184222
|
const offset = this.getOffset();
|
|
182814
184223
|
const clientSize = this.getClientSize();
|
|
182815
184224
|
const scrollSize = this.getScrollSize();
|
|
184225
|
+
if (offset < 0) {
|
|
184226
|
+
return;
|
|
184227
|
+
}
|
|
182816
184228
|
|
|
182817
|
-
//
|
|
182818
|
-
|
|
184229
|
+
// 嵌套滚动容器内,列表总高度常小于视口,原守卫会阻止滚回前几行
|
|
184230
|
+
const inNestedScrollParent = this.pageMode && this.scrollParentEl;
|
|
184231
|
+
if (!inNestedScrollParent && scrollSize > 0 && offset + clientSize > scrollSize + 1) {
|
|
182819
184232
|
return;
|
|
182820
184233
|
}
|
|
182821
184234
|
this.virtual.handleScroll(offset);
|
|
@@ -190711,7 +192124,7 @@ var formula_edit_component = (0,componentNormalizer/* default */.A)(
|
|
|
190711
192124
|
}
|
|
190712
192125
|
},
|
|
190713
192126
|
components: {
|
|
190714
|
-
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
192127
|
+
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 89715)),
|
|
190715
192128
|
FormulaEdit: formula_edit
|
|
190716
192129
|
},
|
|
190717
192130
|
data() {
|