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