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