@indfnd/common-mobile 0.0.5 → 0.0.6
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/CHANGELOG.md +15 -0
- package/dist/ind-common-mobile.es.js +346 -135
- package/dist/ind-common-mobile.umd.cjs +30 -30
- package/dist/styles/index.css +1 -1
- package/package.json +2 -2
- package/src/styles/variables/base.less +3 -1
- package/src/styles/variables/theme1.less +2 -0
- package/src/styles/variables/theme2.less +2 -0
|
@@ -2,7 +2,7 @@ import { formatDate, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axi
|
|
|
2
2
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name = "@indfnd/common-mobile";
|
|
5
|
-
const version$1 = "0.0.
|
|
5
|
+
const version$1 = "0.0.5";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@ const dependencies = {
|
|
|
52
52
|
"xlsx-populate": "^1.11.0"
|
|
53
53
|
};
|
|
54
54
|
const devDependencies = {
|
|
55
|
-
"@indfnd/utils": "^0.0.
|
|
55
|
+
"@indfnd/utils": "^0.0.39",
|
|
56
56
|
eslint: "^3.19.0",
|
|
57
57
|
"eslint-config-prettier": "^8.5.0",
|
|
58
58
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -6402,10 +6402,75 @@ var FormImpl = {
|
|
|
6402
6402
|
]
|
|
6403
6403
|
)
|
|
6404
6404
|
);
|
|
6405
|
+
} else if (this.formType == "card2") {
|
|
6406
|
+
let titleField = _.remove(renderFieldList, (d) => {
|
|
6407
|
+
return d.isTitle === "true" || d.isTitle === true;
|
|
6408
|
+
})[0];
|
|
6409
|
+
let subTitleField = _.remove(renderFieldList, (d) => {
|
|
6410
|
+
return d.isSubTitle === "true" || d.isSubTitle === true;
|
|
6411
|
+
})[0];
|
|
6412
|
+
formItems.push(
|
|
6413
|
+
h(
|
|
6414
|
+
"Col",
|
|
6415
|
+
{
|
|
6416
|
+
props: {
|
|
6417
|
+
span: 24
|
|
6418
|
+
}
|
|
6419
|
+
},
|
|
6420
|
+
[
|
|
6421
|
+
h(
|
|
6422
|
+
"FormItem",
|
|
6423
|
+
{
|
|
6424
|
+
props: {
|
|
6425
|
+
labelWidth: 0
|
|
6426
|
+
}
|
|
6427
|
+
},
|
|
6428
|
+
[
|
|
6429
|
+
h(
|
|
6430
|
+
"div",
|
|
6431
|
+
{
|
|
6432
|
+
class: "ind-flex",
|
|
6433
|
+
style: {
|
|
6434
|
+
marginBottom: "var(--ind-page-padding-vertical)"
|
|
6435
|
+
}
|
|
6436
|
+
},
|
|
6437
|
+
[
|
|
6438
|
+
h("div", {
|
|
6439
|
+
class: "ind-page-icon need-icon ind-flex-no-shrink"
|
|
6440
|
+
}),
|
|
6441
|
+
h(
|
|
6442
|
+
"div",
|
|
6443
|
+
{
|
|
6444
|
+
class: "ind-flex-column ind-flex-grow ind-vcenter"
|
|
6445
|
+
},
|
|
6446
|
+
[
|
|
6447
|
+
h(
|
|
6448
|
+
"div",
|
|
6449
|
+
{
|
|
6450
|
+
class: "ind-page-title"
|
|
6451
|
+
},
|
|
6452
|
+
[this.form[titleField == null ? void 0 : titleField.formKey]]
|
|
6453
|
+
),
|
|
6454
|
+
h(
|
|
6455
|
+
"div",
|
|
6456
|
+
{
|
|
6457
|
+
class: "ind-page-sub-title"
|
|
6458
|
+
},
|
|
6459
|
+
[this.form[subTitleField == null ? void 0 : subTitleField.formKey]]
|
|
6460
|
+
)
|
|
6461
|
+
]
|
|
6462
|
+
)
|
|
6463
|
+
]
|
|
6464
|
+
)
|
|
6465
|
+
]
|
|
6466
|
+
)
|
|
6467
|
+
]
|
|
6468
|
+
)
|
|
6469
|
+
);
|
|
6405
6470
|
}
|
|
6406
6471
|
let diff = this.fieldList.length - renderFieldList.length;
|
|
6407
6472
|
_.forEach(renderFieldList, (d, idx) => {
|
|
6408
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m
|
|
6473
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
6409
6474
|
let itemInner;
|
|
6410
6475
|
if (d.render) {
|
|
6411
6476
|
itemInner = d.render(h, d, this.form);
|
|
@@ -6486,43 +6551,30 @@ var FormImpl = {
|
|
|
6486
6551
|
break;
|
|
6487
6552
|
}
|
|
6488
6553
|
case "select": {
|
|
6489
|
-
itemInner = h(
|
|
6490
|
-
|
|
6491
|
-
{
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
});
|
|
6510
|
-
}
|
|
6554
|
+
itemInner = h("IndMInputSelect", {
|
|
6555
|
+
ref: d.formKey,
|
|
6556
|
+
props: {
|
|
6557
|
+
title: d.title,
|
|
6558
|
+
options: d.enumList || ((_d = this.enumData[d.enumKey]) == null ? void 0 : _d.enumList) || [],
|
|
6559
|
+
...d.props || {},
|
|
6560
|
+
value: this.form[d.formKey],
|
|
6561
|
+
disabled
|
|
6562
|
+
},
|
|
6563
|
+
attrs: {
|
|
6564
|
+
...d.props,
|
|
6565
|
+
noTriggerInDefault: true
|
|
6566
|
+
},
|
|
6567
|
+
on: {
|
|
6568
|
+
input: (val) => {
|
|
6569
|
+
this.form[d.formKey] = val;
|
|
6570
|
+
this.$emit("input", this.form);
|
|
6571
|
+
const required = d.required instanceof Function ? d.required(this.form) : d.required;
|
|
6572
|
+
if (required) {
|
|
6573
|
+
this.$refs.form.validateField(d.formKey);
|
|
6511
6574
|
}
|
|
6512
6575
|
}
|
|
6513
|
-
}
|
|
6514
|
-
|
|
6515
|
-
return h(
|
|
6516
|
-
"Option",
|
|
6517
|
-
{
|
|
6518
|
-
props: {
|
|
6519
|
-
value: d2.K
|
|
6520
|
-
}
|
|
6521
|
-
},
|
|
6522
|
-
[d2.V]
|
|
6523
|
-
);
|
|
6524
|
-
})
|
|
6525
|
-
);
|
|
6576
|
+
}
|
|
6577
|
+
});
|
|
6526
6578
|
break;
|
|
6527
6579
|
}
|
|
6528
6580
|
case "checkbox": {
|
|
@@ -6547,7 +6599,7 @@ var FormImpl = {
|
|
|
6547
6599
|
}
|
|
6548
6600
|
}
|
|
6549
6601
|
},
|
|
6550
|
-
(d.enumList || ((
|
|
6602
|
+
(d.enumList || ((_e = this.enumData[d.enumKey]) == null ? void 0 : _e.enumList) || []).map((d2) => {
|
|
6551
6603
|
return h(
|
|
6552
6604
|
"Checkbox",
|
|
6553
6605
|
{
|
|
@@ -6567,7 +6619,7 @@ var FormImpl = {
|
|
|
6567
6619
|
ref: d.formKey,
|
|
6568
6620
|
props: {
|
|
6569
6621
|
...d.props,
|
|
6570
|
-
options: d.enumList || ((
|
|
6622
|
+
options: d.enumList || ((_f = this.enumData[d.enumKey]) == null ? void 0 : _f.enumList) || [],
|
|
6571
6623
|
value: this.form[d.formKey]
|
|
6572
6624
|
},
|
|
6573
6625
|
on: {
|
|
@@ -6607,7 +6659,7 @@ var FormImpl = {
|
|
|
6607
6659
|
}
|
|
6608
6660
|
}
|
|
6609
6661
|
},
|
|
6610
|
-
(d.enumList || ((
|
|
6662
|
+
(d.enumList || ((_g = this.enumData[d.enumKey]) == null ? void 0 : _g.enumList) || []).map((d2) => {
|
|
6611
6663
|
return h(
|
|
6612
6664
|
"Radio",
|
|
6613
6665
|
{
|
|
@@ -6627,7 +6679,7 @@ var FormImpl = {
|
|
|
6627
6679
|
ref: d.formKey,
|
|
6628
6680
|
props: {
|
|
6629
6681
|
value: this.form[d.formKey],
|
|
6630
|
-
type: ((
|
|
6682
|
+
type: ((_h = d.props) == null ? void 0 : _h.type) || "date"
|
|
6631
6683
|
},
|
|
6632
6684
|
attrs: {
|
|
6633
6685
|
...d.props,
|
|
@@ -6655,6 +6707,7 @@ var FormImpl = {
|
|
|
6655
6707
|
itemInner = h("IndMInputSelect", {
|
|
6656
6708
|
ref: d.formKey,
|
|
6657
6709
|
props: {
|
|
6710
|
+
title: d.title,
|
|
6658
6711
|
...d.props || {},
|
|
6659
6712
|
value: this.form[d.formKey],
|
|
6660
6713
|
disabled
|
|
@@ -6719,15 +6772,18 @@ var FormImpl = {
|
|
|
6719
6772
|
default: {
|
|
6720
6773
|
let text = this.form[d.formKey];
|
|
6721
6774
|
if (d.enumKey) {
|
|
6722
|
-
text = (
|
|
6775
|
+
text = (_j = (_i = this.enumData[d.enumKey]) == null ? void 0 : _i.enumData) == null ? void 0 : _j[text];
|
|
6723
6776
|
} else if (d.enumList && d.enumList.length) {
|
|
6724
|
-
text = (
|
|
6777
|
+
text = (_l = (_k = d.enumList) == null ? void 0 : _k.find(({ K }) => K === text)) == null ? void 0 : _l.V;
|
|
6725
6778
|
} else if (d.enumData) {
|
|
6726
|
-
text = (
|
|
6779
|
+
text = (_m = d.enumData) == null ? void 0 : _m[text];
|
|
6727
6780
|
}
|
|
6728
6781
|
if (d.dateFormat) {
|
|
6729
6782
|
text = formatDate(text);
|
|
6730
6783
|
}
|
|
6784
|
+
if (d.scale !== void 0) {
|
|
6785
|
+
text = isNaN(text) ? text : parseFloat(text).toFixed(d.scale);
|
|
6786
|
+
}
|
|
6731
6787
|
itemInner = h("span", {}, [
|
|
6732
6788
|
h(
|
|
6733
6789
|
"span",
|
|
@@ -6744,6 +6800,28 @@ var FormImpl = {
|
|
|
6744
6800
|
let conditionFlag = d.condition instanceof Function ? d.condition(this.form) : d.condition !== false;
|
|
6745
6801
|
let showMoreFlag = this.formType == "search" ? this.showMore ? true : idx < showMorePosition : true;
|
|
6746
6802
|
if (conditionFlag && showMoreFlag) {
|
|
6803
|
+
if (d.split === "true") {
|
|
6804
|
+
formItems.push(
|
|
6805
|
+
h(
|
|
6806
|
+
"Col",
|
|
6807
|
+
{
|
|
6808
|
+
props: {
|
|
6809
|
+
span: 24
|
|
6810
|
+
}
|
|
6811
|
+
},
|
|
6812
|
+
[
|
|
6813
|
+
h("hr", {
|
|
6814
|
+
style: {
|
|
6815
|
+
margin: "10px 0 5px 0",
|
|
6816
|
+
backgroundColor: "#EEEEEE",
|
|
6817
|
+
height: "1px",
|
|
6818
|
+
border: "none"
|
|
6819
|
+
}
|
|
6820
|
+
})
|
|
6821
|
+
]
|
|
6822
|
+
)
|
|
6823
|
+
);
|
|
6824
|
+
}
|
|
6747
6825
|
if (["selectbtn", "radio", "checkbox"].includes(d.type)) {
|
|
6748
6826
|
formItems.push(
|
|
6749
6827
|
h(
|
|
@@ -6882,12 +6960,11 @@ var FormImpl = {
|
|
|
6882
6960
|
props: {
|
|
6883
6961
|
model: this.form,
|
|
6884
6962
|
rules: this.rules,
|
|
6885
|
-
labelWidth: this.
|
|
6963
|
+
labelWidth: this.formType == "searchMobile" ? 100 : this.labelWidth,
|
|
6886
6964
|
labelColon: false
|
|
6887
6965
|
},
|
|
6888
6966
|
nativeOn: {
|
|
6889
6967
|
submit: (event) => {
|
|
6890
|
-
console.log("submit trigger");
|
|
6891
6968
|
event.preventDefault();
|
|
6892
6969
|
return false;
|
|
6893
6970
|
}
|
|
@@ -42915,18 +42992,7 @@ function renderTable(table) {
|
|
|
42915
42992
|
type: d.searchType || "input"
|
|
42916
42993
|
};
|
|
42917
42994
|
});
|
|
42918
|
-
let
|
|
42919
|
-
return d.frontHide != "true";
|
|
42920
|
-
}).map((d) => {
|
|
42921
|
-
return {
|
|
42922
|
-
...d,
|
|
42923
|
-
formKey: d.id,
|
|
42924
|
-
title: d.name,
|
|
42925
|
-
type: d.inputType || null,
|
|
42926
|
-
required: d.required == "true"
|
|
42927
|
-
};
|
|
42928
|
-
});
|
|
42929
|
-
let detailFormFieldList = columnSrc.filter((d) => {
|
|
42995
|
+
let formFieldList = columnSrc.filter((d) => {
|
|
42930
42996
|
return d.frontHide != "true";
|
|
42931
42997
|
}).map((d) => {
|
|
42932
42998
|
return {
|
|
@@ -42951,8 +43017,7 @@ function renderTable(table) {
|
|
|
42951
43017
|
...table._attributes,
|
|
42952
43018
|
columns: columns2,
|
|
42953
43019
|
searchFormFields,
|
|
42954
|
-
|
|
42955
|
-
detailFormFieldList,
|
|
43020
|
+
formFieldList,
|
|
42956
43021
|
subTable
|
|
42957
43022
|
};
|
|
42958
43023
|
}
|
|
@@ -43140,6 +43205,29 @@ function doChangeTheme(theme) {
|
|
|
43140
43205
|
body.className = classnames(theme, { ...nowCls, ...removeCls });
|
|
43141
43206
|
}
|
|
43142
43207
|
}
|
|
43208
|
+
function Debug() {
|
|
43209
|
+
let debuge = "";
|
|
43210
|
+
if (location.search) {
|
|
43211
|
+
let rlt = /debug=([^&]*)/.exec(location.search);
|
|
43212
|
+
if (rlt && rlt.length > 1) {
|
|
43213
|
+
debuge = rlt[1];
|
|
43214
|
+
}
|
|
43215
|
+
}
|
|
43216
|
+
if (debuge == "vConsole") {
|
|
43217
|
+
const script = document.createElement("script");
|
|
43218
|
+
script.src = "vconsole.min.js";
|
|
43219
|
+
script.async = true;
|
|
43220
|
+
document.getElementsByTagName("head")[0].appendChild(script);
|
|
43221
|
+
script.onload = function() {
|
|
43222
|
+
window.vConsole = new VConsole();
|
|
43223
|
+
};
|
|
43224
|
+
} else if (debuge == "chii") {
|
|
43225
|
+
const script = document.createElement("script");
|
|
43226
|
+
script.src = "//chii.liriliri.io/target.js";
|
|
43227
|
+
script.async = true;
|
|
43228
|
+
document.getElementsByTagName("head")[0].appendChild(script);
|
|
43229
|
+
}
|
|
43230
|
+
}
|
|
43143
43231
|
/*!
|
|
43144
43232
|
* vuex v3.6.2
|
|
43145
43233
|
* (c) 2021 Evan You
|
|
@@ -44080,26 +44168,34 @@ var render$h = function() {
|
|
|
44080
44168
|
var _vm = this;
|
|
44081
44169
|
var _h = _vm.$createElement;
|
|
44082
44170
|
var _c = _vm._self._c || _h;
|
|
44083
|
-
return _c("div", { staticClass: "ind-page-view ind-flex-column" }, [_c("div", { staticClass: "height100 ind-flex-column ind-detail-view-panel", style: { overflow: _vm.hasList ? "hidden" : "auto" } }, [_vm._l(_vm.normalTables, function(table, idx) {
|
|
44084
|
-
return [table.type == "form" ?
|
|
44085
|
-
return _vm.
|
|
44086
|
-
} } }) : _vm._e(), table.type == "list" ? _c("div", { key: "table" + idx, staticClass: "ind-page" }, [_c("IndMLoadMore", { attrs: { "pageLen": 9999, "datas": table.dataField ? _vm.form[table.dataField] : _vm.form }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
44087
|
-
var item2 = ref.item;
|
|
44088
|
-
return [_c("IndMForm", { attrs: { "fieldList": table.detailFormFieldList, "value": item2 }, on: { "input": function($event) {
|
|
44171
|
+
return _c("div", { staticClass: "ind-page-view ind-flex-column" }, [_c("div", { staticClass: "height100 ind-flex-column ind-detail-view-panel", class: [_vm.hasList ? "" : "ind-page"], style: { overflow: _vm.hasList ? "hidden" : "auto" } }, [_vm._l(_vm.normalTables, function(table, idx) {
|
|
44172
|
+
return [table.type == "form" ? [_vm._t(table.id, function() {
|
|
44173
|
+
return [_c("IndMForm", { key: "table" + idx, class: [_vm.hasList ? "ind-border-none" : ""], attrs: { "formType": table.formType, "fieldList": table.formFieldList, "value": table.dataField ? _vm.form[table.dataField] : _vm.form }, on: { "input": function($event) {
|
|
44089
44174
|
return _vm.setForm(table, $event);
|
|
44090
|
-
}
|
|
44091
|
-
}
|
|
44175
|
+
} } })];
|
|
44176
|
+
}, { "table": table })] : _vm._e(), table.type == "list" ? [_vm._t(table.id, function() {
|
|
44177
|
+
return [_c("div", { key: "table" + idx, staticClass: "ind-page", staticStyle: { "padding-top": "0", "padding-bottom": "0" } }, [_c("IndMLoadMore", { attrs: { "pageLen": 9999, "datas": table.dataField ? _vm.form[table.dataField] : _vm.form }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
44178
|
+
var item2 = ref.item;
|
|
44179
|
+
return [_c("IndMForm", { attrs: { "fieldList": table.formFieldList, "value": item2 }, on: { "input": function($event) {
|
|
44180
|
+
return _vm.setForm(table, $event);
|
|
44181
|
+
}, "itemClick": _vm.itemClick } })];
|
|
44182
|
+
} }], null, true) })], 1)];
|
|
44183
|
+
}, { "table": table })] : _vm._e()];
|
|
44092
44184
|
}), _c("van-collapse", { model: { value: _vm.activeNames, callback: function($$v) {
|
|
44093
44185
|
_vm.activeNames = $$v;
|
|
44094
44186
|
}, expression: "activeNames" } }, _vm._l(_vm.collapseTables, function(cTable, idx) {
|
|
44095
|
-
return _c("van-collapse-item", { key: "cTable" + idx, attrs: { "title": cTable.name, "name": idx + "" } }, [cTable.type == "form" ?
|
|
44096
|
-
return _vm.
|
|
44097
|
-
} } }) : _vm._e(), cTable.type == "list" ? _c("div", { staticClass: "ind-page" }, [_c("IndMLoadMore", { attrs: { "pageLen": 9999, "datas": cTable.dataField ? _vm.form[cTable.dataField] : _vm.form }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
44098
|
-
var item2 = ref.item;
|
|
44099
|
-
return [_c("IndMForm", { attrs: { "fieldList": cTable.detailFormFieldList, "value": item2 }, on: { "input": function($event) {
|
|
44187
|
+
return _c("van-collapse-item", { key: "cTable" + idx, attrs: { "title": cTable.name, "name": idx + "" } }, [cTable.type == "form" ? [_vm._t(cTable.id, function() {
|
|
44188
|
+
return [_c("IndMForm", { class: [_vm.hasList ? "ind-border-none" : ""], attrs: { "formType": cTable.formType, "fieldList": cTable.formFieldList, "value": cTable.dataField ? _vm.form[cTable.dataField] : _vm.form }, on: { "input": function($event) {
|
|
44100
44189
|
return _vm.setForm(cTable, $event);
|
|
44101
|
-
}
|
|
44102
|
-
}
|
|
44190
|
+
} } })];
|
|
44191
|
+
}, { "table": cTable })] : _vm._e(), cTable.type == "list" ? [_vm._t(cTable.id, function() {
|
|
44192
|
+
return [_c("div", { staticClass: "ind-page", staticStyle: { "padding-top": "0", "padding-bottom": "0" } }, [_c("IndMLoadMore", { attrs: { "pageLen": 9999, "datas": cTable.dataField ? _vm.form[cTable.dataField] : _vm.form }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
44193
|
+
var item2 = ref.item;
|
|
44194
|
+
return [_c("IndMForm", { attrs: { "fieldList": cTable.formFieldList, "value": item2 }, on: { "input": function($event) {
|
|
44195
|
+
return _vm.setForm(cTable, $event);
|
|
44196
|
+
}, "itemClick": _vm.itemClick } })];
|
|
44197
|
+
} }], null, true) })], 1)];
|
|
44198
|
+
}, { "table": cTable })] : _vm._e()], 2);
|
|
44103
44199
|
}), 1)], 2), _vm._t("bottom", function() {
|
|
44104
44200
|
return [_vm.bottom || _vm.$slots.bottom ? _c("div", { staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between" }, [_c("IndButtonGroup", { attrs: { "split": "", "right": "" } }, [_c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.save } }, [_vm._v(" \u4FDD\u5B58 ")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.submit } }, [_vm._v(" \u63D0\u4EA4 ")])], 1)], 1) : _vm._e()];
|
|
44105
44201
|
}), _c("IndMLoadingPanel", { attrs: { "loading": _vm.loadingComp || _vm.loading } }), _vm._t("default")], 2);
|
|
@@ -44108,6 +44204,7 @@ var staticRenderFns$h = [];
|
|
|
44108
44204
|
const __vue2_script$h = {
|
|
44109
44205
|
name: "IndMPageView",
|
|
44110
44206
|
props: {
|
|
44207
|
+
readonly: Boolean,
|
|
44111
44208
|
formValue: Object,
|
|
44112
44209
|
dataApi: Function,
|
|
44113
44210
|
params: {
|
|
@@ -44139,10 +44236,12 @@ const __vue2_script$h = {
|
|
|
44139
44236
|
loadingComp: false,
|
|
44140
44237
|
form: {},
|
|
44141
44238
|
subTable: [],
|
|
44142
|
-
activeNames: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
|
|
44239
|
+
activeNames: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
|
|
44240
|
+
updating: false
|
|
44143
44241
|
};
|
|
44144
44242
|
},
|
|
44145
44243
|
created() {
|
|
44244
|
+
this.form = this.formValue;
|
|
44146
44245
|
this.initConfig();
|
|
44147
44246
|
this.initData();
|
|
44148
44247
|
},
|
|
@@ -44161,7 +44260,21 @@ const __vue2_script$h = {
|
|
|
44161
44260
|
},
|
|
44162
44261
|
form: {
|
|
44163
44262
|
handler: function() {
|
|
44263
|
+
this.updating = true;
|
|
44264
|
+
console.log("form change", this.form);
|
|
44164
44265
|
this.$emit("update:formValue", this.form);
|
|
44266
|
+
this.$nextTick(() => {
|
|
44267
|
+
this.updating = false;
|
|
44268
|
+
});
|
|
44269
|
+
},
|
|
44270
|
+
deep: true
|
|
44271
|
+
},
|
|
44272
|
+
formValue: {
|
|
44273
|
+
handler: function() {
|
|
44274
|
+
if (!this.updating) {
|
|
44275
|
+
console.log("formValue change", this.formValue);
|
|
44276
|
+
this.form = this.formValue;
|
|
44277
|
+
}
|
|
44165
44278
|
},
|
|
44166
44279
|
deep: true
|
|
44167
44280
|
}
|
|
@@ -44175,18 +44288,20 @@ const __vue2_script$h = {
|
|
|
44175
44288
|
this.subTable = this.configList;
|
|
44176
44289
|
}
|
|
44177
44290
|
},
|
|
44178
|
-
async
|
|
44291
|
+
initData: _.debounce(async function() {
|
|
44179
44292
|
this.loadingComp = true;
|
|
44180
44293
|
try {
|
|
44181
44294
|
if (this.dataApi) {
|
|
44182
|
-
const
|
|
44183
|
-
|
|
44295
|
+
const resp = await this.dataApi(this.params);
|
|
44296
|
+
if (resp == null ? void 0 : resp.data) {
|
|
44297
|
+
this.form = resp == null ? void 0 : resp.data;
|
|
44298
|
+
}
|
|
44184
44299
|
}
|
|
44185
44300
|
} catch (e) {
|
|
44186
44301
|
console.log("initData e", e);
|
|
44187
44302
|
}
|
|
44188
44303
|
this.loadingComp = false;
|
|
44189
|
-
},
|
|
44304
|
+
}, 2),
|
|
44190
44305
|
setForm(table, data49) {
|
|
44191
44306
|
let field = table.dataField;
|
|
44192
44307
|
if (table.type == "form") {
|
|
@@ -44239,10 +44354,12 @@ var render$g = function() {
|
|
|
44239
44354
|
var _vm = this;
|
|
44240
44355
|
var _h = _vm.$createElement;
|
|
44241
44356
|
var _c = _vm._self._c || _h;
|
|
44242
|
-
return _c("div", { staticClass: "ind-page-view ind-flex-column" }, [_c("IndMSearch", { attrs: { "value": _vm.searchForm, "showFilter": _vm.searchFormFields && _vm.searchFormFields.length > 0, "fieldList": _vm.searchFormFields }, on: { "doSearch": _vm.doSearch } }), _c("div", { staticClass: "ind-page" }, [_c("IndMLoadMore", { attrs: { "datas": _vm.rows }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
44357
|
+
return _c("div", { staticClass: "ind-page-view ind-flex-column" }, [_c("IndMSearch", { attrs: { "value": _vm.searchForm, "showFilter": _vm.searchFormFields && _vm.searchFormFields.length > 0, "fieldList": _vm.searchFormFields }, on: { "doSearch": _vm.doSearch } }), _c("div", { staticClass: "ind-page" }, [_c("IndMLoadMore", { attrs: { "datas": _vm.rows, "dataUrl": _vm.dataUrl, "params": _vm.searchForm }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
|
|
44243
44358
|
var item2 = ref.item;
|
|
44244
|
-
return [
|
|
44245
|
-
|
|
44359
|
+
return [_vm._t("item", function() {
|
|
44360
|
+
return [_c("IndMForm", { attrs: { "fieldList": _vm.formFieldList, "cardBtns": _vm.cardBtns, "value": item2, "formType": "card" } })];
|
|
44361
|
+
}, { "item": item2 })];
|
|
44362
|
+
} }], null, true) })], 1), _vm._t("bottom", function() {
|
|
44246
44363
|
return [_vm.bottom || _vm.pageBtnText || _vm.btnText ? _c("div", { staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between" }, [_c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": function($event) {
|
|
44247
44364
|
return _vm.$emit("bottomClick");
|
|
44248
44365
|
} } }, [_vm._v(" " + _vm._s(_vm.pageBtnText || _vm.btnText || "\u65B0\u589E") + " ")])], 1) : _vm._e()];
|
|
@@ -44264,20 +44381,15 @@ const __vue2_script$g = {
|
|
|
44264
44381
|
searchForm: Object,
|
|
44265
44382
|
cardFields: Array
|
|
44266
44383
|
},
|
|
44267
|
-
computed: {
|
|
44268
|
-
title() {
|
|
44269
|
-
return this.$route.meta.title;
|
|
44270
|
-
}
|
|
44271
|
-
},
|
|
44272
44384
|
data() {
|
|
44273
44385
|
return {
|
|
44386
|
+
dataUrl: null,
|
|
44274
44387
|
loadingComp: false,
|
|
44275
44388
|
rows: [],
|
|
44276
44389
|
pageBtnText: "",
|
|
44277
44390
|
columns: [],
|
|
44278
44391
|
searchFormFields: [],
|
|
44279
|
-
|
|
44280
|
-
detailFormFieldList: [],
|
|
44392
|
+
formFieldList: [],
|
|
44281
44393
|
subTable: []
|
|
44282
44394
|
};
|
|
44283
44395
|
},
|
|
@@ -44297,16 +44409,10 @@ const __vue2_script$g = {
|
|
|
44297
44409
|
initConfig() {
|
|
44298
44410
|
var _a, _b;
|
|
44299
44411
|
if (this.xmlInfo) {
|
|
44300
|
-
const {
|
|
44301
|
-
pageBtnText,
|
|
44302
|
-
columns: columns2,
|
|
44303
|
-
searchFormFields,
|
|
44304
|
-
editFormFieldList,
|
|
44305
|
-
detailFormFieldList,
|
|
44306
|
-
subTable
|
|
44307
|
-
} = generateConfigByXml(this.xmlInfo);
|
|
44412
|
+
const { dataUrl, pageBtnText, columns: columns2, searchFormFields, formFieldList, subTable } = generateConfigByXml(this.xmlInfo);
|
|
44308
44413
|
this.pageBtnText = pageBtnText;
|
|
44309
44414
|
this.columns = columns2;
|
|
44415
|
+
this.dataUrl = dataUrl;
|
|
44310
44416
|
if ((_a = this.searchFormFieldsExt) == null ? void 0 : _a.length) {
|
|
44311
44417
|
_.forEach(this.searchFormFieldsExt, (d) => {
|
|
44312
44418
|
let srcInfo = _.find(searchFormFields, { formKey: d.formKey });
|
|
@@ -44316,19 +44422,18 @@ const __vue2_script$g = {
|
|
|
44316
44422
|
this.searchFormFields = searchFormFields;
|
|
44317
44423
|
if ((_b = this.cardFieldsExt) == null ? void 0 : _b.length) {
|
|
44318
44424
|
_.forEach(this.cardFieldsExt, (d) => {
|
|
44319
|
-
let srcInfo = _.find(
|
|
44425
|
+
let srcInfo = _.find(formFieldList, { formKey: d.formKey });
|
|
44320
44426
|
_.merge(srcInfo, d);
|
|
44321
44427
|
});
|
|
44322
44428
|
}
|
|
44323
|
-
this.
|
|
44324
|
-
this.editFormFieldList = editFormFieldList;
|
|
44429
|
+
this.formFieldList = formFieldList;
|
|
44325
44430
|
this.subTable = subTable;
|
|
44326
44431
|
} else {
|
|
44327
44432
|
this.searchFormFields = this.searchFields;
|
|
44328
|
-
this.
|
|
44433
|
+
this.formFieldList = this.cardFields;
|
|
44329
44434
|
}
|
|
44330
44435
|
},
|
|
44331
|
-
async
|
|
44436
|
+
initData: _.debounce(async function() {
|
|
44332
44437
|
this.loadingComp = true;
|
|
44333
44438
|
try {
|
|
44334
44439
|
if (this.dataApi) {
|
|
@@ -44339,9 +44444,10 @@ const __vue2_script$g = {
|
|
|
44339
44444
|
console.log("init data e", e);
|
|
44340
44445
|
}
|
|
44341
44446
|
this.loadingComp = false;
|
|
44342
|
-
},
|
|
44343
|
-
doSearch(searchParams) {
|
|
44447
|
+
}, 5),
|
|
44448
|
+
async doSearch(searchParams) {
|
|
44344
44449
|
this.$emit("update:searchForm", searchParams);
|
|
44450
|
+
await this.$nextTick();
|
|
44345
44451
|
this.initData();
|
|
44346
44452
|
}
|
|
44347
44453
|
}
|
|
@@ -44371,14 +44477,15 @@ var render$f = function() {
|
|
|
44371
44477
|
var _c = _vm._self._c || _h;
|
|
44372
44478
|
return _c("van-popup", { style: { width: "100%", height: "100vh" }, attrs: { "value": _vm.value, "position": "right", "get-container": "body" }, on: { "input": function($event) {
|
|
44373
44479
|
return _vm.$emit("input", $event);
|
|
44374
|
-
} } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.$route.meta.title, "left-text": "\u8FD4\u56DE", "left-arrow": "" }, on: { "click-left": function($event) {
|
|
44480
|
+
} } }, [_c("div", { staticClass: "height100 ind-basic-layout ind-flex-column" }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": _vm.title || _vm.$route.meta.title, "left-text": "\u8FD4\u56DE", "left-arrow": "" }, on: { "click-left": function($event) {
|
|
44375
44481
|
return _vm.$emit("input", false);
|
|
44376
44482
|
} } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow" }, [_vm._t("default")], 2)], 1)]);
|
|
44377
44483
|
};
|
|
44378
44484
|
var staticRenderFns$f = [];
|
|
44379
44485
|
const __vue2_script$f = {
|
|
44380
44486
|
props: {
|
|
44381
|
-
value: Boolean
|
|
44487
|
+
value: Boolean,
|
|
44488
|
+
title: String
|
|
44382
44489
|
},
|
|
44383
44490
|
data() {
|
|
44384
44491
|
return {};
|
|
@@ -62461,7 +62568,7 @@ var render$d = function() {
|
|
|
62461
62568
|
var _vm = this;
|
|
62462
62569
|
var _h = _vm.$createElement;
|
|
62463
62570
|
var _c = _vm._self._c || _h;
|
|
62464
|
-
return _c("div", { staticClass: "ind-login
|
|
62571
|
+
return _c("div", { staticClass: "ind-login" }, [_c("div", { staticClass: "ind-login-con" }, [_c("div", { staticClass: "ind-panel" }, [_c("div", { staticClass: "ind-panel-title" }, [_vm._v("\u6B22\u8FCE\u767B\u5F55")]), _c("LoginForm", { ref: "login", attrs: { "msg": _vm.msg, "loading": _vm.loading }, on: { "on-success-valid": _vm.handleSubmit } })], 1)])]);
|
|
62465
62572
|
};
|
|
62466
62573
|
var staticRenderFns$d = [];
|
|
62467
62574
|
const __vue2_script$d = {
|
|
@@ -62609,6 +62716,17 @@ const __vue2_script$b = {
|
|
|
62609
62716
|
searchForm: {}
|
|
62610
62717
|
};
|
|
62611
62718
|
},
|
|
62719
|
+
created() {
|
|
62720
|
+
this.searchForm = this.value;
|
|
62721
|
+
},
|
|
62722
|
+
watch: {
|
|
62723
|
+
value: {
|
|
62724
|
+
handler: function() {
|
|
62725
|
+
this.searchForm = this.value;
|
|
62726
|
+
},
|
|
62727
|
+
deep: true
|
|
62728
|
+
}
|
|
62729
|
+
},
|
|
62612
62730
|
methods: {
|
|
62613
62731
|
showCondition() {
|
|
62614
62732
|
this.displayCondition = true;
|
|
@@ -62646,22 +62764,23 @@ var render$a = function() {
|
|
|
62646
62764
|
var _vm = this;
|
|
62647
62765
|
var _h = _vm.$createElement;
|
|
62648
62766
|
var _c = _vm._self._c || _h;
|
|
62649
|
-
return _c("van-popup", { style: { width: "100%", height: "100%" }, attrs: { "value": _vm.show, "position": "right", "lazy-render":
|
|
62650
|
-
return _vm.$emit("update:show", $event);
|
|
62651
|
-
} } }, [_c("div", { staticClass: "ind-vcenter", staticStyle: { "width": "100%", "height": "100vh" } }, [_c("van-search", { staticClass: "ind-flex-no-shrink", attrs: { "placeholder": "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD" }, on: { "search": _vm.doSearch }, model: { value: _vm.searchVal, callback: function($$v) {
|
|
62767
|
+
return _c("van-popup", { style: { width: "100%", height: "100%" }, attrs: { "value": _vm.show, "position": "right", "lazy-render": true, "get-container": "body" }, on: { "opened": _vm.getTableData } }, [_c("div", { staticClass: "ind-select-panel ind-vcenter", staticStyle: { "width": "100%", "height": "100vh" } }, [_c("van-nav-bar", { staticClass: "ind-flex-no-shrink", attrs: { "title": "\u8BF7\u9009\u62E9" + _vm.title, "left-text": "\u8FD4\u56DE", "left-arrow": "" }, on: { "click-left": _vm.cancel } }), _c("div", { staticClass: "ind-main-content-wrapper ind-flex-grow ind-vcenter" }, [_c("van-search", { staticClass: "ind-flex-no-shrink", staticStyle: { "position": "relative", "z-index": "3" }, attrs: { "placeholder": "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD" }, on: { "search": _vm.doSearch }, model: { value: _vm.searchVal, callback: function($$v) {
|
|
62652
62768
|
_vm.searchVal = $$v;
|
|
62653
|
-
}, expression: "searchVal" } }), _c("IndTable", { ref: "table", attrs: { "dataApi": _vm.selectDataApi, "columns": _vm.columnsData, "rowKey": _vm.selectRowKey, "showTableOption": false, "groupDefaultExpanded": 3, "disablePage": "" } }), _c("div", { staticClass: "ind-flex-no-shrink
|
|
62769
|
+
}, expression: "searchVal" } }), _c("IndTable", { ref: "table", attrs: { "rowClick": "", "rowMultiSelectWithClick": _vm.multiple, "isRowSelectable": _vm.isRowSelectable, "groupSelectsChildren": _vm.multiple, "showBottom": false, "dataApi": _vm.selectDataApi, "columns": _vm.columnsData, "rowKey": _vm.selectRowKey, "showTableOption": false, "groupDefaultExpanded": 3, "disablePage": "" } }), _c("div", { staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between", staticStyle: { "position": "absolute", "bottom": "0" } }, [_c("IndButton", { attrs: { "bizType": "cancel" }, on: { "click": _vm.cancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.confirm } }, [_vm._v("\u786E\u8BA4")])], 1)], 1)], 1)]);
|
|
62654
62770
|
};
|
|
62655
62771
|
var staticRenderFns$a = [];
|
|
62656
62772
|
const __vue2_script$a = {
|
|
62657
62773
|
props: {
|
|
62774
|
+
title: String,
|
|
62658
62775
|
show: Boolean,
|
|
62659
62776
|
value: Array,
|
|
62660
62777
|
type: String,
|
|
62661
62778
|
multiple: Boolean,
|
|
62779
|
+
options: Array,
|
|
62662
62780
|
dataApi: Function,
|
|
62663
62781
|
columns: Array,
|
|
62664
|
-
rowKey: String
|
|
62782
|
+
rowKey: String,
|
|
62783
|
+
defaultVisible: Boolean
|
|
62665
62784
|
},
|
|
62666
62785
|
data() {
|
|
62667
62786
|
return {
|
|
@@ -62670,7 +62789,8 @@ const __vue2_script$a = {
|
|
|
62670
62789
|
rows: [],
|
|
62671
62790
|
selectRowKey: "",
|
|
62672
62791
|
selectDataApi: null,
|
|
62673
|
-
columnsData: []
|
|
62792
|
+
columnsData: [],
|
|
62793
|
+
dataInited: false
|
|
62674
62794
|
};
|
|
62675
62795
|
},
|
|
62676
62796
|
created() {
|
|
@@ -62682,15 +62802,27 @@ const __vue2_script$a = {
|
|
|
62682
62802
|
},
|
|
62683
62803
|
multiple() {
|
|
62684
62804
|
this.initConfig();
|
|
62805
|
+
},
|
|
62806
|
+
searchVal() {
|
|
62807
|
+
this.doSearch();
|
|
62808
|
+
},
|
|
62809
|
+
dataApi() {
|
|
62810
|
+
this.initConfig();
|
|
62685
62811
|
}
|
|
62686
62812
|
},
|
|
62687
62813
|
methods: {
|
|
62814
|
+
isRowSelectable(params) {
|
|
62815
|
+
return this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
|
|
62816
|
+
},
|
|
62688
62817
|
async initConfig() {
|
|
62818
|
+
this.dataInited = false;
|
|
62689
62819
|
if (!this.type) {
|
|
62690
62820
|
this.selectDataApi = this.dataApi;
|
|
62691
62821
|
this.columnsData = this.columns;
|
|
62692
62822
|
this.selectRowKey = this.rowKey;
|
|
62693
|
-
|
|
62823
|
+
if (this.defaultVisible) {
|
|
62824
|
+
this.getTableData();
|
|
62825
|
+
}
|
|
62694
62826
|
return;
|
|
62695
62827
|
}
|
|
62696
62828
|
const apiEnum = {
|
|
@@ -62706,6 +62838,8 @@ const __vue2_script$a = {
|
|
|
62706
62838
|
field: "title",
|
|
62707
62839
|
align: "left",
|
|
62708
62840
|
tree: true,
|
|
62841
|
+
showDisabledCheckboxes: true,
|
|
62842
|
+
cellClass: this.multiple ? "" : "ind-radio",
|
|
62709
62843
|
cellRendererParams: {
|
|
62710
62844
|
checkbox: true
|
|
62711
62845
|
}
|
|
@@ -62717,24 +62851,30 @@ const __vue2_script$a = {
|
|
|
62717
62851
|
comTree: "id"
|
|
62718
62852
|
};
|
|
62719
62853
|
this.selectRowKey = rowKeyEnum[this.type];
|
|
62720
|
-
|
|
62721
|
-
|
|
62722
|
-
|
|
62723
|
-
}, 1);
|
|
62724
|
-
},
|
|
62725
|
-
doSearch() {
|
|
62726
|
-
console.log("doSearch");
|
|
62854
|
+
if (this.defaultVisible) {
|
|
62855
|
+
this.getTableData();
|
|
62856
|
+
}
|
|
62727
62857
|
},
|
|
62858
|
+
doSearch: _.debounce(function() {
|
|
62859
|
+
this.$refs.table.gridApi.setQuickFilter(this.searchVal);
|
|
62860
|
+
}, 5),
|
|
62728
62861
|
cancel() {
|
|
62729
|
-
console.log("cancel");
|
|
62730
62862
|
this.$emit("update:show", false);
|
|
62731
62863
|
},
|
|
62732
62864
|
confirm() {
|
|
62733
62865
|
var _a;
|
|
62734
|
-
console.log("confirm");
|
|
62735
62866
|
let selectedRows = (_a = this.$refs.table) == null ? void 0 : _a.getSelection();
|
|
62736
62867
|
this.$emit("input", selectedRows);
|
|
62737
62868
|
this.$emit("update:show", false);
|
|
62869
|
+
},
|
|
62870
|
+
getTableData() {
|
|
62871
|
+
if (this.dataInited)
|
|
62872
|
+
return;
|
|
62873
|
+
setTimeout(() => {
|
|
62874
|
+
var _a, _b;
|
|
62875
|
+
this.dataInited = true;
|
|
62876
|
+
(_b = (_a = this.$refs) == null ? void 0 : _a.table) == null ? void 0 : _b.tableRefresh();
|
|
62877
|
+
}, 2);
|
|
62738
62878
|
}
|
|
62739
62879
|
}
|
|
62740
62880
|
};
|
|
@@ -62763,21 +62903,23 @@ var render$9 = function() {
|
|
|
62763
62903
|
var _c = _vm._self._c || _h;
|
|
62764
62904
|
return _c("div", { staticClass: "ind-input-select" }, [_c("Input", { staticClass: "selected-input", class: { readonly: _vm.readonly }, attrs: { "value": _vm.selectedTitles, "title": _vm.selectedTitles, "icon": _vm.readonly ? "" : _vm.inputIcon, "placeholder": "\u8BF7\u9009\u62E9", "readonly": "" }, nativeOn: { "click": function($event) {
|
|
62765
62905
|
_vm.visible = true;
|
|
62766
|
-
} } }), _c("IndMSelectPanel", { attrs: { "multiple": _vm.showCheckbox, "show": _vm.visible, "value": _vm.value, "type": _vm.type }, on: { "update:show": function($event) {
|
|
62906
|
+
} } }), _c("IndMSelectPanel", _vm._b({ attrs: { "defaultVisible": _vm.defaultVisible, "title": _vm.title, "multiple": _vm.showCheckbox || _vm.multiple, "show": _vm.visible, "value": _vm.value, "type": _vm.type, "dataApi": _vm.dataApiComp, "columns": _vm.columnsComp, "rowKey": _vm.rowKeyComp }, on: { "update:show": function($event) {
|
|
62767
62907
|
_vm.visible = $event;
|
|
62768
62908
|
}, "input": function($event) {
|
|
62769
62909
|
return _vm.$emit("input", $event);
|
|
62770
|
-
} } })], 1);
|
|
62910
|
+
} } }, "IndMSelectPanel", Object.assign({}, _vm.$attrs), false))], 1);
|
|
62771
62911
|
};
|
|
62772
62912
|
var staticRenderFns$9 = [];
|
|
62773
62913
|
const __vue2_script$9 = {
|
|
62774
62914
|
inheritAttrs: false,
|
|
62775
62915
|
props: {
|
|
62916
|
+
title: String,
|
|
62776
62917
|
type: {
|
|
62777
62918
|
type: String,
|
|
62778
|
-
default: "
|
|
62919
|
+
default: ""
|
|
62779
62920
|
},
|
|
62780
62921
|
multiple: Boolean,
|
|
62922
|
+
options: Array,
|
|
62781
62923
|
value: Array,
|
|
62782
62924
|
defaultValue: Array,
|
|
62783
62925
|
defaultVisible: Boolean,
|
|
@@ -62786,7 +62928,10 @@ const __vue2_script$9 = {
|
|
|
62786
62928
|
readonly: Boolean,
|
|
62787
62929
|
showCheckbox: Boolean,
|
|
62788
62930
|
expandAll: Boolean,
|
|
62789
|
-
defaultExpandLevel: Number
|
|
62931
|
+
defaultExpandLevel: Number,
|
|
62932
|
+
dataApi: Function,
|
|
62933
|
+
columns: Array,
|
|
62934
|
+
rowKey: String
|
|
62790
62935
|
},
|
|
62791
62936
|
data() {
|
|
62792
62937
|
return {
|
|
@@ -62798,6 +62943,58 @@ const __vue2_script$9 = {
|
|
|
62798
62943
|
inputIcon: "ios-arrow-forward"
|
|
62799
62944
|
};
|
|
62800
62945
|
},
|
|
62946
|
+
computed: {
|
|
62947
|
+
dataApiComp: function() {
|
|
62948
|
+
var _a;
|
|
62949
|
+
if (this.dataApi) {
|
|
62950
|
+
return this.dataApi;
|
|
62951
|
+
} else if ((_a = this.options) == null ? void 0 : _a.length) {
|
|
62952
|
+
return () => {
|
|
62953
|
+
return Promise.resolve({
|
|
62954
|
+
data: this.options
|
|
62955
|
+
});
|
|
62956
|
+
};
|
|
62957
|
+
} else {
|
|
62958
|
+
return null;
|
|
62959
|
+
}
|
|
62960
|
+
},
|
|
62961
|
+
columnsComp: function() {
|
|
62962
|
+
var _a;
|
|
62963
|
+
if (this.columns) {
|
|
62964
|
+
return this.columns;
|
|
62965
|
+
} else if ((_a = this.options) == null ? void 0 : _a.length) {
|
|
62966
|
+
return [
|
|
62967
|
+
{
|
|
62968
|
+
headerName: "\u9009\u62E9",
|
|
62969
|
+
minWidth: 40,
|
|
62970
|
+
width: 50,
|
|
62971
|
+
showDisabledCheckboxes: true,
|
|
62972
|
+
type: this.multiple ? "checkbox" : "radio"
|
|
62973
|
+
},
|
|
62974
|
+
{
|
|
62975
|
+
headerName: "\u9009\u9879",
|
|
62976
|
+
minWidth: 100,
|
|
62977
|
+
flex: 1,
|
|
62978
|
+
field: "V",
|
|
62979
|
+
align: "left",
|
|
62980
|
+
showDisabledCheckboxes: true
|
|
62981
|
+
}
|
|
62982
|
+
];
|
|
62983
|
+
} else {
|
|
62984
|
+
return null;
|
|
62985
|
+
}
|
|
62986
|
+
},
|
|
62987
|
+
rowKeyComp: function() {
|
|
62988
|
+
var _a;
|
|
62989
|
+
if (this.rowKey) {
|
|
62990
|
+
return this.rowKey;
|
|
62991
|
+
} else if ((_a = this.options) == null ? void 0 : _a.length) {
|
|
62992
|
+
return "K";
|
|
62993
|
+
} else {
|
|
62994
|
+
return null;
|
|
62995
|
+
}
|
|
62996
|
+
}
|
|
62997
|
+
},
|
|
62801
62998
|
created() {
|
|
62802
62999
|
this.visible = this.defaultVisible;
|
|
62803
63000
|
},
|
|
@@ -62827,10 +63024,15 @@ const __vue2_script$9 = {
|
|
|
62827
63024
|
this.searchNum = data49;
|
|
62828
63025
|
},
|
|
62829
63026
|
updateSelectedTitles() {
|
|
63027
|
+
var _a;
|
|
62830
63028
|
let tempNodes = _.filter(this.value, (d) => {
|
|
62831
63029
|
return !d.children || d.children.length == 0;
|
|
62832
63030
|
});
|
|
62833
|
-
|
|
63031
|
+
let textField = "title";
|
|
63032
|
+
if (((_a = this.columnsComp) == null ? void 0 : _a.length) > 1) {
|
|
63033
|
+
textField = this.columnsComp[1].field;
|
|
63034
|
+
}
|
|
63035
|
+
this.selectedTitles = (tempNodes == null ? void 0 : tempNodes.length) ? (tempNodes == null ? void 0 : tempNodes.length) == 1 ? tempNodes[0][textField] : "\u5171\u9009\u62E9" + ((tempNodes == null ? void 0 : tempNodes.length) || 0) + "\u4E2A" + this.title : "";
|
|
62834
63036
|
},
|
|
62835
63037
|
setSelectedTitles(title4) {
|
|
62836
63038
|
this.selectedTitles = title4;
|
|
@@ -62863,7 +63065,7 @@ var render$8 = function() {
|
|
|
62863
63065
|
return _c("div", { staticClass: "item-select-btn-panel" }, [_vm.multiple ? _c("div", { class: ["ind-item-btn", _vm.allChecked ? "checked" : ""], on: { "click": _vm.toggleAll } }, [_vm._v(" \u5168\u9009 ")]) : _vm._e(), _vm._l(_vm.options, function(item2, idx) {
|
|
62864
63066
|
return _c("div", { key: "item" + idx, class: [
|
|
62865
63067
|
"ind-item-btn",
|
|
62866
|
-
!_vm.multiple && _vm.value == item2.K || _vm.multiple && _vm.value.includes(item2.K) ? "checked" : ""
|
|
63068
|
+
!_vm.multiple && _vm.value == item2.K || _vm.multiple && _vm.value && _vm.value.includes(item2.K) ? "checked" : ""
|
|
62867
63069
|
], on: { "click": function($event) {
|
|
62868
63070
|
return _vm.toggle(item2);
|
|
62869
63071
|
} } }, [_vm._v(" " + _vm._s(item2.V) + " ")]);
|
|
@@ -62881,7 +63083,8 @@ const __vue2_script$8 = {
|
|
|
62881
63083
|
},
|
|
62882
63084
|
computed: {
|
|
62883
63085
|
allChecked: function() {
|
|
62884
|
-
|
|
63086
|
+
var _a, _b;
|
|
63087
|
+
return this.multiple && ((_a = this.options) == null ? void 0 : _a.length) == ((_b = this.value) == null ? void 0 : _b.length);
|
|
62885
63088
|
}
|
|
62886
63089
|
},
|
|
62887
63090
|
methods: {
|
|
@@ -67977,7 +68180,7 @@ const __vue2_script = {
|
|
|
67977
68180
|
vconsoleChecked: function() {
|
|
67978
68181
|
if (this.vconsoleChecked) {
|
|
67979
68182
|
const script = document.createElement("script");
|
|
67980
|
-
script.src = "
|
|
68183
|
+
script.src = "vconsole.min.js";
|
|
67981
68184
|
script.async = true;
|
|
67982
68185
|
document.getElementsByTagName("head")[0].appendChild(script);
|
|
67983
68186
|
script.onload = function() {
|
|
@@ -68169,7 +68372,15 @@ function createMacroBasicRoutes({ homeComponent, rootChildren } = {}) {
|
|
|
68169
68372
|
if (rootChildren && rootChildren.length) {
|
|
68170
68373
|
rootRouteTemp.children.push(...rootChildren);
|
|
68171
68374
|
}
|
|
68172
|
-
return [
|
|
68375
|
+
return [
|
|
68376
|
+
rootRouteTemp,
|
|
68377
|
+
loginRoute,
|
|
68378
|
+
userRoute,
|
|
68379
|
+
settingRoute,
|
|
68380
|
+
appsRoute,
|
|
68381
|
+
appsEditRoute,
|
|
68382
|
+
notFoundRoute
|
|
68383
|
+
];
|
|
68173
68384
|
}
|
|
68174
68385
|
function createMicroBasicRoutes({ rootChildren } = {}) {
|
|
68175
68386
|
const rootRouteTemp = _.cloneDeep(rootRoute);
|
|
@@ -68360,6 +68571,7 @@ async function renderRoutes({ router, store: store2, microType, allowPermissionL
|
|
|
68360
68571
|
}
|
|
68361
68572
|
}
|
|
68362
68573
|
function addRouterGuards({ router, store: store2, microType, allowPermissionList }) {
|
|
68574
|
+
Debug();
|
|
68363
68575
|
const LOGIN_PAGE_NAME = config.loginRouteName;
|
|
68364
68576
|
const routerOptionsBak = _.cloneDeep(router.options);
|
|
68365
68577
|
window.sessionNotValidHandler = function() {
|
|
@@ -68749,7 +68961,6 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
68749
68961
|
Object.keys(directives).forEach((key) => {
|
|
68750
68962
|
Vue2.directive(key, directives[key]);
|
|
68751
68963
|
});
|
|
68752
|
-
Vue2.prototype.$Modal = void 0;
|
|
68753
68964
|
};
|
|
68754
68965
|
if (typeof window !== "undefined" && window.Vue) {
|
|
68755
68966
|
install(window.Vue);
|