ocpview-pro 0.1.13 → 0.1.15
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/index.js
CHANGED
|
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
|
|
|
453
453
|
common.initAnchor(ViewUI2.Anchor);
|
|
454
454
|
};
|
|
455
455
|
const name = "ocpview-pro";
|
|
456
|
-
const version$2 = "0.1.
|
|
456
|
+
const version$2 = "0.1.14";
|
|
457
457
|
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
@@ -45114,7 +45114,16 @@ const _sfc_main$f = {
|
|
|
45114
45114
|
name: "BillListPanelTable",
|
|
45115
45115
|
extends: SimpleViewGrid,
|
|
45116
45116
|
data() {
|
|
45117
|
-
return {
|
|
45117
|
+
return {
|
|
45118
|
+
userShowSummary: void 0
|
|
45119
|
+
};
|
|
45120
|
+
},
|
|
45121
|
+
watch: {
|
|
45122
|
+
summaryColumn(val2) {
|
|
45123
|
+
if (val2 && val2.length > 0) {
|
|
45124
|
+
this.summaryColumn = [];
|
|
45125
|
+
}
|
|
45126
|
+
}
|
|
45118
45127
|
},
|
|
45119
45128
|
computed: {
|
|
45120
45129
|
RewriteColumns() {
|
|
@@ -45203,6 +45212,34 @@ const _sfc_main$f = {
|
|
|
45203
45212
|
}
|
|
45204
45213
|
},
|
|
45205
45214
|
methods: {
|
|
45215
|
+
refurbishSucceedDefault() {
|
|
45216
|
+
this.sumGroupNum = 0;
|
|
45217
|
+
if (this.dynamicInitData && this.dynamicInitData[this.myConfig.response]) {
|
|
45218
|
+
if (this.myConfig.showAll) {
|
|
45219
|
+
if (this.myConfig.rowAll) {
|
|
45220
|
+
this.dynamicInitData[this.myConfig.response].splice(0, 0, this.myConfig.rowAll);
|
|
45221
|
+
}
|
|
45222
|
+
}
|
|
45223
|
+
let data = [];
|
|
45224
|
+
if (this.myConfig.overrideData) {
|
|
45225
|
+
data = this.myConfig.overrideData(this.dynamicInitData[this.myConfig.response]);
|
|
45226
|
+
} else {
|
|
45227
|
+
data = this.dynamicInitData[this.myConfig.response];
|
|
45228
|
+
}
|
|
45229
|
+
if (this.dynamicInitData.sumgroups) {
|
|
45230
|
+
data = this.doSumgroups(data, this.dynamicInitData.sumgroups);
|
|
45231
|
+
}
|
|
45232
|
+
this.data = data;
|
|
45233
|
+
this.tempData = this.$Method.copy(data);
|
|
45234
|
+
}
|
|
45235
|
+
if (this.dynamicInitData.total_results !== void 0) {
|
|
45236
|
+
this.myConfig.pageConfig.total_results = Number(this.dynamicInitData.total_results);
|
|
45237
|
+
}
|
|
45238
|
+
this.total_summary = {};
|
|
45239
|
+
if (this.userShowSummary !== void 0) {
|
|
45240
|
+
this.myConfig.showSummary = this.userShowSummary;
|
|
45241
|
+
}
|
|
45242
|
+
},
|
|
45206
45243
|
getSelection() {
|
|
45207
45244
|
const selectDataList = this.$refs.table.getCheckboxRecords(true);
|
|
45208
45245
|
return [...selectDataList];
|
|
@@ -45250,23 +45287,6 @@ const _sfc_main$f = {
|
|
|
45250
45287
|
return this.myConfig.sumText;
|
|
45251
45288
|
}
|
|
45252
45289
|
if (this.sumFields.includes(column2.field)) {
|
|
45253
|
-
const serverValue = this.total_summary[column2.field];
|
|
45254
|
-
if (serverValue !== void 0) {
|
|
45255
|
-
const columnConfig2 = this.tableColumns.find(
|
|
45256
|
-
(c10) => c10.name === column2.field
|
|
45257
|
-
);
|
|
45258
|
-
const format3 = columnConfig2 == null ? void 0 : columnConfig2.format;
|
|
45259
|
-
const notzero2 = columnConfig2 == null ? void 0 : columnConfig2.notzero;
|
|
45260
|
-
const rawValue = serverValue === 0 ? 0 : serverValue;
|
|
45261
|
-
const result = this.$Method.formatNumber(
|
|
45262
|
-
rawValue,
|
|
45263
|
-
format3,
|
|
45264
|
-
notzero2
|
|
45265
|
-
);
|
|
45266
|
-
if (result === "-0.00" || result === "-0")
|
|
45267
|
-
return "0.00";
|
|
45268
|
-
return result;
|
|
45269
|
-
}
|
|
45270
45290
|
const sumData = this.handleSumField({
|
|
45271
45291
|
list: this.tempData,
|
|
45272
45292
|
field: column2.field
|
|
@@ -45276,14 +45296,14 @@ const _sfc_main$f = {
|
|
|
45276
45296
|
);
|
|
45277
45297
|
const format2 = columnConfig == null ? void 0 : columnConfig.format;
|
|
45278
45298
|
const notzero = columnConfig == null ? void 0 : columnConfig.notzero;
|
|
45279
|
-
const
|
|
45299
|
+
const result = this.$Method.formatNumber(
|
|
45280
45300
|
sumData,
|
|
45281
45301
|
format2,
|
|
45282
45302
|
notzero
|
|
45283
45303
|
);
|
|
45284
|
-
if (
|
|
45304
|
+
if (result === "-0.00" || result === "-0")
|
|
45285
45305
|
return "0.00";
|
|
45286
|
-
return
|
|
45306
|
+
return result;
|
|
45287
45307
|
}
|
|
45288
45308
|
return null;
|
|
45289
45309
|
})
|
|
@@ -45301,6 +45321,10 @@ const _sfc_main$f = {
|
|
|
45301
45321
|
}
|
|
45302
45322
|
},
|
|
45303
45323
|
mounted() {
|
|
45324
|
+
},
|
|
45325
|
+
created() {
|
|
45326
|
+
var _a2;
|
|
45327
|
+
this.userShowSummary = (_a2 = this.config) == null ? void 0 : _a2.showSummary;
|
|
45304
45328
|
}
|
|
45305
45329
|
};
|
|
45306
45330
|
const _hoisted_1$c = { ref: "head" };
|