jtui3.0 1.1.15 → 1.1.17
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/lib/jtui3.0.common.js +961 -2276
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.js +961 -2276
- package/lib/jtui3.0.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/jtui3.0.umd.js
CHANGED
|
@@ -143919,28 +143919,32 @@ const ElDropdownMenu = withNoopInstall(DropdownMenu);
|
|
|
143919
143919
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/dropdown-item/style/css.mjs
|
|
143920
143920
|
|
|
143921
143921
|
|
|
143922
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=template&id=
|
|
143922
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=template&id=1c351be2&scoped=true
|
|
143923
143923
|
/* unplugin-vue-components disabled */
|
|
143924
143924
|
|
|
143925
143925
|
|
|
143926
143926
|
|
|
143927
143927
|
|
|
143928
143928
|
|
|
143929
|
-
const
|
|
143929
|
+
const table_handler_columnvue_type_template_id_1c351be2_scoped_true_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-1c351be2"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
143930
143930
|
|
|
143931
|
-
const
|
|
143932
|
-
|
|
143933
|
-
|
|
143934
|
-
|
|
143931
|
+
const table_handler_columnvue_type_template_id_1c351be2_scoped_true_hoisted_1 = /*#__PURE__*/table_handler_columnvue_type_template_id_1c351be2_scoped_true_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
143932
|
+
class: "jtIcon icon03 el-icon--right",
|
|
143933
|
+
style: {
|
|
143934
|
+
"transform": "rotate(90deg)",
|
|
143935
|
+
"margin-right": "5px"
|
|
143936
|
+
}
|
|
143935
143937
|
}, null, -1));
|
|
143936
143938
|
|
|
143937
|
-
const
|
|
143938
|
-
|
|
143939
|
-
|
|
143940
|
-
|
|
143939
|
+
const table_handler_columnvue_type_template_id_1c351be2_scoped_true_hoisted_2 = /*#__PURE__*/table_handler_columnvue_type_template_id_1c351be2_scoped_true_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
143940
|
+
class: "jtIcon icon03 el-icon--right",
|
|
143941
|
+
style: {
|
|
143942
|
+
"transform": "rotate(90deg)",
|
|
143943
|
+
"margin-right": "5px"
|
|
143944
|
+
}
|
|
143941
143945
|
}, null, -1));
|
|
143942
143946
|
|
|
143943
|
-
function
|
|
143947
|
+
function table_handler_columnvue_type_template_id_1c351be2_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
143944
143948
|
const _component_el_button = ElButton;
|
|
143945
143949
|
|
|
143946
143950
|
const _component_el_dropdown_item = ElDropdownItem;
|
|
@@ -143987,9 +143991,13 @@ function table_handler_columnvue_type_template_id_37c18760_scoped_true_render(_c
|
|
|
143987
143991
|
}, 1024)]),
|
|
143988
143992
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_button, {
|
|
143989
143993
|
size: "small",
|
|
143990
|
-
type: "primary"
|
|
143994
|
+
type: "primary",
|
|
143995
|
+
style: {
|
|
143996
|
+
"margin-left": "15px",
|
|
143997
|
+
"padding": "2px"
|
|
143998
|
+
}
|
|
143991
143999
|
}, {
|
|
143992
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
144000
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [table_handler_columnvue_type_template_id_1c351be2_scoped_true_hoisted_1]),
|
|
143993
144001
|
_: 1
|
|
143994
144002
|
})]),
|
|
143995
144003
|
_: 2
|
|
@@ -144038,10 +144046,11 @@ function table_handler_columnvue_type_template_id_37c18760_scoped_true_render(_c
|
|
|
144038
144046
|
size: "small",
|
|
144039
144047
|
type: "primary",
|
|
144040
144048
|
style: {
|
|
144041
|
-
"margin-left": "15px"
|
|
144049
|
+
"margin-left": "15px",
|
|
144050
|
+
"padding": "2px"
|
|
144042
144051
|
}
|
|
144043
144052
|
}, {
|
|
144044
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
144053
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [table_handler_columnvue_type_template_id_1c351be2_scoped_true_hoisted_2]),
|
|
144045
144054
|
_: 1
|
|
144046
144055
|
})]),
|
|
144047
144056
|
_: 2
|
|
@@ -144049,7 +144058,7 @@ function table_handler_columnvue_type_template_id_37c18760_scoped_true_render(_c
|
|
|
144049
144058
|
_: 1
|
|
144050
144059
|
}, 8, ["visible", "align", "width", "fixed"]);
|
|
144051
144060
|
}
|
|
144052
|
-
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue?vue&type=template&id=
|
|
144061
|
+
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue?vue&type=template&id=1c351be2&scoped=true
|
|
144053
144062
|
/* unplugin-vue-components disabled */
|
|
144054
144063
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=script&lang=js
|
|
144055
144064
|
/* unplugin-vue-components disabled */
|
|
@@ -144121,10 +144130,10 @@ function table_handler_columnvue_type_template_id_37c18760_scoped_true_render(_c
|
|
|
144121
144130
|
});
|
|
144122
144131
|
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue?vue&type=script&lang=js
|
|
144123
144132
|
/* unplugin-vue-components disabled */
|
|
144124
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=style&index=0&id=
|
|
144133
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=style&index=0&id=1c351be2&lang=scss&scoped=true
|
|
144125
144134
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
144126
144135
|
|
|
144127
|
-
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue?vue&type=style&index=0&id=
|
|
144136
|
+
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue?vue&type=style&index=0&id=1c351be2&lang=scss&scoped=true
|
|
144128
144137
|
/* unplugin-vue-components disabled */
|
|
144129
144138
|
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue
|
|
144130
144139
|
/* unplugin-vue-components disabled */
|
|
@@ -144134,7 +144143,7 @@ function table_handler_columnvue_type_template_id_37c18760_scoped_true_render(_c
|
|
|
144134
144143
|
;
|
|
144135
144144
|
|
|
144136
144145
|
|
|
144137
|
-
const table_handler_column_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_handler_columnvue_type_script_lang_js, [['render',
|
|
144146
|
+
const table_handler_column_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_handler_columnvue_type_script_lang_js, [['render',table_handler_columnvue_type_template_id_1c351be2_scoped_true_render],['__scopeId',"data-v-1c351be2"]])
|
|
144138
144147
|
|
|
144139
144148
|
/* harmony default export */ var table_handler_column = (table_handler_column_exports_);
|
|
144140
144149
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-expand-row.vue?vue&type=template&id=4b24c7d8
|
|
@@ -279419,7 +279428,7 @@ function download(src, name) {
|
|
|
279419
279428
|
tempa.click();
|
|
279420
279429
|
tempa.remove();
|
|
279421
279430
|
}
|
|
279422
|
-
const downloadFile = async (url,
|
|
279431
|
+
const downloadFile = async (url, axios) => {
|
|
279423
279432
|
const {
|
|
279424
279433
|
data
|
|
279425
279434
|
} = await axios({
|
|
@@ -279427,13 +279436,15 @@ const downloadFile = async (url, name, axios) => {
|
|
|
279427
279436
|
method: 'get',
|
|
279428
279437
|
responseType: 'blob'
|
|
279429
279438
|
});
|
|
279430
|
-
|
|
279431
|
-
if (!name) {
|
|
279432
|
-
name = getFileName(url);
|
|
279433
|
-
}
|
|
279434
|
-
|
|
279439
|
+
let name = getFileName(url);
|
|
279435
279440
|
(0,FileSaver_min.saveAs)(data, name);
|
|
279436
279441
|
};
|
|
279442
|
+
|
|
279443
|
+
function getFileName(url) {
|
|
279444
|
+
const urlAry = url.split('/');
|
|
279445
|
+
return urlAry[urlAry.length - 1];
|
|
279446
|
+
}
|
|
279447
|
+
|
|
279437
279448
|
const fileLinkToStreamDownload = (url, fileName, type) => {
|
|
279438
279449
|
// let reg = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\/])+$/;
|
|
279439
279450
|
// if (!reg.test(url)) {
|
|
@@ -299486,7 +299497,7 @@ const jt_page_manager_tree_tablevue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
|
299486
299497
|
}
|
|
299487
299498
|
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
299488
299499
|
for (let i = 0; i < r.ws_att.length; i++) {
|
|
299489
|
-
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`,
|
|
299500
|
+
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, props.axios);
|
|
299490
299501
|
}
|
|
299491
299502
|
}
|
|
299492
299503
|
},
|
|
@@ -299819,6 +299830,242 @@ const jt_page_manager_tree_tablevue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
|
299819
299830
|
const jt_page_manager_tree_table_exports_ = jt_page_manager_tree_tablevue_type_script_setup_true_lang_js;
|
|
299820
299831
|
|
|
299821
299832
|
/* harmony default export */ var jt_page_manager_tree_table = (jt_page_manager_tree_table_exports_);
|
|
299833
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/src/container.mjs
|
|
299834
|
+
|
|
299835
|
+
|
|
299836
|
+
|
|
299837
|
+
|
|
299838
|
+
|
|
299839
|
+
const container_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
299840
|
+
name: "ElContainer"
|
|
299841
|
+
});
|
|
299842
|
+
|
|
299843
|
+
const container_sfc_main = /* @__PURE__ */(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({ ...container_default_,
|
|
299844
|
+
props: {
|
|
299845
|
+
direction: {
|
|
299846
|
+
type: String
|
|
299847
|
+
}
|
|
299848
|
+
},
|
|
299849
|
+
|
|
299850
|
+
setup(__props) {
|
|
299851
|
+
const props = __props;
|
|
299852
|
+
const slots = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useSlots)();
|
|
299853
|
+
const ns = use_namespace_useNamespace("container");
|
|
299854
|
+
const isVertical = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
299855
|
+
if (props.direction === "vertical") {
|
|
299856
|
+
return true;
|
|
299857
|
+
} else if (props.direction === "horizontal") {
|
|
299858
|
+
return false;
|
|
299859
|
+
}
|
|
299860
|
+
|
|
299861
|
+
if (slots && slots.default) {
|
|
299862
|
+
const vNodes = slots.default();
|
|
299863
|
+
return vNodes.some(vNode => {
|
|
299864
|
+
const tag = vNode.type.name;
|
|
299865
|
+
return tag === "ElHeader" || tag === "ElFooter";
|
|
299866
|
+
});
|
|
299867
|
+
} else {
|
|
299868
|
+
return false;
|
|
299869
|
+
}
|
|
299870
|
+
});
|
|
299871
|
+
return (_ctx, _cache) => {
|
|
299872
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("section", {
|
|
299873
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).is("vertical", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isVertical))])
|
|
299874
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
299875
|
+
};
|
|
299876
|
+
}
|
|
299877
|
+
|
|
299878
|
+
});
|
|
299879
|
+
|
|
299880
|
+
var Container = /* @__PURE__ */_export_sfc(container_sfc_main, [["__file", "container.vue"]]);
|
|
299881
|
+
|
|
299882
|
+
|
|
299883
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/src/aside.mjs
|
|
299884
|
+
|
|
299885
|
+
|
|
299886
|
+
|
|
299887
|
+
|
|
299888
|
+
|
|
299889
|
+
const aside_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
299890
|
+
name: "ElAside"
|
|
299891
|
+
});
|
|
299892
|
+
|
|
299893
|
+
const aside_sfc_main = /* @__PURE__ */(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({ ...aside_default_,
|
|
299894
|
+
props: {
|
|
299895
|
+
width: {
|
|
299896
|
+
type: String,
|
|
299897
|
+
default: null
|
|
299898
|
+
}
|
|
299899
|
+
},
|
|
299900
|
+
|
|
299901
|
+
setup(__props) {
|
|
299902
|
+
const props = __props;
|
|
299903
|
+
const ns = use_namespace_useNamespace("aside");
|
|
299904
|
+
const style = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => props.width ? ns.cssVarBlock({
|
|
299905
|
+
width: props.width
|
|
299906
|
+
}) : {});
|
|
299907
|
+
return (_ctx, _cache) => {
|
|
299908
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("aside", {
|
|
299909
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b()),
|
|
299910
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(style))
|
|
299911
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 6);
|
|
299912
|
+
};
|
|
299913
|
+
}
|
|
299914
|
+
|
|
299915
|
+
});
|
|
299916
|
+
|
|
299917
|
+
var Aside = /* @__PURE__ */_export_sfc(aside_sfc_main, [["__file", "aside.vue"]]);
|
|
299918
|
+
|
|
299919
|
+
|
|
299920
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/src/footer.mjs
|
|
299921
|
+
|
|
299922
|
+
|
|
299923
|
+
|
|
299924
|
+
|
|
299925
|
+
|
|
299926
|
+
const footer_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
299927
|
+
name: "ElFooter"
|
|
299928
|
+
});
|
|
299929
|
+
|
|
299930
|
+
const footer_sfc_main = /* @__PURE__ */(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({ ...footer_default_,
|
|
299931
|
+
props: {
|
|
299932
|
+
height: {
|
|
299933
|
+
type: String,
|
|
299934
|
+
default: null
|
|
299935
|
+
}
|
|
299936
|
+
},
|
|
299937
|
+
|
|
299938
|
+
setup(__props) {
|
|
299939
|
+
const props = __props;
|
|
299940
|
+
const ns = use_namespace_useNamespace("footer");
|
|
299941
|
+
const style = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => props.height ? ns.cssVarBlock({
|
|
299942
|
+
height: props.height
|
|
299943
|
+
}) : {});
|
|
299944
|
+
return (_ctx, _cache) => {
|
|
299945
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("footer", {
|
|
299946
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b()),
|
|
299947
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(style))
|
|
299948
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 6);
|
|
299949
|
+
};
|
|
299950
|
+
}
|
|
299951
|
+
|
|
299952
|
+
});
|
|
299953
|
+
|
|
299954
|
+
var Footer = /* @__PURE__ */_export_sfc(footer_sfc_main, [["__file", "footer.vue"]]);
|
|
299955
|
+
|
|
299956
|
+
|
|
299957
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/src/header.mjs
|
|
299958
|
+
|
|
299959
|
+
|
|
299960
|
+
|
|
299961
|
+
|
|
299962
|
+
|
|
299963
|
+
const header_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
299964
|
+
name: "ElHeader"
|
|
299965
|
+
});
|
|
299966
|
+
|
|
299967
|
+
const header_sfc_main = /* @__PURE__ */(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({ ...header_default_,
|
|
299968
|
+
props: {
|
|
299969
|
+
height: {
|
|
299970
|
+
type: String,
|
|
299971
|
+
default: null
|
|
299972
|
+
}
|
|
299973
|
+
},
|
|
299974
|
+
|
|
299975
|
+
setup(__props) {
|
|
299976
|
+
const props = __props;
|
|
299977
|
+
const ns = use_namespace_useNamespace("header");
|
|
299978
|
+
const style = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
299979
|
+
return props.height ? ns.cssVarBlock({
|
|
299980
|
+
height: props.height
|
|
299981
|
+
}) : {};
|
|
299982
|
+
});
|
|
299983
|
+
return (_ctx, _cache) => {
|
|
299984
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("header", {
|
|
299985
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b()),
|
|
299986
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(style))
|
|
299987
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 6);
|
|
299988
|
+
};
|
|
299989
|
+
}
|
|
299990
|
+
|
|
299991
|
+
});
|
|
299992
|
+
|
|
299993
|
+
var Header = /* @__PURE__ */_export_sfc(header_sfc_main, [["__file", "header.vue"]]);
|
|
299994
|
+
|
|
299995
|
+
|
|
299996
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/src/main.mjs
|
|
299997
|
+
|
|
299998
|
+
|
|
299999
|
+
|
|
300000
|
+
|
|
300001
|
+
|
|
300002
|
+
const main_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
300003
|
+
name: "ElMain"
|
|
300004
|
+
});
|
|
300005
|
+
|
|
300006
|
+
const main_sfc_main = /* @__PURE__ */(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({ ...main_default_,
|
|
300007
|
+
|
|
300008
|
+
setup(__props) {
|
|
300009
|
+
const ns = use_namespace_useNamespace("main");
|
|
300010
|
+
return (_ctx, _cache) => {
|
|
300011
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("main", {
|
|
300012
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b())
|
|
300013
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
300014
|
+
};
|
|
300015
|
+
}
|
|
300016
|
+
|
|
300017
|
+
});
|
|
300018
|
+
|
|
300019
|
+
var Main = /* @__PURE__ */_export_sfc(main_sfc_main, [["__file", "main.vue"]]);
|
|
300020
|
+
|
|
300021
|
+
|
|
300022
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/index.mjs
|
|
300023
|
+
|
|
300024
|
+
|
|
300025
|
+
|
|
300026
|
+
|
|
300027
|
+
|
|
300028
|
+
|
|
300029
|
+
|
|
300030
|
+
const ElContainer = withInstall(Container, {
|
|
300031
|
+
Aside: Aside,
|
|
300032
|
+
Footer: Footer,
|
|
300033
|
+
Header: Header,
|
|
300034
|
+
Main: Main
|
|
300035
|
+
});
|
|
300036
|
+
const ElAside = withNoopInstall(Aside);
|
|
300037
|
+
const ElFooter = withNoopInstall(Footer);
|
|
300038
|
+
const ElHeader = withNoopInstall(Header);
|
|
300039
|
+
const ElMain = withNoopInstall(Main);
|
|
300040
|
+
|
|
300041
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-container.css
|
|
300042
|
+
// extracted by mini-css-extract-plugin
|
|
300043
|
+
|
|
300044
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-aside.css
|
|
300045
|
+
// extracted by mini-css-extract-plugin
|
|
300046
|
+
|
|
300047
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-footer.css
|
|
300048
|
+
// extracted by mini-css-extract-plugin
|
|
300049
|
+
|
|
300050
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-header.css
|
|
300051
|
+
// extracted by mini-css-extract-plugin
|
|
300052
|
+
|
|
300053
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-main.css
|
|
300054
|
+
// extracted by mini-css-extract-plugin
|
|
300055
|
+
|
|
300056
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/style/css.mjs
|
|
300057
|
+
|
|
300058
|
+
|
|
300059
|
+
|
|
300060
|
+
|
|
300061
|
+
|
|
300062
|
+
|
|
300063
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/main/style/css.mjs
|
|
300064
|
+
|
|
300065
|
+
|
|
300066
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/aside/style/css.mjs
|
|
300067
|
+
|
|
300068
|
+
|
|
299822
300069
|
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-badge.css
|
|
299823
300070
|
// extracted by mini-css-extract-plugin
|
|
299824
300071
|
|
|
@@ -299841,250 +300088,592 @@ const jt_page_manager_tree_table_exports_ = jt_page_manager_tree_tablevue_type_s
|
|
|
299841
300088
|
|
|
299842
300089
|
|
|
299843
300090
|
|
|
299844
|
-
;// CONCATENATED MODULE: ./
|
|
300091
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-hook.js
|
|
299845
300092
|
|
|
299846
300093
|
|
|
299847
300094
|
|
|
299848
300095
|
|
|
299849
300096
|
|
|
299850
|
-
|
|
299851
|
-
|
|
299852
|
-
|
|
300097
|
+
/*
|
|
300098
|
+
* @Author: leevan
|
|
300099
|
+
* @Date: 2025-02-28 09:22:19
|
|
300100
|
+
* @LastEditTime: 2025-02-28 13:27:26
|
|
300101
|
+
* @LastEditors: leevan
|
|
300102
|
+
* @FilePath: /jtui3.0/packages/manage-tree-table/components/mtt-panel-hook.js
|
|
300103
|
+
*/
|
|
299853
300104
|
|
|
299854
|
-
const container_sfc_main = /* @__PURE__ */(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({ ...container_default_,
|
|
299855
|
-
props: {
|
|
299856
|
-
direction: {
|
|
299857
|
-
type: String
|
|
299858
|
-
}
|
|
299859
|
-
},
|
|
299860
300105
|
|
|
299861
|
-
setup(__props) {
|
|
299862
|
-
const props = __props;
|
|
299863
|
-
const slots = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useSlots)();
|
|
299864
|
-
const ns = use_namespace_useNamespace("container");
|
|
299865
|
-
const isVertical = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
299866
|
-
if (props.direction === "vertical") {
|
|
299867
|
-
return true;
|
|
299868
|
-
} else if (props.direction === "horizontal") {
|
|
299869
|
-
return false;
|
|
299870
|
-
}
|
|
299871
300106
|
|
|
299872
|
-
|
|
299873
|
-
|
|
299874
|
-
return vNodes.some(vNode => {
|
|
299875
|
-
const tag = vNode.type.name;
|
|
299876
|
-
return tag === "ElHeader" || tag === "ElFooter";
|
|
299877
|
-
});
|
|
299878
|
-
} else {
|
|
299879
|
-
return false;
|
|
299880
|
-
}
|
|
299881
|
-
});
|
|
299882
|
-
return (_ctx, _cache) => {
|
|
299883
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("section", {
|
|
299884
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)([(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).is("vertical", (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isVertical))])
|
|
299885
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
299886
|
-
};
|
|
299887
|
-
}
|
|
300107
|
+
function MttPanelHook(props) {
|
|
300108
|
+
const slots = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useSlots)(); // 第一层数据
|
|
299888
300109
|
|
|
299889
|
-
|
|
300110
|
+
const tableData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(props, 'tableData');
|
|
300111
|
+
const retjson = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(tableData.value[0], 'retjson'); // 第二层数据
|
|
299890
300112
|
|
|
299891
|
-
|
|
300113
|
+
const retjson_2 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
300114
|
+
const tableData_2 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
300115
|
+
const loading_2 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
300116
|
+
const level_2_rowid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(''); //tooltip控制
|
|
299892
300117
|
|
|
300118
|
+
const isTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
300119
|
+
const tooltipId = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0); //form组
|
|
299893
300120
|
|
|
299894
|
-
|
|
300121
|
+
const formList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(tableData.value[0].forms.map(form => {
|
|
300122
|
+
// 当前类型 要求保留之前输入的内容,所以用v-show 其他的 用 v-if
|
|
300123
|
+
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
300124
|
+
return form;
|
|
300125
|
+
}));
|
|
300126
|
+
const forms_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form
|
|
299895
300127
|
|
|
300128
|
+
const formsItemCopy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form复制数据
|
|
299896
300129
|
|
|
300130
|
+
const activeRow = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null); //当前行数据
|
|
299897
300131
|
|
|
300132
|
+
let model_all = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
299898
300133
|
|
|
300134
|
+
const _pageData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //表格操作列配置
|
|
299899
300135
|
|
|
299900
|
-
const aside_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
299901
|
-
name: "ElAside"
|
|
299902
|
-
});
|
|
299903
300136
|
|
|
299904
|
-
const
|
|
299905
|
-
props: {
|
|
299906
|
-
width: {
|
|
299907
|
-
type: String,
|
|
299908
|
-
default: null
|
|
299909
|
-
}
|
|
299910
|
-
},
|
|
300137
|
+
const buttonWidthNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(props, 'buttonWidth');
|
|
299911
300138
|
|
|
299912
|
-
|
|
299913
|
-
|
|
299914
|
-
|
|
299915
|
-
|
|
299916
|
-
|
|
299917
|
-
|
|
299918
|
-
|
|
299919
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("aside", {
|
|
299920
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b()),
|
|
299921
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(style))
|
|
299922
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 6);
|
|
300139
|
+
const handlerConfig = item => {
|
|
300140
|
+
return {
|
|
300141
|
+
show: item?.handleColWidth == 0 ? false : true,
|
|
300142
|
+
width: Number(item?.handleColWidth || buttonWidthNum.value),
|
|
300143
|
+
align: "center",
|
|
300144
|
+
fixed: "right",
|
|
300145
|
+
btnGroup: false
|
|
299923
300146
|
};
|
|
300147
|
+
};
|
|
300148
|
+
|
|
300149
|
+
const tableVmRefs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
300150
|
+
const mttMainRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
300151
|
+
|
|
300152
|
+
function setRef(el, index) {
|
|
300153
|
+
if (el) {
|
|
300154
|
+
tableVmRefs.value['cusListRef' + index] = el;
|
|
300155
|
+
}
|
|
299924
300156
|
}
|
|
299925
300157
|
|
|
299926
|
-
|
|
300158
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => buttonWidthNum.value, newVal => {
|
|
300159
|
+
handlerConfig.width = Number(newVal);
|
|
300160
|
+
});
|
|
299927
300161
|
|
|
299928
|
-
|
|
300162
|
+
function isShowTooltip(event, item, offset) {
|
|
300163
|
+
let pWidth;
|
|
299929
300164
|
|
|
300165
|
+
if (offset) {
|
|
300166
|
+
pWidth = event.target.parentNode.offsetWidth - offset;
|
|
300167
|
+
} else {
|
|
300168
|
+
pWidth = event.target.parentNode.offsetWidth;
|
|
300169
|
+
}
|
|
299930
300170
|
|
|
299931
|
-
|
|
300171
|
+
if (event.target.offsetWidth > pWidth) {
|
|
300172
|
+
isTooltip.value = true;
|
|
300173
|
+
tooltipId.value = item.rowid;
|
|
300174
|
+
} else {
|
|
300175
|
+
isTooltip.value = false;
|
|
300176
|
+
tooltipId.value = 0;
|
|
300177
|
+
}
|
|
300178
|
+
}
|
|
299932
300179
|
|
|
300180
|
+
function hiddenTooltip() {
|
|
300181
|
+
isTooltip.value = false;
|
|
300182
|
+
tooltipId.value = 0;
|
|
300183
|
+
} //加载第二层数据
|
|
299933
300184
|
|
|
299934
300185
|
|
|
300186
|
+
async function cardClick(item) {
|
|
300187
|
+
if ('row' in item) {
|
|
300188
|
+
item = item.row;
|
|
300189
|
+
}
|
|
299935
300190
|
|
|
300191
|
+
level_2_rowid.value = item.rowid;
|
|
300192
|
+
loading_2.value = true;
|
|
300193
|
+
retjson_2.value = null;
|
|
300194
|
+
const res = await props.axios.post(props.compPath + item.path);
|
|
300195
|
+
console.log(res, 123);
|
|
300196
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300197
|
+
retjson_2.value = res.data[0].retjson;
|
|
300198
|
+
tableData_2.value = res.data[0].DataArray;
|
|
300199
|
+
loadListData(tableData_2.value[0]);
|
|
300200
|
+
loading_2.value = false;
|
|
300201
|
+
});
|
|
300202
|
+
} //版式3加载第二层数据
|
|
299936
300203
|
|
|
299937
|
-
const footer_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
299938
|
-
name: "ElFooter"
|
|
299939
|
-
});
|
|
299940
300204
|
|
|
299941
|
-
|
|
299942
|
-
|
|
299943
|
-
|
|
299944
|
-
|
|
299945
|
-
|
|
299946
|
-
|
|
299947
|
-
|
|
300205
|
+
async function cardClick3(item) {
|
|
300206
|
+
item.row.loading_2 = true;
|
|
300207
|
+
item.row.retjson_2 = null;
|
|
300208
|
+
const res = await props.axios.post(props.compPath + item.row.path);
|
|
300209
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300210
|
+
item.row.retjson_2 = res.data[0].retjson;
|
|
300211
|
+
item.row.tableData_2 = res.data[0].DataArray;
|
|
300212
|
+
loadListData(item.row.tableData_2[0]);
|
|
300213
|
+
item.row.loading_2 = false;
|
|
300214
|
+
});
|
|
300215
|
+
} //加载第三层数据
|
|
299948
300216
|
|
|
299949
|
-
setup(__props) {
|
|
299950
|
-
const props = __props;
|
|
299951
|
-
const ns = use_namespace_useNamespace("footer");
|
|
299952
|
-
const style = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => props.height ? ns.cssVarBlock({
|
|
299953
|
-
height: props.height
|
|
299954
|
-
}) : {});
|
|
299955
|
-
return (_ctx, _cache) => {
|
|
299956
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("footer", {
|
|
299957
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b()),
|
|
299958
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(style))
|
|
299959
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 6);
|
|
299960
|
-
};
|
|
299961
|
-
}
|
|
299962
300217
|
|
|
299963
|
-
|
|
300218
|
+
async function loadListData(item) {
|
|
300219
|
+
if (item.path == '' || item.path == '-') {
|
|
300220
|
+
return;
|
|
300221
|
+
}
|
|
299964
300222
|
|
|
299965
|
-
|
|
300223
|
+
if (props.accordion) {
|
|
300224
|
+
tableData_2.value.forEach(i => {
|
|
300225
|
+
if (item.rowid != i.rowid) {
|
|
300226
|
+
i.isShow = false;
|
|
300227
|
+
}
|
|
300228
|
+
});
|
|
300229
|
+
}
|
|
299966
300230
|
|
|
300231
|
+
if (item?.retjson_3) {
|
|
300232
|
+
item.isShow = !item.isShow;
|
|
300233
|
+
return;
|
|
300234
|
+
}
|
|
299967
300235
|
|
|
299968
|
-
|
|
300236
|
+
if (item) {
|
|
300237
|
+
item.loading = true;
|
|
300238
|
+
}
|
|
299969
300239
|
|
|
300240
|
+
const res = await props.axios.post(props.compPath + item.path);
|
|
300241
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300242
|
+
item.isShow = true;
|
|
300243
|
+
item.retjson_3 = res.data[0].retjson;
|
|
300244
|
+
item.tableData_3 = res.data[0].DataArray;
|
|
300245
|
+
item.loading = false;
|
|
300246
|
+
});
|
|
300247
|
+
}
|
|
299970
300248
|
|
|
300249
|
+
async function loadListData_req(item) {
|
|
300250
|
+
item.retjson_3 = null;
|
|
300251
|
+
item.loading = true;
|
|
300252
|
+
const res = await props.axios.post(props.compPath + item.path);
|
|
300253
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300254
|
+
item.isShow = true;
|
|
300255
|
+
item.retjson_3 = res.data[0].retjson;
|
|
300256
|
+
item.tableData_3 = res.data[0].DataArray;
|
|
300257
|
+
item.loading = false;
|
|
300258
|
+
});
|
|
300259
|
+
} //第三层按钮触发事件
|
|
299971
300260
|
|
|
299972
300261
|
|
|
300262
|
+
function customEvents(type, data) {
|
|
300263
|
+
if (type == 'handler') {
|
|
300264
|
+
handlerColClick(data.funcode, data.row, 3, data.rowIndex);
|
|
300265
|
+
}
|
|
300266
|
+
} //监听第一层数据加载
|
|
299973
300267
|
|
|
299974
|
-
const header_default_ = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
299975
|
-
name: "ElHeader"
|
|
299976
|
-
});
|
|
299977
300268
|
|
|
299978
|
-
const
|
|
299979
|
-
|
|
299980
|
-
|
|
299981
|
-
|
|
299982
|
-
default: null
|
|
300269
|
+
const innerDivWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('100%');
|
|
300270
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
300271
|
+
if (mttMainRef.value?.$el?.offsetWidth) {
|
|
300272
|
+
innerDivWidth.value = mttMainRef.value.$el.offsetWidth - 30 + 'px';
|
|
299983
300273
|
}
|
|
299984
|
-
},
|
|
299985
300274
|
|
|
299986
|
-
|
|
299987
|
-
|
|
299988
|
-
|
|
299989
|
-
|
|
299990
|
-
|
|
299991
|
-
|
|
299992
|
-
})
|
|
300275
|
+
jtMessage.off('rootChange');
|
|
300276
|
+
jtMessage.on('rootChange', res => {
|
|
300277
|
+
formList.value = res[0].forms.map(form => {
|
|
300278
|
+
// 当前类型 要求保留之前输入的内容,所以用v-show 其他的 用 v-if
|
|
300279
|
+
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
300280
|
+
return form;
|
|
300281
|
+
});
|
|
300282
|
+
});
|
|
300283
|
+
}); //隐藏弹框
|
|
300284
|
+
|
|
300285
|
+
function hideModal() {
|
|
300286
|
+
formList.value.forEach(item => {
|
|
300287
|
+
item.display = false;
|
|
299993
300288
|
});
|
|
299994
|
-
return (_ctx, _cache) => {
|
|
299995
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("header", {
|
|
299996
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(ns).b()),
|
|
299997
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(style))
|
|
299998
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 6);
|
|
299999
|
-
};
|
|
300000
300289
|
}
|
|
300001
300290
|
|
|
300002
|
-
|
|
300291
|
+
;
|
|
300292
|
+
const operFunc = {
|
|
300293
|
+
//增加操作
|
|
300294
|
+
add_handler: async (params, item, level) => {
|
|
300295
|
+
if (!("submit" in item) || !("path" in item)) {
|
|
300296
|
+
ElMessage.success("表单请求参数错误");
|
|
300297
|
+
return;
|
|
300298
|
+
}
|
|
300003
300299
|
|
|
300004
|
-
|
|
300300
|
+
const path = item.submit + item.path;
|
|
300301
|
+
const {
|
|
300302
|
+
data
|
|
300303
|
+
} = await props.axios.post(path, params);
|
|
300304
|
+
hideModal();
|
|
300305
|
+
handlerCallBack(data, level);
|
|
300306
|
+
formList.value.forEach(i => {
|
|
300307
|
+
if (i.funcode === item.funcode) {
|
|
300308
|
+
i = formsItemCopy;
|
|
300309
|
+
}
|
|
300310
|
+
});
|
|
300311
|
+
},
|
|
300312
|
+
//修改操作
|
|
300313
|
+
modify_handler: async (params, item, level) => {
|
|
300314
|
+
const path = item.submit + item.path;
|
|
300315
|
+
const {
|
|
300316
|
+
data
|
|
300317
|
+
} = await props.axios.post(path, params);
|
|
300318
|
+
hideModal();
|
|
300319
|
+
let msg = null;
|
|
300320
|
+
let ret = -1;
|
|
300005
300321
|
|
|
300322
|
+
if (null != data && data.length == 0) {
|
|
300323
|
+
ret = 0;
|
|
300324
|
+
} else if (data.length == 1) {
|
|
300325
|
+
msg = data[0]["MSG"];
|
|
300326
|
+
ret = data[0]["Result"];
|
|
300327
|
+
}
|
|
300006
300328
|
|
|
300007
|
-
|
|
300329
|
+
if (ret > 0) {
|
|
300330
|
+
ElMessage.success("修改成功");
|
|
300008
300331
|
|
|
300332
|
+
try {
|
|
300333
|
+
let MSG = data[0]["MSG"];
|
|
300334
|
+
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
300009
300335
|
|
|
300336
|
+
if (isjson) {
|
|
300337
|
+
for (let key in MSG) {
|
|
300338
|
+
activeRow.value[key] = MSG[key];
|
|
300339
|
+
}
|
|
300010
300340
|
|
|
300341
|
+
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
300342
|
+
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
300343
|
+
}
|
|
300344
|
+
}
|
|
300011
300345
|
|
|
300346
|
+
for (let key in _pageData) {
|
|
300347
|
+
activeRow.value[key] = _pageData[key];
|
|
300348
|
+
}
|
|
300012
300349
|
|
|
300013
|
-
|
|
300014
|
-
|
|
300015
|
-
|
|
300350
|
+
handlerCallBack(data, level);
|
|
300351
|
+
} catch (e) {
|
|
300352
|
+
console.log(e);
|
|
300353
|
+
}
|
|
300016
300354
|
|
|
300017
|
-
|
|
300355
|
+
for (let key in forms_item.value["model"]) {
|
|
300356
|
+
activeRow.value[key] = forms_item.value["model"][key];
|
|
300357
|
+
}
|
|
300358
|
+
} else if (ret == 0) {
|
|
300359
|
+
ElMessage.success("修改完成,没有更新数据");
|
|
300360
|
+
} else {
|
|
300361
|
+
if (null == msg) {
|
|
300362
|
+
msg = ret;
|
|
300363
|
+
}
|
|
300018
300364
|
|
|
300019
|
-
|
|
300020
|
-
|
|
300021
|
-
|
|
300022
|
-
|
|
300023
|
-
|
|
300024
|
-
|
|
300025
|
-
};
|
|
300026
|
-
}
|
|
300365
|
+
ElMessage.warning("修改失败[" + msg + "]");
|
|
300366
|
+
}
|
|
300367
|
+
},
|
|
300368
|
+
// 下载文件
|
|
300369
|
+
download_handler: row => {
|
|
300370
|
+
const r = row;
|
|
300027
300371
|
|
|
300028
|
-
|
|
300372
|
+
if (typeof row.fileList === "string") {
|
|
300373
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
300374
|
+
} else if (row.fileList) {
|
|
300375
|
+
for (let i = 0; i < r.fileList.length; i++) {
|
|
300376
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
300377
|
+
}
|
|
300378
|
+
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
300379
|
+
for (let i = 0; i < r.ws_att.length; i++) {
|
|
300380
|
+
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, props.axios);
|
|
300381
|
+
}
|
|
300382
|
+
}
|
|
300383
|
+
},
|
|
300384
|
+
//删除操作
|
|
300385
|
+
del_handler: async (path, item, level) => {
|
|
300386
|
+
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
300387
|
+
confirmButtonText: "确定",
|
|
300388
|
+
cancelButtonText: "取消",
|
|
300389
|
+
type: "warning"
|
|
300390
|
+
}).then(async () => {
|
|
300391
|
+
const {
|
|
300392
|
+
data
|
|
300393
|
+
} = await props.axios.post(path, model_all.value);
|
|
300394
|
+
hideModal();
|
|
300395
|
+
handlerCallBack(data, level);
|
|
300396
|
+
}).catch(() => {});
|
|
300397
|
+
},
|
|
300398
|
+
exec_handler: async (params, item, level) => {
|
|
300399
|
+
const path = item.submit + item.path;
|
|
300400
|
+
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
300401
|
+
confirmButtonText: "确定",
|
|
300402
|
+
cancelButtonText: "取消",
|
|
300403
|
+
type: "warning"
|
|
300404
|
+
}).then(async () => {
|
|
300405
|
+
const {
|
|
300406
|
+
data
|
|
300407
|
+
} = await props.axios.post(path, model_all.value);
|
|
300408
|
+
hideModal();
|
|
300409
|
+
handlerCallBack(data, level, 'exec', item);
|
|
300410
|
+
}).catch(() => {});
|
|
300411
|
+
}
|
|
300412
|
+
}; //parentId寻找父级
|
|
300029
300413
|
|
|
300030
|
-
|
|
300414
|
+
function findParentData(parentId, level) {
|
|
300415
|
+
if (level == 2) {
|
|
300416
|
+
const idx = tableData.value[0].DataArray.findIndex(item => {
|
|
300417
|
+
return item.rowid == parentId;
|
|
300418
|
+
});
|
|
300419
|
+
const row = tableData.value[0].DataArray[idx];
|
|
300420
|
+
return {
|
|
300421
|
+
row,
|
|
300422
|
+
idx
|
|
300423
|
+
};
|
|
300424
|
+
} else if (level == 3) {
|
|
300425
|
+
const idx = tableData_2.value.findIndex(item => {
|
|
300426
|
+
return item.rowid == parentId;
|
|
300427
|
+
});
|
|
300428
|
+
const row = tableData_2.value[idx];
|
|
300429
|
+
return {
|
|
300430
|
+
row,
|
|
300431
|
+
idx
|
|
300432
|
+
};
|
|
300433
|
+
}
|
|
300434
|
+
} //操作回调
|
|
300031
300435
|
|
|
300032
300436
|
|
|
300033
|
-
|
|
300437
|
+
function handlerCallBack(data, level, tag, otherParams) {
|
|
300438
|
+
if (data && data[0].Result >= 0) {
|
|
300439
|
+
ElMessage.success("执行操作成功");
|
|
300034
300440
|
|
|
300441
|
+
if ("MSG" in data[0]) {
|
|
300442
|
+
const obl = Object.keys(data[0].MSG).length;
|
|
300035
300443
|
|
|
300444
|
+
if (obl != 0 && data[0].MSG.oprtype == "del") {
|
|
300445
|
+
//删除
|
|
300446
|
+
if (level == 1) {
|
|
300447
|
+
const idx = tableData.value[0].DataArray.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300448
|
+
tableData.value[0].DataArray.splice(idx, 1);
|
|
300449
|
+
} else if (level == 2) {
|
|
300450
|
+
const idx = tableData2.value.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300451
|
+
tableData2.value.splice(idx, 1);
|
|
300452
|
+
} else if (level == 3) {
|
|
300453
|
+
if (slots.cusComp) {} else {
|
|
300454
|
+
//内置表格处理删除操作
|
|
300455
|
+
const pData = findParentData(activeRow.value.parentId, level);
|
|
300456
|
+
tableVmRefs.value['cusListRef' + pData.idx].removeRow(activeRow.value);
|
|
300457
|
+
}
|
|
300458
|
+
}
|
|
300459
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reflash") {//刷新
|
|
300460
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
300461
|
+
if (level == 1) {
|
|
300462
|
+
if ('queryParams' in data[0].MSG) {
|
|
300463
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
300464
|
+
}
|
|
300036
300465
|
|
|
300466
|
+
props.initPageEvent();
|
|
300467
|
+
return;
|
|
300468
|
+
} //重载父级
|
|
300037
300469
|
|
|
300038
300470
|
|
|
300471
|
+
const {
|
|
300472
|
+
row
|
|
300473
|
+
} = findParentData(activeRow.value.parentId, level);
|
|
300039
300474
|
|
|
300475
|
+
if (level == 2) {
|
|
300476
|
+
cardClick(row);
|
|
300477
|
+
} else if (level == 3) {
|
|
300478
|
+
loadListData_req(row);
|
|
300479
|
+
}
|
|
300480
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
300481
|
+
//重新查询
|
|
300482
|
+
if ('queryParams' in data[0].MSG) {
|
|
300483
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
300484
|
+
}
|
|
300040
300485
|
|
|
300041
|
-
|
|
300042
|
-
|
|
300043
|
-
|
|
300044
|
-
|
|
300045
|
-
|
|
300046
|
-
})
|
|
300047
|
-
|
|
300048
|
-
|
|
300049
|
-
|
|
300050
|
-
const ElMain = withNoopInstall(Main);
|
|
300486
|
+
props.initPageEvent();
|
|
300487
|
+
}
|
|
300488
|
+
} else {
|
|
300489
|
+
if (level == 1) {
|
|
300490
|
+
cardClick(activeRow.value);
|
|
300491
|
+
} else if (level == 2) {
|
|
300492
|
+
loadListData_req(activeRow.value);
|
|
300493
|
+
}
|
|
300494
|
+
}
|
|
300051
300495
|
|
|
300052
|
-
|
|
300053
|
-
|
|
300496
|
+
return true;
|
|
300497
|
+
} else {
|
|
300498
|
+
if (tag == 'exec') {
|
|
300499
|
+
const {
|
|
300500
|
+
cusItem
|
|
300501
|
+
} = otherParams;
|
|
300054
300502
|
|
|
300055
|
-
|
|
300056
|
-
|
|
300503
|
+
if (cusItem.Pages.length !== 0) {
|
|
300504
|
+
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
300505
|
+
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
300057
300506
|
|
|
300058
|
-
|
|
300059
|
-
|
|
300507
|
+
if (isEmpty) {
|
|
300508
|
+
cusItem.display = !cusItem.display;
|
|
300509
|
+
}
|
|
300510
|
+
}
|
|
300511
|
+
}
|
|
300512
|
+
}
|
|
300060
300513
|
|
|
300061
|
-
|
|
300062
|
-
|
|
300514
|
+
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
300515
|
+
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
300516
|
+
return false;
|
|
300517
|
+
}
|
|
300518
|
+
} //连接websocket
|
|
300063
300519
|
|
|
300064
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-main.css
|
|
300065
|
-
// extracted by mini-css-extract-plugin
|
|
300066
300520
|
|
|
300067
|
-
|
|
300521
|
+
let wsPath;
|
|
300068
300522
|
|
|
300523
|
+
if (location.protocol == "http:") {
|
|
300524
|
+
wsPath = `ws://${location.host}`;
|
|
300525
|
+
} else if (location.protocol == "https:") {
|
|
300526
|
+
wsPath = `wss://${location.host}`;
|
|
300527
|
+
}
|
|
300069
300528
|
|
|
300529
|
+
function connectionWS(filed, path, row) {
|
|
300530
|
+
const filedAry = filed.split(",");
|
|
300531
|
+
const ws = new WebSocket(wsPath + path);
|
|
300070
300532
|
|
|
300533
|
+
ws.onopen = () => {
|
|
300534
|
+
console.log("ws ok");
|
|
300535
|
+
};
|
|
300071
300536
|
|
|
300537
|
+
ws.onmessage = e => {
|
|
300538
|
+
const aData = JSON.parse(e.data);
|
|
300072
300539
|
|
|
300540
|
+
if (aData.Restlt != "0") {
|
|
300541
|
+
filedAry.forEach(item => {
|
|
300542
|
+
row[item] = aData[item];
|
|
300543
|
+
});
|
|
300544
|
+
} else {
|
|
300545
|
+
ws.close();
|
|
300546
|
+
}
|
|
300073
300547
|
|
|
300074
|
-
|
|
300548
|
+
console.log("ws data", JSON.parse(e.data));
|
|
300549
|
+
};
|
|
300075
300550
|
|
|
300551
|
+
ws.onclose = () => {
|
|
300552
|
+
console.log("ws close");
|
|
300553
|
+
};
|
|
300076
300554
|
|
|
300077
|
-
|
|
300555
|
+
ws.onerror = () => {
|
|
300556
|
+
ElMessage.warning("ws连接失败");
|
|
300557
|
+
};
|
|
300558
|
+
} //判断是否对象
|
|
300078
300559
|
|
|
300079
300560
|
|
|
300080
|
-
|
|
300561
|
+
function isObject(value) {
|
|
300562
|
+
return Object.prototype.toString.call(value) === '[object Object]';
|
|
300563
|
+
} //按钮事件监听
|
|
300564
|
+
|
|
300565
|
+
|
|
300566
|
+
function handlerColClick(funcode, row, level, idx) {
|
|
300567
|
+
activeRow.value = row;
|
|
300568
|
+
sessionStorage.setItem('active_row', JSON.stringify(row));
|
|
300569
|
+
activeRow.value.$level = level;
|
|
300570
|
+
activeRow.value.$idx = idx; //处理内部刷新
|
|
300571
|
+
|
|
300572
|
+
if (funcode === "reflash") {
|
|
300573
|
+
if (level == 1) {
|
|
300574
|
+
cardClick(row);
|
|
300575
|
+
} else if (level == 2) {
|
|
300576
|
+
loadListData_req(row);
|
|
300577
|
+
}
|
|
300578
|
+
|
|
300579
|
+
return;
|
|
300580
|
+
} //处理下载按钮
|
|
300581
|
+
|
|
300582
|
+
|
|
300583
|
+
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
300584
|
+
operFunc.download_handler(row);
|
|
300585
|
+
return;
|
|
300586
|
+
} //处理其余表单
|
|
300587
|
+
|
|
300588
|
+
|
|
300589
|
+
formList.value.forEach(item => {
|
|
300590
|
+
if (item.funcode === funcode) {
|
|
300591
|
+
forms_item.value = item;
|
|
300592
|
+
formsItemCopy.value = deepCopy(item);
|
|
300593
|
+
const type = item.oprtype;
|
|
300594
|
+
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
300595
|
+
Object.keys(subItem.model).forEach(item => {
|
|
300596
|
+
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
300597
|
+
|
|
300598
|
+
if (![null, undefined].includes(activeRow.value[item])) {
|
|
300599
|
+
if (activeConfig && activeConfig.type == "iNumber") {
|
|
300600
|
+
subItem.model[item] = Number(activeRow.value[item]);
|
|
300601
|
+
} else {
|
|
300602
|
+
subItem.model[item] = activeRow.value[item];
|
|
300603
|
+
}
|
|
300604
|
+
}
|
|
300605
|
+
|
|
300606
|
+
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
300607
|
+
activeConfig.options = [{
|
|
300608
|
+
label: subItem.model[activeConfig.nameKey],
|
|
300609
|
+
value: subItem.model[activeConfig.nameKey]
|
|
300610
|
+
}];
|
|
300611
|
+
}
|
|
300612
|
+
});
|
|
300613
|
+
return subItem.model;
|
|
300614
|
+
});
|
|
300615
|
+
model_all.value = Object.assign({}, ...(tempAry || {}));
|
|
300616
|
+
|
|
300617
|
+
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
300618
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
300619
|
+
operFunc[type + "_handler"](path, item, level);
|
|
300620
|
+
} else {
|
|
300621
|
+
item.display = !item.display;
|
|
300622
|
+
}
|
|
300623
|
+
}
|
|
300624
|
+
});
|
|
300625
|
+
} // 提交表单数据
|
|
300626
|
+
|
|
300627
|
+
|
|
300628
|
+
const formSubmit = ({
|
|
300629
|
+
form,
|
|
300630
|
+
pageData
|
|
300631
|
+
}) => {
|
|
300632
|
+
const type = form.oprtype;
|
|
300633
|
+
_pageData.value = pageData;
|
|
300634
|
+
|
|
300635
|
+
if (!forms_item) {
|
|
300636
|
+
console.log("forms_item 不存在");
|
|
300637
|
+
return;
|
|
300638
|
+
}
|
|
300639
|
+
|
|
300640
|
+
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
300641
|
+
}; //监听第一层数据变化
|
|
300642
|
+
|
|
300643
|
+
|
|
300644
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => tableData.value, newVal => {
|
|
300645
|
+
retjson_2.value = null;
|
|
300646
|
+
});
|
|
300647
|
+
jtMessage.off("step_submit");
|
|
300648
|
+
jtMessage.on("step_submit", params => formSubmit(params));
|
|
300649
|
+
return {
|
|
300650
|
+
tableData,
|
|
300651
|
+
retjson,
|
|
300652
|
+
retjson_2,
|
|
300653
|
+
tableData_2,
|
|
300654
|
+
loading_2,
|
|
300655
|
+
cardClick3,
|
|
300656
|
+
isTooltip,
|
|
300657
|
+
innerDivWidth,
|
|
300658
|
+
level_2_rowid,
|
|
300659
|
+
isShowTooltip,
|
|
300660
|
+
formList,
|
|
300661
|
+
cardClick,
|
|
300662
|
+
handlerConfig,
|
|
300663
|
+
handlerColClick,
|
|
300664
|
+
setRef,
|
|
300665
|
+
customEvents,
|
|
300666
|
+
loadListData
|
|
300667
|
+
};
|
|
300668
|
+
}
|
|
300669
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
300081
300670
|
/* unplugin-vue-components disabled */
|
|
300082
300671
|
|
|
300083
300672
|
|
|
300084
300673
|
|
|
300085
300674
|
|
|
300086
300675
|
|
|
300087
|
-
const btn_rendervue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-
|
|
300676
|
+
const btn_rendervue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-27907834"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
300088
300677
|
|
|
300089
300678
|
const btn_rendervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/btn_rendervue_type_script_setup_true_lang_js_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
300090
300679
|
class: "jtIcon icon03 el-icon--right",
|
|
@@ -300236,27 +300825,54 @@ const btn_rendervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/btn_
|
|
|
300236
300825
|
}
|
|
300237
300826
|
|
|
300238
300827
|
});
|
|
300239
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300828
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
300240
300829
|
/* unplugin-vue-components disabled */
|
|
300241
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/
|
|
300830
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/btn-render.vue?vue&type=style&index=0&id=27907834&lang=scss&scoped=true
|
|
300242
300831
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
300243
300832
|
|
|
300244
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300833
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue?vue&type=style&index=0&id=27907834&lang=scss&scoped=true
|
|
300245
300834
|
/* unplugin-vue-components disabled */
|
|
300246
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300835
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue
|
|
300247
300836
|
/* unplugin-vue-components disabled */
|
|
300248
300837
|
|
|
300249
300838
|
|
|
300250
300839
|
;
|
|
300251
300840
|
|
|
300252
300841
|
|
|
300253
|
-
const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
300842
|
+
const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-27907834"]])
|
|
300254
300843
|
|
|
300255
300844
|
/* harmony default export */ var btn_render = (btn_render_exports_);
|
|
300845
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-props.js
|
|
300846
|
+
/* harmony default export */ var mtt_panel_props = ({
|
|
300847
|
+
tableData: Array,
|
|
300848
|
+
path: String,
|
|
300849
|
+
axios: Function,
|
|
300850
|
+
compPath: String,
|
|
300851
|
+
cusBoxHeight: {
|
|
300852
|
+
type: [Number, String],
|
|
300853
|
+
default: 200
|
|
300854
|
+
},
|
|
300855
|
+
//第三层清单内容的高度配置
|
|
300856
|
+
btnNumLeft: {
|
|
300857
|
+
type: [Number, String],
|
|
300858
|
+
default: 1
|
|
300859
|
+
},
|
|
300860
|
+
//右侧按钮数量配置
|
|
300861
|
+
btnNumRight: {
|
|
300862
|
+
type: [Number, String],
|
|
300863
|
+
default: 1
|
|
300864
|
+
},
|
|
300865
|
+
//右侧按钮数量配置
|
|
300866
|
+
buttonWidth: [Number, String],
|
|
300867
|
+
//第三层表格操作列宽度
|
|
300868
|
+
accordion: {
|
|
300869
|
+
type: Boolean,
|
|
300870
|
+
default: true
|
|
300871
|
+
},
|
|
300872
|
+
//第三层是否手风琴模式
|
|
300873
|
+
initPageEvent: Function
|
|
300874
|
+
});
|
|
300256
300875
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=script&setup=true&lang=js
|
|
300257
|
-
|
|
300258
|
-
|
|
300259
|
-
|
|
300260
300876
|
/* unplugin-vue-components disabled */
|
|
300261
300877
|
|
|
300262
300878
|
|
|
@@ -300268,8 +300884,7 @@ const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_ren
|
|
|
300268
300884
|
|
|
300269
300885
|
|
|
300270
300886
|
|
|
300271
|
-
|
|
300272
|
-
const mtt_panelvue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-30f766b2"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
300887
|
+
const mtt_panelvue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-5bc882de"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
300273
300888
|
|
|
300274
300889
|
const mtt_panelvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
300275
300890
|
class: "mtt-panel-box"
|
|
@@ -300350,556 +300965,32 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300350
300965
|
|
|
300351
300966
|
|
|
300352
300967
|
|
|
300353
|
-
|
|
300354
300968
|
/* harmony default export */ var mtt_panelvue_type_script_setup_true_lang_js = ({
|
|
300355
300969
|
__name: 'mtt-panel',
|
|
300356
|
-
props:
|
|
300357
|
-
tableData: Array,
|
|
300358
|
-
path: String,
|
|
300359
|
-
axios: Function,
|
|
300360
|
-
compPath: String,
|
|
300361
|
-
cusBoxHeight: {
|
|
300362
|
-
type: [Number, String],
|
|
300363
|
-
default: 200
|
|
300364
|
-
},
|
|
300365
|
-
//第三层清单内容的高度配置
|
|
300366
|
-
btnNumLeft: {
|
|
300367
|
-
type: [Number, String],
|
|
300368
|
-
default: 1
|
|
300369
|
-
},
|
|
300370
|
-
//右侧按钮数量配置
|
|
300371
|
-
btnNumRight: {
|
|
300372
|
-
type: [Number, String],
|
|
300373
|
-
default: 1
|
|
300374
|
-
},
|
|
300375
|
-
//右侧按钮数量配置
|
|
300376
|
-
buttonWidth: [Number, String],
|
|
300377
|
-
//第三层表格操作列宽度
|
|
300378
|
-
accordion: {
|
|
300379
|
-
type: Boolean,
|
|
300380
|
-
default: true
|
|
300381
|
-
} //第三层是否手风琴模式
|
|
300382
|
-
|
|
300383
|
-
},
|
|
300970
|
+
props: mtt_panel_props,
|
|
300384
300971
|
|
|
300385
300972
|
setup(__props, {
|
|
300386
300973
|
expose
|
|
300387
300974
|
}) {
|
|
300388
300975
|
const props = __props;
|
|
300389
|
-
const
|
|
300390
|
-
|
|
300391
|
-
|
|
300392
|
-
|
|
300393
|
-
|
|
300394
|
-
|
|
300395
|
-
|
|
300396
|
-
|
|
300397
|
-
|
|
300398
|
-
|
|
300399
|
-
|
|
300400
|
-
|
|
300401
|
-
|
|
300402
|
-
|
|
300403
|
-
|
|
300404
|
-
|
|
300405
|
-
|
|
300406
|
-
})
|
|
300407
|
-
const forms_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form
|
|
300408
|
-
|
|
300409
|
-
const formsItemCopy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form复制数据
|
|
300410
|
-
|
|
300411
|
-
const activeRow = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null); //当前行数据
|
|
300412
|
-
|
|
300413
|
-
let model_all = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
300414
|
-
|
|
300415
|
-
const _pageData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //表格操作列配置
|
|
300416
|
-
|
|
300417
|
-
|
|
300418
|
-
const buttonWidthNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(props, 'buttonWidth');
|
|
300419
|
-
|
|
300420
|
-
const handlerConfig = item => {
|
|
300421
|
-
return {
|
|
300422
|
-
show: item?.handleColWidth == 0 ? false : true,
|
|
300423
|
-
width: Number(item?.handleColWidth || buttonWidthNum.value),
|
|
300424
|
-
align: "center",
|
|
300425
|
-
fixed: "right",
|
|
300426
|
-
btnGroup: false
|
|
300427
|
-
};
|
|
300428
|
-
};
|
|
300429
|
-
|
|
300430
|
-
const tableVmRefs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
300431
|
-
const mttMainRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
300432
|
-
|
|
300433
|
-
function setRef(el, index) {
|
|
300434
|
-
if (el) {
|
|
300435
|
-
tableVmRefs.value['cusListRef' + index] = el;
|
|
300436
|
-
}
|
|
300437
|
-
}
|
|
300438
|
-
|
|
300439
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => buttonWidthNum.value, newVal => {
|
|
300440
|
-
handlerConfig.width = Number(newVal);
|
|
300441
|
-
});
|
|
300442
|
-
|
|
300443
|
-
function isShowTooltip(event, item, offset) {
|
|
300444
|
-
let pWidth;
|
|
300445
|
-
|
|
300446
|
-
if (offset) {
|
|
300447
|
-
pWidth = event.target.parentNode.offsetWidth - offset;
|
|
300448
|
-
} else {
|
|
300449
|
-
pWidth = event.target.parentNode.offsetWidth;
|
|
300450
|
-
}
|
|
300451
|
-
|
|
300452
|
-
if (event.target.offsetWidth > pWidth) {
|
|
300453
|
-
isTooltip.value = true;
|
|
300454
|
-
tooltipId.value = item.rowid;
|
|
300455
|
-
} else {
|
|
300456
|
-
isTooltip.value = false;
|
|
300457
|
-
tooltipId.value = 0;
|
|
300458
|
-
}
|
|
300459
|
-
}
|
|
300460
|
-
|
|
300461
|
-
function hiddenTooltip() {
|
|
300462
|
-
isTooltip.value = false;
|
|
300463
|
-
tooltipId.value = 0;
|
|
300464
|
-
} //加载第二层数据
|
|
300465
|
-
|
|
300466
|
-
|
|
300467
|
-
async function cardClick(item) {
|
|
300468
|
-
level_2_rowid.value = item.rowid;
|
|
300469
|
-
loading_2.value = true;
|
|
300470
|
-
retjson_2.value = null;
|
|
300471
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
300472
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300473
|
-
retjson_2.value = res.data[0].retjson;
|
|
300474
|
-
tableData_2.value = res.data[0].DataArray;
|
|
300475
|
-
loadListData(tableData_2.value[0]);
|
|
300476
|
-
loading_2.value = false;
|
|
300477
|
-
});
|
|
300478
|
-
} //加载第三层数据
|
|
300479
|
-
|
|
300480
|
-
|
|
300481
|
-
async function loadListData(item) {
|
|
300482
|
-
if (item.path == '' || item.path == '-') {
|
|
300483
|
-
return;
|
|
300484
|
-
}
|
|
300485
|
-
|
|
300486
|
-
if (props.accordion) {
|
|
300487
|
-
tableData_2.value.forEach(i => {
|
|
300488
|
-
if (item.rowid != i.rowid) {
|
|
300489
|
-
i.isShow = false;
|
|
300490
|
-
}
|
|
300491
|
-
});
|
|
300492
|
-
}
|
|
300493
|
-
|
|
300494
|
-
if (item?.retjson_3) {
|
|
300495
|
-
item.isShow = !item.isShow;
|
|
300496
|
-
return;
|
|
300497
|
-
}
|
|
300498
|
-
|
|
300499
|
-
if (item) {
|
|
300500
|
-
item.loading = true;
|
|
300501
|
-
}
|
|
300502
|
-
|
|
300503
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
300504
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300505
|
-
item.isShow = true;
|
|
300506
|
-
item.retjson_3 = res.data[0].retjson;
|
|
300507
|
-
item.tableData_3 = res.data[0].DataArray;
|
|
300508
|
-
item.loading = false;
|
|
300509
|
-
});
|
|
300510
|
-
}
|
|
300511
|
-
|
|
300512
|
-
async function loadListData_req(item) {
|
|
300513
|
-
item.retjson_3 = null;
|
|
300514
|
-
item.loading = true;
|
|
300515
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
300516
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300517
|
-
item.isShow = true;
|
|
300518
|
-
item.retjson_3 = res.data[0].retjson;
|
|
300519
|
-
item.tableData_3 = res.data[0].DataArray;
|
|
300520
|
-
item.loading = false;
|
|
300521
|
-
});
|
|
300522
|
-
} //第三层按钮触发事件
|
|
300523
|
-
|
|
300524
|
-
|
|
300525
|
-
function customEvents(type, data) {
|
|
300526
|
-
if (type == 'handler') {
|
|
300527
|
-
handlerColClick(data.funcode, data.row, 3, data.rowIndex);
|
|
300528
|
-
}
|
|
300529
|
-
} //监听第一层数据加载
|
|
300530
|
-
|
|
300531
|
-
|
|
300532
|
-
const innerDivWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('100%');
|
|
300533
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
300534
|
-
if (mttMainRef.value?.$el?.offsetWidth) {
|
|
300535
|
-
innerDivWidth.value = mttMainRef.value.$el.offsetWidth - 30 + 'px';
|
|
300536
|
-
}
|
|
300537
|
-
|
|
300538
|
-
jtMessage.off('rootChange');
|
|
300539
|
-
jtMessage.on('rootChange', res => {
|
|
300540
|
-
formList.value = res[0].forms.map(form => {
|
|
300541
|
-
// 当前类型 要求保留之前输入的内容,所以用v-show 其他的 用 v-if
|
|
300542
|
-
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
300543
|
-
return form;
|
|
300544
|
-
});
|
|
300545
|
-
});
|
|
300546
|
-
}); //隐藏弹框
|
|
300547
|
-
|
|
300548
|
-
function hideModal() {
|
|
300549
|
-
formList.value.forEach(item => {
|
|
300550
|
-
item.display = false;
|
|
300551
|
-
});
|
|
300552
|
-
}
|
|
300553
|
-
|
|
300554
|
-
;
|
|
300555
|
-
const operFunc = {
|
|
300556
|
-
//增加操作
|
|
300557
|
-
add_handler: async (params, item, level) => {
|
|
300558
|
-
if (!("submit" in item) || !("path" in item)) {
|
|
300559
|
-
ElMessage.success("表单请求参数错误");
|
|
300560
|
-
return;
|
|
300561
|
-
}
|
|
300562
|
-
|
|
300563
|
-
const path = item.submit + item.path;
|
|
300564
|
-
const {
|
|
300565
|
-
data
|
|
300566
|
-
} = await props.axios.post(path, params);
|
|
300567
|
-
hideModal();
|
|
300568
|
-
handlerCallBack(data, level);
|
|
300569
|
-
formList.value.forEach(i => {
|
|
300570
|
-
if (i.funcode === item.funcode) {
|
|
300571
|
-
i = formsItemCopy;
|
|
300572
|
-
}
|
|
300573
|
-
});
|
|
300574
|
-
},
|
|
300575
|
-
//修改操作
|
|
300576
|
-
modify_handler: async (params, item, level) => {
|
|
300577
|
-
const path = item.submit + item.path;
|
|
300578
|
-
const {
|
|
300579
|
-
data
|
|
300580
|
-
} = await props.axios.post(path, params);
|
|
300581
|
-
hideModal();
|
|
300582
|
-
let msg = null;
|
|
300583
|
-
let ret = -1;
|
|
300584
|
-
|
|
300585
|
-
if (null != data && data.length == 0) {
|
|
300586
|
-
ret = 0;
|
|
300587
|
-
} else if (data.length == 1) {
|
|
300588
|
-
msg = data[0]["MSG"];
|
|
300589
|
-
ret = data[0]["Result"];
|
|
300590
|
-
}
|
|
300591
|
-
|
|
300592
|
-
if (ret > 0) {
|
|
300593
|
-
ElMessage.success("修改成功");
|
|
300594
|
-
|
|
300595
|
-
try {
|
|
300596
|
-
let MSG = data[0]["MSG"];
|
|
300597
|
-
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
300598
|
-
|
|
300599
|
-
if (isjson) {
|
|
300600
|
-
for (let key in MSG) {
|
|
300601
|
-
activeRow.value[key] = MSG[key];
|
|
300602
|
-
}
|
|
300603
|
-
|
|
300604
|
-
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
300605
|
-
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
300606
|
-
}
|
|
300607
|
-
}
|
|
300608
|
-
|
|
300609
|
-
for (let key in _pageData) {
|
|
300610
|
-
activeRow.value[key] = _pageData[key];
|
|
300611
|
-
}
|
|
300612
|
-
|
|
300613
|
-
handlerCallBack(data, level);
|
|
300614
|
-
} catch (e) {
|
|
300615
|
-
console.log(e);
|
|
300616
|
-
}
|
|
300617
|
-
|
|
300618
|
-
for (let key in forms_item.value["model"]) {
|
|
300619
|
-
activeRow.value[key] = forms_item.value["model"][key];
|
|
300620
|
-
}
|
|
300621
|
-
} else if (ret == 0) {
|
|
300622
|
-
ElMessage.success("修改完成,没有更新数据");
|
|
300623
|
-
} else {
|
|
300624
|
-
if (null == msg) {
|
|
300625
|
-
msg = ret;
|
|
300626
|
-
}
|
|
300627
|
-
|
|
300628
|
-
ElMessage.warning("修改失败[" + msg + "]");
|
|
300629
|
-
}
|
|
300630
|
-
},
|
|
300631
|
-
// 下载文件
|
|
300632
|
-
download_handler: row => {
|
|
300633
|
-
const r = row;
|
|
300634
|
-
|
|
300635
|
-
if (typeof row.fileList === "string") {
|
|
300636
|
-
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
300637
|
-
} else if (row.fileList) {
|
|
300638
|
-
for (let i = 0; i < r.fileList.length; i++) {
|
|
300639
|
-
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
300640
|
-
}
|
|
300641
|
-
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
300642
|
-
for (let i = 0; i < r.ws_att.length; i++) {
|
|
300643
|
-
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, new Date(), props.axios);
|
|
300644
|
-
}
|
|
300645
|
-
}
|
|
300646
|
-
},
|
|
300647
|
-
//删除操作
|
|
300648
|
-
del_handler: async (path, item, level) => {
|
|
300649
|
-
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
300650
|
-
confirmButtonText: "确定",
|
|
300651
|
-
cancelButtonText: "取消",
|
|
300652
|
-
type: "warning"
|
|
300653
|
-
}).then(async () => {
|
|
300654
|
-
const {
|
|
300655
|
-
data
|
|
300656
|
-
} = await props.axios.post(path, model_all.value);
|
|
300657
|
-
hideModal();
|
|
300658
|
-
handlerCallBack(data, level);
|
|
300659
|
-
}).catch(() => {});
|
|
300660
|
-
},
|
|
300661
|
-
exec_handler: async (params, item, level) => {
|
|
300662
|
-
const path = item.submit + item.path;
|
|
300663
|
-
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
300664
|
-
confirmButtonText: "确定",
|
|
300665
|
-
cancelButtonText: "取消",
|
|
300666
|
-
type: "warning"
|
|
300667
|
-
}).then(async () => {
|
|
300668
|
-
const {
|
|
300669
|
-
data
|
|
300670
|
-
} = await props.axios.post(path, model_all.value);
|
|
300671
|
-
hideModal();
|
|
300672
|
-
handlerCallBack(data, level, 'exec', item);
|
|
300673
|
-
}).catch(() => {});
|
|
300674
|
-
}
|
|
300675
|
-
}; //parentId寻找父级
|
|
300676
|
-
|
|
300677
|
-
function findParentData(parentId, level) {
|
|
300678
|
-
if (level == 2) {
|
|
300679
|
-
const idx = tableData.value[0].DataArray.findIndex(item => {
|
|
300680
|
-
return item.rowid == parentId;
|
|
300681
|
-
});
|
|
300682
|
-
const row = tableData.value[0].DataArray[idx];
|
|
300683
|
-
return {
|
|
300684
|
-
row,
|
|
300685
|
-
idx
|
|
300686
|
-
};
|
|
300687
|
-
} else if (level == 3) {
|
|
300688
|
-
const idx = tableData_2.value.findIndex(item => {
|
|
300689
|
-
return item.rowid == parentId;
|
|
300690
|
-
});
|
|
300691
|
-
const row = tableData_2.value[idx];
|
|
300692
|
-
return {
|
|
300693
|
-
row,
|
|
300694
|
-
idx
|
|
300695
|
-
};
|
|
300696
|
-
}
|
|
300697
|
-
} //操作回调
|
|
300698
|
-
|
|
300699
|
-
|
|
300700
|
-
function handlerCallBack(data, level, tag, otherParams) {
|
|
300701
|
-
if (data && data[0].Result >= 0) {
|
|
300702
|
-
ElMessage.success("执行操作成功");
|
|
300703
|
-
|
|
300704
|
-
if ("MSG" in data[0]) {
|
|
300705
|
-
const obl = Object.keys(data[0].MSG).length;
|
|
300706
|
-
|
|
300707
|
-
if (obl != 0 && data[0].MSG.oprtype == "del") {
|
|
300708
|
-
//删除
|
|
300709
|
-
if (level == 1) {
|
|
300710
|
-
const idx = tableData.value[0].DataArray.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300711
|
-
tableData.value[0].DataArray.splice(idx, 1);
|
|
300712
|
-
} else if (level == 2) {
|
|
300713
|
-
const idx = tableData2.value.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300714
|
-
tableData2.value.splice(idx, 1);
|
|
300715
|
-
} else if (level == 3) {
|
|
300716
|
-
if (slots.cusComp) {} else {
|
|
300717
|
-
//内置表格处理删除操作
|
|
300718
|
-
const pData = findParentData(activeRow.value.parentId, level);
|
|
300719
|
-
tableVmRefs.value['cusListRef' + pData.idx].removeRow(activeRow.value);
|
|
300720
|
-
}
|
|
300721
|
-
}
|
|
300722
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reflash") {//刷新
|
|
300723
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
300724
|
-
//重载父级
|
|
300725
|
-
const {
|
|
300726
|
-
row
|
|
300727
|
-
} = findParentData(activeRow.value.parentId, level);
|
|
300728
|
-
|
|
300729
|
-
if (level == 2) {
|
|
300730
|
-
cardClick(row);
|
|
300731
|
-
} else if (level == 3) {
|
|
300732
|
-
loadListData_req(row);
|
|
300733
|
-
}
|
|
300734
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
300735
|
-
//重新查询
|
|
300736
|
-
if ('queryParams' in data[0].MSG) {
|
|
300737
|
-
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
300738
|
-
}
|
|
300739
|
-
|
|
300740
|
-
props.initPageEvent();
|
|
300741
|
-
}
|
|
300742
|
-
} else {
|
|
300743
|
-
if (level == 1) {
|
|
300744
|
-
cardClick(activeRow.value);
|
|
300745
|
-
} else if (level == 2) {
|
|
300746
|
-
loadListData_req(activeRow.value);
|
|
300747
|
-
}
|
|
300748
|
-
}
|
|
300749
|
-
|
|
300750
|
-
return true;
|
|
300751
|
-
} else {
|
|
300752
|
-
if (tag == 'exec') {
|
|
300753
|
-
const {
|
|
300754
|
-
cusItem
|
|
300755
|
-
} = otherParams;
|
|
300756
|
-
|
|
300757
|
-
if (cusItem.Pages.length !== 0) {
|
|
300758
|
-
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
300759
|
-
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
300760
|
-
|
|
300761
|
-
if (isEmpty) {
|
|
300762
|
-
cusItem.display = !cusItem.display;
|
|
300763
|
-
}
|
|
300764
|
-
}
|
|
300765
|
-
}
|
|
300766
|
-
}
|
|
300767
|
-
|
|
300768
|
-
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
300769
|
-
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
300770
|
-
return false;
|
|
300771
|
-
}
|
|
300772
|
-
} //连接websocket
|
|
300773
|
-
|
|
300774
|
-
|
|
300775
|
-
let wsPath;
|
|
300776
|
-
|
|
300777
|
-
if (location.protocol == "http:") {
|
|
300778
|
-
wsPath = `ws://${location.host}`;
|
|
300779
|
-
} else if (location.protocol == "https:") {
|
|
300780
|
-
wsPath = `wss://${location.host}`;
|
|
300781
|
-
}
|
|
300782
|
-
|
|
300783
|
-
function connectionWS(filed, path, row) {
|
|
300784
|
-
const filedAry = filed.split(",");
|
|
300785
|
-
const ws = new WebSocket(wsPath + path);
|
|
300786
|
-
|
|
300787
|
-
ws.onopen = () => {
|
|
300788
|
-
console.log("ws ok");
|
|
300789
|
-
};
|
|
300790
|
-
|
|
300791
|
-
ws.onmessage = e => {
|
|
300792
|
-
const aData = JSON.parse(e.data);
|
|
300793
|
-
|
|
300794
|
-
if (aData.Restlt != "0") {
|
|
300795
|
-
filedAry.forEach(item => {
|
|
300796
|
-
row[item] = aData[item];
|
|
300797
|
-
});
|
|
300798
|
-
} else {
|
|
300799
|
-
ws.close();
|
|
300800
|
-
}
|
|
300801
|
-
|
|
300802
|
-
console.log("ws data", JSON.parse(e.data));
|
|
300803
|
-
};
|
|
300804
|
-
|
|
300805
|
-
ws.onclose = () => {
|
|
300806
|
-
console.log("ws close");
|
|
300807
|
-
};
|
|
300808
|
-
|
|
300809
|
-
ws.onerror = () => {
|
|
300810
|
-
ElMessage.warning("ws连接失败");
|
|
300811
|
-
};
|
|
300812
|
-
} //判断是否对象
|
|
300813
|
-
|
|
300814
|
-
|
|
300815
|
-
function isObject(value) {
|
|
300816
|
-
return Object.prototype.toString.call(value) === '[object Object]';
|
|
300817
|
-
} //按钮事件监听
|
|
300818
|
-
|
|
300819
|
-
|
|
300820
|
-
function handlerColClick(funcode, row, level, idx) {
|
|
300821
|
-
activeRow.value = row;
|
|
300822
|
-
sessionStorage.setItem('active_row', JSON.stringify(row));
|
|
300823
|
-
activeRow.value.$level = level;
|
|
300824
|
-
activeRow.value.$idx = idx; //处理内部刷新
|
|
300825
|
-
|
|
300826
|
-
if (funcode === "reflash") {
|
|
300827
|
-
if (level == 1) {
|
|
300828
|
-
cardClick(row);
|
|
300829
|
-
} else if (level == 2) {
|
|
300830
|
-
loadListData_req(row);
|
|
300831
|
-
}
|
|
300832
|
-
|
|
300833
|
-
return;
|
|
300834
|
-
} //处理下载按钮
|
|
300835
|
-
|
|
300836
|
-
|
|
300837
|
-
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
300838
|
-
operFunc.download_handler(row);
|
|
300839
|
-
return;
|
|
300840
|
-
} //处理其余表单
|
|
300841
|
-
|
|
300842
|
-
|
|
300843
|
-
formList.value.forEach(item => {
|
|
300844
|
-
if (item.funcode === funcode) {
|
|
300845
|
-
forms_item.value = item;
|
|
300846
|
-
formsItemCopy.value = deepCopy(item);
|
|
300847
|
-
const type = item.oprtype;
|
|
300848
|
-
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
300849
|
-
Object.keys(subItem.model).forEach(item => {
|
|
300850
|
-
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
300851
|
-
|
|
300852
|
-
if (![null, undefined].includes(activeRow.value[item])) {
|
|
300853
|
-
if (activeConfig && activeConfig.type == "iNumber") {
|
|
300854
|
-
subItem.model[item] = Number(activeRow.value[item]);
|
|
300855
|
-
} else {
|
|
300856
|
-
subItem.model[item] = activeRow.value[item];
|
|
300857
|
-
}
|
|
300858
|
-
}
|
|
300859
|
-
|
|
300860
|
-
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
300861
|
-
activeConfig.options = [{
|
|
300862
|
-
label: subItem.model[activeConfig.nameKey],
|
|
300863
|
-
value: subItem.model[activeConfig.nameKey]
|
|
300864
|
-
}];
|
|
300865
|
-
}
|
|
300866
|
-
});
|
|
300867
|
-
return subItem.model;
|
|
300868
|
-
});
|
|
300869
|
-
model_all.value = Object.assign({}, ...(tempAry || {}));
|
|
300870
|
-
|
|
300871
|
-
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
300872
|
-
const path = forms_item.value.submit + forms_item.value.path;
|
|
300873
|
-
operFunc[type + "_handler"](path, item, level);
|
|
300874
|
-
} else {
|
|
300875
|
-
item.display = !item.display;
|
|
300876
|
-
}
|
|
300877
|
-
}
|
|
300878
|
-
});
|
|
300879
|
-
} // 提交表单数据
|
|
300880
|
-
|
|
300881
|
-
|
|
300882
|
-
const formSubmit = ({
|
|
300883
|
-
form,
|
|
300884
|
-
pageData
|
|
300885
|
-
}) => {
|
|
300886
|
-
const type = form.oprtype;
|
|
300887
|
-
_pageData.value = pageData;
|
|
300888
|
-
|
|
300889
|
-
if (!forms_item) {
|
|
300890
|
-
console.log("forms_item 不存在");
|
|
300891
|
-
return;
|
|
300892
|
-
}
|
|
300893
|
-
|
|
300894
|
-
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
300895
|
-
}; //监听第一层数据变化
|
|
300896
|
-
|
|
300897
|
-
|
|
300898
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => tableData.value, newVal => {
|
|
300899
|
-
retjson_2.value = null;
|
|
300900
|
-
});
|
|
300901
|
-
jtMessage.off("step_submit");
|
|
300902
|
-
jtMessage.on("step_submit", params => formSubmit(params));
|
|
300976
|
+
const {
|
|
300977
|
+
tableData,
|
|
300978
|
+
retjson,
|
|
300979
|
+
retjson_2,
|
|
300980
|
+
tableData_2,
|
|
300981
|
+
loading_2,
|
|
300982
|
+
isTooltip,
|
|
300983
|
+
innerDivWidth,
|
|
300984
|
+
level_2_rowid,
|
|
300985
|
+
isShowTooltip,
|
|
300986
|
+
formList,
|
|
300987
|
+
cardClick,
|
|
300988
|
+
setRef,
|
|
300989
|
+
handlerConfig,
|
|
300990
|
+
customEvents,
|
|
300991
|
+
loadListData,
|
|
300992
|
+
handlerColClick
|
|
300993
|
+
} = MttPanelHook(props);
|
|
300903
300994
|
expose({
|
|
300904
300995
|
cardClick
|
|
300905
300996
|
});
|
|
@@ -300935,30 +301026,30 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300935
301026
|
}, {
|
|
300936
301027
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)?.[0]?.DataArray || [], (item, index) => {
|
|
300937
301028
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
300938
|
-
onClick: $event => cardClick(item),
|
|
301029
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick)(item),
|
|
300939
301030
|
style: {
|
|
300940
301031
|
"margin-bottom": "10px"
|
|
300941
301032
|
},
|
|
300942
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(level_2_rowid
|
|
301033
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(level_2_rowid) == item.rowid && 'active'),
|
|
300943
301034
|
key: index
|
|
300944
301035
|
}, {
|
|
300945
301036
|
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
300946
301037
|
class: "box-item",
|
|
300947
301038
|
effect: "dark",
|
|
300948
301039
|
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
300949
|
-
visible: isTooltip
|
|
301040
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
300950
301041
|
placement: "top-start"
|
|
300951
301042
|
}, {
|
|
300952
301043
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
300953
|
-
onMouseover: event => isShowTooltip(event, item),
|
|
300954
|
-
onMouseleave: hiddenTooltip
|
|
301044
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
301045
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
300955
301046
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop]), 41, mtt_panelvue_type_script_setup_true_lang_js_hoisted_5)])]),
|
|
300956
301047
|
_: 2
|
|
300957
301048
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
300958
|
-
btnNum:
|
|
301049
|
+
btnNum: _ctx.btnNumLeft,
|
|
300959
301050
|
row: item,
|
|
300960
301051
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
300961
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, index)
|
|
301052
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
300962
301053
|
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
300963
301054
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_6, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
300964
301055
|
"label-width": "auto",
|
|
@@ -300989,15 +301080,14 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300989
301080
|
"padding": "12px",
|
|
300990
301081
|
"background": "#fff"
|
|
300991
301082
|
},
|
|
300992
|
-
|
|
300993
|
-
ref: mttMainRef
|
|
301083
|
+
ref: "mttMainRef"
|
|
300994
301084
|
}, {
|
|
300995
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [retjson_2
|
|
301085
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
300996
301086
|
key: 0,
|
|
300997
301087
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
300998
|
-
width: innerDivWidth
|
|
301088
|
+
width: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(innerDivWidth)
|
|
300999
301089
|
})
|
|
301000
|
-
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(tableData_2
|
|
301090
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2), (item, index) => {
|
|
301001
301091
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
301002
301092
|
style: {
|
|
301003
301093
|
"margin-bottom": "10px"
|
|
@@ -301007,29 +301097,29 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301007
301097
|
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
301008
301098
|
class: "box-item",
|
|
301009
301099
|
effect: "dark",
|
|
301010
|
-
content: item[retjson_2.
|
|
301011
|
-
visible: isTooltip
|
|
301100
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop],
|
|
301101
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
301012
301102
|
placement: "top-start"
|
|
301013
301103
|
}, {
|
|
301014
301104
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
301015
301105
|
class: "name",
|
|
301016
301106
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
301017
|
-
maxWidth: retjson_2.
|
|
301107
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
301018
301108
|
})
|
|
301019
301109
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
301020
301110
|
key: 0,
|
|
301021
301111
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["jtIcon iconarrow-down1 arrow-icon", item.isShow && 'rotate-180']),
|
|
301022
|
-
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => loadListData(item), ["stop"])
|
|
301112
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
301023
301113
|
}, null, 10, mtt_panelvue_type_script_setup_true_lang_js_hoisted_9)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
301024
|
-
onMouseover: event => isShowTooltip(event, item, 22),
|
|
301025
|
-
onMouseleave: hiddenTooltip
|
|
301026
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[retjson_2.
|
|
301114
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301115
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301116
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop]), 41, mtt_panelvue_type_script_setup_true_lang_js_hoisted_10)], 4)]),
|
|
301027
301117
|
_: 2
|
|
301028
301118
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_11, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
301029
301119
|
"label-width": "auto",
|
|
301030
301120
|
inline: ""
|
|
301031
301121
|
}, {
|
|
301032
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(retjson_2.
|
|
301122
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header.slice(1), (child, index) => {
|
|
301033
301123
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, {
|
|
301034
301124
|
key: index
|
|
301035
301125
|
}, [child.width > 0 && item?.[child?.prop] ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_form_item, {
|
|
@@ -301042,8 +301132,8 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301042
301132
|
}), 128))]),
|
|
301043
301133
|
_: 2
|
|
301044
301134
|
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301045
|
-
btnNum:
|
|
301046
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 2, index),
|
|
301135
|
+
btnNum: _ctx.btnNumRight,
|
|
301136
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
301047
301137
|
row: item,
|
|
301048
301138
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
301049
301139
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -301051,7 +301141,7 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301051
301141
|
key: 1,
|
|
301052
301142
|
class: "cus-list-box",
|
|
301053
301143
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
301054
|
-
height:
|
|
301144
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
301055
301145
|
})
|
|
301056
301146
|
}, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
301057
301147
|
key: 0,
|
|
@@ -301060,22 +301150,22 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301060
301150
|
key: 1,
|
|
301061
301151
|
id: `cusList${index}`,
|
|
301062
301152
|
ref_for: true,
|
|
301063
|
-
ref: el => setRef(el, index),
|
|
301153
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
301064
301154
|
data: [{
|
|
301065
301155
|
retjson: item?.retjson_3,
|
|
301066
301156
|
DataArray: item?.tableData_3
|
|
301067
301157
|
}],
|
|
301068
|
-
handlerConfig: handlerConfig(item?.retjson_3),
|
|
301069
|
-
onCustomEvents: customEvents
|
|
301070
|
-
}, null, 8, ["id", "data", "handlerConfig"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301158
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson_3),
|
|
301159
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301160
|
+
}, null, 8, ["id", "data", "handlerConfig", "onCustomEvents"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301071
301161
|
_: 2
|
|
301072
301162
|
}, 1024);
|
|
301073
|
-
}), 128)), tableData_2.
|
|
301163
|
+
}), 128)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2).length == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_14, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
301074
301164
|
"image-size": 200
|
|
301075
301165
|
}, {
|
|
301076
301166
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panelvue_type_script_setup_true_lang_js_hoisted_15]),
|
|
301077
301167
|
_: 1
|
|
301078
|
-
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), loading_2
|
|
301168
|
+
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_16, null, 512)), [[_directive_loading, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2)]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301079
301169
|
_: 3
|
|
301080
301170
|
}, 512)]),
|
|
301081
301171
|
_: 3
|
|
@@ -301084,17 +301174,17 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301084
301174
|
}, {
|
|
301085
301175
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panelvue_type_script_setup_true_lang_js_hoisted_18]),
|
|
301086
301176
|
_: 1
|
|
301087
|
-
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(formList
|
|
301177
|
+
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(formList), form => {
|
|
301088
301178
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
301089
301179
|
key: form.funcode
|
|
301090
301180
|
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_19, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
301091
301181
|
key: 0,
|
|
301092
301182
|
form: form,
|
|
301093
|
-
axios:
|
|
301183
|
+
axios: _ctx.axios
|
|
301094
301184
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_20, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
301095
301185
|
key: 0,
|
|
301096
301186
|
form: form,
|
|
301097
|
-
axios:
|
|
301187
|
+
axios: _ctx.axios
|
|
301098
301188
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
301099
301189
|
}), 128))], 64);
|
|
301100
301190
|
};
|
|
@@ -301103,10 +301193,10 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301103
301193
|
});
|
|
301104
301194
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=script&setup=true&lang=js
|
|
301105
301195
|
/* unplugin-vue-components disabled */
|
|
301106
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=
|
|
301196
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=5bc882de&lang=scss&scoped=true
|
|
301107
301197
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
301108
301198
|
|
|
301109
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=
|
|
301199
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=5bc882de&lang=scss&scoped=true
|
|
301110
301200
|
/* unplugin-vue-components disabled */
|
|
301111
301201
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue
|
|
301112
301202
|
/* unplugin-vue-components disabled */
|
|
@@ -301115,190 +301205,13 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301115
301205
|
;
|
|
301116
301206
|
|
|
301117
301207
|
|
|
301118
|
-
const mtt_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panelvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301208
|
+
const mtt_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panelvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-5bc882de"]])
|
|
301119
301209
|
|
|
301120
301210
|
/* harmony default export */ var mtt_panel = (mtt_panel_exports_);
|
|
301121
301211
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/header/style/css.mjs
|
|
301122
301212
|
|
|
301123
301213
|
|
|
301124
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-1/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
301125
|
-
/* unplugin-vue-components disabled */
|
|
301126
|
-
|
|
301127
|
-
|
|
301128
|
-
|
|
301129
|
-
|
|
301130
|
-
|
|
301131
|
-
const mtt_panel_1_btn_rendervue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-4e22548b"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301132
|
-
|
|
301133
|
-
const mtt_panel_1_btn_rendervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/mtt_panel_1_btn_rendervue_type_script_setup_true_lang_js_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
301134
|
-
class: "jtIcon icon03 el-icon--right",
|
|
301135
|
-
style: {
|
|
301136
|
-
"transform": "rotate(90deg)",
|
|
301137
|
-
"margin-right": "5px"
|
|
301138
|
-
}
|
|
301139
|
-
}, null, -1));
|
|
301140
|
-
|
|
301141
|
-
|
|
301142
|
-
/* harmony default export */ var mtt_panel_1_btn_rendervue_type_script_setup_true_lang_js = ({
|
|
301143
|
-
__name: 'btn-render',
|
|
301144
|
-
props: {
|
|
301145
|
-
row: {
|
|
301146
|
-
type: Object,
|
|
301147
|
-
default: () => ({})
|
|
301148
|
-
},
|
|
301149
|
-
data: {
|
|
301150
|
-
type: Object,
|
|
301151
|
-
default: () => ({})
|
|
301152
|
-
},
|
|
301153
|
-
showBtn: {
|
|
301154
|
-
type: Function,
|
|
301155
|
-
default: () => true
|
|
301156
|
-
},
|
|
301157
|
-
btnNum: {
|
|
301158
|
-
type: [Number, String],
|
|
301159
|
-
default: 2
|
|
301160
|
-
}
|
|
301161
|
-
},
|
|
301162
|
-
emits: ['handlerColClick'],
|
|
301163
|
-
|
|
301164
|
-
setup(__props, {
|
|
301165
|
-
emit
|
|
301166
|
-
}) {
|
|
301167
|
-
const props = __props;
|
|
301168
|
-
const btnsInfo = {
|
|
301169
|
-
data: row => [...(props.data.retjson.inBottons || []), ...(row.inBottons || [])],
|
|
301170
|
-
len: row => [...(props.data.retjson.inBottons || []), ...(row.inBottons || [])].length
|
|
301171
|
-
};
|
|
301172
|
-
|
|
301173
|
-
function btnGroupShowMethod(len) {
|
|
301174
|
-
if (len <= props.btnNum) {
|
|
301175
|
-
return false;
|
|
301176
|
-
} else {
|
|
301177
|
-
return true;
|
|
301178
|
-
}
|
|
301179
|
-
}
|
|
301180
|
-
|
|
301181
|
-
function btnShowMethod(len, idx) {
|
|
301182
|
-
if (len <= props.btnNum) {
|
|
301183
|
-
return true;
|
|
301184
|
-
} else {
|
|
301185
|
-
if (idx < props.btnNum - 1) {
|
|
301186
|
-
return true;
|
|
301187
|
-
} else {
|
|
301188
|
-
return false;
|
|
301189
|
-
}
|
|
301190
|
-
}
|
|
301191
|
-
}
|
|
301192
|
-
|
|
301193
|
-
function batchDisabled(row, funcode) {
|
|
301194
|
-
if (Array.isArray(row.inBottons)) {
|
|
301195
|
-
return funcode.indexOf('batch') != -1 && row.children == null || funcode.indexOf('batch') != -1 && row.children.findIndex(i => 'treeChecked' in i && i.treeChecked) == -1;
|
|
301196
|
-
} else {
|
|
301197
|
-
return false;
|
|
301198
|
-
}
|
|
301199
|
-
}
|
|
301200
|
-
|
|
301201
|
-
function btnHover(color) {
|
|
301202
|
-
return {
|
|
301203
|
-
padding: '2px 5px',
|
|
301204
|
-
backgroundColor: color ? color : "#eaf5fe",
|
|
301205
|
-
"--background-color-hover": color ? color + "B3" : "#EAF5FE" + "B3"
|
|
301206
|
-
};
|
|
301207
|
-
}
|
|
301208
|
-
|
|
301209
|
-
function handlerColClick(funcode, row) {
|
|
301210
|
-
emit("handlerColClick", funcode, row);
|
|
301211
|
-
}
|
|
301212
|
-
|
|
301213
|
-
return (_ctx, _cache) => {
|
|
301214
|
-
const _component_el_button = ElButton;
|
|
301215
|
-
|
|
301216
|
-
const _component_el_dropdown_item = ElDropdownItem;
|
|
301217
|
-
|
|
301218
|
-
const _component_el_dropdown_menu = ElDropdownMenu;
|
|
301219
|
-
|
|
301220
|
-
const _component_el_dropdown = ElDropdown;
|
|
301221
|
-
|
|
301222
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
301223
|
-
class: "mtt-panel-btns",
|
|
301224
|
-
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(() => {}, ["stop"]))
|
|
301225
|
-
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(btnsInfo.data(__props.row), (item, idx) => {
|
|
301226
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [btnShowMethod(btnsInfo.len(__props.row), idx) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_button, {
|
|
301227
|
-
type: "primary",
|
|
301228
|
-
link: "",
|
|
301229
|
-
key: idx,
|
|
301230
|
-
disabled: batchDisabled(__props.row, item.funcode),
|
|
301231
|
-
size: "small",
|
|
301232
|
-
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => handlerColClick(item.funcode, __props.row), ["stop"]),
|
|
301233
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(btnHover(item.bgColor))
|
|
301234
|
-
}, {
|
|
301235
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
301236
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["jtIcon ht-icon", item.icon ? item.icon : 'iconxiangqing']),
|
|
301237
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
301238
|
-
color: item.color ? item.color : '#379FF2',
|
|
301239
|
-
fontSize: item.size ? item.size + 'px' : '16px'
|
|
301240
|
-
})
|
|
301241
|
-
}, null, 6), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
301242
|
-
class: "ht-text",
|
|
301243
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
301244
|
-
color: item.textColor ? item.textColor : '#379FF2'
|
|
301245
|
-
})
|
|
301246
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.name), 5)]),
|
|
301247
|
-
_: 2
|
|
301248
|
-
}, 1032, ["disabled", "onClick", "style"])), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, __props.showBtn(__props.row, item.funcode)]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
301249
|
-
}), 256)), btnGroupShowMethod(btnsInfo.len(__props.row)) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_dropdown, {
|
|
301250
|
-
key: 0,
|
|
301251
|
-
"popper-class": "btn-render-dromenu",
|
|
301252
|
-
placement: "bottom-end"
|
|
301253
|
-
}, {
|
|
301254
|
-
dropdown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dropdown_menu, null, {
|
|
301255
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(btnsInfo.data(__props.row).slice(__props.btnNum - 1, btnsInfo.len(__props.row)), (item, index) => {
|
|
301256
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_dropdown_item, {
|
|
301257
|
-
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => handlerColClick(item.funcode, __props.row), ["stop"]),
|
|
301258
|
-
key: 's' + index
|
|
301259
|
-
}, {
|
|
301260
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.name), 1)]),
|
|
301261
|
-
_: 2
|
|
301262
|
-
}, 1032, ["onClick"]);
|
|
301263
|
-
}), 128))]),
|
|
301264
|
-
_: 1
|
|
301265
|
-
})]),
|
|
301266
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_button, {
|
|
301267
|
-
size: "small",
|
|
301268
|
-
type: "primary",
|
|
301269
|
-
style: {
|
|
301270
|
-
"margin-left": "5px",
|
|
301271
|
-
"padding": "2px"
|
|
301272
|
-
}
|
|
301273
|
-
}, {
|
|
301274
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_1_btn_rendervue_type_script_setup_true_lang_js_hoisted_1]),
|
|
301275
|
-
_: 1
|
|
301276
|
-
})]),
|
|
301277
|
-
_: 1
|
|
301278
|
-
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
301279
|
-
};
|
|
301280
|
-
}
|
|
301281
|
-
|
|
301282
|
-
});
|
|
301283
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
301284
|
-
/* unplugin-vue-components disabled */
|
|
301285
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-1/btn-render.vue?vue&type=style&index=0&id=4e22548b&lang=scss&scoped=true
|
|
301286
|
-
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
301287
|
-
|
|
301288
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/btn-render.vue?vue&type=style&index=0&id=4e22548b&lang=scss&scoped=true
|
|
301289
|
-
/* unplugin-vue-components disabled */
|
|
301290
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/btn-render.vue
|
|
301291
|
-
/* unplugin-vue-components disabled */
|
|
301292
|
-
|
|
301293
|
-
|
|
301294
|
-
;
|
|
301295
|
-
|
|
301296
|
-
|
|
301297
|
-
const mtt_panel_1_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_1_btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-4e22548b"]])
|
|
301298
|
-
|
|
301299
|
-
/* harmony default export */ var mtt_panel_1_btn_render = (mtt_panel_1_btn_render_exports_);
|
|
301300
301214
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=script&setup=true&lang=js
|
|
301301
|
-
|
|
301302
301215
|
/* unplugin-vue-components disabled */
|
|
301303
301216
|
|
|
301304
301217
|
|
|
@@ -301310,8 +301223,7 @@ const mtt_panel_1_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default *
|
|
|
301310
301223
|
|
|
301311
301224
|
|
|
301312
301225
|
|
|
301313
|
-
|
|
301314
|
-
const mtt_panel_1vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-1ed5b1fb"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301226
|
+
const mtt_panel_1vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-90bc717a"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301315
301227
|
|
|
301316
301228
|
const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
301317
301229
|
class: "mtt-panel-box"
|
|
@@ -301386,556 +301298,32 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301386
301298
|
|
|
301387
301299
|
|
|
301388
301300
|
|
|
301389
|
-
|
|
301390
301301
|
/* harmony default export */ var mtt_panel_1vue_type_script_setup_true_lang_js = ({
|
|
301391
301302
|
__name: 'mtt-panel-1',
|
|
301392
|
-
props:
|
|
301393
|
-
tableData: Array,
|
|
301394
|
-
path: String,
|
|
301395
|
-
axios: Function,
|
|
301396
|
-
compPath: String,
|
|
301397
|
-
cusBoxHeight: {
|
|
301398
|
-
type: [Number, String],
|
|
301399
|
-
default: 200
|
|
301400
|
-
},
|
|
301401
|
-
//第三层清单内容的高度配置
|
|
301402
|
-
btnNumLeft: {
|
|
301403
|
-
type: [Number, String],
|
|
301404
|
-
default: 1
|
|
301405
|
-
},
|
|
301406
|
-
//右侧按钮数量配置
|
|
301407
|
-
btnNumRight: {
|
|
301408
|
-
type: [Number, String],
|
|
301409
|
-
default: 1
|
|
301410
|
-
},
|
|
301411
|
-
//右侧按钮数量配置
|
|
301412
|
-
buttonWidth: [Number, String],
|
|
301413
|
-
//第三层表格操作列宽度
|
|
301414
|
-
accordion: {
|
|
301415
|
-
type: Boolean,
|
|
301416
|
-
default: true
|
|
301417
|
-
} //第三层是否手风琴模式
|
|
301418
|
-
|
|
301419
|
-
},
|
|
301303
|
+
props: mtt_panel_props,
|
|
301420
301304
|
|
|
301421
301305
|
setup(__props, {
|
|
301422
301306
|
expose
|
|
301423
301307
|
}) {
|
|
301424
301308
|
const props = __props;
|
|
301425
|
-
const
|
|
301426
|
-
|
|
301427
|
-
|
|
301428
|
-
|
|
301429
|
-
|
|
301430
|
-
|
|
301431
|
-
|
|
301432
|
-
|
|
301433
|
-
|
|
301434
|
-
|
|
301435
|
-
|
|
301436
|
-
|
|
301437
|
-
|
|
301438
|
-
|
|
301439
|
-
|
|
301440
|
-
|
|
301441
|
-
|
|
301442
|
-
})
|
|
301443
|
-
const forms_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form
|
|
301444
|
-
|
|
301445
|
-
const formsItemCopy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form复制数据
|
|
301446
|
-
|
|
301447
|
-
const activeRow = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null); //当前行数据
|
|
301448
|
-
|
|
301449
|
-
let model_all = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
301450
|
-
|
|
301451
|
-
const _pageData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //表格操作列配置
|
|
301452
|
-
|
|
301453
|
-
|
|
301454
|
-
const buttonWidthNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(props, 'buttonWidth');
|
|
301455
|
-
|
|
301456
|
-
const handlerConfig = item => {
|
|
301457
|
-
return {
|
|
301458
|
-
show: item?.handleColWidth == 0 ? false : true,
|
|
301459
|
-
width: Number(item?.handleColWidth || buttonWidthNum.value),
|
|
301460
|
-
align: "center",
|
|
301461
|
-
fixed: "right",
|
|
301462
|
-
btnGroup: false
|
|
301463
|
-
};
|
|
301464
|
-
};
|
|
301465
|
-
|
|
301466
|
-
const tableVmRefs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
301467
|
-
const mttMainRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
301468
|
-
|
|
301469
|
-
function setRef(el, index) {
|
|
301470
|
-
if (el) {
|
|
301471
|
-
tableVmRefs.value['cusListRef' + index] = el;
|
|
301472
|
-
}
|
|
301473
|
-
}
|
|
301474
|
-
|
|
301475
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => buttonWidthNum.value, newVal => {
|
|
301476
|
-
handlerConfig.width = Number(newVal);
|
|
301477
|
-
});
|
|
301478
|
-
|
|
301479
|
-
function isShowTooltip(event, item, offset) {
|
|
301480
|
-
let pWidth;
|
|
301481
|
-
|
|
301482
|
-
if (offset) {
|
|
301483
|
-
pWidth = event.target.parentNode.offsetWidth - offset;
|
|
301484
|
-
} else {
|
|
301485
|
-
pWidth = event.target.parentNode.offsetWidth;
|
|
301486
|
-
}
|
|
301487
|
-
|
|
301488
|
-
if (event.target.offsetWidth > pWidth) {
|
|
301489
|
-
isTooltip.value = true;
|
|
301490
|
-
tooltipId.value = item.rowid;
|
|
301491
|
-
} else {
|
|
301492
|
-
isTooltip.value = false;
|
|
301493
|
-
tooltipId.value = 0;
|
|
301494
|
-
}
|
|
301495
|
-
}
|
|
301496
|
-
|
|
301497
|
-
function hiddenTooltip() {
|
|
301498
|
-
isTooltip.value = false;
|
|
301499
|
-
tooltipId.value = 0;
|
|
301500
|
-
} //加载第二层数据
|
|
301501
|
-
|
|
301502
|
-
|
|
301503
|
-
async function cardClick(item) {
|
|
301504
|
-
level_2_rowid.value = item.rowid;
|
|
301505
|
-
loading_2.value = true;
|
|
301506
|
-
retjson_2.value = null;
|
|
301507
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
301508
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
301509
|
-
retjson_2.value = res.data[0].retjson;
|
|
301510
|
-
tableData_2.value = res.data[0].DataArray;
|
|
301511
|
-
loadListData(tableData_2.value[0]);
|
|
301512
|
-
loading_2.value = false;
|
|
301513
|
-
});
|
|
301514
|
-
} //加载第三层数据
|
|
301515
|
-
|
|
301516
|
-
|
|
301517
|
-
async function loadListData(item) {
|
|
301518
|
-
if (item.path == '' || item.path == '-') {
|
|
301519
|
-
return;
|
|
301520
|
-
}
|
|
301521
|
-
|
|
301522
|
-
if (props.accordion) {
|
|
301523
|
-
tableData_2.value.forEach(i => {
|
|
301524
|
-
if (item.rowid != i.rowid) {
|
|
301525
|
-
i.isShow = false;
|
|
301526
|
-
}
|
|
301527
|
-
});
|
|
301528
|
-
}
|
|
301529
|
-
|
|
301530
|
-
if (item?.retjson_3) {
|
|
301531
|
-
item.isShow = !item.isShow;
|
|
301532
|
-
return;
|
|
301533
|
-
}
|
|
301534
|
-
|
|
301535
|
-
if (item) {
|
|
301536
|
-
item.loading = true;
|
|
301537
|
-
}
|
|
301538
|
-
|
|
301539
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
301540
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
301541
|
-
item.isShow = true;
|
|
301542
|
-
item.retjson_3 = res.data[0].retjson;
|
|
301543
|
-
item.tableData_3 = res.data[0].DataArray;
|
|
301544
|
-
item.loading = false;
|
|
301545
|
-
});
|
|
301546
|
-
}
|
|
301547
|
-
|
|
301548
|
-
async function loadListData_req(item) {
|
|
301549
|
-
item.retjson_3 = null;
|
|
301550
|
-
item.loading = true;
|
|
301551
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
301552
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
301553
|
-
item.isShow = true;
|
|
301554
|
-
item.retjson_3 = res.data[0].retjson;
|
|
301555
|
-
item.tableData_3 = res.data[0].DataArray;
|
|
301556
|
-
item.loading = false;
|
|
301557
|
-
});
|
|
301558
|
-
} //第三层按钮触发事件
|
|
301559
|
-
|
|
301560
|
-
|
|
301561
|
-
function customEvents(type, data) {
|
|
301562
|
-
if (type == 'handler') {
|
|
301563
|
-
handlerColClick(data.funcode, data.row, 3, data.rowIndex);
|
|
301564
|
-
}
|
|
301565
|
-
} //监听第一层数据加载
|
|
301566
|
-
|
|
301567
|
-
|
|
301568
|
-
const innerDivWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('100%');
|
|
301569
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
301570
|
-
if (mttMainRef.value?.$el?.offsetWidth) {
|
|
301571
|
-
innerDivWidth.value = mttMainRef.value.$el.offsetWidth - 30 + 'px';
|
|
301572
|
-
}
|
|
301573
|
-
|
|
301574
|
-
jtMessage.off('rootChange');
|
|
301575
|
-
jtMessage.on('rootChange', res => {
|
|
301576
|
-
formList.value = res[0].forms.map(form => {
|
|
301577
|
-
// 当前类型 要求保留之前输入的内容,所以用v-show 其他的 用 v-if
|
|
301578
|
-
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
301579
|
-
return form;
|
|
301580
|
-
});
|
|
301581
|
-
});
|
|
301582
|
-
}); //隐藏弹框
|
|
301583
|
-
|
|
301584
|
-
function hideModal() {
|
|
301585
|
-
formList.value.forEach(item => {
|
|
301586
|
-
item.display = false;
|
|
301587
|
-
});
|
|
301588
|
-
}
|
|
301589
|
-
|
|
301590
|
-
;
|
|
301591
|
-
const operFunc = {
|
|
301592
|
-
//增加操作
|
|
301593
|
-
add_handler: async (params, item, level) => {
|
|
301594
|
-
if (!("submit" in item) || !("path" in item)) {
|
|
301595
|
-
ElMessage.success("表单请求参数错误");
|
|
301596
|
-
return;
|
|
301597
|
-
}
|
|
301598
|
-
|
|
301599
|
-
const path = item.submit + item.path;
|
|
301600
|
-
const {
|
|
301601
|
-
data
|
|
301602
|
-
} = await props.axios.post(path, params);
|
|
301603
|
-
hideModal();
|
|
301604
|
-
handlerCallBack(data, level);
|
|
301605
|
-
formList.value.forEach(i => {
|
|
301606
|
-
if (i.funcode === item.funcode) {
|
|
301607
|
-
i = formsItemCopy;
|
|
301608
|
-
}
|
|
301609
|
-
});
|
|
301610
|
-
},
|
|
301611
|
-
//修改操作
|
|
301612
|
-
modify_handler: async (params, item, level) => {
|
|
301613
|
-
const path = item.submit + item.path;
|
|
301614
|
-
const {
|
|
301615
|
-
data
|
|
301616
|
-
} = await props.axios.post(path, params);
|
|
301617
|
-
hideModal();
|
|
301618
|
-
let msg = null;
|
|
301619
|
-
let ret = -1;
|
|
301620
|
-
|
|
301621
|
-
if (null != data && data.length == 0) {
|
|
301622
|
-
ret = 0;
|
|
301623
|
-
} else if (data.length == 1) {
|
|
301624
|
-
msg = data[0]["MSG"];
|
|
301625
|
-
ret = data[0]["Result"];
|
|
301626
|
-
}
|
|
301627
|
-
|
|
301628
|
-
if (ret > 0) {
|
|
301629
|
-
ElMessage.success("修改成功");
|
|
301630
|
-
|
|
301631
|
-
try {
|
|
301632
|
-
let MSG = data[0]["MSG"];
|
|
301633
|
-
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
301634
|
-
|
|
301635
|
-
if (isjson) {
|
|
301636
|
-
for (let key in MSG) {
|
|
301637
|
-
activeRow.value[key] = MSG[key];
|
|
301638
|
-
}
|
|
301639
|
-
|
|
301640
|
-
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
301641
|
-
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
301642
|
-
}
|
|
301643
|
-
}
|
|
301644
|
-
|
|
301645
|
-
for (let key in _pageData) {
|
|
301646
|
-
activeRow.value[key] = _pageData[key];
|
|
301647
|
-
}
|
|
301648
|
-
|
|
301649
|
-
handlerCallBack(data, level);
|
|
301650
|
-
} catch (e) {
|
|
301651
|
-
console.log(e);
|
|
301652
|
-
}
|
|
301653
|
-
|
|
301654
|
-
for (let key in forms_item.value["model"]) {
|
|
301655
|
-
activeRow.value[key] = forms_item.value["model"][key];
|
|
301656
|
-
}
|
|
301657
|
-
} else if (ret == 0) {
|
|
301658
|
-
ElMessage.success("修改完成,没有更新数据");
|
|
301659
|
-
} else {
|
|
301660
|
-
if (null == msg) {
|
|
301661
|
-
msg = ret;
|
|
301662
|
-
}
|
|
301663
|
-
|
|
301664
|
-
ElMessage.warning("修改失败[" + msg + "]");
|
|
301665
|
-
}
|
|
301666
|
-
},
|
|
301667
|
-
// 下载文件
|
|
301668
|
-
download_handler: row => {
|
|
301669
|
-
const r = row;
|
|
301670
|
-
|
|
301671
|
-
if (typeof row.fileList === "string") {
|
|
301672
|
-
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
301673
|
-
} else if (row.fileList) {
|
|
301674
|
-
for (let i = 0; i < r.fileList.length; i++) {
|
|
301675
|
-
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
301676
|
-
}
|
|
301677
|
-
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
301678
|
-
for (let i = 0; i < r.ws_att.length; i++) {
|
|
301679
|
-
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, new Date(), props.axios);
|
|
301680
|
-
}
|
|
301681
|
-
}
|
|
301682
|
-
},
|
|
301683
|
-
//删除操作
|
|
301684
|
-
del_handler: async (path, item, level) => {
|
|
301685
|
-
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
301686
|
-
confirmButtonText: "确定",
|
|
301687
|
-
cancelButtonText: "取消",
|
|
301688
|
-
type: "warning"
|
|
301689
|
-
}).then(async () => {
|
|
301690
|
-
const {
|
|
301691
|
-
data
|
|
301692
|
-
} = await props.axios.post(path, model_all.value);
|
|
301693
|
-
hideModal();
|
|
301694
|
-
handlerCallBack(data, level);
|
|
301695
|
-
}).catch(() => {});
|
|
301696
|
-
},
|
|
301697
|
-
exec_handler: async (params, item, level) => {
|
|
301698
|
-
const path = item.submit + item.path;
|
|
301699
|
-
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
301700
|
-
confirmButtonText: "确定",
|
|
301701
|
-
cancelButtonText: "取消",
|
|
301702
|
-
type: "warning"
|
|
301703
|
-
}).then(async () => {
|
|
301704
|
-
const {
|
|
301705
|
-
data
|
|
301706
|
-
} = await props.axios.post(path, model_all.value);
|
|
301707
|
-
hideModal();
|
|
301708
|
-
handlerCallBack(data, level, 'exec', item);
|
|
301709
|
-
}).catch(() => {});
|
|
301710
|
-
}
|
|
301711
|
-
}; //parentId寻找父级
|
|
301712
|
-
|
|
301713
|
-
function findParentData(parentId, level) {
|
|
301714
|
-
if (level == 2) {
|
|
301715
|
-
const idx = tableData.value[0].DataArray.findIndex(item => {
|
|
301716
|
-
return item.rowid == parentId;
|
|
301717
|
-
});
|
|
301718
|
-
const row = tableData.value[0].DataArray[idx];
|
|
301719
|
-
return {
|
|
301720
|
-
row,
|
|
301721
|
-
idx
|
|
301722
|
-
};
|
|
301723
|
-
} else if (level == 3) {
|
|
301724
|
-
const idx = tableData_2.value.findIndex(item => {
|
|
301725
|
-
return item.rowid == parentId;
|
|
301726
|
-
});
|
|
301727
|
-
const row = tableData_2.value[idx];
|
|
301728
|
-
return {
|
|
301729
|
-
row,
|
|
301730
|
-
idx
|
|
301731
|
-
};
|
|
301732
|
-
}
|
|
301733
|
-
} //操作回调
|
|
301734
|
-
|
|
301735
|
-
|
|
301736
|
-
function handlerCallBack(data, level, tag, otherParams) {
|
|
301737
|
-
if (data && data[0].Result >= 0) {
|
|
301738
|
-
ElMessage.success("执行操作成功");
|
|
301739
|
-
|
|
301740
|
-
if ("MSG" in data[0]) {
|
|
301741
|
-
const obl = Object.keys(data[0].MSG).length;
|
|
301742
|
-
|
|
301743
|
-
if (obl != 0 && data[0].MSG.oprtype == "del") {
|
|
301744
|
-
//删除
|
|
301745
|
-
if (level == 1) {
|
|
301746
|
-
const idx = tableData.value[0].DataArray.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
301747
|
-
tableData.value[0].DataArray.splice(idx, 1);
|
|
301748
|
-
} else if (level == 2) {
|
|
301749
|
-
const idx = tableData2.value.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
301750
|
-
tableData2.value.splice(idx, 1);
|
|
301751
|
-
} else if (level == 3) {
|
|
301752
|
-
if (slots.cusComp) {} else {
|
|
301753
|
-
//内置表格处理删除操作
|
|
301754
|
-
const pData = findParentData(activeRow.value.parentId, level);
|
|
301755
|
-
tableVmRefs.value['cusListRef' + pData.idx].removeRow(activeRow.value);
|
|
301756
|
-
}
|
|
301757
|
-
}
|
|
301758
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reflash") {//刷新
|
|
301759
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
301760
|
-
//重载父级
|
|
301761
|
-
const {
|
|
301762
|
-
row
|
|
301763
|
-
} = findParentData(activeRow.value.parentId, level);
|
|
301764
|
-
|
|
301765
|
-
if (level == 2) {
|
|
301766
|
-
cardClick(row);
|
|
301767
|
-
} else if (level == 3) {
|
|
301768
|
-
loadListData_req(row);
|
|
301769
|
-
}
|
|
301770
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
301771
|
-
//重新查询
|
|
301772
|
-
if ('queryParams' in data[0].MSG) {
|
|
301773
|
-
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
301774
|
-
}
|
|
301775
|
-
|
|
301776
|
-
props.initPageEvent();
|
|
301777
|
-
}
|
|
301778
|
-
} else {
|
|
301779
|
-
if (level == 1) {
|
|
301780
|
-
cardClick(activeRow.value);
|
|
301781
|
-
} else if (level == 2) {
|
|
301782
|
-
loadListData_req(activeRow.value);
|
|
301783
|
-
}
|
|
301784
|
-
}
|
|
301785
|
-
|
|
301786
|
-
return true;
|
|
301787
|
-
} else {
|
|
301788
|
-
if (tag == 'exec') {
|
|
301789
|
-
const {
|
|
301790
|
-
cusItem
|
|
301791
|
-
} = otherParams;
|
|
301792
|
-
|
|
301793
|
-
if (cusItem.Pages.length !== 0) {
|
|
301794
|
-
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
301795
|
-
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
301796
|
-
|
|
301797
|
-
if (isEmpty) {
|
|
301798
|
-
cusItem.display = !cusItem.display;
|
|
301799
|
-
}
|
|
301800
|
-
}
|
|
301801
|
-
}
|
|
301802
|
-
}
|
|
301803
|
-
|
|
301804
|
-
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
301805
|
-
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
301806
|
-
return false;
|
|
301807
|
-
}
|
|
301808
|
-
} //连接websocket
|
|
301809
|
-
|
|
301810
|
-
|
|
301811
|
-
let wsPath;
|
|
301812
|
-
|
|
301813
|
-
if (location.protocol == "http:") {
|
|
301814
|
-
wsPath = `ws://${location.host}`;
|
|
301815
|
-
} else if (location.protocol == "https:") {
|
|
301816
|
-
wsPath = `wss://${location.host}`;
|
|
301817
|
-
}
|
|
301818
|
-
|
|
301819
|
-
function connectionWS(filed, path, row) {
|
|
301820
|
-
const filedAry = filed.split(",");
|
|
301821
|
-
const ws = new WebSocket(wsPath + path);
|
|
301822
|
-
|
|
301823
|
-
ws.onopen = () => {
|
|
301824
|
-
console.log("ws ok");
|
|
301825
|
-
};
|
|
301826
|
-
|
|
301827
|
-
ws.onmessage = e => {
|
|
301828
|
-
const aData = JSON.parse(e.data);
|
|
301829
|
-
|
|
301830
|
-
if (aData.Restlt != "0") {
|
|
301831
|
-
filedAry.forEach(item => {
|
|
301832
|
-
row[item] = aData[item];
|
|
301833
|
-
});
|
|
301834
|
-
} else {
|
|
301835
|
-
ws.close();
|
|
301836
|
-
}
|
|
301837
|
-
|
|
301838
|
-
console.log("ws data", JSON.parse(e.data));
|
|
301839
|
-
};
|
|
301840
|
-
|
|
301841
|
-
ws.onclose = () => {
|
|
301842
|
-
console.log("ws close");
|
|
301843
|
-
};
|
|
301844
|
-
|
|
301845
|
-
ws.onerror = () => {
|
|
301846
|
-
ElMessage.warning("ws连接失败");
|
|
301847
|
-
};
|
|
301848
|
-
} //判断是否对象
|
|
301849
|
-
|
|
301850
|
-
|
|
301851
|
-
function isObject(value) {
|
|
301852
|
-
return Object.prototype.toString.call(value) === '[object Object]';
|
|
301853
|
-
} //按钮事件监听
|
|
301854
|
-
|
|
301855
|
-
|
|
301856
|
-
function handlerColClick(funcode, row, level, idx) {
|
|
301857
|
-
activeRow.value = row;
|
|
301858
|
-
sessionStorage.setItem('active_row', JSON.stringify(row));
|
|
301859
|
-
activeRow.value.$level = level;
|
|
301860
|
-
activeRow.value.$idx = idx; //处理内部刷新
|
|
301861
|
-
|
|
301862
|
-
if (funcode === "reflash") {
|
|
301863
|
-
if (level == 1) {
|
|
301864
|
-
cardClick(row);
|
|
301865
|
-
} else if (level == 2) {
|
|
301866
|
-
loadListData_req(row);
|
|
301867
|
-
}
|
|
301868
|
-
|
|
301869
|
-
return;
|
|
301870
|
-
} //处理下载按钮
|
|
301871
|
-
|
|
301872
|
-
|
|
301873
|
-
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
301874
|
-
operFunc.download_handler(row);
|
|
301875
|
-
return;
|
|
301876
|
-
} //处理其余表单
|
|
301877
|
-
|
|
301878
|
-
|
|
301879
|
-
formList.value.forEach(item => {
|
|
301880
|
-
if (item.funcode === funcode) {
|
|
301881
|
-
forms_item.value = item;
|
|
301882
|
-
formsItemCopy.value = deepCopy(item);
|
|
301883
|
-
const type = item.oprtype;
|
|
301884
|
-
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
301885
|
-
Object.keys(subItem.model).forEach(item => {
|
|
301886
|
-
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
301887
|
-
|
|
301888
|
-
if (![null, undefined].includes(activeRow.value[item])) {
|
|
301889
|
-
if (activeConfig && activeConfig.type == "iNumber") {
|
|
301890
|
-
subItem.model[item] = Number(activeRow.value[item]);
|
|
301891
|
-
} else {
|
|
301892
|
-
subItem.model[item] = activeRow.value[item];
|
|
301893
|
-
}
|
|
301894
|
-
}
|
|
301895
|
-
|
|
301896
|
-
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
301897
|
-
activeConfig.options = [{
|
|
301898
|
-
label: subItem.model[activeConfig.nameKey],
|
|
301899
|
-
value: subItem.model[activeConfig.nameKey]
|
|
301900
|
-
}];
|
|
301901
|
-
}
|
|
301902
|
-
});
|
|
301903
|
-
return subItem.model;
|
|
301904
|
-
});
|
|
301905
|
-
model_all.value = Object.assign({}, ...(tempAry || {}));
|
|
301906
|
-
|
|
301907
|
-
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
301908
|
-
const path = forms_item.value.submit + forms_item.value.path;
|
|
301909
|
-
operFunc[type + "_handler"](path, item, level);
|
|
301910
|
-
} else {
|
|
301911
|
-
item.display = !item.display;
|
|
301912
|
-
}
|
|
301913
|
-
}
|
|
301914
|
-
});
|
|
301915
|
-
} // 提交表单数据
|
|
301916
|
-
|
|
301917
|
-
|
|
301918
|
-
const formSubmit = ({
|
|
301919
|
-
form,
|
|
301920
|
-
pageData
|
|
301921
|
-
}) => {
|
|
301922
|
-
const type = form.oprtype;
|
|
301923
|
-
_pageData.value = pageData;
|
|
301924
|
-
|
|
301925
|
-
if (!forms_item) {
|
|
301926
|
-
console.log("forms_item 不存在");
|
|
301927
|
-
return;
|
|
301928
|
-
}
|
|
301929
|
-
|
|
301930
|
-
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
301931
|
-
}; //监听第一层数据变化
|
|
301932
|
-
|
|
301933
|
-
|
|
301934
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => tableData.value, newVal => {
|
|
301935
|
-
retjson_2.value = null;
|
|
301936
|
-
});
|
|
301937
|
-
jtMessage.off("step_submit");
|
|
301938
|
-
jtMessage.on("step_submit", params => formSubmit(params));
|
|
301309
|
+
const {
|
|
301310
|
+
tableData,
|
|
301311
|
+
retjson,
|
|
301312
|
+
retjson_2,
|
|
301313
|
+
tableData_2,
|
|
301314
|
+
loading_2,
|
|
301315
|
+
isTooltip,
|
|
301316
|
+
innerDivWidth,
|
|
301317
|
+
level_2_rowid,
|
|
301318
|
+
isShowTooltip,
|
|
301319
|
+
formList,
|
|
301320
|
+
cardClick,
|
|
301321
|
+
setRef,
|
|
301322
|
+
handlerConfig,
|
|
301323
|
+
customEvents,
|
|
301324
|
+
loadListData,
|
|
301325
|
+
handlerColClick
|
|
301326
|
+
} = MttPanelHook(props);
|
|
301939
301327
|
expose({
|
|
301940
301328
|
cardClick
|
|
301941
301329
|
});
|
|
@@ -301979,9 +301367,9 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301979
301367
|
}])
|
|
301980
301368
|
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)?.[0]?.DataArray || [], (item, index) => {
|
|
301981
301369
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
301982
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(level_2_rowid
|
|
301370
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(level_2_rowid) == item.rowid && 'active'),
|
|
301983
301371
|
key: index,
|
|
301984
|
-
onClick: $event => cardClick(item),
|
|
301372
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick)(item),
|
|
301985
301373
|
style: {
|
|
301986
301374
|
"width": "300px",
|
|
301987
301375
|
"margin-right": "10px",
|
|
@@ -301992,19 +301380,19 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301992
301380
|
class: "box-item",
|
|
301993
301381
|
effect: "dark",
|
|
301994
301382
|
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
301995
|
-
visible: isTooltip
|
|
301383
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
301996
301384
|
placement: "top-start"
|
|
301997
301385
|
}, {
|
|
301998
301386
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
301999
|
-
onMouseover: event => isShowTooltip(event, item),
|
|
302000
|
-
onMouseleave: hiddenTooltip
|
|
301387
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
301388
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
302001
301389
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop]), 41, mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_4)])]),
|
|
302002
301390
|
_: 2
|
|
302003
|
-
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(
|
|
302004
|
-
btnNum:
|
|
301391
|
+
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301392
|
+
btnNum: _ctx.btnNumLeft,
|
|
302005
301393
|
row: item,
|
|
302006
301394
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
302007
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, index)
|
|
301395
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
302008
301396
|
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
302009
301397
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
302010
301398
|
"label-width": "auto",
|
|
@@ -302035,15 +301423,14 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302035
301423
|
"padding": "12px",
|
|
302036
301424
|
"background": "#fff"
|
|
302037
301425
|
},
|
|
302038
|
-
|
|
302039
|
-
ref: mttMainRef
|
|
301426
|
+
ref: "mttMainRef"
|
|
302040
301427
|
}, {
|
|
302041
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [retjson_2
|
|
301428
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302042
301429
|
key: 0,
|
|
302043
301430
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302044
|
-
width: innerDivWidth
|
|
301431
|
+
width: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(innerDivWidth)
|
|
302045
301432
|
})
|
|
302046
|
-
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(tableData_2
|
|
301433
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2), (item, index) => {
|
|
302047
301434
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
302048
301435
|
style: {
|
|
302049
301436
|
"margin-bottom": "10px"
|
|
@@ -302053,29 +301440,29 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302053
301440
|
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
302054
301441
|
class: "box-item",
|
|
302055
301442
|
effect: "dark",
|
|
302056
|
-
content: item[retjson_2.
|
|
302057
|
-
visible: isTooltip
|
|
301443
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop],
|
|
301444
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
302058
301445
|
placement: "top-start"
|
|
302059
301446
|
}, {
|
|
302060
301447
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
302061
301448
|
class: "name",
|
|
302062
301449
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302063
|
-
maxWidth: retjson_2.
|
|
301450
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
302064
301451
|
})
|
|
302065
301452
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
302066
301453
|
key: 0,
|
|
302067
301454
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["jtIcon iconarrow-down1 arrow-icon", item.isShow && 'rotate-180']),
|
|
302068
|
-
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => loadListData(item), ["stop"])
|
|
301455
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
302069
301456
|
}, null, 10, mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_8)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
302070
|
-
onMouseover: event => isShowTooltip(event, item, 22),
|
|
302071
|
-
onMouseleave: hiddenTooltip
|
|
302072
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[retjson_2.
|
|
301457
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301458
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301459
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop]), 41, mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_9)], 4)]),
|
|
302073
301460
|
_: 2
|
|
302074
301461
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_10, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
302075
301462
|
"label-width": "auto",
|
|
302076
301463
|
inline: ""
|
|
302077
301464
|
}, {
|
|
302078
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(retjson_2.
|
|
301465
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header.slice(1), (child, index) => {
|
|
302079
301466
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, {
|
|
302080
301467
|
key: index
|
|
302081
301468
|
}, [child.width > 0 && item?.[child?.prop] ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_form_item, {
|
|
@@ -302087,9 +301474,9 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302087
301474
|
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
302088
301475
|
}), 128))]),
|
|
302089
301476
|
_: 2
|
|
302090
|
-
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(
|
|
302091
|
-
btnNum:
|
|
302092
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 2, index),
|
|
301477
|
+
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301478
|
+
btnNum: _ctx.btnNumRight,
|
|
301479
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
302093
301480
|
row: item,
|
|
302094
301481
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
302095
301482
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -302097,7 +301484,7 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302097
301484
|
key: 1,
|
|
302098
301485
|
class: "cus-list-box",
|
|
302099
301486
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302100
|
-
height:
|
|
301487
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
302101
301488
|
})
|
|
302102
301489
|
}, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
302103
301490
|
key: 0,
|
|
@@ -302106,22 +301493,22 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302106
301493
|
key: 1,
|
|
302107
301494
|
id: `cusList${index}`,
|
|
302108
301495
|
ref_for: true,
|
|
302109
|
-
ref: el => setRef(el, index),
|
|
301496
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
302110
301497
|
data: [{
|
|
302111
301498
|
retjson: item?.retjson_3,
|
|
302112
301499
|
DataArray: item?.tableData_3
|
|
302113
301500
|
}],
|
|
302114
|
-
handlerConfig: handlerConfig(item?.retjson3),
|
|
302115
|
-
onCustomEvents: customEvents
|
|
302116
|
-
}, null, 8, ["id", "data", "handlerConfig"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301501
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson3),
|
|
301502
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301503
|
+
}, null, 8, ["id", "data", "handlerConfig", "onCustomEvents"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
302117
301504
|
_: 2
|
|
302118
301505
|
}, 1024);
|
|
302119
|
-
}), 128)), tableData_2.
|
|
301506
|
+
}), 128)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2).length == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_13, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
302120
301507
|
"image-size": 200
|
|
302121
301508
|
}, {
|
|
302122
301509
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_14]),
|
|
302123
301510
|
_: 1
|
|
302124
|
-
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), loading_2
|
|
301511
|
+
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_15, null, 512)), [[_directive_loading, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2)]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
302125
301512
|
_: 3
|
|
302126
301513
|
}, 512)]),
|
|
302127
301514
|
_: 3
|
|
@@ -302130,17 +301517,17 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302130
301517
|
}, {
|
|
302131
301518
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_17]),
|
|
302132
301519
|
_: 1
|
|
302133
|
-
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(formList
|
|
301520
|
+
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(formList), form => {
|
|
302134
301521
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302135
301522
|
key: form.funcode
|
|
302136
301523
|
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_18, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
302137
301524
|
key: 0,
|
|
302138
301525
|
form: form,
|
|
302139
|
-
axios:
|
|
301526
|
+
axios: _ctx.axios
|
|
302140
301527
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
302141
301528
|
key: 0,
|
|
302142
301529
|
form: form,
|
|
302143
|
-
axios:
|
|
301530
|
+
axios: _ctx.axios
|
|
302144
301531
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
302145
301532
|
}), 128))], 64);
|
|
302146
301533
|
};
|
|
@@ -302149,10 +301536,10 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302149
301536
|
});
|
|
302150
301537
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=script&setup=true&lang=js
|
|
302151
301538
|
/* unplugin-vue-components disabled */
|
|
302152
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=
|
|
301539
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=90bc717a&lang=scss&scoped=true
|
|
302153
301540
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
302154
301541
|
|
|
302155
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=
|
|
301542
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=90bc717a&lang=scss&scoped=true
|
|
302156
301543
|
/* unplugin-vue-components disabled */
|
|
302157
301544
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue
|
|
302158
301545
|
/* unplugin-vue-components disabled */
|
|
@@ -302161,187 +301548,10 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302161
301548
|
;
|
|
302162
301549
|
|
|
302163
301550
|
|
|
302164
|
-
const mtt_panel_1_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_1vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301551
|
+
const mtt_panel_1_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_1vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-90bc717a"]])
|
|
302165
301552
|
|
|
302166
301553
|
/* harmony default export */ var mtt_panel_1 = (mtt_panel_1_exports_);
|
|
302167
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-2/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
302168
|
-
/* unplugin-vue-components disabled */
|
|
302169
|
-
|
|
302170
|
-
|
|
302171
|
-
|
|
302172
|
-
|
|
302173
|
-
|
|
302174
|
-
const mtt_panel_2_btn_rendervue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-428d92ea"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
302175
|
-
|
|
302176
|
-
const mtt_panel_2_btn_rendervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/mtt_panel_2_btn_rendervue_type_script_setup_true_lang_js_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
302177
|
-
class: "jtIcon icon03 el-icon--right",
|
|
302178
|
-
style: {
|
|
302179
|
-
"transform": "rotate(90deg)",
|
|
302180
|
-
"margin-right": "5px"
|
|
302181
|
-
}
|
|
302182
|
-
}, null, -1));
|
|
302183
|
-
|
|
302184
|
-
|
|
302185
|
-
/* harmony default export */ var mtt_panel_2_btn_rendervue_type_script_setup_true_lang_js = ({
|
|
302186
|
-
__name: 'btn-render',
|
|
302187
|
-
props: {
|
|
302188
|
-
row: {
|
|
302189
|
-
type: Object,
|
|
302190
|
-
default: () => ({})
|
|
302191
|
-
},
|
|
302192
|
-
data: {
|
|
302193
|
-
type: Object,
|
|
302194
|
-
default: () => ({})
|
|
302195
|
-
},
|
|
302196
|
-
showBtn: {
|
|
302197
|
-
type: Function,
|
|
302198
|
-
default: () => true
|
|
302199
|
-
},
|
|
302200
|
-
btnNum: {
|
|
302201
|
-
type: [Number, String],
|
|
302202
|
-
default: 2
|
|
302203
|
-
}
|
|
302204
|
-
},
|
|
302205
|
-
emits: ['handlerColClick'],
|
|
302206
|
-
|
|
302207
|
-
setup(__props, {
|
|
302208
|
-
emit
|
|
302209
|
-
}) {
|
|
302210
|
-
const props = __props;
|
|
302211
|
-
const btnsInfo = {
|
|
302212
|
-
data: row => [...(props.data.retjson.inBottons || []), ...(row.inBottons || [])],
|
|
302213
|
-
len: row => [...(props.data.retjson.inBottons || []), ...(row.inBottons || [])].length
|
|
302214
|
-
};
|
|
302215
|
-
|
|
302216
|
-
function btnGroupShowMethod(len) {
|
|
302217
|
-
if (len <= props.btnNum) {
|
|
302218
|
-
return false;
|
|
302219
|
-
} else {
|
|
302220
|
-
return true;
|
|
302221
|
-
}
|
|
302222
|
-
}
|
|
302223
|
-
|
|
302224
|
-
function btnShowMethod(len, idx) {
|
|
302225
|
-
if (len <= props.btnNum) {
|
|
302226
|
-
return true;
|
|
302227
|
-
} else {
|
|
302228
|
-
if (idx < props.btnNum - 1) {
|
|
302229
|
-
return true;
|
|
302230
|
-
} else {
|
|
302231
|
-
return false;
|
|
302232
|
-
}
|
|
302233
|
-
}
|
|
302234
|
-
}
|
|
302235
|
-
|
|
302236
|
-
function batchDisabled(row, funcode) {
|
|
302237
|
-
if (Array.isArray(row.inBottons)) {
|
|
302238
|
-
return funcode.indexOf('batch') != -1 && row.children == null || funcode.indexOf('batch') != -1 && row.children.findIndex(i => 'treeChecked' in i && i.treeChecked) == -1;
|
|
302239
|
-
} else {
|
|
302240
|
-
return false;
|
|
302241
|
-
}
|
|
302242
|
-
}
|
|
302243
|
-
|
|
302244
|
-
function btnHover(color) {
|
|
302245
|
-
return {
|
|
302246
|
-
padding: '2px 5px',
|
|
302247
|
-
backgroundColor: color ? color : "#eaf5fe",
|
|
302248
|
-
"--background-color-hover": color ? color + "B3" : "#EAF5FE" + "B3"
|
|
302249
|
-
};
|
|
302250
|
-
}
|
|
302251
|
-
|
|
302252
|
-
function handlerColClick(funcode, row) {
|
|
302253
|
-
emit("handlerColClick", funcode, row);
|
|
302254
|
-
}
|
|
302255
|
-
|
|
302256
|
-
return (_ctx, _cache) => {
|
|
302257
|
-
const _component_el_button = ElButton;
|
|
302258
|
-
|
|
302259
|
-
const _component_el_dropdown_item = ElDropdownItem;
|
|
302260
|
-
|
|
302261
|
-
const _component_el_dropdown_menu = ElDropdownMenu;
|
|
302262
|
-
|
|
302263
|
-
const _component_el_dropdown = ElDropdown;
|
|
302264
|
-
|
|
302265
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302266
|
-
class: "mtt-panel-btns",
|
|
302267
|
-
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)(() => {}, ["stop"]))
|
|
302268
|
-
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(btnsInfo.data(__props.row), (item, idx) => {
|
|
302269
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [btnShowMethod(btnsInfo.len(__props.row), idx) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_button, {
|
|
302270
|
-
type: "primary",
|
|
302271
|
-
link: "",
|
|
302272
|
-
key: idx,
|
|
302273
|
-
disabled: batchDisabled(__props.row, item.funcode),
|
|
302274
|
-
size: "small",
|
|
302275
|
-
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => handlerColClick(item.funcode, __props.row), ["stop"]),
|
|
302276
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)(btnHover(item.bgColor))
|
|
302277
|
-
}, {
|
|
302278
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
302279
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["jtIcon ht-icon", item.icon ? item.icon : 'iconxiangqing']),
|
|
302280
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302281
|
-
color: item.color ? item.color : '#379FF2',
|
|
302282
|
-
fontSize: item.size ? item.size + 'px' : '16px'
|
|
302283
|
-
})
|
|
302284
|
-
}, null, 6), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
302285
|
-
class: "ht-text",
|
|
302286
|
-
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302287
|
-
color: item.textColor ? item.textColor : '#379FF2'
|
|
302288
|
-
})
|
|
302289
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.name), 5)]),
|
|
302290
|
-
_: 2
|
|
302291
|
-
}, 1032, ["disabled", "onClick", "style"])), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, __props.showBtn(__props.row, item.funcode)]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
302292
|
-
}), 256)), btnGroupShowMethod(btnsInfo.len(__props.row)) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_dropdown, {
|
|
302293
|
-
key: 0,
|
|
302294
|
-
"popper-class": "btn-render-dromenu",
|
|
302295
|
-
placement: "bottom-end"
|
|
302296
|
-
}, {
|
|
302297
|
-
dropdown: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dropdown_menu, null, {
|
|
302298
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(btnsInfo.data(__props.row).slice(__props.btnNum - 1, btnsInfo.len(__props.row)), (item, index) => {
|
|
302299
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_dropdown_item, {
|
|
302300
|
-
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => handlerColClick(item.funcode, __props.row), ["stop"]),
|
|
302301
|
-
key: 's' + index
|
|
302302
|
-
}, {
|
|
302303
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.name), 1)]),
|
|
302304
|
-
_: 2
|
|
302305
|
-
}, 1032, ["onClick"]);
|
|
302306
|
-
}), 128))]),
|
|
302307
|
-
_: 1
|
|
302308
|
-
})]),
|
|
302309
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_button, {
|
|
302310
|
-
size: "small",
|
|
302311
|
-
type: "primary",
|
|
302312
|
-
style: {
|
|
302313
|
-
"margin-left": "5px",
|
|
302314
|
-
"padding": "2px"
|
|
302315
|
-
}
|
|
302316
|
-
}, {
|
|
302317
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_2_btn_rendervue_type_script_setup_true_lang_js_hoisted_1]),
|
|
302318
|
-
_: 1
|
|
302319
|
-
})]),
|
|
302320
|
-
_: 1
|
|
302321
|
-
})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
302322
|
-
};
|
|
302323
|
-
}
|
|
302324
|
-
|
|
302325
|
-
});
|
|
302326
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
302327
|
-
/* unplugin-vue-components disabled */
|
|
302328
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-2/btn-render.vue?vue&type=style&index=0&id=428d92ea&lang=scss&scoped=true
|
|
302329
|
-
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
302330
|
-
|
|
302331
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/btn-render.vue?vue&type=style&index=0&id=428d92ea&lang=scss&scoped=true
|
|
302332
|
-
/* unplugin-vue-components disabled */
|
|
302333
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/btn-render.vue
|
|
302334
|
-
/* unplugin-vue-components disabled */
|
|
302335
|
-
|
|
302336
|
-
|
|
302337
|
-
;
|
|
302338
|
-
|
|
302339
|
-
|
|
302340
|
-
const mtt_panel_2_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2_btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-428d92ea"]])
|
|
302341
|
-
|
|
302342
|
-
/* harmony default export */ var mtt_panel_2_btn_render = (mtt_panel_2_btn_render_exports_);
|
|
302343
301554
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=script&setup=true&lang=js
|
|
302344
|
-
|
|
302345
301555
|
/* unplugin-vue-components disabled */
|
|
302346
301556
|
|
|
302347
301557
|
|
|
@@ -302350,8 +301560,7 @@ const mtt_panel_2_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default *
|
|
|
302350
301560
|
|
|
302351
301561
|
|
|
302352
301562
|
|
|
302353
|
-
|
|
302354
|
-
const mtt_panel_2vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-653aa21e"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301563
|
+
const mtt_panel_2vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-19cb5164"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
302355
301564
|
|
|
302356
301565
|
const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
302357
301566
|
class: "mtt-panel-box"
|
|
@@ -302416,556 +301625,29 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
302416
301625
|
|
|
302417
301626
|
|
|
302418
301627
|
|
|
302419
|
-
|
|
302420
301628
|
/* harmony default export */ var mtt_panel_2vue_type_script_setup_true_lang_js = ({
|
|
302421
301629
|
__name: 'mtt-panel-2',
|
|
302422
|
-
props:
|
|
302423
|
-
tableData: Array,
|
|
302424
|
-
path: String,
|
|
302425
|
-
axios: Function,
|
|
302426
|
-
compPath: String,
|
|
302427
|
-
cusBoxHeight: {
|
|
302428
|
-
type: [Number, String],
|
|
302429
|
-
default: 200
|
|
302430
|
-
},
|
|
302431
|
-
//第三层清单内容的高度配置
|
|
302432
|
-
btnNumLeft: {
|
|
302433
|
-
type: [Number, String],
|
|
302434
|
-
default: 1
|
|
302435
|
-
},
|
|
302436
|
-
//右侧按钮数量配置
|
|
302437
|
-
btnNumRight: {
|
|
302438
|
-
type: [Number, String],
|
|
302439
|
-
default: 1
|
|
302440
|
-
},
|
|
302441
|
-
//右侧按钮数量配置
|
|
302442
|
-
buttonWidth: [Number, String],
|
|
302443
|
-
//第三层表格操作列宽度
|
|
302444
|
-
accordion: {
|
|
302445
|
-
type: Boolean,
|
|
302446
|
-
default: true
|
|
302447
|
-
} //第三层是否手风琴模式
|
|
302448
|
-
|
|
302449
|
-
},
|
|
301630
|
+
props: mtt_panel_props,
|
|
302450
301631
|
|
|
302451
301632
|
setup(__props, {
|
|
302452
301633
|
expose
|
|
302453
301634
|
}) {
|
|
302454
301635
|
const props = __props;
|
|
302455
|
-
const
|
|
302456
|
-
|
|
302457
|
-
|
|
302458
|
-
|
|
302459
|
-
|
|
302460
|
-
|
|
302461
|
-
|
|
302462
|
-
|
|
302463
|
-
|
|
302464
|
-
|
|
302465
|
-
|
|
302466
|
-
|
|
302467
|
-
|
|
302468
|
-
|
|
302469
|
-
|
|
302470
|
-
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
302471
|
-
return form;
|
|
302472
|
-
}));
|
|
302473
|
-
const forms_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form
|
|
302474
|
-
|
|
302475
|
-
const formsItemCopy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form复制数据
|
|
302476
|
-
|
|
302477
|
-
const activeRow = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null); //当前行数据
|
|
302478
|
-
|
|
302479
|
-
let model_all = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
302480
|
-
|
|
302481
|
-
const _pageData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //表格操作列配置
|
|
302482
|
-
|
|
302483
|
-
|
|
302484
|
-
const buttonWidthNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(props, 'buttonWidth');
|
|
302485
|
-
|
|
302486
|
-
const handlerConfig = item => {
|
|
302487
|
-
return {
|
|
302488
|
-
show: item?.handleColWidth == 0 ? false : true,
|
|
302489
|
-
width: Number(item?.handleColWidth || buttonWidthNum.value),
|
|
302490
|
-
align: "center",
|
|
302491
|
-
fixed: "right",
|
|
302492
|
-
btnGroup: false
|
|
302493
|
-
};
|
|
302494
|
-
};
|
|
302495
|
-
|
|
302496
|
-
const tableVmRefs = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
302497
|
-
const mttMainRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
302498
|
-
|
|
302499
|
-
function setRef(el, index) {
|
|
302500
|
-
if (el) {
|
|
302501
|
-
tableVmRefs.value['cusListRef' + index] = el;
|
|
302502
|
-
}
|
|
302503
|
-
}
|
|
302504
|
-
|
|
302505
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => buttonWidthNum.value, newVal => {
|
|
302506
|
-
handlerConfig.width = Number(newVal);
|
|
302507
|
-
});
|
|
302508
|
-
|
|
302509
|
-
function isShowTooltip(event, item, offset) {
|
|
302510
|
-
let pWidth;
|
|
302511
|
-
|
|
302512
|
-
if (offset) {
|
|
302513
|
-
pWidth = event.target.parentNode.offsetWidth - offset;
|
|
302514
|
-
} else {
|
|
302515
|
-
pWidth = event.target.parentNode.offsetWidth;
|
|
302516
|
-
}
|
|
302517
|
-
|
|
302518
|
-
if (event.target.offsetWidth > pWidth) {
|
|
302519
|
-
isTooltip.value = true;
|
|
302520
|
-
tooltipId.value = item.rowid;
|
|
302521
|
-
} else {
|
|
302522
|
-
isTooltip.value = false;
|
|
302523
|
-
tooltipId.value = 0;
|
|
302524
|
-
}
|
|
302525
|
-
}
|
|
302526
|
-
|
|
302527
|
-
function hiddenTooltip() {
|
|
302528
|
-
isTooltip.value = false;
|
|
302529
|
-
tooltipId.value = 0;
|
|
302530
|
-
} //加载第二层数据
|
|
302531
|
-
|
|
302532
|
-
|
|
302533
|
-
async function cardClick(item) {
|
|
302534
|
-
level_2_rowid.value = item.rowid;
|
|
302535
|
-
loading_2.value = true;
|
|
302536
|
-
retjson_2.value = null;
|
|
302537
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
302538
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
302539
|
-
retjson_2.value = res.data[0].retjson;
|
|
302540
|
-
tableData_2.value = res.data[0].DataArray;
|
|
302541
|
-
loadListData(tableData_2.value[0]);
|
|
302542
|
-
loading_2.value = false;
|
|
302543
|
-
});
|
|
302544
|
-
} //加载第三层数据
|
|
302545
|
-
|
|
302546
|
-
|
|
302547
|
-
async function loadListData(item) {
|
|
302548
|
-
if (item.path == '' || item.path == '-') {
|
|
302549
|
-
return;
|
|
302550
|
-
}
|
|
302551
|
-
|
|
302552
|
-
if (props.accordion) {
|
|
302553
|
-
tableData_2.value.forEach(i => {
|
|
302554
|
-
if (item.rowid != i.rowid) {
|
|
302555
|
-
i.isShow = false;
|
|
302556
|
-
}
|
|
302557
|
-
});
|
|
302558
|
-
}
|
|
302559
|
-
|
|
302560
|
-
if (item?.retjson_3) {
|
|
302561
|
-
item.isShow = !item.isShow;
|
|
302562
|
-
return;
|
|
302563
|
-
}
|
|
302564
|
-
|
|
302565
|
-
if (item) {
|
|
302566
|
-
item.loading = true;
|
|
302567
|
-
}
|
|
302568
|
-
|
|
302569
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
302570
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
302571
|
-
item.isShow = true;
|
|
302572
|
-
item.retjson_3 = res.data[0].retjson;
|
|
302573
|
-
item.tableData_3 = res.data[0].DataArray;
|
|
302574
|
-
item.loading = false;
|
|
302575
|
-
});
|
|
302576
|
-
}
|
|
302577
|
-
|
|
302578
|
-
async function loadListData_req(item) {
|
|
302579
|
-
item.retjson_3 = null;
|
|
302580
|
-
item.loading = true;
|
|
302581
|
-
const res = await props.axios.post(props.compPath + item.path);
|
|
302582
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
302583
|
-
item.isShow = true;
|
|
302584
|
-
item.retjson_3 = res.data[0].retjson;
|
|
302585
|
-
item.tableData_3 = res.data[0].DataArray;
|
|
302586
|
-
item.loading = false;
|
|
302587
|
-
});
|
|
302588
|
-
} //第三层按钮触发事件
|
|
302589
|
-
|
|
302590
|
-
|
|
302591
|
-
function customEvents(type, data) {
|
|
302592
|
-
if (type == 'handler') {
|
|
302593
|
-
handlerColClick(data.funcode, data.row, 3, data.rowIndex);
|
|
302594
|
-
}
|
|
302595
|
-
} //监听第一层数据加载
|
|
302596
|
-
|
|
302597
|
-
|
|
302598
|
-
const innerDivWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('100%');
|
|
302599
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
302600
|
-
if (mttMainRef.value?.$el?.offsetWidth) {
|
|
302601
|
-
innerDivWidth.value = mttMainRef.value.$el.offsetWidth - 30 + 'px';
|
|
302602
|
-
}
|
|
302603
|
-
|
|
302604
|
-
jtMessage.off('rootChange');
|
|
302605
|
-
jtMessage.on('rootChange', res => {
|
|
302606
|
-
formList.value = res[0].forms.map(form => {
|
|
302607
|
-
// 当前类型 要求保留之前输入的内容,所以用v-show 其他的 用 v-if
|
|
302608
|
-
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
302609
|
-
return form;
|
|
302610
|
-
});
|
|
302611
|
-
});
|
|
302612
|
-
}); //隐藏弹框
|
|
302613
|
-
|
|
302614
|
-
function hideModal() {
|
|
302615
|
-
formList.value.forEach(item => {
|
|
302616
|
-
item.display = false;
|
|
302617
|
-
});
|
|
302618
|
-
}
|
|
302619
|
-
|
|
302620
|
-
;
|
|
302621
|
-
const operFunc = {
|
|
302622
|
-
//增加操作
|
|
302623
|
-
add_handler: async (params, item, level) => {
|
|
302624
|
-
if (!("submit" in item) || !("path" in item)) {
|
|
302625
|
-
ElMessage.success("表单请求参数错误");
|
|
302626
|
-
return;
|
|
302627
|
-
}
|
|
302628
|
-
|
|
302629
|
-
const path = item.submit + item.path;
|
|
302630
|
-
const {
|
|
302631
|
-
data
|
|
302632
|
-
} = await props.axios.post(path, params);
|
|
302633
|
-
hideModal();
|
|
302634
|
-
handlerCallBack(data, level);
|
|
302635
|
-
formList.value.forEach(i => {
|
|
302636
|
-
if (i.funcode === item.funcode) {
|
|
302637
|
-
i = formsItemCopy;
|
|
302638
|
-
}
|
|
302639
|
-
});
|
|
302640
|
-
},
|
|
302641
|
-
//修改操作
|
|
302642
|
-
modify_handler: async (params, item, level) => {
|
|
302643
|
-
const path = item.submit + item.path;
|
|
302644
|
-
const {
|
|
302645
|
-
data
|
|
302646
|
-
} = await props.axios.post(path, params);
|
|
302647
|
-
hideModal();
|
|
302648
|
-
let msg = null;
|
|
302649
|
-
let ret = -1;
|
|
302650
|
-
|
|
302651
|
-
if (null != data && data.length == 0) {
|
|
302652
|
-
ret = 0;
|
|
302653
|
-
} else if (data.length == 1) {
|
|
302654
|
-
msg = data[0]["MSG"];
|
|
302655
|
-
ret = data[0]["Result"];
|
|
302656
|
-
}
|
|
302657
|
-
|
|
302658
|
-
if (ret > 0) {
|
|
302659
|
-
ElMessage.success("修改成功");
|
|
302660
|
-
|
|
302661
|
-
try {
|
|
302662
|
-
let MSG = data[0]["MSG"];
|
|
302663
|
-
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
302664
|
-
|
|
302665
|
-
if (isjson) {
|
|
302666
|
-
for (let key in MSG) {
|
|
302667
|
-
activeRow.value[key] = MSG[key];
|
|
302668
|
-
}
|
|
302669
|
-
|
|
302670
|
-
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
302671
|
-
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
302672
|
-
}
|
|
302673
|
-
}
|
|
302674
|
-
|
|
302675
|
-
for (let key in _pageData) {
|
|
302676
|
-
activeRow.value[key] = _pageData[key];
|
|
302677
|
-
}
|
|
302678
|
-
|
|
302679
|
-
handlerCallBack(data, level);
|
|
302680
|
-
} catch (e) {
|
|
302681
|
-
console.log(e);
|
|
302682
|
-
}
|
|
302683
|
-
|
|
302684
|
-
for (let key in forms_item.value["model"]) {
|
|
302685
|
-
activeRow.value[key] = forms_item.value["model"][key];
|
|
302686
|
-
}
|
|
302687
|
-
} else if (ret == 0) {
|
|
302688
|
-
ElMessage.success("修改完成,没有更新数据");
|
|
302689
|
-
} else {
|
|
302690
|
-
if (null == msg) {
|
|
302691
|
-
msg = ret;
|
|
302692
|
-
}
|
|
302693
|
-
|
|
302694
|
-
ElMessage.warning("修改失败[" + msg + "]");
|
|
302695
|
-
}
|
|
302696
|
-
},
|
|
302697
|
-
// 下载文件
|
|
302698
|
-
download_handler: row => {
|
|
302699
|
-
const r = row;
|
|
302700
|
-
|
|
302701
|
-
if (typeof row.fileList === "string") {
|
|
302702
|
-
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
302703
|
-
} else if (row.fileList) {
|
|
302704
|
-
for (let i = 0; i < r.fileList.length; i++) {
|
|
302705
|
-
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
302706
|
-
}
|
|
302707
|
-
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
302708
|
-
for (let i = 0; i < r.ws_att.length; i++) {
|
|
302709
|
-
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, new Date(), props.axios);
|
|
302710
|
-
}
|
|
302711
|
-
}
|
|
302712
|
-
},
|
|
302713
|
-
//删除操作
|
|
302714
|
-
del_handler: async (path, item, level) => {
|
|
302715
|
-
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
302716
|
-
confirmButtonText: "确定",
|
|
302717
|
-
cancelButtonText: "取消",
|
|
302718
|
-
type: "warning"
|
|
302719
|
-
}).then(async () => {
|
|
302720
|
-
const {
|
|
302721
|
-
data
|
|
302722
|
-
} = await props.axios.post(path, model_all.value);
|
|
302723
|
-
hideModal();
|
|
302724
|
-
handlerCallBack(data, level);
|
|
302725
|
-
}).catch(() => {});
|
|
302726
|
-
},
|
|
302727
|
-
exec_handler: async (params, item, level) => {
|
|
302728
|
-
const path = item.submit + item.path;
|
|
302729
|
-
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
302730
|
-
confirmButtonText: "确定",
|
|
302731
|
-
cancelButtonText: "取消",
|
|
302732
|
-
type: "warning"
|
|
302733
|
-
}).then(async () => {
|
|
302734
|
-
const {
|
|
302735
|
-
data
|
|
302736
|
-
} = await props.axios.post(path, model_all.value);
|
|
302737
|
-
hideModal();
|
|
302738
|
-
handlerCallBack(data, level, 'exec', item);
|
|
302739
|
-
}).catch(() => {});
|
|
302740
|
-
}
|
|
302741
|
-
}; //parentId寻找父级
|
|
302742
|
-
|
|
302743
|
-
function findParentData(parentId, level) {
|
|
302744
|
-
if (level == 2) {
|
|
302745
|
-
const idx = tableData.value[0].DataArray.findIndex(item => {
|
|
302746
|
-
return item.rowid == parentId;
|
|
302747
|
-
});
|
|
302748
|
-
const row = tableData.value[0].DataArray[idx];
|
|
302749
|
-
return {
|
|
302750
|
-
row,
|
|
302751
|
-
idx
|
|
302752
|
-
};
|
|
302753
|
-
} else if (level == 3) {
|
|
302754
|
-
const idx = tableData_2.value.findIndex(item => {
|
|
302755
|
-
return item.rowid == parentId;
|
|
302756
|
-
});
|
|
302757
|
-
const row = tableData_2.value[idx];
|
|
302758
|
-
return {
|
|
302759
|
-
row,
|
|
302760
|
-
idx
|
|
302761
|
-
};
|
|
302762
|
-
}
|
|
302763
|
-
} //操作回调
|
|
302764
|
-
|
|
302765
|
-
|
|
302766
|
-
function handlerCallBack(data, level, tag, otherParams) {
|
|
302767
|
-
if (data && data[0].Result >= 0) {
|
|
302768
|
-
ElMessage.success("执行操作成功");
|
|
302769
|
-
|
|
302770
|
-
if ("MSG" in data[0]) {
|
|
302771
|
-
const obl = Object.keys(data[0].MSG).length;
|
|
302772
|
-
|
|
302773
|
-
if (obl != 0 && data[0].MSG.oprtype == "del") {
|
|
302774
|
-
//删除
|
|
302775
|
-
if (level == 1) {
|
|
302776
|
-
const idx = tableData.value[0].DataArray.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
302777
|
-
tableData.value[0].DataArray.splice(idx, 1);
|
|
302778
|
-
} else if (level == 2) {
|
|
302779
|
-
const idx = tableData2.value.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
302780
|
-
tableData2.value.splice(idx, 1);
|
|
302781
|
-
} else if (level == 3) {
|
|
302782
|
-
if (slots.cusComp) {} else {
|
|
302783
|
-
//内置表格处理删除操作
|
|
302784
|
-
const pData = findParentData(activeRow.value.parentId, level);
|
|
302785
|
-
tableVmRefs.value['cusListRef' + pData.idx].removeRow(activeRow.value);
|
|
302786
|
-
}
|
|
302787
|
-
}
|
|
302788
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reflash") {//刷新
|
|
302789
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
302790
|
-
//重载父级
|
|
302791
|
-
const {
|
|
302792
|
-
row
|
|
302793
|
-
} = findParentData(activeRow.value.parentId, level);
|
|
302794
|
-
|
|
302795
|
-
if (level == 2) {
|
|
302796
|
-
cardClick(row);
|
|
302797
|
-
} else if (level == 3) {
|
|
302798
|
-
loadListData_req(row);
|
|
302799
|
-
}
|
|
302800
|
-
} else if (obl != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
302801
|
-
//重新查询
|
|
302802
|
-
if ('queryParams' in data[0].MSG) {
|
|
302803
|
-
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
302804
|
-
}
|
|
302805
|
-
|
|
302806
|
-
props.initPageEvent();
|
|
302807
|
-
}
|
|
302808
|
-
} else {
|
|
302809
|
-
if (level == 1) {
|
|
302810
|
-
cardClick(activeRow.value);
|
|
302811
|
-
} else if (level == 2) {
|
|
302812
|
-
loadListData_req(activeRow.value);
|
|
302813
|
-
}
|
|
302814
|
-
}
|
|
302815
|
-
|
|
302816
|
-
return true;
|
|
302817
|
-
} else {
|
|
302818
|
-
if (tag == 'exec') {
|
|
302819
|
-
const {
|
|
302820
|
-
cusItem
|
|
302821
|
-
} = otherParams;
|
|
302822
|
-
|
|
302823
|
-
if (cusItem.Pages.length !== 0) {
|
|
302824
|
-
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
302825
|
-
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
302826
|
-
|
|
302827
|
-
if (isEmpty) {
|
|
302828
|
-
cusItem.display = !cusItem.display;
|
|
302829
|
-
}
|
|
302830
|
-
}
|
|
302831
|
-
}
|
|
302832
|
-
}
|
|
302833
|
-
|
|
302834
|
-
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
302835
|
-
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
302836
|
-
return false;
|
|
302837
|
-
}
|
|
302838
|
-
} //连接websocket
|
|
302839
|
-
|
|
302840
|
-
|
|
302841
|
-
let wsPath;
|
|
302842
|
-
|
|
302843
|
-
if (location.protocol == "http:") {
|
|
302844
|
-
wsPath = `ws://${location.host}`;
|
|
302845
|
-
} else if (location.protocol == "https:") {
|
|
302846
|
-
wsPath = `wss://${location.host}`;
|
|
302847
|
-
}
|
|
302848
|
-
|
|
302849
|
-
function connectionWS(filed, path, row) {
|
|
302850
|
-
const filedAry = filed.split(",");
|
|
302851
|
-
const ws = new WebSocket(wsPath + path);
|
|
302852
|
-
|
|
302853
|
-
ws.onopen = () => {
|
|
302854
|
-
console.log("ws ok");
|
|
302855
|
-
};
|
|
302856
|
-
|
|
302857
|
-
ws.onmessage = e => {
|
|
302858
|
-
const aData = JSON.parse(e.data);
|
|
302859
|
-
|
|
302860
|
-
if (aData.Restlt != "0") {
|
|
302861
|
-
filedAry.forEach(item => {
|
|
302862
|
-
row[item] = aData[item];
|
|
302863
|
-
});
|
|
302864
|
-
} else {
|
|
302865
|
-
ws.close();
|
|
302866
|
-
}
|
|
302867
|
-
|
|
302868
|
-
console.log("ws data", JSON.parse(e.data));
|
|
302869
|
-
};
|
|
302870
|
-
|
|
302871
|
-
ws.onclose = () => {
|
|
302872
|
-
console.log("ws close");
|
|
302873
|
-
};
|
|
302874
|
-
|
|
302875
|
-
ws.onerror = () => {
|
|
302876
|
-
ElMessage.warning("ws连接失败");
|
|
302877
|
-
};
|
|
302878
|
-
} //判断是否对象
|
|
302879
|
-
|
|
302880
|
-
|
|
302881
|
-
function isObject(value) {
|
|
302882
|
-
return Object.prototype.toString.call(value) === '[object Object]';
|
|
302883
|
-
} //按钮事件监听
|
|
302884
|
-
|
|
302885
|
-
|
|
302886
|
-
function handlerColClick(funcode, row, level, idx) {
|
|
302887
|
-
activeRow.value = row;
|
|
302888
|
-
sessionStorage.setItem('active_row', JSON.stringify(row));
|
|
302889
|
-
activeRow.value.$level = level;
|
|
302890
|
-
activeRow.value.$idx = idx; //处理内部刷新
|
|
302891
|
-
|
|
302892
|
-
if (funcode === "reflash") {
|
|
302893
|
-
if (level == 1) {
|
|
302894
|
-
cardClick(row);
|
|
302895
|
-
} else if (level == 2) {
|
|
302896
|
-
loadListData_req(row);
|
|
302897
|
-
}
|
|
302898
|
-
|
|
302899
|
-
return;
|
|
302900
|
-
} //处理下载按钮
|
|
302901
|
-
|
|
302902
|
-
|
|
302903
|
-
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
302904
|
-
operFunc.download_handler(row);
|
|
302905
|
-
return;
|
|
302906
|
-
} //处理其余表单
|
|
302907
|
-
|
|
302908
|
-
|
|
302909
|
-
formList.value.forEach(item => {
|
|
302910
|
-
if (item.funcode === funcode) {
|
|
302911
|
-
forms_item.value = item;
|
|
302912
|
-
formsItemCopy.value = deepCopy(item);
|
|
302913
|
-
const type = item.oprtype;
|
|
302914
|
-
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
302915
|
-
Object.keys(subItem.model).forEach(item => {
|
|
302916
|
-
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
302917
|
-
|
|
302918
|
-
if (![null, undefined].includes(activeRow.value[item])) {
|
|
302919
|
-
if (activeConfig && activeConfig.type == "iNumber") {
|
|
302920
|
-
subItem.model[item] = Number(activeRow.value[item]);
|
|
302921
|
-
} else {
|
|
302922
|
-
subItem.model[item] = activeRow.value[item];
|
|
302923
|
-
}
|
|
302924
|
-
}
|
|
302925
|
-
|
|
302926
|
-
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
302927
|
-
activeConfig.options = [{
|
|
302928
|
-
label: subItem.model[activeConfig.nameKey],
|
|
302929
|
-
value: subItem.model[activeConfig.nameKey]
|
|
302930
|
-
}];
|
|
302931
|
-
}
|
|
302932
|
-
});
|
|
302933
|
-
return subItem.model;
|
|
302934
|
-
});
|
|
302935
|
-
model_all.value = Object.assign({}, ...(tempAry || {}));
|
|
302936
|
-
|
|
302937
|
-
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
302938
|
-
const path = forms_item.value.submit + forms_item.value.path;
|
|
302939
|
-
operFunc[type + "_handler"](path, item, level);
|
|
302940
|
-
} else {
|
|
302941
|
-
item.display = !item.display;
|
|
302942
|
-
}
|
|
302943
|
-
}
|
|
302944
|
-
});
|
|
302945
|
-
} // 提交表单数据
|
|
302946
|
-
|
|
302947
|
-
|
|
302948
|
-
const formSubmit = ({
|
|
302949
|
-
form,
|
|
302950
|
-
pageData
|
|
302951
|
-
}) => {
|
|
302952
|
-
const type = form.oprtype;
|
|
302953
|
-
_pageData.value = pageData;
|
|
302954
|
-
|
|
302955
|
-
if (!forms_item) {
|
|
302956
|
-
console.log("forms_item 不存在");
|
|
302957
|
-
return;
|
|
302958
|
-
}
|
|
302959
|
-
|
|
302960
|
-
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
302961
|
-
}; //监听第一层数据变化
|
|
302962
|
-
|
|
302963
|
-
|
|
302964
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => tableData.value, newVal => {
|
|
302965
|
-
retjson_2.value = null;
|
|
302966
|
-
});
|
|
302967
|
-
jtMessage.off("step_submit");
|
|
302968
|
-
jtMessage.on("step_submit", params => formSubmit(params));
|
|
301636
|
+
const {
|
|
301637
|
+
tableData,
|
|
301638
|
+
retjson,
|
|
301639
|
+
retjson_2,
|
|
301640
|
+
cardClick3,
|
|
301641
|
+
isTooltip,
|
|
301642
|
+
isShowTooltip,
|
|
301643
|
+
formList,
|
|
301644
|
+
cardClick,
|
|
301645
|
+
setRef,
|
|
301646
|
+
handlerConfig,
|
|
301647
|
+
customEvents,
|
|
301648
|
+
loadListData,
|
|
301649
|
+
handlerColClick
|
|
301650
|
+
} = MttPanelHook(props);
|
|
302969
301651
|
expose({
|
|
302970
301652
|
cardClick
|
|
302971
301653
|
});
|
|
@@ -302996,7 +301678,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
302996
301678
|
"expand-config": {
|
|
302997
301679
|
lazy: true,
|
|
302998
301680
|
accordion: true,
|
|
302999
|
-
loadMethod:
|
|
301681
|
+
loadMethod: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick3)
|
|
303000
301682
|
}
|
|
303001
301683
|
}, {
|
|
303002
301684
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_column, {
|
|
@@ -303016,21 +301698,21 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303016
301698
|
class: "box-item",
|
|
303017
301699
|
effect: "dark",
|
|
303018
301700
|
content: item[row.retjson_2.header[0].prop],
|
|
303019
|
-
visible: isTooltip
|
|
301701
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
303020
301702
|
placement: "top-start"
|
|
303021
301703
|
}, {
|
|
303022
301704
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
303023
301705
|
class: "name",
|
|
303024
301706
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
303025
|
-
maxWidth: retjson_2.
|
|
301707
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
303026
301708
|
})
|
|
303027
301709
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
303028
301710
|
key: 0,
|
|
303029
301711
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["jtIcon iconarrow-down1 arrow-icon", item.isShow && 'rotate-180']),
|
|
303030
|
-
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => loadListData(item), ["stop"])
|
|
301712
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
303031
301713
|
}, null, 10, mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_5)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
303032
|
-
onMouseover: event => isShowTooltip(event, item, 22),
|
|
303033
|
-
onMouseleave: hiddenTooltip
|
|
301714
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301715
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
303034
301716
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[row.retjson_2.header[0].prop]), 41, mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_6)], 4)]),
|
|
303035
301717
|
_: 2
|
|
303036
301718
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
@@ -303049,9 +301731,9 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303049
301731
|
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
303050
301732
|
}), 128))]),
|
|
303051
301733
|
_: 2
|
|
303052
|
-
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(
|
|
303053
|
-
btnNum:
|
|
303054
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 2, index),
|
|
301734
|
+
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301735
|
+
btnNum: _ctx.btnNumRight,
|
|
301736
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
303055
301737
|
row: item,
|
|
303056
301738
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
303057
301739
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -303059,7 +301741,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303059
301741
|
key: 1,
|
|
303060
301742
|
class: "cus-list-box",
|
|
303061
301743
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
303062
|
-
height:
|
|
301744
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
303063
301745
|
})
|
|
303064
301746
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
303065
301747
|
key: 0,
|
|
@@ -303068,14 +301750,14 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303068
301750
|
key: 1,
|
|
303069
301751
|
id: `cusList${index}`,
|
|
303070
301752
|
ref_for: true,
|
|
303071
|
-
ref: el => setRef(el, index),
|
|
301753
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
303072
301754
|
data: [{
|
|
303073
301755
|
retjson: item?.retjson_3,
|
|
303074
301756
|
DataArray: item?.tableData_3
|
|
303075
301757
|
}],
|
|
303076
|
-
handlerConfig: handlerConfig(item?.retjson_3),
|
|
303077
|
-
onCustomEvents: customEvents
|
|
303078
|
-
}, null, 8, ["id", "data", "handlerConfig"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301758
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson_3),
|
|
301759
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301760
|
+
}, null, 8, ["id", "data", "handlerConfig", "onCustomEvents"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
303079
301761
|
_: 2
|
|
303080
301762
|
}, 1024);
|
|
303081
301763
|
}), 128)), row.tableData_2.length == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_10, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
@@ -303105,9 +301787,9 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303105
301787
|
}, {
|
|
303106
301788
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
303107
301789
|
row
|
|
303108
|
-
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(
|
|
303109
|
-
btnNum:
|
|
303110
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, _ctx.index),
|
|
301790
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301791
|
+
btnNum: _ctx.btnNumRight,
|
|
301792
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, _ctx.index),
|
|
303111
301793
|
row: row,
|
|
303112
301794
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
303113
301795
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])]),
|
|
@@ -303119,17 +301801,17 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303119
301801
|
}, {
|
|
303120
301802
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_13]),
|
|
303121
301803
|
_: 1
|
|
303122
|
-
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(formList
|
|
301804
|
+
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(formList), form => {
|
|
303123
301805
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
303124
301806
|
key: form.funcode
|
|
303125
301807
|
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_14, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
303126
301808
|
key: 0,
|
|
303127
301809
|
form: form,
|
|
303128
|
-
axios:
|
|
301810
|
+
axios: _ctx.axios
|
|
303129
301811
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
303130
301812
|
key: 0,
|
|
303131
301813
|
form: form,
|
|
303132
|
-
axios:
|
|
301814
|
+
axios: _ctx.axios
|
|
303133
301815
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
303134
301816
|
}), 128))], 64);
|
|
303135
301817
|
};
|
|
@@ -303138,10 +301820,10 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303138
301820
|
});
|
|
303139
301821
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=script&setup=true&lang=js
|
|
303140
301822
|
/* unplugin-vue-components disabled */
|
|
303141
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=
|
|
301823
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=19cb5164&lang=scss&scoped=true
|
|
303142
301824
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
303143
301825
|
|
|
303144
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=
|
|
301826
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=19cb5164&lang=scss&scoped=true
|
|
303145
301827
|
/* unplugin-vue-components disabled */
|
|
303146
301828
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue
|
|
303147
301829
|
/* unplugin-vue-components disabled */
|
|
@@ -303150,7 +301832,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303150
301832
|
;
|
|
303151
301833
|
|
|
303152
301834
|
|
|
303153
|
-
const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301835
|
+
const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-19cb5164"]])
|
|
303154
301836
|
|
|
303155
301837
|
/* harmony default export */ var mtt_panel_2 = (mtt_panel_2_exports_);
|
|
303156
301838
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/index.vue?vue&type=script&setup=true&lang=js
|
|
@@ -303166,7 +301848,7 @@ const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_pa
|
|
|
303166
301848
|
|
|
303167
301849
|
|
|
303168
301850
|
|
|
303169
|
-
const manage_tree_tablevue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-
|
|
301851
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-793228dd"), n = n(), _popScopeId(), n);
|
|
303170
301852
|
|
|
303171
301853
|
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
303172
301854
|
class: "manager-tree-table-demo",
|
|
@@ -303556,6 +302238,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303556
302238
|
btnNumRight: __props.btnNumRight,
|
|
303557
302239
|
cusBoxHeight: 'auto',
|
|
303558
302240
|
accordion: __props.accordion,
|
|
302241
|
+
initPageEvent: search,
|
|
303559
302242
|
buttonWidth: button_width.value
|
|
303560
302243
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
303561
302244
|
_: 2
|
|
@@ -303577,6 +302260,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303577
302260
|
cusBoxHeight: 'auto',
|
|
303578
302261
|
headerHeight: __props.headerHeight,
|
|
303579
302262
|
accordion: __props.accordion,
|
|
302263
|
+
initPageEvent: search,
|
|
303580
302264
|
buttonWidth: button_width.value
|
|
303581
302265
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
303582
302266
|
_: 2
|
|
@@ -303597,6 +302281,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303597
302281
|
btnNumRight: __props.btnNumRight,
|
|
303598
302282
|
cusBoxHeight: 'auto',
|
|
303599
302283
|
accordion: __props.accordion,
|
|
302284
|
+
initPageEvent: search,
|
|
303600
302285
|
buttonWidth: button_width.value
|
|
303601
302286
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
303602
302287
|
_: 2
|
|
@@ -303612,10 +302297,10 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303612
302297
|
}));
|
|
303613
302298
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=script&setup=true&lang=js
|
|
303614
302299
|
/* unplugin-vue-components disabled */
|
|
303615
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=
|
|
302300
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=793228dd&scoped=true&lang=scss
|
|
303616
302301
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
303617
302302
|
|
|
303618
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=
|
|
302303
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=793228dd&scoped=true&lang=scss
|
|
303619
302304
|
/* unplugin-vue-components disabled */
|
|
303620
302305
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue
|
|
303621
302306
|
/* unplugin-vue-components disabled */
|
|
@@ -303624,7 +302309,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303624
302309
|
;
|
|
303625
302310
|
|
|
303626
302311
|
|
|
303627
|
-
const manage_tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(manage_tree_tablevue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
302312
|
+
const manage_tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(manage_tree_tablevue_type_script_setup_true_lang_js, [['__scopeId',"data-v-793228dd"]])
|
|
303628
302313
|
|
|
303629
302314
|
/* harmony default export */ var manage_tree_table = (manage_tree_table_exports_);
|
|
303630
302315
|
;// CONCATENATED MODULE: ./packages/index.js
|