jtui3.0 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/jtui3.0.common.js +824 -2145
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.js +824 -2145
- 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,614 @@ 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:27:26
|
|
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
|
+
console.log(res, 123);
|
|
300196
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300197
|
+
retjson_2.value = res.data[0].retjson;
|
|
300198
|
+
tableData_2.value = res.data[0].DataArray;
|
|
300199
|
+
loadListData(tableData_2.value[0]);
|
|
300200
|
+
loading_2.value = false;
|
|
300201
|
+
});
|
|
300202
|
+
} //版式3加载第二层数据
|
|
300203
|
+
|
|
300204
|
+
|
|
300205
|
+
async function cardClick3(item) {
|
|
300206
|
+
item.row.loading_2 = true;
|
|
300207
|
+
item.row.retjson_2 = null;
|
|
300208
|
+
const res = await props.axios.post(props.compPath + item.row.path);
|
|
300209
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300210
|
+
item.row.retjson_2 = res.data[0].retjson;
|
|
300211
|
+
item.row.tableData_2 = res.data[0].DataArray;
|
|
300212
|
+
loadListData(item.row.tableData_2[0]);
|
|
300213
|
+
item.row.loading_2 = false;
|
|
300214
|
+
});
|
|
300215
|
+
} //加载第三层数据
|
|
300216
|
+
|
|
300217
|
+
|
|
300218
|
+
async function loadListData(item) {
|
|
300219
|
+
if (item.path == '' || item.path == '-') {
|
|
300220
|
+
return;
|
|
300221
|
+
}
|
|
300222
|
+
|
|
300223
|
+
if (props.accordion) {
|
|
300224
|
+
tableData_2.value.forEach(i => {
|
|
300225
|
+
if (item.rowid != i.rowid) {
|
|
300226
|
+
i.isShow = false;
|
|
300227
|
+
}
|
|
300228
|
+
});
|
|
300229
|
+
}
|
|
300230
|
+
|
|
300231
|
+
if (item?.retjson_3) {
|
|
300232
|
+
item.isShow = !item.isShow;
|
|
300233
|
+
return;
|
|
300234
|
+
}
|
|
300235
|
+
|
|
300236
|
+
if (item) {
|
|
300237
|
+
item.loading = true;
|
|
300238
|
+
}
|
|
300239
|
+
|
|
300240
|
+
const res = await props.axios.post(props.compPath + item.path);
|
|
300241
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300242
|
+
item.isShow = true;
|
|
300243
|
+
item.retjson_3 = res.data[0].retjson;
|
|
300244
|
+
item.tableData_3 = res.data[0].DataArray;
|
|
300245
|
+
item.loading = false;
|
|
300246
|
+
});
|
|
300247
|
+
}
|
|
300248
|
+
|
|
300249
|
+
async function loadListData_req(item) {
|
|
300250
|
+
item.retjson_3 = null;
|
|
300251
|
+
item.loading = true;
|
|
300252
|
+
const res = await props.axios.post(props.compPath + item.path);
|
|
300253
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300254
|
+
item.isShow = true;
|
|
300255
|
+
item.retjson_3 = res.data[0].retjson;
|
|
300256
|
+
item.tableData_3 = res.data[0].DataArray;
|
|
300257
|
+
item.loading = false;
|
|
300258
|
+
});
|
|
300259
|
+
} //第三层按钮触发事件
|
|
300260
|
+
|
|
300261
|
+
|
|
300262
|
+
function customEvents(type, data) {
|
|
300263
|
+
if (type == 'handler') {
|
|
300264
|
+
handlerColClick(data.funcode, data.row, 3, data.rowIndex);
|
|
300265
|
+
}
|
|
300266
|
+
} //监听第一层数据加载
|
|
300267
|
+
|
|
300268
|
+
|
|
300269
|
+
const innerDivWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('100%');
|
|
300270
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
300271
|
+
if (mttMainRef.value?.$el?.offsetWidth) {
|
|
300272
|
+
innerDivWidth.value = mttMainRef.value.$el.offsetWidth - 30 + 'px';
|
|
300273
|
+
}
|
|
300274
|
+
|
|
300275
|
+
jtMessage.off('rootChange');
|
|
300276
|
+
jtMessage.on('rootChange', res => {
|
|
300277
|
+
formList.value = res[0].forms.map(form => {
|
|
300278
|
+
// 当前类型 要求保留之前输入的内容,所以用v-show 其他的 用 v-if
|
|
300279
|
+
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
300280
|
+
return form;
|
|
300281
|
+
});
|
|
300282
|
+
});
|
|
300283
|
+
}); //隐藏弹框
|
|
300284
|
+
|
|
300285
|
+
function hideModal() {
|
|
300286
|
+
formList.value.forEach(item => {
|
|
300287
|
+
item.display = false;
|
|
300288
|
+
});
|
|
300289
|
+
}
|
|
300290
|
+
|
|
300291
|
+
;
|
|
300292
|
+
const operFunc = {
|
|
300293
|
+
//增加操作
|
|
300294
|
+
add_handler: async (params, item, level) => {
|
|
300295
|
+
if (!("submit" in item) || !("path" in item)) {
|
|
300296
|
+
ElMessage.success("表单请求参数错误");
|
|
300297
|
+
return;
|
|
300298
|
+
}
|
|
300299
|
+
|
|
300300
|
+
const path = item.submit + item.path;
|
|
300301
|
+
const {
|
|
300302
|
+
data
|
|
300303
|
+
} = await props.axios.post(path, params);
|
|
300304
|
+
hideModal();
|
|
300305
|
+
handlerCallBack(data, level);
|
|
300306
|
+
formList.value.forEach(i => {
|
|
300307
|
+
if (i.funcode === item.funcode) {
|
|
300308
|
+
i = formsItemCopy;
|
|
300309
|
+
}
|
|
300310
|
+
});
|
|
300311
|
+
},
|
|
300312
|
+
//修改操作
|
|
300313
|
+
modify_handler: async (params, item, level) => {
|
|
300314
|
+
const path = item.submit + item.path;
|
|
300315
|
+
const {
|
|
300316
|
+
data
|
|
300317
|
+
} = await props.axios.post(path, params);
|
|
300318
|
+
hideModal();
|
|
300319
|
+
let msg = null;
|
|
300320
|
+
let ret = -1;
|
|
300321
|
+
|
|
300322
|
+
if (null != data && data.length == 0) {
|
|
300323
|
+
ret = 0;
|
|
300324
|
+
} else if (data.length == 1) {
|
|
300325
|
+
msg = data[0]["MSG"];
|
|
300326
|
+
ret = data[0]["Result"];
|
|
300327
|
+
}
|
|
300328
|
+
|
|
300329
|
+
if (ret > 0) {
|
|
300330
|
+
ElMessage.success("修改成功");
|
|
300331
|
+
|
|
300332
|
+
try {
|
|
300333
|
+
let MSG = data[0]["MSG"];
|
|
300334
|
+
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
300335
|
+
|
|
300336
|
+
if (isjson) {
|
|
300337
|
+
for (let key in MSG) {
|
|
300338
|
+
activeRow.value[key] = MSG[key];
|
|
300339
|
+
}
|
|
300340
|
+
|
|
300341
|
+
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
300342
|
+
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
300343
|
+
}
|
|
300344
|
+
}
|
|
300345
|
+
|
|
300346
|
+
for (let key in _pageData) {
|
|
300347
|
+
activeRow.value[key] = _pageData[key];
|
|
300348
|
+
}
|
|
300349
|
+
|
|
300350
|
+
handlerCallBack(data, level);
|
|
300351
|
+
} catch (e) {
|
|
300352
|
+
console.log(e);
|
|
300353
|
+
}
|
|
300354
|
+
|
|
300355
|
+
for (let key in forms_item.value["model"]) {
|
|
300356
|
+
activeRow.value[key] = forms_item.value["model"][key];
|
|
300357
|
+
}
|
|
300358
|
+
} else if (ret == 0) {
|
|
300359
|
+
ElMessage.success("修改完成,没有更新数据");
|
|
300360
|
+
} else {
|
|
300361
|
+
if (null == msg) {
|
|
300362
|
+
msg = ret;
|
|
300363
|
+
}
|
|
300364
|
+
|
|
300365
|
+
ElMessage.warning("修改失败[" + msg + "]");
|
|
300366
|
+
}
|
|
300367
|
+
},
|
|
300368
|
+
// 下载文件
|
|
300369
|
+
download_handler: row => {
|
|
300370
|
+
const r = row;
|
|
300371
|
+
|
|
300372
|
+
if (typeof row.fileList === "string") {
|
|
300373
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
300374
|
+
} else if (row.fileList) {
|
|
300375
|
+
for (let i = 0; i < r.fileList.length; i++) {
|
|
300376
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
300377
|
+
}
|
|
300378
|
+
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
300379
|
+
for (let i = 0; i < r.ws_att.length; i++) {
|
|
300380
|
+
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, props.axios);
|
|
300381
|
+
}
|
|
300382
|
+
}
|
|
300383
|
+
},
|
|
300384
|
+
//删除操作
|
|
300385
|
+
del_handler: async (path, item, level) => {
|
|
300386
|
+
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
300387
|
+
confirmButtonText: "确定",
|
|
300388
|
+
cancelButtonText: "取消",
|
|
300389
|
+
type: "warning"
|
|
300390
|
+
}).then(async () => {
|
|
300391
|
+
const {
|
|
300392
|
+
data
|
|
300393
|
+
} = await props.axios.post(path, model_all.value);
|
|
300394
|
+
hideModal();
|
|
300395
|
+
handlerCallBack(data, level);
|
|
300396
|
+
}).catch(() => {});
|
|
300397
|
+
},
|
|
300398
|
+
exec_handler: async (params, item, level) => {
|
|
300399
|
+
const path = item.submit + item.path;
|
|
300400
|
+
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
300401
|
+
confirmButtonText: "确定",
|
|
300402
|
+
cancelButtonText: "取消",
|
|
300403
|
+
type: "warning"
|
|
300404
|
+
}).then(async () => {
|
|
300405
|
+
const {
|
|
300406
|
+
data
|
|
300407
|
+
} = await props.axios.post(path, model_all.value);
|
|
300408
|
+
hideModal();
|
|
300409
|
+
handlerCallBack(data, level, 'exec', item);
|
|
300410
|
+
}).catch(() => {});
|
|
300411
|
+
}
|
|
300412
|
+
}; //parentId寻找父级
|
|
300413
|
+
|
|
300414
|
+
function findParentData(parentId, level) {
|
|
300415
|
+
if (level == 2) {
|
|
300416
|
+
const idx = tableData.value[0].DataArray.findIndex(item => {
|
|
300417
|
+
return item.rowid == parentId;
|
|
300418
|
+
});
|
|
300419
|
+
const row = tableData.value[0].DataArray[idx];
|
|
300420
|
+
return {
|
|
300421
|
+
row,
|
|
300422
|
+
idx
|
|
300423
|
+
};
|
|
300424
|
+
} else if (level == 3) {
|
|
300425
|
+
const idx = tableData_2.value.findIndex(item => {
|
|
300426
|
+
return item.rowid == parentId;
|
|
300427
|
+
});
|
|
300428
|
+
const row = tableData_2.value[idx];
|
|
300429
|
+
return {
|
|
300430
|
+
row,
|
|
300431
|
+
idx
|
|
300432
|
+
};
|
|
300433
|
+
}
|
|
300434
|
+
} //操作回调
|
|
300435
|
+
|
|
300436
|
+
|
|
300437
|
+
function handlerCallBack(data, level, tag, otherParams) {
|
|
300438
|
+
if (data && data[0].Result >= 0) {
|
|
300439
|
+
ElMessage.success("执行操作成功");
|
|
300440
|
+
|
|
300441
|
+
if ("MSG" in data[0]) {
|
|
300442
|
+
const obl = Object.keys(data[0].MSG).length;
|
|
300443
|
+
|
|
300444
|
+
if (obl != 0 && data[0].MSG.oprtype == "del") {
|
|
300445
|
+
//删除
|
|
300446
|
+
if (level == 1) {
|
|
300447
|
+
const idx = tableData.value[0].DataArray.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300448
|
+
tableData.value[0].DataArray.splice(idx, 1);
|
|
300449
|
+
} else if (level == 2) {
|
|
300450
|
+
const idx = tableData2.value.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300451
|
+
tableData2.value.splice(idx, 1);
|
|
300452
|
+
} else if (level == 3) {
|
|
300453
|
+
if (slots.cusComp) {} else {
|
|
300454
|
+
//内置表格处理删除操作
|
|
300455
|
+
const pData = findParentData(activeRow.value.parentId, level);
|
|
300456
|
+
tableVmRefs.value['cusListRef' + pData.idx].removeRow(activeRow.value);
|
|
300457
|
+
}
|
|
300458
|
+
}
|
|
300459
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reflash") {//刷新
|
|
300460
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
300461
|
+
if (level == 1) {
|
|
300462
|
+
if ('queryParams' in data[0].MSG) {
|
|
300463
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
300464
|
+
}
|
|
300465
|
+
|
|
300466
|
+
props.initPageEvent();
|
|
300467
|
+
return;
|
|
300468
|
+
} //重载父级
|
|
300469
|
+
|
|
300470
|
+
|
|
300471
|
+
const {
|
|
300472
|
+
row
|
|
300473
|
+
} = findParentData(activeRow.value.parentId, level);
|
|
300474
|
+
|
|
300475
|
+
if (level == 2) {
|
|
300476
|
+
cardClick(row);
|
|
300477
|
+
} else if (level == 3) {
|
|
300478
|
+
loadListData_req(row);
|
|
300479
|
+
}
|
|
300480
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
300481
|
+
//重新查询
|
|
300482
|
+
if ('queryParams' in data[0].MSG) {
|
|
300483
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
300484
|
+
}
|
|
300485
|
+
|
|
300486
|
+
props.initPageEvent();
|
|
300487
|
+
}
|
|
300488
|
+
} else {
|
|
300489
|
+
if (level == 1) {
|
|
300490
|
+
cardClick(activeRow.value);
|
|
300491
|
+
} else if (level == 2) {
|
|
300492
|
+
loadListData_req(activeRow.value);
|
|
300493
|
+
}
|
|
300494
|
+
}
|
|
300495
|
+
|
|
300496
|
+
return true;
|
|
300497
|
+
} else {
|
|
300498
|
+
if (tag == 'exec') {
|
|
300499
|
+
const {
|
|
300500
|
+
cusItem
|
|
300501
|
+
} = otherParams;
|
|
300502
|
+
|
|
300503
|
+
if (cusItem.Pages.length !== 0) {
|
|
300504
|
+
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
300505
|
+
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
300506
|
+
|
|
300507
|
+
if (isEmpty) {
|
|
300508
|
+
cusItem.display = !cusItem.display;
|
|
300509
|
+
}
|
|
300510
|
+
}
|
|
300511
|
+
}
|
|
300512
|
+
}
|
|
300513
|
+
|
|
300514
|
+
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
300515
|
+
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
300516
|
+
return false;
|
|
300517
|
+
}
|
|
300518
|
+
} //连接websocket
|
|
300519
|
+
|
|
300520
|
+
|
|
300521
|
+
let wsPath;
|
|
300522
|
+
|
|
300523
|
+
if (location.protocol == "http:") {
|
|
300524
|
+
wsPath = `ws://${location.host}`;
|
|
300525
|
+
} else if (location.protocol == "https:") {
|
|
300526
|
+
wsPath = `wss://${location.host}`;
|
|
300527
|
+
}
|
|
300528
|
+
|
|
300529
|
+
function connectionWS(filed, path, row) {
|
|
300530
|
+
const filedAry = filed.split(",");
|
|
300531
|
+
const ws = new WebSocket(wsPath + path);
|
|
300532
|
+
|
|
300533
|
+
ws.onopen = () => {
|
|
300534
|
+
console.log("ws ok");
|
|
300535
|
+
};
|
|
300536
|
+
|
|
300537
|
+
ws.onmessage = e => {
|
|
300538
|
+
const aData = JSON.parse(e.data);
|
|
300539
|
+
|
|
300540
|
+
if (aData.Restlt != "0") {
|
|
300541
|
+
filedAry.forEach(item => {
|
|
300542
|
+
row[item] = aData[item];
|
|
300543
|
+
});
|
|
300544
|
+
} else {
|
|
300545
|
+
ws.close();
|
|
300546
|
+
}
|
|
300547
|
+
|
|
300548
|
+
console.log("ws data", JSON.parse(e.data));
|
|
300549
|
+
};
|
|
300550
|
+
|
|
300551
|
+
ws.onclose = () => {
|
|
300552
|
+
console.log("ws close");
|
|
300553
|
+
};
|
|
300554
|
+
|
|
300555
|
+
ws.onerror = () => {
|
|
300556
|
+
ElMessage.warning("ws连接失败");
|
|
300557
|
+
};
|
|
300558
|
+
} //判断是否对象
|
|
300559
|
+
|
|
300560
|
+
|
|
300561
|
+
function isObject(value) {
|
|
300562
|
+
return Object.prototype.toString.call(value) === '[object Object]';
|
|
300563
|
+
} //按钮事件监听
|
|
300564
|
+
|
|
300565
|
+
|
|
300566
|
+
function handlerColClick(funcode, row, level, idx) {
|
|
300567
|
+
activeRow.value = row;
|
|
300568
|
+
sessionStorage.setItem('active_row', JSON.stringify(row));
|
|
300569
|
+
activeRow.value.$level = level;
|
|
300570
|
+
activeRow.value.$idx = idx; //处理内部刷新
|
|
300571
|
+
|
|
300572
|
+
if (funcode === "reflash") {
|
|
300573
|
+
if (level == 1) {
|
|
300574
|
+
cardClick(row);
|
|
300575
|
+
} else if (level == 2) {
|
|
300576
|
+
loadListData_req(row);
|
|
300577
|
+
}
|
|
300578
|
+
|
|
300579
|
+
return;
|
|
300580
|
+
} //处理下载按钮
|
|
300581
|
+
|
|
300582
|
+
|
|
300583
|
+
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
300584
|
+
operFunc.download_handler(row);
|
|
300585
|
+
return;
|
|
300586
|
+
} //处理其余表单
|
|
300587
|
+
|
|
300588
|
+
|
|
300589
|
+
formList.value.forEach(item => {
|
|
300590
|
+
if (item.funcode === funcode) {
|
|
300591
|
+
forms_item.value = item;
|
|
300592
|
+
formsItemCopy.value = deepCopy(item);
|
|
300593
|
+
const type = item.oprtype;
|
|
300594
|
+
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
300595
|
+
Object.keys(subItem.model).forEach(item => {
|
|
300596
|
+
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
300597
|
+
|
|
300598
|
+
if (![null, undefined].includes(activeRow.value[item])) {
|
|
300599
|
+
if (activeConfig && activeConfig.type == "iNumber") {
|
|
300600
|
+
subItem.model[item] = Number(activeRow.value[item]);
|
|
300601
|
+
} else {
|
|
300602
|
+
subItem.model[item] = activeRow.value[item];
|
|
300603
|
+
}
|
|
300604
|
+
}
|
|
300605
|
+
|
|
300606
|
+
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
300607
|
+
activeConfig.options = [{
|
|
300608
|
+
label: subItem.model[activeConfig.nameKey],
|
|
300609
|
+
value: subItem.model[activeConfig.nameKey]
|
|
300610
|
+
}];
|
|
300611
|
+
}
|
|
300612
|
+
});
|
|
300613
|
+
return subItem.model;
|
|
300614
|
+
});
|
|
300615
|
+
model_all.value = Object.assign({}, ...(tempAry || {}));
|
|
300616
|
+
|
|
300617
|
+
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
300618
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
300619
|
+
operFunc[type + "_handler"](path, item, level);
|
|
300620
|
+
} else {
|
|
300621
|
+
item.display = !item.display;
|
|
300622
|
+
}
|
|
300623
|
+
}
|
|
300624
|
+
});
|
|
300625
|
+
} // 提交表单数据
|
|
300626
|
+
|
|
300627
|
+
|
|
300628
|
+
const formSubmit = ({
|
|
300629
|
+
form,
|
|
300630
|
+
pageData
|
|
300631
|
+
}) => {
|
|
300632
|
+
const type = form.oprtype;
|
|
300633
|
+
_pageData.value = pageData;
|
|
300634
|
+
|
|
300635
|
+
if (!forms_item) {
|
|
300636
|
+
console.log("forms_item 不存在");
|
|
300637
|
+
return;
|
|
300638
|
+
}
|
|
300639
|
+
|
|
300640
|
+
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
300641
|
+
}; //监听第一层数据变化
|
|
300642
|
+
|
|
300643
|
+
|
|
300644
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => tableData.value, newVal => {
|
|
300645
|
+
retjson_2.value = null;
|
|
300646
|
+
});
|
|
300647
|
+
jtMessage.off("step_submit");
|
|
300648
|
+
jtMessage.on("step_submit", params => formSubmit(params));
|
|
300649
|
+
return {
|
|
300650
|
+
tableData,
|
|
300651
|
+
retjson,
|
|
300652
|
+
retjson_2,
|
|
300653
|
+
tableData_2,
|
|
300654
|
+
loading_2,
|
|
300655
|
+
cardClick3,
|
|
300656
|
+
isTooltip,
|
|
300657
|
+
innerDivWidth,
|
|
300658
|
+
level_2_rowid,
|
|
300659
|
+
isShowTooltip,
|
|
300660
|
+
formList,
|
|
300661
|
+
cardClick,
|
|
300662
|
+
handlerConfig,
|
|
300663
|
+
handlerColClick,
|
|
300664
|
+
setRef,
|
|
300665
|
+
customEvents,
|
|
300666
|
+
loadListData
|
|
300667
|
+
};
|
|
300668
|
+
}
|
|
300669
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
300059
300670
|
/* unplugin-vue-components disabled */
|
|
300060
300671
|
|
|
300061
300672
|
|
|
300062
300673
|
|
|
300063
300674
|
|
|
300064
300675
|
|
|
300065
|
-
const btn_rendervue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-
|
|
300676
|
+
const btn_rendervue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-27907834"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
300066
300677
|
|
|
300067
300678
|
const btn_rendervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/btn_rendervue_type_script_setup_true_lang_js_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
300068
300679
|
class: "jtIcon icon03 el-icon--right",
|
|
@@ -300214,25 +300825,54 @@ const btn_rendervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/btn_
|
|
|
300214
300825
|
}
|
|
300215
300826
|
|
|
300216
300827
|
});
|
|
300217
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300828
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
300218
300829
|
/* 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/
|
|
300830
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/btn-render.vue?vue&type=style&index=0&id=27907834&lang=scss&scoped=true
|
|
300220
300831
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
300221
300832
|
|
|
300222
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300833
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue?vue&type=style&index=0&id=27907834&lang=scss&scoped=true
|
|
300223
300834
|
/* unplugin-vue-components disabled */
|
|
300224
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300835
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue
|
|
300225
300836
|
/* unplugin-vue-components disabled */
|
|
300226
300837
|
|
|
300227
300838
|
|
|
300228
300839
|
;
|
|
300229
300840
|
|
|
300230
300841
|
|
|
300231
|
-
const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
300842
|
+
const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-27907834"]])
|
|
300232
300843
|
|
|
300233
300844
|
/* harmony default export */ var btn_render = (btn_render_exports_);
|
|
300845
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-props.js
|
|
300846
|
+
/* harmony default export */ var mtt_panel_props = ({
|
|
300847
|
+
tableData: Array,
|
|
300848
|
+
path: String,
|
|
300849
|
+
axios: Function,
|
|
300850
|
+
compPath: String,
|
|
300851
|
+
cusBoxHeight: {
|
|
300852
|
+
type: [Number, String],
|
|
300853
|
+
default: 200
|
|
300854
|
+
},
|
|
300855
|
+
//第三层清单内容的高度配置
|
|
300856
|
+
btnNumLeft: {
|
|
300857
|
+
type: [Number, String],
|
|
300858
|
+
default: 1
|
|
300859
|
+
},
|
|
300860
|
+
//右侧按钮数量配置
|
|
300861
|
+
btnNumRight: {
|
|
300862
|
+
type: [Number, String],
|
|
300863
|
+
default: 1
|
|
300864
|
+
},
|
|
300865
|
+
//右侧按钮数量配置
|
|
300866
|
+
buttonWidth: [Number, String],
|
|
300867
|
+
//第三层表格操作列宽度
|
|
300868
|
+
accordion: {
|
|
300869
|
+
type: Boolean,
|
|
300870
|
+
default: true
|
|
300871
|
+
},
|
|
300872
|
+
//第三层是否手风琴模式
|
|
300873
|
+
initPageEvent: Function
|
|
300874
|
+
});
|
|
300234
300875
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=script&setup=true&lang=js
|
|
300235
|
-
|
|
300236
300876
|
/* unplugin-vue-components disabled */
|
|
300237
300877
|
|
|
300238
300878
|
|
|
@@ -300244,8 +300884,7 @@ const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_ren
|
|
|
300244
300884
|
|
|
300245
300885
|
|
|
300246
300886
|
|
|
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);
|
|
300887
|
+
const mtt_panelvue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-5bc882de"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
300249
300888
|
|
|
300250
300889
|
const mtt_panelvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
300251
300890
|
class: "mtt-panel-box"
|
|
@@ -300326,557 +300965,32 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300326
300965
|
|
|
300327
300966
|
|
|
300328
300967
|
|
|
300329
|
-
|
|
300330
300968
|
/* harmony default export */ var mtt_panelvue_type_script_setup_true_lang_js = ({
|
|
300331
300969
|
__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
|
-
},
|
|
300970
|
+
props: mtt_panel_props,
|
|
300361
300971
|
|
|
300362
300972
|
setup(__props, {
|
|
300363
300973
|
expose
|
|
300364
300974
|
}) {
|
|
300365
300975
|
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));
|
|
300976
|
+
const {
|
|
300977
|
+
tableData,
|
|
300978
|
+
retjson,
|
|
300979
|
+
retjson_2,
|
|
300980
|
+
tableData_2,
|
|
300981
|
+
loading_2,
|
|
300982
|
+
isTooltip,
|
|
300983
|
+
innerDivWidth,
|
|
300984
|
+
level_2_rowid,
|
|
300985
|
+
isShowTooltip,
|
|
300986
|
+
formList,
|
|
300987
|
+
cardClick,
|
|
300988
|
+
setRef,
|
|
300989
|
+
handlerConfig,
|
|
300990
|
+
customEvents,
|
|
300991
|
+
loadListData,
|
|
300992
|
+
handlerColClick
|
|
300993
|
+
} = MttPanelHook(props);
|
|
300880
300994
|
expose({
|
|
300881
300995
|
cardClick
|
|
300882
300996
|
});
|
|
@@ -300912,30 +301026,30 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300912
301026
|
}, {
|
|
300913
301027
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_2, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)?.[0]?.DataArray || [], (item, index) => {
|
|
300914
301028
|
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),
|
|
301029
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick)(item),
|
|
300916
301030
|
style: {
|
|
300917
301031
|
"margin-bottom": "10px"
|
|
300918
301032
|
},
|
|
300919
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(level_2_rowid
|
|
301033
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(level_2_rowid) == item.rowid && 'active'),
|
|
300920
301034
|
key: index
|
|
300921
301035
|
}, {
|
|
300922
301036
|
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
300923
301037
|
class: "box-item",
|
|
300924
301038
|
effect: "dark",
|
|
300925
301039
|
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
300926
|
-
visible: isTooltip
|
|
301040
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
300927
301041
|
placement: "top-start"
|
|
300928
301042
|
}, {
|
|
300929
301043
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
300930
|
-
onMouseover: event => isShowTooltip(event, item),
|
|
300931
|
-
onMouseleave: hiddenTooltip
|
|
301044
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
301045
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
300932
301046
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop]), 41, mtt_panelvue_type_script_setup_true_lang_js_hoisted_5)])]),
|
|
300933
301047
|
_: 2
|
|
300934
301048
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
300935
|
-
btnNum:
|
|
301049
|
+
btnNum: _ctx.btnNumLeft,
|
|
300936
301050
|
row: item,
|
|
300937
301051
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
300938
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, index)
|
|
301052
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
300939
301053
|
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
300940
301054
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_6, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
300941
301055
|
"label-width": "auto",
|
|
@@ -300966,15 +301080,14 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300966
301080
|
"padding": "12px",
|
|
300967
301081
|
"background": "#fff"
|
|
300968
301082
|
},
|
|
300969
|
-
|
|
300970
|
-
ref: mttMainRef
|
|
301083
|
+
ref: "mttMainRef"
|
|
300971
301084
|
}, {
|
|
300972
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [retjson_2
|
|
301085
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
300973
301086
|
key: 0,
|
|
300974
301087
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
300975
|
-
width: innerDivWidth
|
|
301088
|
+
width: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(innerDivWidth)
|
|
300976
301089
|
})
|
|
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
|
|
301090
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2), (item, index) => {
|
|
300978
301091
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
300979
301092
|
style: {
|
|
300980
301093
|
"margin-bottom": "10px"
|
|
@@ -300984,29 +301097,29 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300984
301097
|
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
300985
301098
|
class: "box-item",
|
|
300986
301099
|
effect: "dark",
|
|
300987
|
-
content: item[retjson_2.
|
|
300988
|
-
visible: isTooltip
|
|
301100
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop],
|
|
301101
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
300989
301102
|
placement: "top-start"
|
|
300990
301103
|
}, {
|
|
300991
301104
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
300992
301105
|
class: "name",
|
|
300993
301106
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
300994
|
-
maxWidth: retjson_2.
|
|
301107
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
300995
301108
|
})
|
|
300996
301109
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
300997
301110
|
key: 0,
|
|
300998
301111
|
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"])
|
|
301112
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
301000
301113
|
}, null, 10, mtt_panelvue_type_script_setup_true_lang_js_hoisted_9)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
301001
|
-
onMouseover: event => isShowTooltip(event, item, 22),
|
|
301002
|
-
onMouseleave: hiddenTooltip
|
|
301003
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[retjson_2.
|
|
301114
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301115
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301116
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop]), 41, mtt_panelvue_type_script_setup_true_lang_js_hoisted_10)], 4)]),
|
|
301004
301117
|
_: 2
|
|
301005
301118
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_11, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
301006
301119
|
"label-width": "auto",
|
|
301007
301120
|
inline: ""
|
|
301008
301121
|
}, {
|
|
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.
|
|
301122
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header.slice(1), (child, index) => {
|
|
301010
301123
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, {
|
|
301011
301124
|
key: index
|
|
301012
301125
|
}, [child.width > 0 && item?.[child?.prop] ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_form_item, {
|
|
@@ -301019,8 +301132,8 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301019
301132
|
}), 128))]),
|
|
301020
301133
|
_: 2
|
|
301021
301134
|
}, 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),
|
|
301135
|
+
btnNum: _ctx.btnNumRight,
|
|
301136
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
301024
301137
|
row: item,
|
|
301025
301138
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
301026
301139
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -301028,7 +301141,7 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301028
301141
|
key: 1,
|
|
301029
301142
|
class: "cus-list-box",
|
|
301030
301143
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
301031
|
-
height:
|
|
301144
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
301032
301145
|
})
|
|
301033
301146
|
}, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
301034
301147
|
key: 0,
|
|
@@ -301037,22 +301150,22 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301037
301150
|
key: 1,
|
|
301038
301151
|
id: `cusList${index}`,
|
|
301039
301152
|
ref_for: true,
|
|
301040
|
-
ref: el => setRef(el, index),
|
|
301153
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
301041
301154
|
data: [{
|
|
301042
301155
|
retjson: item?.retjson_3,
|
|
301043
301156
|
DataArray: item?.tableData_3
|
|
301044
301157
|
}],
|
|
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)]),
|
|
301158
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson_3),
|
|
301159
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301160
|
+
}, null, 8, ["id", "data", "handlerConfig", "onCustomEvents"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301048
301161
|
_: 2
|
|
301049
301162
|
}, 1024);
|
|
301050
|
-
}), 128)), tableData_2.
|
|
301163
|
+
}), 128)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2).length == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_14, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
301051
301164
|
"image-size": 200
|
|
301052
301165
|
}, {
|
|
301053
301166
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panelvue_type_script_setup_true_lang_js_hoisted_15]),
|
|
301054
301167
|
_: 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
|
|
301168
|
+
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_16, null, 512)), [[_directive_loading, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2)]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301056
301169
|
_: 3
|
|
301057
301170
|
}, 512)]),
|
|
301058
301171
|
_: 3
|
|
@@ -301061,17 +301174,17 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301061
301174
|
}, {
|
|
301062
301175
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panelvue_type_script_setup_true_lang_js_hoisted_18]),
|
|
301063
301176
|
_: 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
|
|
301177
|
+
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(formList), form => {
|
|
301065
301178
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
301066
301179
|
key: form.funcode
|
|
301067
301180
|
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_19, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
301068
301181
|
key: 0,
|
|
301069
301182
|
form: form,
|
|
301070
|
-
axios:
|
|
301183
|
+
axios: _ctx.axios
|
|
301071
301184
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panelvue_type_script_setup_true_lang_js_hoisted_20, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
301072
301185
|
key: 0,
|
|
301073
301186
|
form: form,
|
|
301074
|
-
axios:
|
|
301187
|
+
axios: _ctx.axios
|
|
301075
301188
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
301076
301189
|
}), 128))], 64);
|
|
301077
301190
|
};
|
|
@@ -301080,10 +301193,10 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301080
301193
|
});
|
|
301081
301194
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=script&setup=true&lang=js
|
|
301082
301195
|
/* 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=
|
|
301196
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=5bc882de&lang=scss&scoped=true
|
|
301084
301197
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
301085
301198
|
|
|
301086
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=
|
|
301199
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=5bc882de&lang=scss&scoped=true
|
|
301087
301200
|
/* unplugin-vue-components disabled */
|
|
301088
301201
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue
|
|
301089
301202
|
/* unplugin-vue-components disabled */
|
|
@@ -301092,190 +301205,13 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301092
301205
|
;
|
|
301093
301206
|
|
|
301094
301207
|
|
|
301095
|
-
const mtt_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panelvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301208
|
+
const mtt_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panelvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-5bc882de"]])
|
|
301096
301209
|
|
|
301097
301210
|
/* harmony default export */ var mtt_panel = (mtt_panel_exports_);
|
|
301098
301211
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/header/style/css.mjs
|
|
301099
301212
|
|
|
301100
301213
|
|
|
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
301214
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=script&setup=true&lang=js
|
|
301278
|
-
|
|
301279
301215
|
/* unplugin-vue-components disabled */
|
|
301280
301216
|
|
|
301281
301217
|
|
|
@@ -301287,8 +301223,7 @@ const mtt_panel_1_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default *
|
|
|
301287
301223
|
|
|
301288
301224
|
|
|
301289
301225
|
|
|
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);
|
|
301226
|
+
const mtt_panel_1vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-90bc717a"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301292
301227
|
|
|
301293
301228
|
const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
301294
301229
|
class: "mtt-panel-box"
|
|
@@ -301363,557 +301298,32 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301363
301298
|
|
|
301364
301299
|
|
|
301365
301300
|
|
|
301366
|
-
|
|
301367
301301
|
/* harmony default export */ var mtt_panel_1vue_type_script_setup_true_lang_js = ({
|
|
301368
301302
|
__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
|
-
},
|
|
301303
|
+
props: mtt_panel_props,
|
|
301398
301304
|
|
|
301399
301305
|
setup(__props, {
|
|
301400
301306
|
expose
|
|
301401
301307
|
}) {
|
|
301402
301308
|
const props = __props;
|
|
301403
|
-
const
|
|
301404
|
-
|
|
301405
|
-
|
|
301406
|
-
|
|
301407
|
-
|
|
301408
|
-
|
|
301409
|
-
|
|
301410
|
-
|
|
301411
|
-
|
|
301412
|
-
|
|
301413
|
-
|
|
301414
|
-
|
|
301415
|
-
|
|
301416
|
-
|
|
301417
|
-
|
|
301418
|
-
|
|
301419
|
-
|
|
301420
|
-
})
|
|
301421
|
-
const forms_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form
|
|
301422
|
-
|
|
301423
|
-
const formsItemCopy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(); //当前form复制数据
|
|
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));
|
|
301309
|
+
const {
|
|
301310
|
+
tableData,
|
|
301311
|
+
retjson,
|
|
301312
|
+
retjson_2,
|
|
301313
|
+
tableData_2,
|
|
301314
|
+
loading_2,
|
|
301315
|
+
isTooltip,
|
|
301316
|
+
innerDivWidth,
|
|
301317
|
+
level_2_rowid,
|
|
301318
|
+
isShowTooltip,
|
|
301319
|
+
formList,
|
|
301320
|
+
cardClick,
|
|
301321
|
+
setRef,
|
|
301322
|
+
handlerConfig,
|
|
301323
|
+
customEvents,
|
|
301324
|
+
loadListData,
|
|
301325
|
+
handlerColClick
|
|
301326
|
+
} = MttPanelHook(props);
|
|
301917
301327
|
expose({
|
|
301918
301328
|
cardClick
|
|
301919
301329
|
});
|
|
@@ -301957,9 +301367,9 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301957
301367
|
}])
|
|
301958
301368
|
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)?.[0]?.DataArray || [], (item, index) => {
|
|
301959
301369
|
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
|
|
301370
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(level_2_rowid) == item.rowid && 'active'),
|
|
301961
301371
|
key: index,
|
|
301962
|
-
onClick: $event => cardClick(item),
|
|
301372
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick)(item),
|
|
301963
301373
|
style: {
|
|
301964
301374
|
"width": "300px",
|
|
301965
301375
|
"margin-right": "10px",
|
|
@@ -301970,19 +301380,19 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301970
301380
|
class: "box-item",
|
|
301971
301381
|
effect: "dark",
|
|
301972
301382
|
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
301973
|
-
visible: isTooltip
|
|
301383
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
301974
301384
|
placement: "top-start"
|
|
301975
301385
|
}, {
|
|
301976
301386
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
301977
|
-
onMouseover: event => isShowTooltip(event, item),
|
|
301978
|
-
onMouseleave: hiddenTooltip
|
|
301387
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
301388
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301979
301389
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop]), 41, mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_4)])]),
|
|
301980
301390
|
_: 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:
|
|
301391
|
+
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301392
|
+
btnNum: _ctx.btnNumLeft,
|
|
301983
301393
|
row: item,
|
|
301984
301394
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
301985
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, index)
|
|
301395
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
301986
301396
|
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
301987
301397
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
301988
301398
|
"label-width": "auto",
|
|
@@ -302013,15 +301423,14 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302013
301423
|
"padding": "12px",
|
|
302014
301424
|
"background": "#fff"
|
|
302015
301425
|
},
|
|
302016
|
-
|
|
302017
|
-
ref: mttMainRef
|
|
301426
|
+
ref: "mttMainRef"
|
|
302018
301427
|
}, {
|
|
302019
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [retjson_2
|
|
301428
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302020
301429
|
key: 0,
|
|
302021
301430
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302022
|
-
width: innerDivWidth
|
|
301431
|
+
width: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(innerDivWidth)
|
|
302023
301432
|
})
|
|
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
|
|
301433
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2), (item, index) => {
|
|
302025
301434
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
302026
301435
|
style: {
|
|
302027
301436
|
"margin-bottom": "10px"
|
|
@@ -302031,29 +301440,29 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302031
301440
|
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
302032
301441
|
class: "box-item",
|
|
302033
301442
|
effect: "dark",
|
|
302034
|
-
content: item[retjson_2.
|
|
302035
|
-
visible: isTooltip
|
|
301443
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop],
|
|
301444
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
302036
301445
|
placement: "top-start"
|
|
302037
301446
|
}, {
|
|
302038
301447
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
302039
301448
|
class: "name",
|
|
302040
301449
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302041
|
-
maxWidth: retjson_2.
|
|
301450
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
302042
301451
|
})
|
|
302043
301452
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
302044
301453
|
key: 0,
|
|
302045
301454
|
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"])
|
|
301455
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
302047
301456
|
}, null, 10, mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_8)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
302048
|
-
onMouseover: event => isShowTooltip(event, item, 22),
|
|
302049
|
-
onMouseleave: hiddenTooltip
|
|
302050
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[retjson_2.
|
|
301457
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301458
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301459
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop]), 41, mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_9)], 4)]),
|
|
302051
301460
|
_: 2
|
|
302052
301461
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_10, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
302053
301462
|
"label-width": "auto",
|
|
302054
301463
|
inline: ""
|
|
302055
301464
|
}, {
|
|
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.
|
|
301465
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header.slice(1), (child, index) => {
|
|
302057
301466
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, {
|
|
302058
301467
|
key: index
|
|
302059
301468
|
}, [child.width > 0 && item?.[child?.prop] ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_form_item, {
|
|
@@ -302065,9 +301474,9 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302065
301474
|
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
302066
301475
|
}), 128))]),
|
|
302067
301476
|
_: 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),
|
|
301477
|
+
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301478
|
+
btnNum: _ctx.btnNumRight,
|
|
301479
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
302071
301480
|
row: item,
|
|
302072
301481
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
302073
301482
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -302075,7 +301484,7 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302075
301484
|
key: 1,
|
|
302076
301485
|
class: "cus-list-box",
|
|
302077
301486
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302078
|
-
height:
|
|
301487
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
302079
301488
|
})
|
|
302080
301489
|
}, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
302081
301490
|
key: 0,
|
|
@@ -302084,22 +301493,22 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302084
301493
|
key: 1,
|
|
302085
301494
|
id: `cusList${index}`,
|
|
302086
301495
|
ref_for: true,
|
|
302087
|
-
ref: el => setRef(el, index),
|
|
301496
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
302088
301497
|
data: [{
|
|
302089
301498
|
retjson: item?.retjson_3,
|
|
302090
301499
|
DataArray: item?.tableData_3
|
|
302091
301500
|
}],
|
|
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)]),
|
|
301501
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson3),
|
|
301502
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301503
|
+
}, null, 8, ["id", "data", "handlerConfig", "onCustomEvents"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
302095
301504
|
_: 2
|
|
302096
301505
|
}, 1024);
|
|
302097
|
-
}), 128)), tableData_2.
|
|
301506
|
+
}), 128)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData_2).length == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_13, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
302098
301507
|
"image-size": 200
|
|
302099
301508
|
}, {
|
|
302100
301509
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_14]),
|
|
302101
301510
|
_: 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
|
|
301511
|
+
})])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_15, null, 512)), [[_directive_loading, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loading_2)]]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
302103
301512
|
_: 3
|
|
302104
301513
|
}, 512)]),
|
|
302105
301514
|
_: 3
|
|
@@ -302108,17 +301517,17 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302108
301517
|
}, {
|
|
302109
301518
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_17]),
|
|
302110
301519
|
_: 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
|
|
301520
|
+
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(formList), form => {
|
|
302112
301521
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302113
301522
|
key: form.funcode
|
|
302114
301523
|
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_18, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
302115
301524
|
key: 0,
|
|
302116
301525
|
form: form,
|
|
302117
|
-
axios:
|
|
301526
|
+
axios: _ctx.axios
|
|
302118
301527
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
302119
301528
|
key: 0,
|
|
302120
301529
|
form: form,
|
|
302121
|
-
axios:
|
|
301530
|
+
axios: _ctx.axios
|
|
302122
301531
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
302123
301532
|
}), 128))], 64);
|
|
302124
301533
|
};
|
|
@@ -302127,10 +301536,10 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302127
301536
|
});
|
|
302128
301537
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=script&setup=true&lang=js
|
|
302129
301538
|
/* 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=
|
|
301539
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=90bc717a&lang=scss&scoped=true
|
|
302131
301540
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
302132
301541
|
|
|
302133
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=
|
|
301542
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=90bc717a&lang=scss&scoped=true
|
|
302134
301543
|
/* unplugin-vue-components disabled */
|
|
302135
301544
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue
|
|
302136
301545
|
/* unplugin-vue-components disabled */
|
|
@@ -302139,211 +301548,10 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302139
301548
|
;
|
|
302140
301549
|
|
|
302141
301550
|
|
|
302142
|
-
const mtt_panel_1_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_1vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301551
|
+
const mtt_panel_1_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_1vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-90bc717a"]])
|
|
302143
301552
|
|
|
302144
301553
|
/* 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
301554
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=script&setup=true&lang=js
|
|
302344
|
-
|
|
302345
|
-
|
|
302346
|
-
|
|
302347
301555
|
/* unplugin-vue-components disabled */
|
|
302348
301556
|
|
|
302349
301557
|
|
|
@@ -302352,8 +301560,7 @@ const mtt_panel_2_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default *
|
|
|
302352
301560
|
|
|
302353
301561
|
|
|
302354
301562
|
|
|
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);
|
|
301563
|
+
const mtt_panel_2vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-19cb5164"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
302357
301564
|
|
|
302358
301565
|
const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
302359
301566
|
class: "mtt-panel-box"
|
|
@@ -302418,557 +301625,29 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
302418
301625
|
|
|
302419
301626
|
|
|
302420
301627
|
|
|
302421
|
-
|
|
302422
301628
|
/* harmony default export */ var mtt_panel_2vue_type_script_setup_true_lang_js = ({
|
|
302423
301629
|
__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
|
-
},
|
|
301630
|
+
props: mtt_panel_props,
|
|
302453
301631
|
|
|
302454
301632
|
setup(__props, {
|
|
302455
301633
|
expose
|
|
302456
301634
|
}) {
|
|
302457
301635
|
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));
|
|
301636
|
+
const {
|
|
301637
|
+
tableData,
|
|
301638
|
+
retjson,
|
|
301639
|
+
retjson_2,
|
|
301640
|
+
cardClick3,
|
|
301641
|
+
isTooltip,
|
|
301642
|
+
isShowTooltip,
|
|
301643
|
+
formList,
|
|
301644
|
+
cardClick,
|
|
301645
|
+
setRef,
|
|
301646
|
+
handlerConfig,
|
|
301647
|
+
customEvents,
|
|
301648
|
+
loadListData,
|
|
301649
|
+
handlerColClick
|
|
301650
|
+
} = MttPanelHook(props);
|
|
302972
301651
|
expose({
|
|
302973
301652
|
cardClick
|
|
302974
301653
|
});
|
|
@@ -302999,7 +301678,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
302999
301678
|
"expand-config": {
|
|
303000
301679
|
lazy: true,
|
|
303001
301680
|
accordion: true,
|
|
303002
|
-
loadMethod:
|
|
301681
|
+
loadMethod: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick3)
|
|
303003
301682
|
}
|
|
303004
301683
|
}, {
|
|
303005
301684
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_column, {
|
|
@@ -303019,21 +301698,21 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303019
301698
|
class: "box-item",
|
|
303020
301699
|
effect: "dark",
|
|
303021
301700
|
content: item[row.retjson_2.header[0].prop],
|
|
303022
|
-
visible: isTooltip
|
|
301701
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
303023
301702
|
placement: "top-start"
|
|
303024
301703
|
}, {
|
|
303025
301704
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
303026
301705
|
class: "name",
|
|
303027
301706
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
303028
|
-
maxWidth: retjson_2.
|
|
301707
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
303029
301708
|
})
|
|
303030
301709
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
303031
301710
|
key: 0,
|
|
303032
301711
|
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"])
|
|
301712
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
303034
301713
|
}, null, 10, mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_5)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
303035
|
-
onMouseover: event => isShowTooltip(event, item, 22),
|
|
303036
|
-
onMouseleave: hiddenTooltip
|
|
301714
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301715
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
303037
301716
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item[row.retjson_2.header[0].prop]), 41, mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_6)], 4)]),
|
|
303038
301717
|
_: 2
|
|
303039
301718
|
}, 1032, ["content", "visible"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
@@ -303052,9 +301731,9 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303052
301731
|
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
303053
301732
|
}), 128))]),
|
|
303054
301733
|
_: 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),
|
|
301734
|
+
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301735
|
+
btnNum: _ctx.btnNumRight,
|
|
301736
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
303058
301737
|
row: item,
|
|
303059
301738
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
303060
301739
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -303062,7 +301741,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303062
301741
|
key: 1,
|
|
303063
301742
|
class: "cus-list-box",
|
|
303064
301743
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
303065
|
-
height:
|
|
301744
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
303066
301745
|
})
|
|
303067
301746
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
303068
301747
|
key: 0,
|
|
@@ -303071,14 +301750,14 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303071
301750
|
key: 1,
|
|
303072
301751
|
id: `cusList${index}`,
|
|
303073
301752
|
ref_for: true,
|
|
303074
|
-
ref: el => setRef(el, index),
|
|
301753
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
303075
301754
|
data: [{
|
|
303076
301755
|
retjson: item?.retjson_3,
|
|
303077
301756
|
DataArray: item?.tableData_3
|
|
303078
301757
|
}],
|
|
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)]),
|
|
301758
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson_3),
|
|
301759
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301760
|
+
}, null, 8, ["id", "data", "handlerConfig", "onCustomEvents"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])], 4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
303082
301761
|
_: 2
|
|
303083
301762
|
}, 1024);
|
|
303084
301763
|
}), 128)), row.tableData_2.length == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_10, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
@@ -303108,9 +301787,9 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303108
301787
|
}, {
|
|
303109
301788
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
303110
301789
|
row
|
|
303111
|
-
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(
|
|
303112
|
-
btnNum:
|
|
303113
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, _ctx.index),
|
|
301790
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301791
|
+
btnNum: _ctx.btnNumRight,
|
|
301792
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, _ctx.index),
|
|
303114
301793
|
row: row,
|
|
303115
301794
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
303116
301795
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])]),
|
|
@@ -303122,17 +301801,17 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303122
301801
|
}, {
|
|
303123
301802
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_13]),
|
|
303124
301803
|
_: 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
|
|
301804
|
+
})]))]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(formList), form => {
|
|
303126
301805
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
303127
301806
|
key: form.funcode
|
|
303128
301807
|
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_14, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
303129
301808
|
key: 0,
|
|
303130
301809
|
form: form,
|
|
303131
|
-
axios:
|
|
301810
|
+
axios: _ctx.axios
|
|
303132
301811
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15, [form.display ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(jt_manager_tree_modal), {
|
|
303133
301812
|
key: 0,
|
|
303134
301813
|
form: form,
|
|
303135
|
-
axios:
|
|
301814
|
+
axios: _ctx.axios
|
|
303136
301815
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
303137
301816
|
}), 128))], 64);
|
|
303138
301817
|
};
|
|
@@ -303141,10 +301820,10 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303141
301820
|
});
|
|
303142
301821
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=script&setup=true&lang=js
|
|
303143
301822
|
/* 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=
|
|
301823
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=19cb5164&lang=scss&scoped=true
|
|
303145
301824
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
303146
301825
|
|
|
303147
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=
|
|
301826
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=19cb5164&lang=scss&scoped=true
|
|
303148
301827
|
/* unplugin-vue-components disabled */
|
|
303149
301828
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue
|
|
303150
301829
|
/* unplugin-vue-components disabled */
|
|
@@ -303153,7 +301832,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303153
301832
|
;
|
|
303154
301833
|
|
|
303155
301834
|
|
|
303156
|
-
const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301835
|
+
const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-19cb5164"]])
|
|
303157
301836
|
|
|
303158
301837
|
/* harmony default export */ var mtt_panel_2 = (mtt_panel_2_exports_);
|
|
303159
301838
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/index.vue?vue&type=script&setup=true&lang=js
|