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