jtui3.0 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/jtui3.0.common.js +845 -2153
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.js +845 -2153
- package/lib/jtui3.0.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/jtui3.0.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,613 @@ 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:53:17
|
|
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
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300186
|
+
retjson_2.value = res.data[0].retjson;
|
|
300187
|
+
tableData_2.value = res.data[0].DataArray;
|
|
300188
|
+
loadListData(tableData_2.value[0]);
|
|
300189
|
+
loading_2.value = false;
|
|
300190
|
+
});
|
|
300191
|
+
} //版式3加载第二层数据
|
|
300192
|
+
|
|
300193
|
+
|
|
300194
|
+
async function cardClick3(item) {
|
|
300195
|
+
item.row.loading_2 = true;
|
|
300196
|
+
item.row.retjson_2 = null;
|
|
300197
|
+
const res = await props.axios.post(props.compPath + item.row.path);
|
|
300198
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300199
|
+
item.row.retjson_2 = res.data[0].retjson;
|
|
300200
|
+
item.row.tableData_2 = res.data[0].DataArray;
|
|
300201
|
+
loadListData(item.row.tableData_2[0]);
|
|
300202
|
+
item.row.loading_2 = false;
|
|
300203
|
+
});
|
|
300204
|
+
} //加载第三层数据
|
|
300205
|
+
|
|
300206
|
+
|
|
300207
|
+
async function loadListData(item) {
|
|
300208
|
+
if (item.path == '' || item.path == '-') {
|
|
300209
|
+
return;
|
|
300210
|
+
}
|
|
300211
|
+
|
|
300212
|
+
if (props.accordion) {
|
|
300213
|
+
tableData_2.value.forEach(i => {
|
|
300214
|
+
if (item.rowid != i.rowid) {
|
|
300215
|
+
i.isShow = false;
|
|
300216
|
+
}
|
|
300217
|
+
});
|
|
300218
|
+
}
|
|
300219
|
+
|
|
300220
|
+
if (item?.retjson_3) {
|
|
300221
|
+
item.isShow = !item.isShow;
|
|
300222
|
+
return;
|
|
300223
|
+
}
|
|
300224
|
+
|
|
300225
|
+
if (item) {
|
|
300226
|
+
item.loading = true;
|
|
300227
|
+
}
|
|
300228
|
+
|
|
300229
|
+
const res = await props.axios.post(props.compPath + item.path);
|
|
300230
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300231
|
+
item.isShow = true;
|
|
300232
|
+
item.retjson_3 = res.data[0].retjson;
|
|
300233
|
+
item.tableData_3 = res.data[0].DataArray;
|
|
300234
|
+
item.loading = false;
|
|
300235
|
+
});
|
|
300236
|
+
}
|
|
300237
|
+
|
|
300238
|
+
async function loadListData_req(item) {
|
|
300239
|
+
item.retjson_3 = null;
|
|
300240
|
+
item.loading = true;
|
|
300241
|
+
const res = await props.axios.post(props.compPath + item.path);
|
|
300242
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
300243
|
+
item.isShow = true;
|
|
300244
|
+
item.retjson_3 = res.data[0].retjson;
|
|
300245
|
+
item.tableData_3 = res.data[0].DataArray;
|
|
300246
|
+
item.loading = false;
|
|
300247
|
+
});
|
|
300248
|
+
} //第三层按钮触发事件
|
|
300249
|
+
|
|
300250
|
+
|
|
300251
|
+
function customEvents(type, data) {
|
|
300252
|
+
if (type == 'handler') {
|
|
300253
|
+
handlerColClick(data.funcode, data.row, 3, data.rowIndex);
|
|
300254
|
+
}
|
|
300255
|
+
} //监听第一层数据加载
|
|
300256
|
+
|
|
300257
|
+
|
|
300258
|
+
const innerDivWidth = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('100%');
|
|
300259
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
300260
|
+
if (mttMainRef.value?.$el?.offsetWidth) {
|
|
300261
|
+
innerDivWidth.value = mttMainRef.value.$el.offsetWidth - 30 + 'px';
|
|
300262
|
+
}
|
|
300263
|
+
|
|
300264
|
+
jtMessage.off('rootChange');
|
|
300265
|
+
jtMessage.on('rootChange', res => {
|
|
300266
|
+
formList.value = res[0].forms.map(form => {
|
|
300267
|
+
// 当前类型 要求保留之前输入的内容,所以用v-show 其他的 用 v-if
|
|
300268
|
+
form.hasListUriType = !!(form.Pages || []).find(page => page.formtype === "jt-form-listuri-pc");
|
|
300269
|
+
return form;
|
|
300270
|
+
});
|
|
300271
|
+
});
|
|
300272
|
+
}); //隐藏弹框
|
|
300273
|
+
|
|
300274
|
+
function hideModal() {
|
|
300275
|
+
formList.value.forEach(item => {
|
|
300276
|
+
item.display = false;
|
|
300277
|
+
});
|
|
300278
|
+
}
|
|
300279
|
+
|
|
300280
|
+
;
|
|
300281
|
+
const operFunc = {
|
|
300282
|
+
//增加操作
|
|
300283
|
+
add_handler: async (params, item, level) => {
|
|
300284
|
+
if (!("submit" in item) || !("path" in item)) {
|
|
300285
|
+
ElMessage.success("表单请求参数错误");
|
|
300286
|
+
return;
|
|
300287
|
+
}
|
|
300288
|
+
|
|
300289
|
+
const path = item.submit + item.path;
|
|
300290
|
+
const {
|
|
300291
|
+
data
|
|
300292
|
+
} = await props.axios.post(path, params);
|
|
300293
|
+
hideModal();
|
|
300294
|
+
handlerCallBack(data, level);
|
|
300295
|
+
formList.value.forEach(i => {
|
|
300296
|
+
if (i.funcode === item.funcode) {
|
|
300297
|
+
i = formsItemCopy;
|
|
300298
|
+
}
|
|
300299
|
+
});
|
|
300300
|
+
},
|
|
300301
|
+
//修改操作
|
|
300302
|
+
modify_handler: async (params, item, level) => {
|
|
300303
|
+
const path = item.submit + item.path;
|
|
300304
|
+
const {
|
|
300305
|
+
data
|
|
300306
|
+
} = await props.axios.post(path, params);
|
|
300307
|
+
hideModal();
|
|
300308
|
+
let msg = null;
|
|
300309
|
+
let ret = -1;
|
|
300310
|
+
|
|
300311
|
+
if (null != data && data.length == 0) {
|
|
300312
|
+
ret = 0;
|
|
300313
|
+
} else if (data.length == 1) {
|
|
300314
|
+
msg = data[0]["MSG"];
|
|
300315
|
+
ret = data[0]["Result"];
|
|
300316
|
+
}
|
|
300317
|
+
|
|
300318
|
+
if (ret > 0) {
|
|
300319
|
+
ElMessage.success("修改成功");
|
|
300320
|
+
|
|
300321
|
+
try {
|
|
300322
|
+
let MSG = data[0]["MSG"];
|
|
300323
|
+
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
300324
|
+
|
|
300325
|
+
if (isjson) {
|
|
300326
|
+
for (let key in MSG) {
|
|
300327
|
+
activeRow.value[key] = MSG[key];
|
|
300328
|
+
}
|
|
300329
|
+
|
|
300330
|
+
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
300331
|
+
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
300332
|
+
}
|
|
300333
|
+
}
|
|
300334
|
+
|
|
300335
|
+
for (let key in _pageData) {
|
|
300336
|
+
activeRow.value[key] = _pageData[key];
|
|
300337
|
+
}
|
|
300338
|
+
|
|
300339
|
+
handlerCallBack(data, level);
|
|
300340
|
+
} catch (e) {
|
|
300341
|
+
console.log(e);
|
|
300342
|
+
}
|
|
300343
|
+
|
|
300344
|
+
for (let key in forms_item.value["model"]) {
|
|
300345
|
+
activeRow.value[key] = forms_item.value["model"][key];
|
|
300346
|
+
}
|
|
300347
|
+
} else if (ret == 0) {
|
|
300348
|
+
ElMessage.success("修改完成,没有更新数据");
|
|
300349
|
+
} else {
|
|
300350
|
+
if (null == msg) {
|
|
300351
|
+
msg = ret;
|
|
300352
|
+
}
|
|
300353
|
+
|
|
300354
|
+
ElMessage.warning("修改失败[" + msg + "]");
|
|
300355
|
+
}
|
|
300356
|
+
},
|
|
300357
|
+
// 下载文件
|
|
300358
|
+
download_handler: row => {
|
|
300359
|
+
const r = row;
|
|
300360
|
+
|
|
300361
|
+
if (typeof row.fileList === "string") {
|
|
300362
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
300363
|
+
} else if (row.fileList) {
|
|
300364
|
+
for (let i = 0; i < r.fileList.length; i++) {
|
|
300365
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
300366
|
+
}
|
|
300367
|
+
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
300368
|
+
for (let i = 0; i < r.ws_att.length; i++) {
|
|
300369
|
+
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, props.axios);
|
|
300370
|
+
}
|
|
300371
|
+
}
|
|
300372
|
+
},
|
|
300373
|
+
//删除操作
|
|
300374
|
+
del_handler: async (path, item, level) => {
|
|
300375
|
+
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
300376
|
+
confirmButtonText: "确定",
|
|
300377
|
+
cancelButtonText: "取消",
|
|
300378
|
+
type: "warning"
|
|
300379
|
+
}).then(async () => {
|
|
300380
|
+
const {
|
|
300381
|
+
data
|
|
300382
|
+
} = await props.axios.post(path, model_all.value);
|
|
300383
|
+
hideModal();
|
|
300384
|
+
handlerCallBack(data, level);
|
|
300385
|
+
}).catch(() => {});
|
|
300386
|
+
},
|
|
300387
|
+
exec_handler: async (params, item, level) => {
|
|
300388
|
+
const path = item.submit + item.path;
|
|
300389
|
+
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
300390
|
+
confirmButtonText: "确定",
|
|
300391
|
+
cancelButtonText: "取消",
|
|
300392
|
+
type: "warning"
|
|
300393
|
+
}).then(async () => {
|
|
300394
|
+
const {
|
|
300395
|
+
data
|
|
300396
|
+
} = await props.axios.post(path, model_all.value);
|
|
300397
|
+
hideModal();
|
|
300398
|
+
handlerCallBack(data, level, 'exec', item);
|
|
300399
|
+
}).catch(() => {});
|
|
300400
|
+
}
|
|
300401
|
+
}; //parentId寻找父级
|
|
300402
|
+
|
|
300403
|
+
function findParentData(parentId, level) {
|
|
300404
|
+
if (level == 2) {
|
|
300405
|
+
const idx = tableData.value[0].DataArray.findIndex(item => {
|
|
300406
|
+
return item.rowid == parentId;
|
|
300407
|
+
});
|
|
300408
|
+
const row = tableData.value[0].DataArray[idx];
|
|
300409
|
+
return {
|
|
300410
|
+
row,
|
|
300411
|
+
idx
|
|
300412
|
+
};
|
|
300413
|
+
} else if (level == 3) {
|
|
300414
|
+
const idx = tableData_2.value.findIndex(item => {
|
|
300415
|
+
return item.rowid == parentId;
|
|
300416
|
+
});
|
|
300417
|
+
const row = tableData_2.value[idx];
|
|
300418
|
+
return {
|
|
300419
|
+
row,
|
|
300420
|
+
idx
|
|
300421
|
+
};
|
|
300422
|
+
}
|
|
300423
|
+
} //操作回调
|
|
300424
|
+
|
|
300425
|
+
|
|
300426
|
+
function handlerCallBack(data, level, tag, otherParams) {
|
|
300427
|
+
if (data && data[0].Result >= 0) {
|
|
300428
|
+
ElMessage.success("执行操作成功");
|
|
300429
|
+
|
|
300430
|
+
if ("MSG" in data[0]) {
|
|
300431
|
+
const obl = Object.keys(data[0].MSG).length;
|
|
300432
|
+
|
|
300433
|
+
if (obl != 0 && data[0].MSG.oprtype == "del") {
|
|
300434
|
+
//删除
|
|
300435
|
+
if (level == 1) {
|
|
300436
|
+
const idx = tableData.value[0].DataArray.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300437
|
+
tableData.value[0].DataArray.splice(idx, 1);
|
|
300438
|
+
} else if (level == 2) {
|
|
300439
|
+
const idx = tableData2.value.findIndex(item => item.rowid == activeRow.value.rowid);
|
|
300440
|
+
tableData2.value.splice(idx, 1);
|
|
300441
|
+
} else if (level == 3) {
|
|
300442
|
+
if (slots.cusComp) {} else {
|
|
300443
|
+
//内置表格处理删除操作
|
|
300444
|
+
const pData = findParentData(activeRow.value.parentId, level);
|
|
300445
|
+
tableVmRefs.value['cusListRef' + pData.idx].removeRow(activeRow.value);
|
|
300446
|
+
}
|
|
300447
|
+
}
|
|
300448
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reflash") {//刷新
|
|
300449
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
300450
|
+
if (level == 1) {
|
|
300451
|
+
if ('queryParams' in data[0].MSG) {
|
|
300452
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
300453
|
+
}
|
|
300454
|
+
|
|
300455
|
+
props.initPageEvent();
|
|
300456
|
+
return;
|
|
300457
|
+
} //重载父级
|
|
300458
|
+
|
|
300459
|
+
|
|
300460
|
+
const {
|
|
300461
|
+
row
|
|
300462
|
+
} = findParentData(activeRow.value.parentId, level);
|
|
300463
|
+
|
|
300464
|
+
if (level == 2) {
|
|
300465
|
+
cardClick(row);
|
|
300466
|
+
} else if (level == 3) {
|
|
300467
|
+
loadListData_req(row);
|
|
300468
|
+
}
|
|
300469
|
+
} else if (obl != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
300470
|
+
//重新查询
|
|
300471
|
+
if ('queryParams' in data[0].MSG) {
|
|
300472
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
300473
|
+
}
|
|
300474
|
+
|
|
300475
|
+
props.initPageEvent();
|
|
300476
|
+
}
|
|
300477
|
+
} else {
|
|
300478
|
+
if (level == 1) {
|
|
300479
|
+
cardClick(activeRow.value);
|
|
300480
|
+
} else if (level == 2) {
|
|
300481
|
+
loadListData_req(activeRow.value);
|
|
300482
|
+
}
|
|
300483
|
+
}
|
|
300484
|
+
|
|
300485
|
+
return true;
|
|
300486
|
+
} else {
|
|
300487
|
+
if (tag == 'exec') {
|
|
300488
|
+
const {
|
|
300489
|
+
cusItem
|
|
300490
|
+
} = otherParams;
|
|
300491
|
+
|
|
300492
|
+
if (cusItem.Pages.length !== 0) {
|
|
300493
|
+
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
300494
|
+
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
300495
|
+
|
|
300496
|
+
if (isEmpty) {
|
|
300497
|
+
cusItem.display = !cusItem.display;
|
|
300498
|
+
}
|
|
300499
|
+
}
|
|
300500
|
+
}
|
|
300501
|
+
}
|
|
300502
|
+
|
|
300503
|
+
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
300504
|
+
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
300505
|
+
return false;
|
|
300506
|
+
}
|
|
300507
|
+
} //连接websocket
|
|
300508
|
+
|
|
300509
|
+
|
|
300510
|
+
let wsPath;
|
|
300511
|
+
|
|
300512
|
+
if (location.protocol == "http:") {
|
|
300513
|
+
wsPath = `ws://${location.host}`;
|
|
300514
|
+
} else if (location.protocol == "https:") {
|
|
300515
|
+
wsPath = `wss://${location.host}`;
|
|
300516
|
+
}
|
|
300517
|
+
|
|
300518
|
+
function connectionWS(filed, path, row) {
|
|
300519
|
+
const filedAry = filed.split(",");
|
|
300520
|
+
const ws = new WebSocket(wsPath + path);
|
|
300521
|
+
|
|
300522
|
+
ws.onopen = () => {
|
|
300523
|
+
console.log("ws ok");
|
|
300524
|
+
};
|
|
300525
|
+
|
|
300526
|
+
ws.onmessage = e => {
|
|
300527
|
+
const aData = JSON.parse(e.data);
|
|
300528
|
+
|
|
300529
|
+
if (aData.Restlt != "0") {
|
|
300530
|
+
filedAry.forEach(item => {
|
|
300531
|
+
row[item] = aData[item];
|
|
300532
|
+
});
|
|
300533
|
+
} else {
|
|
300534
|
+
ws.close();
|
|
300535
|
+
}
|
|
300536
|
+
|
|
300537
|
+
console.log("ws data", JSON.parse(e.data));
|
|
300538
|
+
};
|
|
300539
|
+
|
|
300540
|
+
ws.onclose = () => {
|
|
300541
|
+
console.log("ws close");
|
|
300542
|
+
};
|
|
300543
|
+
|
|
300544
|
+
ws.onerror = () => {
|
|
300545
|
+
ElMessage.warning("ws连接失败");
|
|
300546
|
+
};
|
|
300547
|
+
} //判断是否对象
|
|
300548
|
+
|
|
300549
|
+
|
|
300550
|
+
function isObject(value) {
|
|
300551
|
+
return Object.prototype.toString.call(value) === '[object Object]';
|
|
300552
|
+
} //按钮事件监听
|
|
300553
|
+
|
|
300554
|
+
|
|
300555
|
+
function handlerColClick(funcode, row, level, idx) {
|
|
300556
|
+
activeRow.value = row;
|
|
300557
|
+
sessionStorage.setItem('active_row', JSON.stringify(row));
|
|
300558
|
+
activeRow.value.$level = level;
|
|
300559
|
+
activeRow.value.$idx = idx; //处理内部刷新
|
|
300560
|
+
|
|
300561
|
+
if (funcode === "reflash") {
|
|
300562
|
+
if (level == 1) {
|
|
300563
|
+
cardClick(row);
|
|
300564
|
+
} else if (level == 2) {
|
|
300565
|
+
loadListData_req(row);
|
|
300566
|
+
}
|
|
300567
|
+
|
|
300568
|
+
return;
|
|
300569
|
+
} //处理下载按钮
|
|
300570
|
+
|
|
300571
|
+
|
|
300572
|
+
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
300573
|
+
operFunc.download_handler(row);
|
|
300574
|
+
return;
|
|
300575
|
+
} //处理其余表单
|
|
300576
|
+
|
|
300577
|
+
|
|
300578
|
+
formList.value.forEach(item => {
|
|
300579
|
+
if (item.funcode === funcode) {
|
|
300580
|
+
forms_item.value = item;
|
|
300581
|
+
formsItemCopy.value = deepCopy(item);
|
|
300582
|
+
const type = item.oprtype;
|
|
300583
|
+
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
300584
|
+
Object.keys(subItem.model).forEach(item => {
|
|
300585
|
+
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
300586
|
+
|
|
300587
|
+
if (![null, undefined].includes(activeRow.value[item])) {
|
|
300588
|
+
if (activeConfig && activeConfig.type == "iNumber") {
|
|
300589
|
+
subItem.model[item] = Number(activeRow.value[item]);
|
|
300590
|
+
} else {
|
|
300591
|
+
subItem.model[item] = activeRow.value[item];
|
|
300592
|
+
}
|
|
300593
|
+
}
|
|
300594
|
+
|
|
300595
|
+
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
300596
|
+
activeConfig.options = [{
|
|
300597
|
+
label: subItem.model[activeConfig.nameKey],
|
|
300598
|
+
value: subItem.model[activeConfig.nameKey]
|
|
300599
|
+
}];
|
|
300600
|
+
}
|
|
300601
|
+
});
|
|
300602
|
+
return subItem.model;
|
|
300603
|
+
});
|
|
300604
|
+
model_all.value = Object.assign({}, ...(tempAry || {}));
|
|
300605
|
+
|
|
300606
|
+
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
300607
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
300608
|
+
operFunc[type + "_handler"](path, item, level);
|
|
300609
|
+
} else {
|
|
300610
|
+
item.display = !item.display;
|
|
300611
|
+
}
|
|
300612
|
+
}
|
|
300613
|
+
});
|
|
300614
|
+
} // 提交表单数据
|
|
300615
|
+
|
|
300616
|
+
|
|
300617
|
+
const formSubmit = ({
|
|
300618
|
+
form,
|
|
300619
|
+
pageData
|
|
300620
|
+
}) => {
|
|
300621
|
+
const type = form.oprtype;
|
|
300622
|
+
_pageData.value = pageData;
|
|
300623
|
+
|
|
300624
|
+
if (!forms_item) {
|
|
300625
|
+
console.log("forms_item 不存在");
|
|
300626
|
+
return;
|
|
300627
|
+
}
|
|
300628
|
+
|
|
300629
|
+
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
300630
|
+
}; //监听第一层数据变化
|
|
300631
|
+
|
|
300632
|
+
|
|
300633
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => tableData.value, newVal => {
|
|
300634
|
+
retjson_2.value = null;
|
|
300635
|
+
});
|
|
300636
|
+
jtMessage.off("step_submit");
|
|
300637
|
+
jtMessage.on("step_submit", params => formSubmit(params));
|
|
300638
|
+
return {
|
|
300639
|
+
tableData,
|
|
300640
|
+
retjson,
|
|
300641
|
+
retjson_2,
|
|
300642
|
+
tableData_2,
|
|
300643
|
+
loading_2,
|
|
300644
|
+
cardClick3,
|
|
300645
|
+
isTooltip,
|
|
300646
|
+
innerDivWidth,
|
|
300647
|
+
level_2_rowid,
|
|
300648
|
+
isShowTooltip,
|
|
300649
|
+
formList,
|
|
300650
|
+
cardClick,
|
|
300651
|
+
handlerConfig,
|
|
300652
|
+
handlerColClick,
|
|
300653
|
+
setRef,
|
|
300654
|
+
customEvents,
|
|
300655
|
+
loadListData
|
|
300656
|
+
};
|
|
300657
|
+
}
|
|
300658
|
+
;// 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
300659
|
/* unplugin-vue-components disabled */
|
|
300050
300660
|
|
|
300051
300661
|
|
|
300052
300662
|
|
|
300053
300663
|
|
|
300054
300664
|
|
|
300055
|
-
const btn_rendervue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-
|
|
300665
|
+
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
300666
|
|
|
300057
300667
|
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
300668
|
class: "jtIcon icon03 el-icon--right",
|
|
@@ -300204,25 +300814,64 @@ const btn_rendervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/btn_
|
|
|
300204
300814
|
}
|
|
300205
300815
|
|
|
300206
300816
|
});
|
|
300207
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300817
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue?vue&type=script&setup=true&lang=js
|
|
300208
300818
|
/* 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/
|
|
300819
|
+
;// 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
300820
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
300211
300821
|
|
|
300212
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300822
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue?vue&type=style&index=0&id=27907834&lang=scss&scoped=true
|
|
300213
300823
|
/* unplugin-vue-components disabled */
|
|
300214
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/
|
|
300824
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/btn-render.vue
|
|
300215
300825
|
/* unplugin-vue-components disabled */
|
|
300216
300826
|
|
|
300217
300827
|
|
|
300218
300828
|
;
|
|
300219
300829
|
|
|
300220
300830
|
|
|
300221
|
-
const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
300831
|
+
const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_rendervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-27907834"]])
|
|
300222
300832
|
|
|
300223
300833
|
/* harmony default export */ var btn_render = (btn_render_exports_);
|
|
300834
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-props.js
|
|
300835
|
+
/*
|
|
300836
|
+
* @Author: leevan
|
|
300837
|
+
* @Date: 2025-02-28 09:45:24
|
|
300838
|
+
* @LastEditTime: 2025-02-28 14:48:03
|
|
300839
|
+
* @LastEditors: leevan
|
|
300840
|
+
* @FilePath: /jtui3.0/packages/manage-tree-table/components/mtt-panel-props.js
|
|
300841
|
+
*/
|
|
300842
|
+
/* harmony default export */ var mtt_panel_props = ({
|
|
300843
|
+
tableData: Array,
|
|
300844
|
+
path: String,
|
|
300845
|
+
axios: Function,
|
|
300846
|
+
compPath: String,
|
|
300847
|
+
cusBoxHeight: {
|
|
300848
|
+
type: [Number, String],
|
|
300849
|
+
default: 200
|
|
300850
|
+
},
|
|
300851
|
+
//第三层清单内容的高度配置
|
|
300852
|
+
btnNumLeft: {
|
|
300853
|
+
type: [Number, String],
|
|
300854
|
+
default: 1
|
|
300855
|
+
},
|
|
300856
|
+
//右侧按钮数量配置
|
|
300857
|
+
btnNumRight: {
|
|
300858
|
+
type: [Number, String],
|
|
300859
|
+
default: 1
|
|
300860
|
+
},
|
|
300861
|
+
//右侧按钮数量配置
|
|
300862
|
+
buttonWidth: [Number, String],
|
|
300863
|
+
//第三层表格操作列宽度
|
|
300864
|
+
accordion: {
|
|
300865
|
+
type: Boolean,
|
|
300866
|
+
default: true
|
|
300867
|
+
},
|
|
300868
|
+
//第三层是否手风琴模式
|
|
300869
|
+
initPageEvent: Function,
|
|
300870
|
+
headerHeight: {
|
|
300871
|
+
type: [Number, String]
|
|
300872
|
+
}
|
|
300873
|
+
});
|
|
300224
300874
|
;// 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
300875
|
/* unplugin-vue-components disabled */
|
|
300227
300876
|
|
|
300228
300877
|
|
|
@@ -300234,8 +300883,7 @@ const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_ren
|
|
|
300234
300883
|
|
|
300235
300884
|
|
|
300236
300885
|
|
|
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);
|
|
300886
|
+
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
300887
|
|
|
300240
300888
|
const mtt_panelvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
300241
300889
|
class: "mtt-panel-box"
|
|
@@ -300316,557 +300964,32 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300316
300964
|
|
|
300317
300965
|
|
|
300318
300966
|
|
|
300319
|
-
|
|
300320
300967
|
/* harmony default export */ var mtt_panelvue_type_script_setup_true_lang_js = ({
|
|
300321
300968
|
__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
|
-
},
|
|
300969
|
+
props: mtt_panel_props,
|
|
300351
300970
|
|
|
300352
300971
|
setup(__props, {
|
|
300353
300972
|
expose
|
|
300354
300973
|
}) {
|
|
300355
300974
|
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));
|
|
300975
|
+
const {
|
|
300976
|
+
tableData,
|
|
300977
|
+
retjson,
|
|
300978
|
+
retjson_2,
|
|
300979
|
+
tableData_2,
|
|
300980
|
+
loading_2,
|
|
300981
|
+
isTooltip,
|
|
300982
|
+
innerDivWidth,
|
|
300983
|
+
level_2_rowid,
|
|
300984
|
+
isShowTooltip,
|
|
300985
|
+
formList,
|
|
300986
|
+
cardClick,
|
|
300987
|
+
setRef,
|
|
300988
|
+
handlerConfig,
|
|
300989
|
+
customEvents,
|
|
300990
|
+
loadListData,
|
|
300991
|
+
handlerColClick
|
|
300992
|
+
} = MttPanelHook(props);
|
|
300870
300993
|
expose({
|
|
300871
300994
|
cardClick
|
|
300872
300995
|
});
|
|
@@ -300902,30 +301025,30 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300902
301025
|
}, {
|
|
300903
301026
|
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
301027
|
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),
|
|
301028
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick)(item),
|
|
300906
301029
|
style: {
|
|
300907
301030
|
"margin-bottom": "10px"
|
|
300908
301031
|
},
|
|
300909
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(level_2_rowid
|
|
301032
|
+
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
301033
|
key: index
|
|
300911
301034
|
}, {
|
|
300912
301035
|
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
301036
|
class: "box-item",
|
|
300914
301037
|
effect: "dark",
|
|
300915
301038
|
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
300916
|
-
visible: isTooltip
|
|
301039
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
300917
301040
|
placement: "top-start"
|
|
300918
301041
|
}, {
|
|
300919
301042
|
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
|
|
301043
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
301044
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
300922
301045
|
}, (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
301046
|
_: 2
|
|
300924
301047
|
}, 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:
|
|
301048
|
+
btnNum: _ctx.btnNumLeft,
|
|
300926
301049
|
row: item,
|
|
300927
301050
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
300928
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, index)
|
|
301051
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
300929
301052
|
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
300930
301053
|
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
301054
|
"label-width": "auto",
|
|
@@ -300956,15 +301079,14 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300956
301079
|
"padding": "12px",
|
|
300957
301080
|
"background": "#fff"
|
|
300958
301081
|
},
|
|
300959
|
-
|
|
300960
|
-
ref: mttMainRef
|
|
301082
|
+
ref: "mttMainRef"
|
|
300961
301083
|
}, {
|
|
300962
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [retjson_2
|
|
301084
|
+
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
301085
|
key: 0,
|
|
300964
301086
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
300965
|
-
width: innerDivWidth
|
|
301087
|
+
width: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(innerDivWidth)
|
|
300966
301088
|
})
|
|
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
|
|
301089
|
+
}, [((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
301090
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
300969
301091
|
style: {
|
|
300970
301092
|
"margin-bottom": "10px"
|
|
@@ -300974,29 +301096,29 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
300974
301096
|
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
301097
|
class: "box-item",
|
|
300976
301098
|
effect: "dark",
|
|
300977
|
-
content: item[retjson_2.
|
|
300978
|
-
visible: isTooltip
|
|
301099
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop],
|
|
301100
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
300979
301101
|
placement: "top-start"
|
|
300980
301102
|
}, {
|
|
300981
301103
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
300982
301104
|
class: "name",
|
|
300983
301105
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
300984
|
-
maxWidth: retjson_2.
|
|
301106
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
300985
301107
|
})
|
|
300986
301108
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
300987
301109
|
key: 0,
|
|
300988
301110
|
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"])
|
|
301111
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
300990
301112
|
}, 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.
|
|
301113
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301114
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301115
|
+
}, (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
301116
|
_: 2
|
|
300995
301117
|
}, 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
301118
|
"label-width": "auto",
|
|
300997
301119
|
inline: ""
|
|
300998
301120
|
}, {
|
|
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.
|
|
301121
|
+
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
301122
|
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
301123
|
key: index
|
|
301002
301124
|
}, [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 +301131,8 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301009
301131
|
}), 128))]),
|
|
301010
301132
|
_: 2
|
|
301011
301133
|
}, 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),
|
|
301134
|
+
btnNum: _ctx.btnNumRight,
|
|
301135
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
301014
301136
|
row: item,
|
|
301015
301137
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
301016
301138
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -301018,7 +301140,7 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301018
301140
|
key: 1,
|
|
301019
301141
|
class: "cus-list-box",
|
|
301020
301142
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
301021
|
-
height:
|
|
301143
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
301022
301144
|
})
|
|
301023
301145
|
}, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
301024
301146
|
key: 0,
|
|
@@ -301027,22 +301149,22 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301027
301149
|
key: 1,
|
|
301028
301150
|
id: `cusList${index}`,
|
|
301029
301151
|
ref_for: true,
|
|
301030
|
-
ref: el => setRef(el, index),
|
|
301152
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
301031
301153
|
data: [{
|
|
301032
301154
|
retjson: item?.retjson_3,
|
|
301033
301155
|
DataArray: item?.tableData_3
|
|
301034
301156
|
}],
|
|
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)]),
|
|
301157
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson_3),
|
|
301158
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301159
|
+
}, 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
301160
|
_: 2
|
|
301039
301161
|
}, 1024);
|
|
301040
|
-
}), 128)), tableData_2.
|
|
301162
|
+
}), 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
301163
|
"image-size": 200
|
|
301042
301164
|
}, {
|
|
301043
301165
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panelvue_type_script_setup_true_lang_js_hoisted_15]),
|
|
301044
301166
|
_: 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
|
|
301167
|
+
})])) : (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
301168
|
_: 3
|
|
301047
301169
|
}, 512)]),
|
|
301048
301170
|
_: 3
|
|
@@ -301051,17 +301173,17 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301051
301173
|
}, {
|
|
301052
301174
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panelvue_type_script_setup_true_lang_js_hoisted_18]),
|
|
301053
301175
|
_: 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
|
|
301176
|
+
})]))]), ((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
301177
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
301056
301178
|
key: form.funcode
|
|
301057
301179
|
}, [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
301180
|
key: 0,
|
|
301059
301181
|
form: form,
|
|
301060
|
-
axios:
|
|
301182
|
+
axios: _ctx.axios
|
|
301061
301183
|
}, 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
301184
|
key: 0,
|
|
301063
301185
|
form: form,
|
|
301064
|
-
axios:
|
|
301186
|
+
axios: _ctx.axios
|
|
301065
301187
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
301066
301188
|
}), 128))], 64);
|
|
301067
301189
|
};
|
|
@@ -301070,10 +301192,10 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301070
301192
|
});
|
|
301071
301193
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=script&setup=true&lang=js
|
|
301072
301194
|
/* 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=
|
|
301195
|
+
;// 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
301196
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
301075
301197
|
|
|
301076
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=
|
|
301198
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue?vue&type=style&index=0&id=5bc882de&lang=scss&scoped=true
|
|
301077
301199
|
/* unplugin-vue-components disabled */
|
|
301078
301200
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel/mtt-panel.vue
|
|
301079
301201
|
/* unplugin-vue-components disabled */
|
|
@@ -301082,214 +301204,13 @@ const mtt_panelvue_type_script_setup_true_lang_js_hoisted_20 = {
|
|
|
301082
301204
|
;
|
|
301083
301205
|
|
|
301084
301206
|
|
|
301085
|
-
const mtt_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panelvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301207
|
+
const mtt_panel_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panelvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-5bc882de"]])
|
|
301086
301208
|
|
|
301087
301209
|
/* 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
301210
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/header/style/css.mjs
|
|
301111
301211
|
|
|
301112
301212
|
|
|
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
301213
|
;// 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
301214
|
/* unplugin-vue-components disabled */
|
|
301294
301215
|
|
|
301295
301216
|
|
|
@@ -301301,8 +301222,7 @@ const mtt_panel_1_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default *
|
|
|
301301
301222
|
|
|
301302
301223
|
|
|
301303
301224
|
|
|
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);
|
|
301225
|
+
const mtt_panel_1vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-ca9e3492"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301306
301226
|
|
|
301307
301227
|
const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
301308
301228
|
class: "mtt-panel-box"
|
|
@@ -301316,7 +301236,7 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
|
301316
301236
|
const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_4 = ["onMouseover"];
|
|
301317
301237
|
const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_5 = {
|
|
301318
301238
|
style: {
|
|
301319
|
-
"padding": "12px"
|
|
301239
|
+
"padding": "3px 12px 0"
|
|
301320
301240
|
}
|
|
301321
301241
|
};
|
|
301322
301242
|
const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_6 = {
|
|
@@ -301377,557 +301297,36 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301377
301297
|
|
|
301378
301298
|
|
|
301379
301299
|
|
|
301380
|
-
|
|
301381
301300
|
/* harmony default export */ var mtt_panel_1vue_type_script_setup_true_lang_js = ({
|
|
301382
301301
|
__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
|
-
},
|
|
301302
|
+
props: mtt_panel_props,
|
|
301412
301303
|
|
|
301413
301304
|
setup(__props, {
|
|
301414
301305
|
expose
|
|
301415
301306
|
}) {
|
|
301416
301307
|
const props = __props;
|
|
301417
|
-
const
|
|
301418
|
-
|
|
301419
|
-
|
|
301420
|
-
|
|
301421
|
-
|
|
301422
|
-
|
|
301423
|
-
|
|
301424
|
-
|
|
301425
|
-
|
|
301426
|
-
|
|
301427
|
-
|
|
301428
|
-
|
|
301429
|
-
|
|
301430
|
-
|
|
301431
|
-
|
|
301432
|
-
|
|
301433
|
-
|
|
301434
|
-
|
|
301435
|
-
|
|
301436
|
-
|
|
301437
|
-
|
|
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));
|
|
301308
|
+
const {
|
|
301309
|
+
headerHeight
|
|
301310
|
+
} = props;
|
|
301311
|
+
console.log(headerHeight, 1111);
|
|
301312
|
+
const {
|
|
301313
|
+
tableData,
|
|
301314
|
+
retjson,
|
|
301315
|
+
retjson_2,
|
|
301316
|
+
tableData_2,
|
|
301317
|
+
loading_2,
|
|
301318
|
+
isTooltip,
|
|
301319
|
+
innerDivWidth,
|
|
301320
|
+
level_2_rowid,
|
|
301321
|
+
isShowTooltip,
|
|
301322
|
+
formList,
|
|
301323
|
+
cardClick,
|
|
301324
|
+
setRef,
|
|
301325
|
+
handlerConfig,
|
|
301326
|
+
customEvents,
|
|
301327
|
+
loadListData,
|
|
301328
|
+
handlerColClick
|
|
301329
|
+
} = MttPanelHook(props);
|
|
301931
301330
|
expose({
|
|
301932
301331
|
cardClick
|
|
301933
301332
|
});
|
|
@@ -301959,7 +301358,7 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301959
301358
|
}
|
|
301960
301359
|
}, {
|
|
301961
301360
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_header, {
|
|
301962
|
-
height:
|
|
301361
|
+
height: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(headerHeight)
|
|
301963
301362
|
}, {
|
|
301964
301363
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
301965
301364
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)([{
|
|
@@ -301967,13 +301366,13 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301967
301366
|
"display": "flex",
|
|
301968
301367
|
"overflow-x": "auto"
|
|
301969
301368
|
}, {
|
|
301970
|
-
height:
|
|
301369
|
+
height: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(headerHeight) + 'px'
|
|
301971
301370
|
}])
|
|
301972
301371
|
}, [((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
301372
|
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
|
|
301373
|
+
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
301374
|
key: index,
|
|
301976
|
-
onClick: $event => cardClick(item),
|
|
301375
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick)(item),
|
|
301977
301376
|
style: {
|
|
301978
301377
|
"width": "300px",
|
|
301979
301378
|
"margin-right": "10px",
|
|
@@ -301984,19 +301383,19 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
301984
301383
|
class: "box-item",
|
|
301985
301384
|
effect: "dark",
|
|
301986
301385
|
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
301987
|
-
visible: isTooltip
|
|
301386
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
301988
301387
|
placement: "top-start"
|
|
301989
301388
|
}, {
|
|
301990
301389
|
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
|
|
301390
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
301391
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301993
301392
|
}, (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
301393
|
_: 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:
|
|
301394
|
+
}, 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, {
|
|
301395
|
+
btnNum: _ctx.btnNumLeft,
|
|
301997
301396
|
row: item,
|
|
301998
301397
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
301999
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, index)
|
|
301398
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
302000
301399
|
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
302001
301400
|
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
301401
|
"label-width": "auto",
|
|
@@ -302027,15 +301426,14 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302027
301426
|
"padding": "12px",
|
|
302028
301427
|
"background": "#fff"
|
|
302029
301428
|
},
|
|
302030
|
-
|
|
302031
|
-
ref: mttMainRef
|
|
301429
|
+
ref: "mttMainRef"
|
|
302032
301430
|
}, {
|
|
302033
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [retjson_2
|
|
301431
|
+
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
301432
|
key: 0,
|
|
302035
301433
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302036
|
-
width: innerDivWidth
|
|
301434
|
+
width: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(innerDivWidth)
|
|
302037
301435
|
})
|
|
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
|
|
301436
|
+
}, [((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
301437
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
302040
301438
|
style: {
|
|
302041
301439
|
"margin-bottom": "10px"
|
|
@@ -302045,29 +301443,29 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302045
301443
|
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
301444
|
class: "box-item",
|
|
302047
301445
|
effect: "dark",
|
|
302048
|
-
content: item[retjson_2.
|
|
302049
|
-
visible: isTooltip
|
|
301446
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].prop],
|
|
301447
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
302050
301448
|
placement: "top-start"
|
|
302051
301449
|
}, {
|
|
302052
301450
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
302053
301451
|
class: "name",
|
|
302054
301452
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302055
|
-
maxWidth: retjson_2.
|
|
301453
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
302056
301454
|
})
|
|
302057
301455
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
302058
301456
|
key: 0,
|
|
302059
301457
|
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"])
|
|
301458
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
302061
301459
|
}, 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.
|
|
301460
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301461
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301462
|
+
}, (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
301463
|
_: 2
|
|
302066
301464
|
}, 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
301465
|
"label-width": "auto",
|
|
302068
301466
|
inline: ""
|
|
302069
301467
|
}, {
|
|
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.
|
|
301468
|
+
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
301469
|
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
301470
|
key: index
|
|
302073
301471
|
}, [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 +301477,9 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302079
301477
|
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
302080
301478
|
}), 128))]),
|
|
302081
301479
|
_: 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),
|
|
301480
|
+
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301481
|
+
btnNum: _ctx.btnNumRight,
|
|
301482
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
302085
301483
|
row: item,
|
|
302086
301484
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
302087
301485
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -302089,7 +301487,7 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302089
301487
|
key: 1,
|
|
302090
301488
|
class: "cus-list-box",
|
|
302091
301489
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
302092
|
-
height:
|
|
301490
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
302093
301491
|
})
|
|
302094
301492
|
}, [_ctx.$slots.cusComp ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
302095
301493
|
key: 0,
|
|
@@ -302098,22 +301496,22 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302098
301496
|
key: 1,
|
|
302099
301497
|
id: `cusList${index}`,
|
|
302100
301498
|
ref_for: true,
|
|
302101
|
-
ref: el => setRef(el, index),
|
|
301499
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
302102
301500
|
data: [{
|
|
302103
301501
|
retjson: item?.retjson_3,
|
|
302104
301502
|
DataArray: item?.tableData_3
|
|
302105
301503
|
}],
|
|
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)]),
|
|
301504
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson3),
|
|
301505
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301506
|
+
}, 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
301507
|
_: 2
|
|
302110
301508
|
}, 1024);
|
|
302111
|
-
}), 128)), tableData_2.
|
|
301509
|
+
}), 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
301510
|
"image-size": 200
|
|
302113
301511
|
}, {
|
|
302114
301512
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_14]),
|
|
302115
301513
|
_: 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
|
|
301514
|
+
})])) : (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
301515
|
_: 3
|
|
302118
301516
|
}, 512)]),
|
|
302119
301517
|
_: 3
|
|
@@ -302122,17 +301520,17 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302122
301520
|
}, {
|
|
302123
301521
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_17]),
|
|
302124
301522
|
_: 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
|
|
301523
|
+
})]))]), ((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
301524
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302127
301525
|
key: form.funcode
|
|
302128
301526
|
}, [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
301527
|
key: 0,
|
|
302130
301528
|
form: form,
|
|
302131
|
-
axios:
|
|
301529
|
+
axios: _ctx.axios
|
|
302132
301530
|
}, 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
301531
|
key: 0,
|
|
302134
301532
|
form: form,
|
|
302135
|
-
axios:
|
|
301533
|
+
axios: _ctx.axios
|
|
302136
301534
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
302137
301535
|
}), 128))], 64);
|
|
302138
301536
|
};
|
|
@@ -302141,10 +301539,10 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302141
301539
|
});
|
|
302142
301540
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=script&setup=true&lang=js
|
|
302143
301541
|
/* 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=
|
|
301542
|
+
;// 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=ca9e3492&lang=scss&scoped=true
|
|
302145
301543
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
302146
301544
|
|
|
302147
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=
|
|
301545
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue?vue&type=style&index=0&id=ca9e3492&lang=scss&scoped=true
|
|
302148
301546
|
/* unplugin-vue-components disabled */
|
|
302149
301547
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-1/mtt-panel-1.vue
|
|
302150
301548
|
/* unplugin-vue-components disabled */
|
|
@@ -302153,187 +301551,10 @@ const mtt_panel_1vue_type_script_setup_true_lang_js_hoisted_19 = {
|
|
|
302153
301551
|
;
|
|
302154
301552
|
|
|
302155
301553
|
|
|
302156
|
-
const mtt_panel_1_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_1vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301554
|
+
const mtt_panel_1_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_1vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-ca9e3492"]])
|
|
302157
301555
|
|
|
302158
301556
|
/* 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
301557
|
;// 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
301558
|
/* unplugin-vue-components disabled */
|
|
302338
301559
|
|
|
302339
301560
|
|
|
@@ -302342,8 +301563,7 @@ const mtt_panel_2_btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default *
|
|
|
302342
301563
|
|
|
302343
301564
|
|
|
302344
301565
|
|
|
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);
|
|
301566
|
+
const mtt_panel_2vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-0bc73b72"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
302347
301567
|
|
|
302348
301568
|
const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
302349
301569
|
class: "mtt-panel-box"
|
|
@@ -302408,557 +301628,29 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
302408
301628
|
|
|
302409
301629
|
|
|
302410
301630
|
|
|
302411
|
-
|
|
302412
301631
|
/* harmony default export */ var mtt_panel_2vue_type_script_setup_true_lang_js = ({
|
|
302413
301632
|
__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
|
-
},
|
|
301633
|
+
props: mtt_panel_props,
|
|
302443
301634
|
|
|
302444
301635
|
setup(__props, {
|
|
302445
301636
|
expose
|
|
302446
301637
|
}) {
|
|
302447
301638
|
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));
|
|
301639
|
+
const {
|
|
301640
|
+
tableData,
|
|
301641
|
+
retjson,
|
|
301642
|
+
retjson_2,
|
|
301643
|
+
cardClick3,
|
|
301644
|
+
isTooltip,
|
|
301645
|
+
isShowTooltip,
|
|
301646
|
+
formList,
|
|
301647
|
+
cardClick,
|
|
301648
|
+
setRef,
|
|
301649
|
+
handlerConfig,
|
|
301650
|
+
customEvents,
|
|
301651
|
+
loadListData,
|
|
301652
|
+
handlerColClick
|
|
301653
|
+
} = MttPanelHook(props);
|
|
302962
301654
|
expose({
|
|
302963
301655
|
cardClick
|
|
302964
301656
|
});
|
|
@@ -302989,7 +301681,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
302989
301681
|
"expand-config": {
|
|
302990
301682
|
lazy: true,
|
|
302991
301683
|
accordion: true,
|
|
302992
|
-
loadMethod:
|
|
301684
|
+
loadMethod: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick3)
|
|
302993
301685
|
}
|
|
302994
301686
|
}, {
|
|
302995
301687
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_column, {
|
|
@@ -303009,21 +301701,21 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303009
301701
|
class: "box-item",
|
|
303010
301702
|
effect: "dark",
|
|
303011
301703
|
content: item[row.retjson_2.header[0].prop],
|
|
303012
|
-
visible: isTooltip
|
|
301704
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && _ctx.tooltipId === item.rowid,
|
|
303013
301705
|
placement: "top-start"
|
|
303014
301706
|
}, {
|
|
303015
301707
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
303016
301708
|
class: "name",
|
|
303017
301709
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
303018
|
-
maxWidth: retjson_2.
|
|
301710
|
+
maxWidth: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson_2).header[0].width + 'px'
|
|
303019
301711
|
})
|
|
303020
301712
|
}, [item.path != '' && item.path != '-' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", {
|
|
303021
301713
|
key: 0,
|
|
303022
301714
|
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"])
|
|
301715
|
+
onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(loadListData)(item), ["stop"])
|
|
303024
301716
|
}, 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
|
|
301717
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item, 22),
|
|
301718
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
303027
301719
|
}, (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
301720
|
_: 2
|
|
303029
301721
|
}, 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 +301734,9 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303042
301734
|
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
303043
301735
|
}), 128))]),
|
|
303044
301736
|
_: 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),
|
|
301737
|
+
}, 1024)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301738
|
+
btnNum: _ctx.btnNumRight,
|
|
301739
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 2, index),
|
|
303048
301740
|
row: item,
|
|
303049
301741
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
303050
301742
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])])])]),
|
|
@@ -303052,7 +301744,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303052
301744
|
key: 1,
|
|
303053
301745
|
class: "cus-list-box",
|
|
303054
301746
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
303055
|
-
height:
|
|
301747
|
+
height: _ctx.cusBoxHeight == 'auto' ? 'auto' : _ctx.cusBoxHeight + 'px'
|
|
303056
301748
|
})
|
|
303057
301749
|
}, [(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
301750
|
key: 0,
|
|
@@ -303061,14 +301753,14 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303061
301753
|
key: 1,
|
|
303062
301754
|
id: `cusList${index}`,
|
|
303063
301755
|
ref_for: true,
|
|
303064
|
-
ref: el => setRef(el, index),
|
|
301756
|
+
ref: el => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(setRef)(el, index),
|
|
303065
301757
|
data: [{
|
|
303066
301758
|
retjson: item?.retjson_3,
|
|
303067
301759
|
DataArray: item?.tableData_3
|
|
303068
301760
|
}],
|
|
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)]),
|
|
301761
|
+
handlerConfig: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerConfig)(item?.retjson_3),
|
|
301762
|
+
onCustomEvents: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(customEvents)
|
|
301763
|
+
}, 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
301764
|
_: 2
|
|
303073
301765
|
}, 1024);
|
|
303074
301766
|
}), 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 +301790,9 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303098
301790
|
}, {
|
|
303099
301791
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({
|
|
303100
301792
|
row
|
|
303101
|
-
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(
|
|
303102
|
-
btnNum:
|
|
303103
|
-
onHandlerColClick: (funcode, row) => handlerColClick(funcode, row, 1, _ctx.index),
|
|
301793
|
+
}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(btn_render, {
|
|
301794
|
+
btnNum: _ctx.btnNumRight,
|
|
301795
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, _ctx.index),
|
|
303104
301796
|
row: row,
|
|
303105
301797
|
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0]
|
|
303106
301798
|
}, null, 8, ["btnNum", "onHandlerColClick", "row", "data"])]),
|
|
@@ -303112,17 +301804,17 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303112
301804
|
}, {
|
|
303113
301805
|
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_13]),
|
|
303114
301806
|
_: 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
|
|
301807
|
+
})]))]), ((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
301808
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
303117
301809
|
key: form.funcode
|
|
303118
301810
|
}, [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
301811
|
key: 0,
|
|
303120
301812
|
form: form,
|
|
303121
|
-
axios:
|
|
301813
|
+
axios: _ctx.axios
|
|
303122
301814
|
}, 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
301815
|
key: 0,
|
|
303124
301816
|
form: form,
|
|
303125
|
-
axios:
|
|
301817
|
+
axios: _ctx.axios
|
|
303126
301818
|
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
303127
301819
|
}), 128))], 64);
|
|
303128
301820
|
};
|
|
@@ -303131,10 +301823,10 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303131
301823
|
});
|
|
303132
301824
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=script&setup=true&lang=js
|
|
303133
301825
|
/* 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=
|
|
301826
|
+
;// 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=0bc73b72&lang=scss&scoped=true
|
|
303135
301827
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
303136
301828
|
|
|
303137
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=
|
|
301829
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue?vue&type=style&index=0&id=0bc73b72&lang=scss&scoped=true
|
|
303138
301830
|
/* unplugin-vue-components disabled */
|
|
303139
301831
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-2/mtt-panel-2.vue
|
|
303140
301832
|
/* unplugin-vue-components disabled */
|
|
@@ -303143,7 +301835,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
303143
301835
|
;
|
|
303144
301836
|
|
|
303145
301837
|
|
|
303146
|
-
const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
301838
|
+
const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-0bc73b72"]])
|
|
303147
301839
|
|
|
303148
301840
|
/* harmony default export */ var mtt_panel_2 = (mtt_panel_2_exports_);
|
|
303149
301841
|
;// 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
|
|
@@ -303159,7 +301851,7 @@ const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_pa
|
|
|
303159
301851
|
|
|
303160
301852
|
|
|
303161
301853
|
|
|
303162
|
-
const manage_tree_tablevue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-
|
|
301854
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-1a75c35a"), n = n(), _popScopeId(), n);
|
|
303163
301855
|
|
|
303164
301856
|
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
303165
301857
|
class: "manager-tree-table-demo",
|
|
@@ -303242,7 +301934,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303242
301934
|
//第三层是否手风琴模式
|
|
303243
301935
|
headerHeight: {
|
|
303244
301936
|
type: [Number, String],
|
|
303245
|
-
default:
|
|
301937
|
+
default: 80
|
|
303246
301938
|
} //模式2第一层高度
|
|
303247
301939
|
|
|
303248
301940
|
},
|
|
@@ -303608,10 +302300,10 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303608
302300
|
}));
|
|
303609
302301
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=script&setup=true&lang=js
|
|
303610
302302
|
/* unplugin-vue-components disabled */
|
|
303611
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=
|
|
302303
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=1a75c35a&scoped=true&lang=scss
|
|
303612
302304
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
303613
302305
|
|
|
303614
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=
|
|
302306
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=1a75c35a&scoped=true&lang=scss
|
|
303615
302307
|
/* unplugin-vue-components disabled */
|
|
303616
302308
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue
|
|
303617
302309
|
/* unplugin-vue-components disabled */
|
|
@@ -303620,7 +302312,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
303620
302312
|
;
|
|
303621
302313
|
|
|
303622
302314
|
|
|
303623
|
-
const manage_tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(manage_tree_tablevue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
302315
|
+
const manage_tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(manage_tree_tablevue_type_script_setup_true_lang_js, [['__scopeId',"data-v-1a75c35a"]])
|
|
303624
302316
|
|
|
303625
302317
|
/* harmony default export */ var manage_tree_table = (manage_tree_table_exports_);
|
|
303626
302318
|
;// CONCATENATED MODULE: ./packages/index.js
|