jtui3.0 1.1.38 → 1.1.39
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 +1781 -211
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.js +1781 -211
- package/lib/jtui3.0.umd.min.js +2 -2
- package/package.json +1 -1
- /package/{README.md → readme.md} +0 -0
package/lib/jtui3.0.common.js
CHANGED
|
@@ -298711,8 +298711,10 @@ const jt_page_manager_tree_tablevue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
|
298711
298711
|
|
|
298712
298712
|
|
|
298713
298713
|
|
|
298714
|
-
|
|
298715
|
-
|
|
298714
|
+
const jt_page_manager_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
298715
|
+
name: 'page-manager-tree-table'
|
|
298716
|
+
};
|
|
298717
|
+
/* harmony default export */ var jt_page_manager_tree_tablevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(jt_page_manager_tree_tablevue_type_script_setup_true_lang_js_default_, {
|
|
298716
298718
|
props: {
|
|
298717
298719
|
tableData: Array,
|
|
298718
298720
|
path: String,
|
|
@@ -299322,7 +299324,7 @@ const jt_page_manager_tree_tablevue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
|
299322
299324
|
};
|
|
299323
299325
|
}
|
|
299324
299326
|
|
|
299325
|
-
});
|
|
299327
|
+
}));
|
|
299326
299328
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/jt-page-manager-tree-table/index.vue?vue&type=script&setup=true&lang=js
|
|
299327
299329
|
/* unplugin-vue-components disabled */
|
|
299328
299330
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/jt-page-manager-tree-table/index.vue
|
|
@@ -299332,6 +299334,23 @@ const jt_page_manager_tree_tablevue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
|
299332
299334
|
const jt_page_manager_tree_table_exports_ = jt_page_manager_tree_tablevue_type_script_setup_true_lang_js;
|
|
299333
299335
|
|
|
299334
299336
|
/* harmony default export */ var jt_page_manager_tree_table = (jt_page_manager_tree_table_exports_);
|
|
299337
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/jt-page-manager-tree-table/index.js
|
|
299338
|
+
/*
|
|
299339
|
+
* @Author: leevan
|
|
299340
|
+
* @Date: 2024-12-16 10:50:22
|
|
299341
|
+
* @LastEditTime: 2024-12-16 10:50:25
|
|
299342
|
+
* @LastEditors: leevan
|
|
299343
|
+
* @FilePath: /jtui3.0/packages/manage-tree-table/index.js
|
|
299344
|
+
*/
|
|
299345
|
+
// 导入组件,组件必须声明 name
|
|
299346
|
+
// 为组件提供 install 安装方法,供按需引入
|
|
299347
|
+
|
|
299348
|
+
jt_page_manager_tree_table.install = function (Vue) {
|
|
299349
|
+
Vue.component(jt_page_manager_tree_table.name, ManageTreeTable);
|
|
299350
|
+
}; // 导出组件
|
|
299351
|
+
|
|
299352
|
+
|
|
299353
|
+
/* harmony default export */ var components_jt_page_manager_tree_table = (jt_page_manager_tree_table);
|
|
299335
299354
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/container/src/container.mjs
|
|
299336
299355
|
|
|
299337
299356
|
|
|
@@ -299568,34 +299587,10 @@ const ElMain = withNoopInstall(Main);
|
|
|
299568
299587
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/aside/style/css.mjs
|
|
299569
299588
|
|
|
299570
299589
|
|
|
299571
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-badge.css
|
|
299572
|
-
// extracted by mini-css-extract-plugin
|
|
299573
|
-
|
|
299574
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/badge/style/css.mjs
|
|
299575
|
-
|
|
299576
|
-
|
|
299577
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-message.css
|
|
299578
|
-
// extracted by mini-css-extract-plugin
|
|
299579
|
-
|
|
299580
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/message/style/css.mjs
|
|
299581
|
-
|
|
299582
|
-
|
|
299583
|
-
|
|
299584
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-message-box.css
|
|
299585
|
-
// extracted by mini-css-extract-plugin
|
|
299586
|
-
|
|
299587
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/message-box/style/css.mjs
|
|
299588
|
-
|
|
299589
|
-
|
|
299590
|
-
|
|
299591
|
-
|
|
299592
|
-
|
|
299593
299590
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-hook.js
|
|
299594
299591
|
|
|
299595
299592
|
|
|
299596
299593
|
|
|
299597
|
-
|
|
299598
|
-
|
|
299599
299594
|
/*
|
|
299600
299595
|
* @Author: leevan
|
|
299601
299596
|
* @Date: 2025-02-28 09:22:19
|
|
@@ -299606,7 +299601,7 @@ const ElMain = withNoopInstall(Main);
|
|
|
299606
299601
|
|
|
299607
299602
|
|
|
299608
299603
|
|
|
299609
|
-
function MttPanelHook(props) {
|
|
299604
|
+
function MttPanelHook(props, isListen = true) {
|
|
299610
299605
|
const slots = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useSlots)(); // 第一层数据
|
|
299611
299606
|
|
|
299612
299607
|
const tableData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(props, 'tableData');
|
|
@@ -299615,7 +299610,12 @@ function MttPanelHook(props) {
|
|
|
299615
299610
|
const retjson_2 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
299616
299611
|
const tableData_2 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
299617
299612
|
const loading_2 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
299618
|
-
const level_2_rowid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
299613
|
+
const level_2_rowid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
|
|
299614
|
+
const pageData2 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([{
|
|
299615
|
+
retjson: {},
|
|
299616
|
+
DataArray: [],
|
|
299617
|
+
Result: ""
|
|
299618
|
+
}]); //tooltip控制
|
|
299619
299619
|
|
|
299620
299620
|
const isTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
299621
299621
|
const tooltipId = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0); //form组
|
|
@@ -299713,6 +299713,29 @@ function MttPanelHook(props) {
|
|
|
299713
299713
|
loadListData(item.row.tableData_2[0]);
|
|
299714
299714
|
item.row.loading_2 = false;
|
|
299715
299715
|
});
|
|
299716
|
+
} //版式5加载树表
|
|
299717
|
+
|
|
299718
|
+
|
|
299719
|
+
async function cardClick5(item) {
|
|
299720
|
+
let params = null;
|
|
299721
|
+
|
|
299722
|
+
if (item?.params) {
|
|
299723
|
+
params = item.params;
|
|
299724
|
+
} // const { data } = await props.axios.post(`${props.compPath}${item.path}`,params)
|
|
299725
|
+
// pageData2.value = data
|
|
299726
|
+
|
|
299727
|
+
|
|
299728
|
+
const {
|
|
299729
|
+
data
|
|
299730
|
+
} = await props.axios.post(`${props.compPath}ROOT`, {
|
|
299731
|
+
"radio": "person_work",
|
|
299732
|
+
"checkbox": "",
|
|
299733
|
+
"selectid": "",
|
|
299734
|
+
"stime": "Invalid Date",
|
|
299735
|
+
"etime": "Invalid Date",
|
|
299736
|
+
"keyword": ""
|
|
299737
|
+
});
|
|
299738
|
+
pageData2.value = data;
|
|
299716
299739
|
} //加载第三层数据
|
|
299717
299740
|
|
|
299718
299741
|
|
|
@@ -300274,8 +300297,11 @@ function MttPanelHook(props) {
|
|
|
300274
300297
|
return handlerCallBack(data, 3);
|
|
300275
300298
|
}
|
|
300276
300299
|
|
|
300277
|
-
|
|
300278
|
-
|
|
300300
|
+
if (isListen) {
|
|
300301
|
+
jtMessage.off("step_submit");
|
|
300302
|
+
jtMessage.on("step_submit", params => formSubmit(params));
|
|
300303
|
+
}
|
|
300304
|
+
|
|
300279
300305
|
return {
|
|
300280
300306
|
tableData,
|
|
300281
300307
|
retjson,
|
|
@@ -300283,6 +300309,7 @@ function MttPanelHook(props) {
|
|
|
300283
300309
|
tableData_2,
|
|
300284
300310
|
loading_2,
|
|
300285
300311
|
cardClick3,
|
|
300312
|
+
cardClick5,
|
|
300286
300313
|
isTooltip,
|
|
300287
300314
|
innerDivWidth,
|
|
300288
300315
|
level_2_rowid,
|
|
@@ -300297,7 +300324,8 @@ function MttPanelHook(props) {
|
|
|
300297
300324
|
customBtns,
|
|
300298
300325
|
cellRenderMethods,
|
|
300299
300326
|
loading,
|
|
300300
|
-
tooltipId
|
|
300327
|
+
tooltipId,
|
|
300328
|
+
pageData2
|
|
300301
300329
|
};
|
|
300302
300330
|
}
|
|
300303
300331
|
;// 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
|
|
@@ -300518,6 +300546,13 @@ const btn_render_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(btn_ren
|
|
|
300518
300546
|
queryConfig: {
|
|
300519
300547
|
type: Object,
|
|
300520
300548
|
default: () => ({})
|
|
300549
|
+
},
|
|
300550
|
+
isLastLoad: {
|
|
300551
|
+
type: Boolean,
|
|
300552
|
+
default: false
|
|
300553
|
+
},
|
|
300554
|
+
mode: {
|
|
300555
|
+
type: [String, Number]
|
|
300521
300556
|
}
|
|
300522
300557
|
});
|
|
300523
300558
|
;// 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
|
|
@@ -301500,7 +301535,7 @@ const mtt_panel_2vue_type_script_setup_true_lang_js_hoisted_15 = {
|
|
|
301500
301535
|
const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_2vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-305db8eb"]])
|
|
301501
301536
|
|
|
301502
301537
|
/* harmony default export */ var mtt_panel_2 = (mtt_panel_2_exports_);
|
|
301503
|
-
;// 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/
|
|
301538
|
+
;// 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-5/mtt-panel-5.vue?vue&type=script&setup=true&lang=js
|
|
301504
301539
|
/* unplugin-vue-components disabled */
|
|
301505
301540
|
|
|
301506
301541
|
|
|
@@ -301511,204 +301546,1666 @@ const mtt_panel_2_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_pa
|
|
|
301511
301546
|
|
|
301512
301547
|
|
|
301513
301548
|
|
|
301549
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-091952c2"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301514
301550
|
|
|
301515
|
-
|
|
301516
|
-
|
|
301517
|
-
const manage_tree_tablevue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-ec6df20c"), n = n(), _popScopeId(), n);
|
|
301518
|
-
|
|
301519
|
-
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
301520
|
-
class: "manager-tree-table-demo",
|
|
301521
|
-
"element-loading-background": "rgba(122, 122, 122, 0.8)",
|
|
301522
|
-
"element-loading-text": "加载中..."
|
|
301551
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
301552
|
+
class: "mtt-panel-box"
|
|
301523
301553
|
};
|
|
301524
|
-
const
|
|
301525
|
-
|
|
301526
|
-
class: "jt-page-manager-filter"
|
|
301554
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
301555
|
+
class: "card-header"
|
|
301527
301556
|
};
|
|
301528
|
-
const
|
|
301529
|
-
class: "
|
|
301557
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
301558
|
+
class: "name"
|
|
301530
301559
|
};
|
|
301531
|
-
const
|
|
301532
|
-
|
|
301560
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_4 = ["onMouseover"];
|
|
301561
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_5 = {
|
|
301533
301562
|
style: {
|
|
301534
|
-
"
|
|
301535
|
-
"white-space": "nowrap"
|
|
301563
|
+
"padding": "5px 5px 0"
|
|
301536
301564
|
}
|
|
301537
301565
|
};
|
|
301538
|
-
const
|
|
301539
|
-
|
|
301540
|
-
style: {
|
|
301541
|
-
"margin-right": "6px",
|
|
301542
|
-
"white-space": "nowrap"
|
|
301543
|
-
}
|
|
301566
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_6 = {
|
|
301567
|
+
class: "cell-item"
|
|
301544
301568
|
};
|
|
301545
|
-
const
|
|
301546
|
-
key:
|
|
301547
|
-
style: {
|
|
301548
|
-
"margin-right": "6px"
|
|
301549
|
-
}
|
|
301569
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_7 = {
|
|
301570
|
+
key: 1
|
|
301550
301571
|
};
|
|
301551
|
-
|
|
301552
|
-
|
|
301572
|
+
|
|
301573
|
+
const mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_8 = /*#__PURE__*/mtt_panel_5vue_type_script_setup_true_lang_js_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
301553
301574
|
style: {
|
|
301554
|
-
"
|
|
301555
|
-
"white-space": "nowrap"
|
|
301575
|
+
"font-size": "30px"
|
|
301556
301576
|
}
|
|
301557
|
-
};
|
|
301558
|
-
|
|
301559
|
-
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("查询");
|
|
301560
|
-
|
|
301561
|
-
|
|
301562
|
-
|
|
301563
|
-
|
|
301564
|
-
|
|
301577
|
+
}, "暂无数据", -1));
|
|
301565
301578
|
|
|
301566
301579
|
|
|
301567
301580
|
|
|
301568
301581
|
|
|
301569
301582
|
|
|
301583
|
+
/* harmony default export */ var mtt_panel_5vue_type_script_setup_true_lang_js = ({
|
|
301584
|
+
__name: 'mtt-panel-5',
|
|
301585
|
+
props: mtt_panel_props,
|
|
301570
301586
|
|
|
301571
|
-
|
|
301572
|
-
|
|
301573
|
-
}
|
|
301574
|
-
|
|
301575
|
-
|
|
301576
|
-
|
|
301577
|
-
|
|
301578
|
-
|
|
301579
|
-
|
|
301580
|
-
|
|
301581
|
-
|
|
301582
|
-
|
|
301583
|
-
|
|
301584
|
-
|
|
301585
|
-
|
|
301586
|
-
|
|
301587
|
-
},
|
|
301588
|
-
//右侧按钮数量配置
|
|
301589
|
-
btnNumRight: {
|
|
301590
|
-
type: [Number, String],
|
|
301591
|
-
default: 1
|
|
301592
|
-
},
|
|
301593
|
-
//右侧按钮数量配置
|
|
301594
|
-
accordion: {
|
|
301595
|
-
type: Boolean,
|
|
301596
|
-
default: true
|
|
301597
|
-
},
|
|
301598
|
-
//第三层是否手风琴模式
|
|
301599
|
-
headerHeight: {
|
|
301600
|
-
type: [Number, String],
|
|
301601
|
-
default: 80
|
|
301602
|
-
} //模式2第一层高度
|
|
301587
|
+
setup(__props, {
|
|
301588
|
+
expose
|
|
301589
|
+
}) {
|
|
301590
|
+
const props = __props;
|
|
301591
|
+
const {
|
|
301592
|
+
tableData,
|
|
301593
|
+
retjson,
|
|
301594
|
+
isTooltip,
|
|
301595
|
+
level_2_rowid,
|
|
301596
|
+
isShowTooltip,
|
|
301597
|
+
cardClick5,
|
|
301598
|
+
handlerColClick,
|
|
301599
|
+
customBtns,
|
|
301600
|
+
tooltipId,
|
|
301601
|
+
pageData2
|
|
301602
|
+
} = MttPanelHook(props);
|
|
301603
301603
|
|
|
301604
|
-
|
|
301604
|
+
function updateQueryParams() {}
|
|
301605
301605
|
|
|
301606
|
-
|
|
301607
|
-
|
|
301608
|
-
|
|
301609
|
-
retjson: {},
|
|
301610
|
-
DataArray: [],
|
|
301611
|
-
Result: ""
|
|
301612
|
-
}]);
|
|
301613
|
-
let path = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
301614
|
-
const mttpanelRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
301615
|
-
const isLoading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(true);
|
|
301616
|
-
const queryConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
301617
|
-
const queryParams = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
301618
|
-
radio: 'today',
|
|
301619
|
-
checkbox: [],
|
|
301620
|
-
selectid: '',
|
|
301621
|
-
stime: '',
|
|
301622
|
-
etime: '',
|
|
301623
|
-
keyword: ''
|
|
301606
|
+
expose({
|
|
301607
|
+
cardClick5,
|
|
301608
|
+
customBtns
|
|
301624
301609
|
});
|
|
301625
|
-
|
|
301626
|
-
|
|
301627
|
-
const button_width = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(500);
|
|
301628
|
-
const cusBtn = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
301610
|
+
return (_ctx, _cache) => {
|
|
301611
|
+
const _component_el_tooltip = ElTooltip;
|
|
301629
301612
|
|
|
301630
|
-
|
|
301631
|
-
try {
|
|
301632
|
-
isLoading.value = true;
|
|
301633
|
-
const tempQueryConfig = typeof props.config == 'string' ? JSON.parse(props.config) : props.config;
|
|
301634
|
-
queryConfig.value = Array.isArray(tempQueryConfig) ? tempQueryConfig[0] : props.config;
|
|
301635
|
-
Object.keys(queryParams).forEach(item => {
|
|
301636
|
-
if (queryConfig.value?.defaultValue && item in queryConfig.value.defaultValue) {
|
|
301637
|
-
queryParams[item] = queryConfig.value.defaultValue[item];
|
|
301638
|
-
}
|
|
301639
|
-
});
|
|
301640
|
-
path.value = props.compPath;
|
|
301641
|
-
button_width.value = props.buttonWidth;
|
|
301642
|
-
search();
|
|
301643
|
-
} catch {
|
|
301644
|
-
isLoading.value = false;
|
|
301645
|
-
}
|
|
301646
|
-
}
|
|
301613
|
+
const _component_el_form_item = ElFormItem;
|
|
301647
301614
|
|
|
301648
|
-
|
|
301649
|
-
if (queryParams.etime) {
|
|
301650
|
-
const nowDate = new Date(date).getTime();
|
|
301651
|
-
const endDate = new Date(queryParams.etime).getTime();
|
|
301652
|
-
return nowDate > endDate;
|
|
301653
|
-
} else {
|
|
301654
|
-
return false;
|
|
301655
|
-
}
|
|
301656
|
-
}
|
|
301615
|
+
const _component_el_form = ElForm;
|
|
301657
301616
|
|
|
301658
|
-
|
|
301659
|
-
if (queryParams.stime) {
|
|
301660
|
-
const nowDate = new Date(date).getTime() + 24 * 3600 * 1000;
|
|
301661
|
-
const endDate = new Date(queryParams.stime).getTime();
|
|
301662
|
-
return nowDate < endDate;
|
|
301663
|
-
} else {
|
|
301664
|
-
return false;
|
|
301665
|
-
}
|
|
301666
|
-
}
|
|
301617
|
+
const _component_el_card = ElCard;
|
|
301667
301618
|
|
|
301668
|
-
|
|
301669
|
-
cusBtn.value = queryConfig.value?.in_bottons || [];
|
|
301670
|
-
pageData.value = [{
|
|
301671
|
-
retjson: {},
|
|
301672
|
-
DataArray: [],
|
|
301673
|
-
Result: ""
|
|
301674
|
-
}];
|
|
301675
|
-
isLoading.value = true;
|
|
301676
|
-
const queryParmasClone = (0,lodash.cloneDeep)(queryParams);
|
|
301677
|
-
queryParmasClone.checkbox = Array.isArray(queryParmasClone.checkbox) ? queryParmasClone.checkbox.join(',') : queryParmasClone.checkbox;
|
|
301678
|
-
queryParmasClone.stime = dayjs_dayjs_min_default()(queryParmasClone.stime).format('YYYY-MM-DD HH:mm:ss');
|
|
301679
|
-
queryParmasClone.etime = dayjs_dayjs_min_default()(queryParmasClone.etime).format('YYYY-MM-DD HH:mm:ss');
|
|
301680
|
-
const {
|
|
301681
|
-
data
|
|
301682
|
-
} = await props.axios.post(`${path.value}ROOT`, queryParmasClone);
|
|
301683
|
-
pageData.value = data;
|
|
301619
|
+
const _component_el_aside = ElAside;
|
|
301684
301620
|
|
|
301685
|
-
|
|
301686
|
-
cusBtn.value.push(...pageData.value[0].radio_bottons);
|
|
301687
|
-
}
|
|
301621
|
+
const _component_el_main = ElMain;
|
|
301688
301622
|
|
|
301689
|
-
|
|
301690
|
-
isShow.value = true;
|
|
301691
|
-
jtMessage.emit('rootChange', pageData.value);
|
|
301692
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
301693
|
-
if (pageData.value[0].DataArray.length > 0 && (props.mode == 1 || props.mode == 2 || props.mode == 3)) {
|
|
301694
|
-
mttpanelRef.value.cardClick(pageData.value[0].DataArray[0]);
|
|
301695
|
-
}
|
|
301696
|
-
});
|
|
301697
|
-
});
|
|
301698
|
-
isLoading.value = false;
|
|
301699
|
-
}
|
|
301623
|
+
const _component_el_container = ElContainer;
|
|
301700
301624
|
|
|
301701
|
-
|
|
301702
|
-
|
|
301703
|
-
|
|
301704
|
-
|
|
301705
|
-
|
|
301706
|
-
|
|
301707
|
-
|
|
301708
|
-
|
|
301709
|
-
|
|
301710
|
-
|
|
301711
|
-
|
|
301625
|
+
const _component_el_empty = ElEmpty;
|
|
301626
|
+
|
|
301627
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)?.[0]?.DataArray.length ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_container, {
|
|
301628
|
+
key: 0,
|
|
301629
|
+
style: {
|
|
301630
|
+
"height": "100%"
|
|
301631
|
+
}
|
|
301632
|
+
}, {
|
|
301633
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_aside, {
|
|
301634
|
+
width: _ctx.queryConfig?.layConfig?.sideWidth ? _ctx.queryConfig?.layConfig?.sideWidth + 'px' : '350px'
|
|
301635
|
+
}, {
|
|
301636
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
301637
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)([{
|
|
301638
|
+
"padding": "12px"
|
|
301639
|
+
}, {
|
|
301640
|
+
width: _ctx.queryConfig?.layConfig?.sideWidth ? _ctx.queryConfig?.layConfig?.sideWidth - 5 + 'px' : '345px'
|
|
301641
|
+
}])
|
|
301642
|
+
}, [((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) => {
|
|
301643
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
301644
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick5)(item),
|
|
301645
|
+
style: {
|
|
301646
|
+
"margin-bottom": "10px"
|
|
301647
|
+
},
|
|
301648
|
+
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'),
|
|
301649
|
+
key: index
|
|
301650
|
+
}, {
|
|
301651
|
+
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
301652
|
+
class: "box-item",
|
|
301653
|
+
effect: "dark",
|
|
301654
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
301655
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tooltipId) === item.rowid,
|
|
301656
|
+
placement: "top-start"
|
|
301657
|
+
}, {
|
|
301658
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
301659
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
301660
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
301661
|
+
}, (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_5vue_type_script_setup_true_lang_js_hoisted_4)])]),
|
|
301662
|
+
_: 2
|
|
301663
|
+
}, 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, {
|
|
301664
|
+
btnNum: _ctx.btnNumLeft,
|
|
301665
|
+
row: item,
|
|
301666
|
+
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
301667
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
301668
|
+
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
301669
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
301670
|
+
"label-width": "auto",
|
|
301671
|
+
inline: "",
|
|
301672
|
+
style: {
|
|
301673
|
+
"max-width": "260px"
|
|
301674
|
+
}
|
|
301675
|
+
}, {
|
|
301676
|
+
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).header.slice(1), (child, index) => {
|
|
301677
|
+
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, {
|
|
301678
|
+
key: index
|
|
301679
|
+
}, [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, {
|
|
301680
|
+
key: 0
|
|
301681
|
+
}, {
|
|
301682
|
+
label: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(child.label) + ": ", 1)]),
|
|
301683
|
+
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[child.prop]), 1)]),
|
|
301684
|
+
_: 2
|
|
301685
|
+
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
301686
|
+
}), 128))]),
|
|
301687
|
+
_: 2
|
|
301688
|
+
}, 1024)])]),
|
|
301689
|
+
_: 2
|
|
301690
|
+
}, 1032, ["onClick", "class"]);
|
|
301691
|
+
}), 128))], 4)]),
|
|
301692
|
+
_: 1
|
|
301693
|
+
}, 8, ["width"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_main, {
|
|
301694
|
+
style: {
|
|
301695
|
+
"padding": "12px",
|
|
301696
|
+
"background": "#fff"
|
|
301697
|
+
},
|
|
301698
|
+
ref: "mttMainRef"
|
|
301699
|
+
}, {
|
|
301700
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData2)?.[0]?.DataArray?.length > 0 ? ((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)(components_jt_page_manager_tree_table), {
|
|
301701
|
+
key: 0,
|
|
301702
|
+
ref: "jmttRef",
|
|
301703
|
+
path: _ctx.path,
|
|
301704
|
+
tableData: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData2),
|
|
301705
|
+
onUpdateQueryParams: updateQueryParams,
|
|
301706
|
+
axios: _ctx.axios
|
|
301707
|
+
}, null, 8, ["path", "tableData", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
301708
|
+
_: 1
|
|
301709
|
+
}, 512)]),
|
|
301710
|
+
_: 1
|
|
301711
|
+
})) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
301712
|
+
"image-size": 200
|
|
301713
|
+
}, {
|
|
301714
|
+
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_5vue_type_script_setup_true_lang_js_hoisted_8]),
|
|
301715
|
+
_: 1
|
|
301716
|
+
})]))]);
|
|
301717
|
+
};
|
|
301718
|
+
}
|
|
301719
|
+
|
|
301720
|
+
});
|
|
301721
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-5/mtt-panel-5.vue?vue&type=script&setup=true&lang=js
|
|
301722
|
+
/* unplugin-vue-components disabled */
|
|
301723
|
+
;// 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-5/mtt-panel-5.vue?vue&type=style&index=0&id=091952c2&lang=scss&scoped=true
|
|
301724
|
+
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
301725
|
+
|
|
301726
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-5/mtt-panel-5.vue?vue&type=style&index=0&id=091952c2&lang=scss&scoped=true
|
|
301727
|
+
/* unplugin-vue-components disabled */
|
|
301728
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-5/mtt-panel-5.vue
|
|
301729
|
+
/* unplugin-vue-components disabled */
|
|
301730
|
+
|
|
301731
|
+
|
|
301732
|
+
;
|
|
301733
|
+
|
|
301734
|
+
|
|
301735
|
+
const mtt_panel_5_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_5vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-091952c2"]])
|
|
301736
|
+
|
|
301737
|
+
/* harmony default export */ var mtt_panel_5 = (mtt_panel_5_exports_);
|
|
301738
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-badge.css
|
|
301739
|
+
// extracted by mini-css-extract-plugin
|
|
301740
|
+
|
|
301741
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/badge/style/css.mjs
|
|
301742
|
+
|
|
301743
|
+
|
|
301744
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-message.css
|
|
301745
|
+
// extracted by mini-css-extract-plugin
|
|
301746
|
+
|
|
301747
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/message/style/css.mjs
|
|
301748
|
+
|
|
301749
|
+
|
|
301750
|
+
|
|
301751
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/theme-chalk/el-message-box.css
|
|
301752
|
+
// extracted by mini-css-extract-plugin
|
|
301753
|
+
|
|
301754
|
+
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/message-box/style/css.mjs
|
|
301755
|
+
|
|
301756
|
+
|
|
301757
|
+
|
|
301758
|
+
|
|
301759
|
+
|
|
301760
|
+
;// 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-7/mtt-panel-7.vue?vue&type=script&setup=true&lang=js
|
|
301761
|
+
|
|
301762
|
+
|
|
301763
|
+
|
|
301764
|
+
/* unplugin-vue-components disabled */
|
|
301765
|
+
|
|
301766
|
+
|
|
301767
|
+
|
|
301768
|
+
|
|
301769
|
+
|
|
301770
|
+
|
|
301771
|
+
const mtt_panel_7vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-665995fa"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
301772
|
+
|
|
301773
|
+
const mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
301774
|
+
class: "mtt-panel-box"
|
|
301775
|
+
};
|
|
301776
|
+
const mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
301777
|
+
key: 1
|
|
301778
|
+
};
|
|
301779
|
+
|
|
301780
|
+
const mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_3 = /*#__PURE__*/mtt_panel_7vue_type_script_setup_true_lang_js_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
301781
|
+
style: {
|
|
301782
|
+
"font-size": "30px"
|
|
301783
|
+
}
|
|
301784
|
+
}, "暂无数据", -1));
|
|
301785
|
+
|
|
301786
|
+
const mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_4 = {
|
|
301787
|
+
key: 0
|
|
301788
|
+
};
|
|
301789
|
+
const mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_5 = {
|
|
301790
|
+
key: 1
|
|
301791
|
+
};
|
|
301792
|
+
|
|
301793
|
+
|
|
301794
|
+
|
|
301795
|
+
|
|
301796
|
+
|
|
301797
|
+
|
|
301798
|
+
/* harmony default export */ var mtt_panel_7vue_type_script_setup_true_lang_js = ({
|
|
301799
|
+
__name: 'mtt-panel-7',
|
|
301800
|
+
props: mtt_panel_props,
|
|
301801
|
+
|
|
301802
|
+
setup(__props, {
|
|
301803
|
+
expose
|
|
301804
|
+
}) {
|
|
301805
|
+
const props = __props;
|
|
301806
|
+
let activeRow = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
301807
|
+
let activeTreeCheckData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
301808
|
+
let formsItemCopy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
301809
|
+
let model_all = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
301810
|
+
|
|
301811
|
+
let _pageData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
301812
|
+
|
|
301813
|
+
const mtt_panel_7 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
301814
|
+
const forms_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
301815
|
+
const {
|
|
301816
|
+
formList,
|
|
301817
|
+
tableData,
|
|
301818
|
+
customBtns
|
|
301819
|
+
} = MttPanelHook(props, false);
|
|
301820
|
+
const handlerConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
301821
|
+
show: true,
|
|
301822
|
+
//操作列的显示开关,默认false
|
|
301823
|
+
width: 100,
|
|
301824
|
+
//操作列的宽度,默认250px
|
|
301825
|
+
align: "center",
|
|
301826
|
+
//操作列对齐方式,可选值`left`、`center`、`right`,默认`center`
|
|
301827
|
+
fixed: "right",
|
|
301828
|
+
//操作列固定位置,可选值`left`、`right`、空串(不固定),默认`right`
|
|
301829
|
+
btnGroup: false //设置true则是下拉按钮,设置false则是并排按钮(依赖element-ui)
|
|
301830
|
+
|
|
301831
|
+
});
|
|
301832
|
+
const handlerConfig_right = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
301833
|
+
show: true,
|
|
301834
|
+
//操作列的显示开关,默认false
|
|
301835
|
+
width: 300,
|
|
301836
|
+
//操作列的宽度,默认250px
|
|
301837
|
+
align: "center",
|
|
301838
|
+
//操作列对齐方式,可选值`left`、`center`、`right`,默认`center`
|
|
301839
|
+
fixed: "right",
|
|
301840
|
+
//操作列固定位置,可选值`left`、`right`、空串(不固定),默认`right`
|
|
301841
|
+
btnGroup: false //设置true则是下拉按钮,设置false则是并排按钮(依赖element-ui)
|
|
301842
|
+
|
|
301843
|
+
});
|
|
301844
|
+
jtMessage.off("step_submit");
|
|
301845
|
+
jtMessage.on("step_submit", params => formSubmit(params));
|
|
301846
|
+
|
|
301847
|
+
const reloadRow = row => {
|
|
301848
|
+
mtt_panel_7.value.reloadTreeExpand(row);
|
|
301849
|
+
};
|
|
301850
|
+
|
|
301851
|
+
const reloadTreeChilds = () => {
|
|
301852
|
+
mtt_panel_7.value.reloadTreeExpand(activeRow);
|
|
301853
|
+
};
|
|
301854
|
+
|
|
301855
|
+
const operFunc = {
|
|
301856
|
+
//增加操作
|
|
301857
|
+
add_handler: async params => {
|
|
301858
|
+
if (!("submit" in forms_item.value) || !("path" in forms_item.value)) {
|
|
301859
|
+
ElMessage.success("表单请求参数错误");
|
|
301860
|
+
return;
|
|
301861
|
+
}
|
|
301862
|
+
|
|
301863
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
301864
|
+
const {
|
|
301865
|
+
data
|
|
301866
|
+
} = await props.axios.post(path, params);
|
|
301867
|
+
hideModal();
|
|
301868
|
+
handlerCallBack(data);
|
|
301869
|
+
formList.value.forEach(item => {
|
|
301870
|
+
if (item.funcode === forms_item.value.funcode) {
|
|
301871
|
+
item = formsItemCopy.value;
|
|
301872
|
+
}
|
|
301873
|
+
});
|
|
301874
|
+
reloadTreeChilds();
|
|
301875
|
+
},
|
|
301876
|
+
modify_handler: async params => {
|
|
301877
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
301878
|
+
const {
|
|
301879
|
+
data
|
|
301880
|
+
} = await props.axios.post(path, params);
|
|
301881
|
+
hideModal();
|
|
301882
|
+
let msg = null;
|
|
301883
|
+
let ret = -1;
|
|
301884
|
+
|
|
301885
|
+
if (null != data && data.length == 0) {
|
|
301886
|
+
ret = 0;
|
|
301887
|
+
} else if (data.length == 1) {
|
|
301888
|
+
msg = data[0]["MSG"];
|
|
301889
|
+
ret = data[0]["Result"];
|
|
301890
|
+
}
|
|
301891
|
+
|
|
301892
|
+
if (ret > 0) {
|
|
301893
|
+
ElMessage.success("修改成功");
|
|
301894
|
+
|
|
301895
|
+
try {
|
|
301896
|
+
let MSG = data[0]["MSG"];
|
|
301897
|
+
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
301898
|
+
|
|
301899
|
+
if (isjson) {
|
|
301900
|
+
for (let key in MSG) {
|
|
301901
|
+
activeRow.value[key] = MSG[key];
|
|
301902
|
+
}
|
|
301903
|
+
|
|
301904
|
+
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
301905
|
+
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
301906
|
+
}
|
|
301907
|
+
} // this.dialogVisible = false;
|
|
301908
|
+
|
|
301909
|
+
|
|
301910
|
+
for (let key in _pageData) {
|
|
301911
|
+
activeRow.value[key] = _pageData[key];
|
|
301912
|
+
}
|
|
301913
|
+
|
|
301914
|
+
handlerCallBack(data);
|
|
301915
|
+
} catch (e) {
|
|
301916
|
+
console.log(e);
|
|
301917
|
+
}
|
|
301918
|
+
|
|
301919
|
+
for (let key in forms_item.value["model"]) {
|
|
301920
|
+
activeRow.value[key] = forms_item.value["model"][key];
|
|
301921
|
+
}
|
|
301922
|
+
|
|
301923
|
+
reloadRow(activeRow.value);
|
|
301924
|
+
} else if (ret == 0) {
|
|
301925
|
+
reloadRow(activeRow.value); // mtt_panel_7.value.reloadRow(activeRow.value);
|
|
301926
|
+
|
|
301927
|
+
ElMessage.success("修改完成,没有更新数据"); // this.dialogVisible = false;
|
|
301928
|
+
} else {
|
|
301929
|
+
if (null == msg) {
|
|
301930
|
+
msg = ret;
|
|
301931
|
+
}
|
|
301932
|
+
|
|
301933
|
+
ElMessage.warning("修改失败[" + msg + "]");
|
|
301934
|
+
}
|
|
301935
|
+
},
|
|
301936
|
+
//执行一个操作
|
|
301937
|
+
exec_handler: async (url, treeCheckedData, cusItem) => {
|
|
301938
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
301939
|
+
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
301940
|
+
confirmButtonText: "确定",
|
|
301941
|
+
cancelButtonText: "取消",
|
|
301942
|
+
type: "warning"
|
|
301943
|
+
}).then(async () => {
|
|
301944
|
+
const {
|
|
301945
|
+
data
|
|
301946
|
+
} = await props.axios.post(path, model_all);
|
|
301947
|
+
hideModal();
|
|
301948
|
+
handlerCallBack(data, 'exec', {
|
|
301949
|
+
cusItem
|
|
301950
|
+
});
|
|
301951
|
+
}).catch(() => {});
|
|
301952
|
+
},
|
|
301953
|
+
del_handler: async () => {
|
|
301954
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
301955
|
+
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
301956
|
+
confirmButtonText: "确定",
|
|
301957
|
+
cancelButtonText: "取消",
|
|
301958
|
+
type: "warning"
|
|
301959
|
+
}).then(async () => {
|
|
301960
|
+
const {
|
|
301961
|
+
data
|
|
301962
|
+
} = await props.axios.post(path, model_all);
|
|
301963
|
+
hideModal();
|
|
301964
|
+
handlerCallBack(data);
|
|
301965
|
+
}).catch(() => {});
|
|
301966
|
+
},
|
|
301967
|
+
search_handler: async pageData => {
|
|
301968
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
301969
|
+
loading.value = true;
|
|
301970
|
+
hideModal();
|
|
301971
|
+
const {
|
|
301972
|
+
data
|
|
301973
|
+
} = await props.axios.post(path, pageData);
|
|
301974
|
+
loading.value = false;
|
|
301975
|
+
|
|
301976
|
+
if (data[0].Result >= 0) {
|
|
301977
|
+
if (!data[0].DataArray.length) {
|
|
301978
|
+
ElMessage.error("没有检索到相关数据");
|
|
301979
|
+
return;
|
|
301980
|
+
}
|
|
301981
|
+
|
|
301982
|
+
await mtt_panel_7.value.setTreeTempData(data[0].DataArray);
|
|
301983
|
+
reloadRow(activeRow.value);
|
|
301984
|
+
} else {
|
|
301985
|
+
let msg = data[0]["MSG"];
|
|
301986
|
+
let ret = data[0]["Result"];
|
|
301987
|
+
|
|
301988
|
+
if (null == msg) {
|
|
301989
|
+
msg = ret;
|
|
301990
|
+
}
|
|
301991
|
+
|
|
301992
|
+
ElMessage.warning("操作失败[" + msg + "]");
|
|
301993
|
+
}
|
|
301994
|
+
},
|
|
301995
|
+
// 下载文件
|
|
301996
|
+
download_handler: row => {
|
|
301997
|
+
const r = row;
|
|
301998
|
+
|
|
301999
|
+
if (typeof row.fileList === "string") {
|
|
302000
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
302001
|
+
} else if (row.fileList) {
|
|
302002
|
+
for (let i = 0; i < r.fileList.length; i++) {
|
|
302003
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
302004
|
+
}
|
|
302005
|
+
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
302006
|
+
for (let i = 0; i < r.ws_att.length; i++) {
|
|
302007
|
+
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, props.axios);
|
|
302008
|
+
}
|
|
302009
|
+
}
|
|
302010
|
+
},
|
|
302011
|
+
//批量删除
|
|
302012
|
+
delsons_handler: (path, treeCheckedData) => {
|
|
302013
|
+
let list = [];
|
|
302014
|
+
treeCheckedData.forEach(row => {
|
|
302015
|
+
let tmp = {};
|
|
302016
|
+
Object.keys(model_all).forEach(item => {
|
|
302017
|
+
if (Object.keys(model_all[item]).length !== 0 && model_all[item] != "") {
|
|
302018
|
+
tmp[item] = model_all[item];
|
|
302019
|
+
} else {
|
|
302020
|
+
tmp[item] = row[item];
|
|
302021
|
+
}
|
|
302022
|
+
});
|
|
302023
|
+
list.push(tmp);
|
|
302024
|
+
});
|
|
302025
|
+
ElMessageBox.confirm("请确认是否删除选中信息?", "提示", {
|
|
302026
|
+
confirmButtonText: "确定",
|
|
302027
|
+
cancelButtonText: "取消",
|
|
302028
|
+
type: "warning"
|
|
302029
|
+
}).then(async () => {
|
|
302030
|
+
const {
|
|
302031
|
+
data
|
|
302032
|
+
} = await props.axios.post(path, list);
|
|
302033
|
+
|
|
302034
|
+
if (data[0].Result >= 0) {
|
|
302035
|
+
ElMessage.success("删除成功");
|
|
302036
|
+
reloadRow(activeRow.value);
|
|
302037
|
+
} else {
|
|
302038
|
+
ElMessage.warning("删除失败");
|
|
302039
|
+
}
|
|
302040
|
+
}).catch(() => {});
|
|
302041
|
+
},
|
|
302042
|
+
//批量修改
|
|
302043
|
+
modsons_handler: async pageData => {
|
|
302044
|
+
const treeCheckDataCopy = JSON.parse(JSON.stringify(activeTreeCheckData.value));
|
|
302045
|
+
let list = [];
|
|
302046
|
+
treeCheckDataCopy.forEach(row => {
|
|
302047
|
+
let tmp = {};
|
|
302048
|
+
Object.keys(pageData).forEach(item => {
|
|
302049
|
+
if (Object.keys(pageData[item]).length !== 0 && pageData[item] != "") {
|
|
302050
|
+
tmp[item] = pageData[item];
|
|
302051
|
+
} else {
|
|
302052
|
+
tmp[item] = row[item];
|
|
302053
|
+
}
|
|
302054
|
+
});
|
|
302055
|
+
list.push(tmp);
|
|
302056
|
+
});
|
|
302057
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302058
|
+
const {
|
|
302059
|
+
data
|
|
302060
|
+
} = await props.axios.post(path, list);
|
|
302061
|
+
|
|
302062
|
+
if (data[0].Result >= 0) {
|
|
302063
|
+
ElMessage.success("修改成功");
|
|
302064
|
+
reloadRow(activeRow.value);
|
|
302065
|
+
} else {
|
|
302066
|
+
ElMessage.warning("修改失败");
|
|
302067
|
+
}
|
|
302068
|
+
}
|
|
302069
|
+
};
|
|
302070
|
+
|
|
302071
|
+
function customEvents(type, data) {
|
|
302072
|
+
console.log(type);
|
|
302073
|
+
|
|
302074
|
+
switch (type) {
|
|
302075
|
+
case 'treeTxtClick':
|
|
302076
|
+
{
|
|
302077
|
+
console.log(data);
|
|
302078
|
+
break;
|
|
302079
|
+
}
|
|
302080
|
+
|
|
302081
|
+
case 'treeCellClick':
|
|
302082
|
+
{
|
|
302083
|
+
if (props.isLastLoad) {
|
|
302084
|
+
if (data.row?.path == '-' || data.row?.path == '') {
|
|
302085
|
+
loadTableData(data.row);
|
|
302086
|
+
}
|
|
302087
|
+
} else {
|
|
302088
|
+
loadTableData(data.row);
|
|
302089
|
+
}
|
|
302090
|
+
}
|
|
302091
|
+
|
|
302092
|
+
case 'handler':
|
|
302093
|
+
{
|
|
302094
|
+
const {
|
|
302095
|
+
row,
|
|
302096
|
+
funcode,
|
|
302097
|
+
treeCheckedData
|
|
302098
|
+
} = data;
|
|
302099
|
+
activeRow.value = row;
|
|
302100
|
+
activeTreeCheckData.value = treeCheckedData;
|
|
302101
|
+
sessionStorage.setItem("active_row", JSON.stringify(activeRow.value));
|
|
302102
|
+
|
|
302103
|
+
if (funcode === "reflash") {
|
|
302104
|
+
return;
|
|
302105
|
+
}
|
|
302106
|
+
|
|
302107
|
+
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
302108
|
+
operFunc.download_handler(row);
|
|
302109
|
+
return;
|
|
302110
|
+
}
|
|
302111
|
+
|
|
302112
|
+
formList.value.forEach(item => {
|
|
302113
|
+
if (item.funcode === funcode) {
|
|
302114
|
+
forms_item.value = item;
|
|
302115
|
+
formsItemCopy.value = deepCopy(item);
|
|
302116
|
+
const type = item.oprtype;
|
|
302117
|
+
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
302118
|
+
Object.keys(subItem.model).forEach(item => {
|
|
302119
|
+
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
302120
|
+
|
|
302121
|
+
if (![null, undefined].includes(activeRow.value[item])) {
|
|
302122
|
+
if (activeConfig && activeConfig.type == "iNumber") {
|
|
302123
|
+
subItem.model[item] = Number(activeRow.value[item]);
|
|
302124
|
+
} else {
|
|
302125
|
+
subItem.model[item] = activeRow.value[item];
|
|
302126
|
+
}
|
|
302127
|
+
}
|
|
302128
|
+
|
|
302129
|
+
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
302130
|
+
activeConfig.options = [{
|
|
302131
|
+
label: subItem.model[activeConfig.nameKey],
|
|
302132
|
+
value: subItem.model[activeConfig.nameKey]
|
|
302133
|
+
}];
|
|
302134
|
+
}
|
|
302135
|
+
|
|
302136
|
+
if ('autoInputConfig' in subItem) {
|
|
302137
|
+
subItem.autoInputConfig.subParams = { ...subItem.autoInputConfig.subParams,
|
|
302138
|
+
...row
|
|
302139
|
+
};
|
|
302140
|
+
}
|
|
302141
|
+
});
|
|
302142
|
+
return subItem.model;
|
|
302143
|
+
});
|
|
302144
|
+
model_all = Object.assign({}, ...(tempAry || {}));
|
|
302145
|
+
|
|
302146
|
+
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
302147
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302148
|
+
operFunc[type + "_handler"](path, treeCheckedData, item);
|
|
302149
|
+
} else {
|
|
302150
|
+
item.display = !item.display;
|
|
302151
|
+
}
|
|
302152
|
+
}
|
|
302153
|
+
});
|
|
302154
|
+
}
|
|
302155
|
+
}
|
|
302156
|
+
}
|
|
302157
|
+
|
|
302158
|
+
const loading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
302159
|
+
const rightTableData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([{
|
|
302160
|
+
retjson: {},
|
|
302161
|
+
DataArray: [],
|
|
302162
|
+
Result: ""
|
|
302163
|
+
}]);
|
|
302164
|
+
|
|
302165
|
+
async function loadTableData(row) {
|
|
302166
|
+
loading.value = true;
|
|
302167
|
+
const {
|
|
302168
|
+
data
|
|
302169
|
+
} = await props.axios.post(props.compPath + row.path);
|
|
302170
|
+
rightTableData.value = data;
|
|
302171
|
+
loading.value = false;
|
|
302172
|
+
}
|
|
302173
|
+
|
|
302174
|
+
function isObject(value) {
|
|
302175
|
+
return Object.prototype.toString.call(value) === '[object Object]';
|
|
302176
|
+
}
|
|
302177
|
+
|
|
302178
|
+
function handlerCallBack(data, tag, otherParams) {
|
|
302179
|
+
if (data && data[0].Result >= 0) {
|
|
302180
|
+
ElMessage.success("执行操作成功");
|
|
302181
|
+
|
|
302182
|
+
if ("MSG" in data[0]) {
|
|
302183
|
+
const obl = Object.keys(data[0].MSG).length;
|
|
302184
|
+
|
|
302185
|
+
if (obl.length != 0 && data[0].MSG.oprtype == "del") {
|
|
302186
|
+
//删除
|
|
302187
|
+
mtt_panel_7.value.removeRow(activeRow.value);
|
|
302188
|
+
} else if (obl.length != 0 && data[0].MSG.oprtype == "reflash") {
|
|
302189
|
+
//刷新
|
|
302190
|
+
if (activeRow.value.path == "" || activeRow.value.path == "-") {
|
|
302191
|
+
reloadRow(activeRow.value);
|
|
302192
|
+
} else {
|
|
302193
|
+
reloadRow(activeRow.value);
|
|
302194
|
+
reloadTreeChilds();
|
|
302195
|
+
}
|
|
302196
|
+
} else if (obl.length != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
302197
|
+
mtt_panel_7.value.reloadParentRow(activeRow.value);
|
|
302198
|
+
} else if (obl.length != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
302199
|
+
if ('queryParams' in data[0].MSG) {
|
|
302200
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
302201
|
+
}
|
|
302202
|
+
|
|
302203
|
+
props.initPageEvent();
|
|
302204
|
+
}
|
|
302205
|
+
}
|
|
302206
|
+
|
|
302207
|
+
return true;
|
|
302208
|
+
} else {
|
|
302209
|
+
if (tag == 'exec') {
|
|
302210
|
+
const {
|
|
302211
|
+
cusItem
|
|
302212
|
+
} = otherParams;
|
|
302213
|
+
|
|
302214
|
+
if (cusItem.Pages.length !== 0) {
|
|
302215
|
+
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
302216
|
+
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
302217
|
+
|
|
302218
|
+
if (isEmpty) {
|
|
302219
|
+
cusItem.display = !cusItem.display;
|
|
302220
|
+
}
|
|
302221
|
+
}
|
|
302222
|
+
}
|
|
302223
|
+
}
|
|
302224
|
+
|
|
302225
|
+
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
302226
|
+
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
302227
|
+
return false;
|
|
302228
|
+
}
|
|
302229
|
+
} // 提交表单数据
|
|
302230
|
+
|
|
302231
|
+
|
|
302232
|
+
const formSubmit = ({
|
|
302233
|
+
form,
|
|
302234
|
+
pageData
|
|
302235
|
+
}) => {
|
|
302236
|
+
const type = form.oprtype;
|
|
302237
|
+
_pageData.value = pageData;
|
|
302238
|
+
|
|
302239
|
+
if (!forms_item.value) {
|
|
302240
|
+
console.log("forms_item 不存在");
|
|
302241
|
+
return;
|
|
302242
|
+
}
|
|
302243
|
+
|
|
302244
|
+
if (forms_item.value?.sideBtn) {
|
|
302245
|
+
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, 1);
|
|
302246
|
+
} else {
|
|
302247
|
+
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
302248
|
+
}
|
|
302249
|
+
};
|
|
302250
|
+
|
|
302251
|
+
const hideModal = () => {
|
|
302252
|
+
formList.value.forEach(item => {
|
|
302253
|
+
item.display = false;
|
|
302254
|
+
});
|
|
302255
|
+
};
|
|
302256
|
+
|
|
302257
|
+
expose({
|
|
302258
|
+
customBtns
|
|
302259
|
+
});
|
|
302260
|
+
return (_ctx, _cache) => {
|
|
302261
|
+
const _component_tree_table = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("tree-table");
|
|
302262
|
+
|
|
302263
|
+
const _component_el_aside = ElAside;
|
|
302264
|
+
|
|
302265
|
+
const _component_table_base = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("table-base");
|
|
302266
|
+
|
|
302267
|
+
const _component_el_main = ElMain;
|
|
302268
|
+
|
|
302269
|
+
const _component_el_container = ElContainer;
|
|
302270
|
+
|
|
302271
|
+
const _component_el_empty = ElEmpty;
|
|
302272
|
+
|
|
302273
|
+
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, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)?.[0]?.DataArray.length ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_container, {
|
|
302274
|
+
key: 0,
|
|
302275
|
+
style: {
|
|
302276
|
+
"height": "100%"
|
|
302277
|
+
}
|
|
302278
|
+
}, {
|
|
302279
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_aside, {
|
|
302280
|
+
width: _ctx.queryConfig?.layConfig?.sideWidth ? _ctx.queryConfig?.layConfig?.sideWidth + 'px' : '350px'
|
|
302281
|
+
}, {
|
|
302282
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
302283
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)([{
|
|
302284
|
+
"padding": "12px"
|
|
302285
|
+
}, {
|
|
302286
|
+
width: _ctx.queryConfig?.layConfig?.sideWidth ? _ctx.queryConfig?.layConfig?.sideWidth - 5 + 'px' : '345px'
|
|
302287
|
+
}])
|
|
302288
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_tree_table, {
|
|
302289
|
+
id: "mtt_panel_7",
|
|
302290
|
+
ref_key: "mtt_panel_7",
|
|
302291
|
+
ref: mtt_panel_7,
|
|
302292
|
+
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData),
|
|
302293
|
+
mode: "tree",
|
|
302294
|
+
baseUrl: _ctx.compPath,
|
|
302295
|
+
axios: _ctx.axios,
|
|
302296
|
+
isLazy: true,
|
|
302297
|
+
onCustomEvents: customEvents,
|
|
302298
|
+
isSeq: false,
|
|
302299
|
+
isLine: "",
|
|
302300
|
+
handlerConfig: handlerConfig
|
|
302301
|
+
}, null, 8, ["data", "baseUrl", "axios", "handlerConfig"])], 4)]),
|
|
302302
|
+
_: 1
|
|
302303
|
+
}, 8, ["width"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_main, {
|
|
302304
|
+
style: {
|
|
302305
|
+
"padding": "12px",
|
|
302306
|
+
"background": "#fff"
|
|
302307
|
+
},
|
|
302308
|
+
ref: "mttMainRef"
|
|
302309
|
+
}, {
|
|
302310
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_table_base, {
|
|
302311
|
+
id: "mtt_table_7",
|
|
302312
|
+
data: rightTableData.value,
|
|
302313
|
+
loading: loading.value,
|
|
302314
|
+
handlerConfig: handlerConfig_right,
|
|
302315
|
+
onCustomEvents: customEvents
|
|
302316
|
+
}, null, 8, ["data", "loading", "handlerConfig"])]),
|
|
302317
|
+
_: 1
|
|
302318
|
+
}, 512)]),
|
|
302319
|
+
_: 1
|
|
302320
|
+
})) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
302321
|
+
"image-size": 200
|
|
302322
|
+
}, {
|
|
302323
|
+
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_3]),
|
|
302324
|
+
_: 1
|
|
302325
|
+
})]))]), ((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 => {
|
|
302326
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302327
|
+
key: form.funcode
|
|
302328
|
+
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_7vue_type_script_setup_true_lang_js_hoisted_4, [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), {
|
|
302329
|
+
key: 0,
|
|
302330
|
+
form: form,
|
|
302331
|
+
axios: _ctx.axios
|
|
302332
|
+
}, 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_7vue_type_script_setup_true_lang_js_hoisted_5, [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), {
|
|
302333
|
+
key: 0,
|
|
302334
|
+
form: form,
|
|
302335
|
+
axios: _ctx.axios
|
|
302336
|
+
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
302337
|
+
}), 128))], 64);
|
|
302338
|
+
};
|
|
302339
|
+
}
|
|
302340
|
+
|
|
302341
|
+
});
|
|
302342
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-7/mtt-panel-7.vue?vue&type=script&setup=true&lang=js
|
|
302343
|
+
/* unplugin-vue-components disabled */
|
|
302344
|
+
;// 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-7/mtt-panel-7.vue?vue&type=style&index=0&id=665995fa&lang=scss&scoped=true
|
|
302345
|
+
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
302346
|
+
|
|
302347
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-7/mtt-panel-7.vue?vue&type=style&index=0&id=665995fa&lang=scss&scoped=true
|
|
302348
|
+
/* unplugin-vue-components disabled */
|
|
302349
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-7/mtt-panel-7.vue
|
|
302350
|
+
/* unplugin-vue-components disabled */
|
|
302351
|
+
|
|
302352
|
+
|
|
302353
|
+
;
|
|
302354
|
+
|
|
302355
|
+
|
|
302356
|
+
const mtt_panel_7_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_7vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-665995fa"]])
|
|
302357
|
+
|
|
302358
|
+
/* harmony default export */ var mtt_panel_7 = (mtt_panel_7_exports_);
|
|
302359
|
+
;// 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-8/mtt-panel-8.vue?vue&type=script&setup=true&lang=js
|
|
302360
|
+
|
|
302361
|
+
/* unplugin-vue-components disabled */
|
|
302362
|
+
|
|
302363
|
+
|
|
302364
|
+
|
|
302365
|
+
|
|
302366
|
+
|
|
302367
|
+
|
|
302368
|
+
|
|
302369
|
+
|
|
302370
|
+
|
|
302371
|
+
|
|
302372
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.pushScopeId)("data-v-53295e7e"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.popScopeId)(), n);
|
|
302373
|
+
|
|
302374
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
302375
|
+
class: "mtt-panel-box"
|
|
302376
|
+
};
|
|
302377
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
302378
|
+
class: "card-header"
|
|
302379
|
+
};
|
|
302380
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
302381
|
+
class: "name"
|
|
302382
|
+
};
|
|
302383
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_4 = ["onMouseover"];
|
|
302384
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_5 = {
|
|
302385
|
+
style: {
|
|
302386
|
+
"padding": "5px 5px 0"
|
|
302387
|
+
}
|
|
302388
|
+
};
|
|
302389
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_6 = {
|
|
302390
|
+
class: "cell-item"
|
|
302391
|
+
};
|
|
302392
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_7 = {
|
|
302393
|
+
key: 1
|
|
302394
|
+
};
|
|
302395
|
+
|
|
302396
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_8 = /*#__PURE__*/mtt_panel_8vue_type_script_setup_true_lang_js_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", {
|
|
302397
|
+
style: {
|
|
302398
|
+
"font-size": "30px"
|
|
302399
|
+
}
|
|
302400
|
+
}, "暂无数据", -1));
|
|
302401
|
+
|
|
302402
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_9 = {
|
|
302403
|
+
key: 0
|
|
302404
|
+
};
|
|
302405
|
+
const mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_10 = {
|
|
302406
|
+
key: 1
|
|
302407
|
+
};
|
|
302408
|
+
|
|
302409
|
+
|
|
302410
|
+
|
|
302411
|
+
|
|
302412
|
+
|
|
302413
|
+
|
|
302414
|
+
|
|
302415
|
+
/* harmony default export */ var mtt_panel_8vue_type_script_setup_true_lang_js = ({
|
|
302416
|
+
__name: 'mtt-panel-8',
|
|
302417
|
+
props: mtt_panel_props,
|
|
302418
|
+
|
|
302419
|
+
setup(__props, {
|
|
302420
|
+
expose
|
|
302421
|
+
}) {
|
|
302422
|
+
const props = __props;
|
|
302423
|
+
const {
|
|
302424
|
+
formList,
|
|
302425
|
+
tableData,
|
|
302426
|
+
retjson,
|
|
302427
|
+
isTooltip,
|
|
302428
|
+
level_2_rowid,
|
|
302429
|
+
isShowTooltip,
|
|
302430
|
+
cardClick5,
|
|
302431
|
+
handlerColClick,
|
|
302432
|
+
customBtns,
|
|
302433
|
+
tooltipId,
|
|
302434
|
+
pageData2
|
|
302435
|
+
} = MttPanelHook(props, false);
|
|
302436
|
+
let activeRow = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
302437
|
+
let activeTreeCheckData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
302438
|
+
let formsItemCopy = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
|
|
302439
|
+
let model_all = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
302440
|
+
|
|
302441
|
+
let _pageData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
|
|
302442
|
+
|
|
302443
|
+
const mtt_panel_8 = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
302444
|
+
const forms_item = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
302445
|
+
const loading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
302446
|
+
const handlerConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
302447
|
+
show: true,
|
|
302448
|
+
//操作列的显示开关,默认false
|
|
302449
|
+
width: 250,
|
|
302450
|
+
//操作列的宽度,默认250px
|
|
302451
|
+
align: 'center',
|
|
302452
|
+
//操作列对齐方式,可选值`left`、`center`、`right`,默认`center`
|
|
302453
|
+
fixed: 'right',
|
|
302454
|
+
//操作列固定位置,可选值`left`、`right`、空串(不固定),默认`right`
|
|
302455
|
+
btnGroup: false //设置true则是下拉按钮,设置false则是并排按钮(依赖element-ui)
|
|
302456
|
+
|
|
302457
|
+
});
|
|
302458
|
+
jtMessage.off("step_submit");
|
|
302459
|
+
jtMessage.on("step_submit", params => formSubmit(params));
|
|
302460
|
+
|
|
302461
|
+
const reloadRow = row => {
|
|
302462
|
+
mtt_panel_8.value.reloadTreeExpand(row);
|
|
302463
|
+
};
|
|
302464
|
+
|
|
302465
|
+
const reloadTreeChilds = () => {
|
|
302466
|
+
mtt_panel_8.value.reloadTreeExpand(activeRow);
|
|
302467
|
+
};
|
|
302468
|
+
|
|
302469
|
+
const operFunc = {
|
|
302470
|
+
//增加操作
|
|
302471
|
+
add_handler: async params => {
|
|
302472
|
+
if (!("submit" in forms_item.value) || !("path" in forms_item.value)) {
|
|
302473
|
+
ElMessage.success("表单请求参数错误");
|
|
302474
|
+
return;
|
|
302475
|
+
}
|
|
302476
|
+
|
|
302477
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302478
|
+
const {
|
|
302479
|
+
data
|
|
302480
|
+
} = await props.axios.post(path, params);
|
|
302481
|
+
hideModal();
|
|
302482
|
+
handlerCallBack(data);
|
|
302483
|
+
formList.value.forEach(item => {
|
|
302484
|
+
if (item.funcode === forms_item.value.funcode) {
|
|
302485
|
+
item = formsItemCopy.value;
|
|
302486
|
+
}
|
|
302487
|
+
});
|
|
302488
|
+
reloadTreeChilds();
|
|
302489
|
+
},
|
|
302490
|
+
modify_handler: async params => {
|
|
302491
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302492
|
+
const {
|
|
302493
|
+
data
|
|
302494
|
+
} = await props.axios.post(path, params);
|
|
302495
|
+
hideModal();
|
|
302496
|
+
let msg = null;
|
|
302497
|
+
let ret = -1;
|
|
302498
|
+
|
|
302499
|
+
if (null != data && data.length == 0) {
|
|
302500
|
+
ret = 0;
|
|
302501
|
+
} else if (data.length == 1) {
|
|
302502
|
+
msg = data[0]["MSG"];
|
|
302503
|
+
ret = data[0]["Result"];
|
|
302504
|
+
}
|
|
302505
|
+
|
|
302506
|
+
if (ret > 0) {
|
|
302507
|
+
ElMessage.success("修改成功");
|
|
302508
|
+
|
|
302509
|
+
try {
|
|
302510
|
+
let MSG = data[0]["MSG"];
|
|
302511
|
+
var isjson = typeof MSG == "object" && Object.prototype.toString.call(MSG).toLowerCase() == "[object object]" && !MSG.length;
|
|
302512
|
+
|
|
302513
|
+
if (isjson) {
|
|
302514
|
+
for (let key in MSG) {
|
|
302515
|
+
activeRow.value[key] = MSG[key];
|
|
302516
|
+
}
|
|
302517
|
+
|
|
302518
|
+
if ("_field" in MSG && "_wsopen" in MSG) {
|
|
302519
|
+
connectionWS(MSG._field, MSG._wsopen, activeRow.value);
|
|
302520
|
+
}
|
|
302521
|
+
} // this.dialogVisible = false;
|
|
302522
|
+
|
|
302523
|
+
|
|
302524
|
+
for (let key in _pageData) {
|
|
302525
|
+
activeRow.value[key] = _pageData[key];
|
|
302526
|
+
}
|
|
302527
|
+
|
|
302528
|
+
handlerCallBack(data);
|
|
302529
|
+
} catch (e) {
|
|
302530
|
+
console.log(e);
|
|
302531
|
+
}
|
|
302532
|
+
|
|
302533
|
+
for (let key in forms_item.value["model"]) {
|
|
302534
|
+
activeRow.value[key] = forms_item.value["model"][key];
|
|
302535
|
+
}
|
|
302536
|
+
|
|
302537
|
+
reloadRow(activeRow.value);
|
|
302538
|
+
} else if (ret == 0) {
|
|
302539
|
+
reloadRow(activeRow.value); // mtt_panel_8.value.reloadRow(activeRow.value);
|
|
302540
|
+
|
|
302541
|
+
ElMessage.success("修改完成,没有更新数据"); // this.dialogVisible = false;
|
|
302542
|
+
} else {
|
|
302543
|
+
if (null == msg) {
|
|
302544
|
+
msg = ret;
|
|
302545
|
+
}
|
|
302546
|
+
|
|
302547
|
+
ElMessage.warning("修改失败[" + msg + "]");
|
|
302548
|
+
}
|
|
302549
|
+
},
|
|
302550
|
+
//执行一个操作
|
|
302551
|
+
exec_handler: async (url, treeCheckedData, cusItem) => {
|
|
302552
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302553
|
+
ElMessageBox.confirm("请确认开始执行操作?", "提示", {
|
|
302554
|
+
confirmButtonText: "确定",
|
|
302555
|
+
cancelButtonText: "取消",
|
|
302556
|
+
type: "warning"
|
|
302557
|
+
}).then(async () => {
|
|
302558
|
+
const {
|
|
302559
|
+
data
|
|
302560
|
+
} = await props.axios.post(path, model_all);
|
|
302561
|
+
hideModal();
|
|
302562
|
+
handlerCallBack(data, 'exec', {
|
|
302563
|
+
cusItem
|
|
302564
|
+
});
|
|
302565
|
+
}).catch(() => {});
|
|
302566
|
+
},
|
|
302567
|
+
del_handler: async () => {
|
|
302568
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302569
|
+
ElMessageBox.confirm("请确认是否删除该条信息?", "提示", {
|
|
302570
|
+
confirmButtonText: "确定",
|
|
302571
|
+
cancelButtonText: "取消",
|
|
302572
|
+
type: "warning"
|
|
302573
|
+
}).then(async () => {
|
|
302574
|
+
const {
|
|
302575
|
+
data
|
|
302576
|
+
} = await props.axios.post(path, model_all);
|
|
302577
|
+
hideModal();
|
|
302578
|
+
handlerCallBack(data);
|
|
302579
|
+
}).catch(() => {});
|
|
302580
|
+
},
|
|
302581
|
+
search_handler: async pageData => {
|
|
302582
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302583
|
+
loading.value = true;
|
|
302584
|
+
hideModal();
|
|
302585
|
+
const {
|
|
302586
|
+
data
|
|
302587
|
+
} = await props.axios.post(path, pageData);
|
|
302588
|
+
loading.value = false;
|
|
302589
|
+
|
|
302590
|
+
if (data[0].Result >= 0) {
|
|
302591
|
+
if (!data[0].DataArray.length) {
|
|
302592
|
+
ElMessage.error("没有检索到相关数据");
|
|
302593
|
+
return;
|
|
302594
|
+
}
|
|
302595
|
+
|
|
302596
|
+
await mtt_panel_8.value.mtt_panel_8(data[0].DataArray);
|
|
302597
|
+
reloadRow(activeRow.value);
|
|
302598
|
+
} else {
|
|
302599
|
+
let msg = data[0]["MSG"];
|
|
302600
|
+
let ret = data[0]["Result"];
|
|
302601
|
+
|
|
302602
|
+
if (null == msg) {
|
|
302603
|
+
msg = ret;
|
|
302604
|
+
}
|
|
302605
|
+
|
|
302606
|
+
ElMessage.warning("操作失败[" + msg + "]");
|
|
302607
|
+
}
|
|
302608
|
+
},
|
|
302609
|
+
// 下载文件
|
|
302610
|
+
download_handler: row => {
|
|
302611
|
+
const r = row;
|
|
302612
|
+
|
|
302613
|
+
if (typeof row.fileList === "string") {
|
|
302614
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList}`);
|
|
302615
|
+
} else if (row.fileList) {
|
|
302616
|
+
for (let i = 0; i < r.fileList.length; i++) {
|
|
302617
|
+
window.open(`${window.location.origin}/jtrequest/download?uri=${r.fileList[i].uri}`);
|
|
302618
|
+
}
|
|
302619
|
+
} else if (row.ws_att && row.ws_att instanceof Array) {
|
|
302620
|
+
for (let i = 0; i < r.ws_att.length; i++) {
|
|
302621
|
+
downloadFile(`${window.location.origin}/jtrequest/download?uri=${r.ws_att[i].uri}`, props.axios);
|
|
302622
|
+
}
|
|
302623
|
+
}
|
|
302624
|
+
},
|
|
302625
|
+
//批量删除
|
|
302626
|
+
delsons_handler: (path, treeCheckedData) => {
|
|
302627
|
+
let list = [];
|
|
302628
|
+
treeCheckedData.forEach(row => {
|
|
302629
|
+
let tmp = {};
|
|
302630
|
+
Object.keys(model_all).forEach(item => {
|
|
302631
|
+
if (Object.keys(model_all[item]).length !== 0 && model_all[item] != "") {
|
|
302632
|
+
tmp[item] = model_all[item];
|
|
302633
|
+
} else {
|
|
302634
|
+
tmp[item] = row[item];
|
|
302635
|
+
}
|
|
302636
|
+
});
|
|
302637
|
+
list.push(tmp);
|
|
302638
|
+
});
|
|
302639
|
+
ElMessageBox.confirm("请确认是否删除选中信息?", "提示", {
|
|
302640
|
+
confirmButtonText: "确定",
|
|
302641
|
+
cancelButtonText: "取消",
|
|
302642
|
+
type: "warning"
|
|
302643
|
+
}).then(async () => {
|
|
302644
|
+
const {
|
|
302645
|
+
data
|
|
302646
|
+
} = await props.axios.post(path, list);
|
|
302647
|
+
|
|
302648
|
+
if (data[0].Result >= 0) {
|
|
302649
|
+
ElMessage.success("删除成功");
|
|
302650
|
+
reloadRow(activeRow.value);
|
|
302651
|
+
} else {
|
|
302652
|
+
ElMessage.warning("删除失败");
|
|
302653
|
+
}
|
|
302654
|
+
}).catch(() => {});
|
|
302655
|
+
},
|
|
302656
|
+
//批量修改
|
|
302657
|
+
modsons_handler: async pageData => {
|
|
302658
|
+
const treeCheckDataCopy = JSON.parse(JSON.stringify(activeTreeCheckData.value));
|
|
302659
|
+
let list = [];
|
|
302660
|
+
treeCheckDataCopy.forEach(row => {
|
|
302661
|
+
let tmp = {};
|
|
302662
|
+
Object.keys(pageData).forEach(item => {
|
|
302663
|
+
if (Object.keys(pageData[item]).length !== 0 && pageData[item] != "") {
|
|
302664
|
+
tmp[item] = pageData[item];
|
|
302665
|
+
} else {
|
|
302666
|
+
tmp[item] = row[item];
|
|
302667
|
+
}
|
|
302668
|
+
});
|
|
302669
|
+
list.push(tmp);
|
|
302670
|
+
});
|
|
302671
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302672
|
+
const {
|
|
302673
|
+
data
|
|
302674
|
+
} = await props.axios.post(path, list);
|
|
302675
|
+
|
|
302676
|
+
if (data[0].Result >= 0) {
|
|
302677
|
+
ElMessage.success("修改成功");
|
|
302678
|
+
reloadRow(activeRow.value);
|
|
302679
|
+
} else {
|
|
302680
|
+
ElMessage.warning("修改失败");
|
|
302681
|
+
}
|
|
302682
|
+
}
|
|
302683
|
+
};
|
|
302684
|
+
|
|
302685
|
+
function customEvents(type, data) {
|
|
302686
|
+
console.log(type);
|
|
302687
|
+
|
|
302688
|
+
switch (type) {
|
|
302689
|
+
case 'handler':
|
|
302690
|
+
{
|
|
302691
|
+
const {
|
|
302692
|
+
row,
|
|
302693
|
+
funcode,
|
|
302694
|
+
treeCheckedData
|
|
302695
|
+
} = data;
|
|
302696
|
+
activeRow.value = row;
|
|
302697
|
+
activeTreeCheckData.value = treeCheckedData;
|
|
302698
|
+
sessionStorage.setItem("active_row", JSON.stringify(activeRow.value));
|
|
302699
|
+
|
|
302700
|
+
if (funcode === "reflash") {
|
|
302701
|
+
return;
|
|
302702
|
+
}
|
|
302703
|
+
|
|
302704
|
+
if (typeof funcode == 'string' && funcode.indexOf("download") != -1) {
|
|
302705
|
+
operFunc.download_handler(row);
|
|
302706
|
+
return;
|
|
302707
|
+
}
|
|
302708
|
+
|
|
302709
|
+
formList.value.forEach(item => {
|
|
302710
|
+
if (item.funcode === funcode) {
|
|
302711
|
+
forms_item.value = item;
|
|
302712
|
+
formsItemCopy.value = deepCopy(item);
|
|
302713
|
+
const type = item.oprtype;
|
|
302714
|
+
const tempAry = forms_item.value.Pages.map(subItem => {
|
|
302715
|
+
Object.keys(subItem.model).forEach(item => {
|
|
302716
|
+
const activeConfig = subItem.formConfig.find(i => item == i.modelKey);
|
|
302717
|
+
|
|
302718
|
+
if (![null, undefined].includes(activeRow.value[item])) {
|
|
302719
|
+
if (activeConfig && activeConfig.type == "iNumber") {
|
|
302720
|
+
subItem.model[item] = Number(activeRow.value[item]);
|
|
302721
|
+
} else {
|
|
302722
|
+
subItem.model[item] = activeRow.value[item];
|
|
302723
|
+
}
|
|
302724
|
+
}
|
|
302725
|
+
|
|
302726
|
+
if (isObject(activeConfig) && 'nameKey' in activeConfig) {
|
|
302727
|
+
activeConfig.options = [{
|
|
302728
|
+
label: subItem.model[activeConfig.nameKey],
|
|
302729
|
+
value: subItem.model[activeConfig.nameKey]
|
|
302730
|
+
}];
|
|
302731
|
+
}
|
|
302732
|
+
|
|
302733
|
+
if ('autoInputConfig' in subItem) {
|
|
302734
|
+
subItem.autoInputConfig.subParams = { ...subItem.autoInputConfig.subParams,
|
|
302735
|
+
...row
|
|
302736
|
+
};
|
|
302737
|
+
}
|
|
302738
|
+
});
|
|
302739
|
+
return subItem.model;
|
|
302740
|
+
});
|
|
302741
|
+
model_all = Object.assign({}, ...(tempAry || {}));
|
|
302742
|
+
|
|
302743
|
+
if (["del", "exec", "topage", "delsons"].includes(type)) {
|
|
302744
|
+
const path = forms_item.value.submit + forms_item.value.path;
|
|
302745
|
+
operFunc[type + "_handler"](path, treeCheckedData, item);
|
|
302746
|
+
} else {
|
|
302747
|
+
item.display = !item.display;
|
|
302748
|
+
}
|
|
302749
|
+
}
|
|
302750
|
+
});
|
|
302751
|
+
}
|
|
302752
|
+
}
|
|
302753
|
+
}
|
|
302754
|
+
|
|
302755
|
+
function isObject(value) {
|
|
302756
|
+
return Object.prototype.toString.call(value) === '[object Object]';
|
|
302757
|
+
}
|
|
302758
|
+
|
|
302759
|
+
function handlerCallBack(data, 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.length != 0 && data[0].MSG.oprtype == "del") {
|
|
302767
|
+
//删除
|
|
302768
|
+
mtt_panel_8.value.removeRow(activeRow.value);
|
|
302769
|
+
} else if (obl.length != 0 && data[0].MSG.oprtype == "reflash") {
|
|
302770
|
+
//刷新
|
|
302771
|
+
if (activeRow.value.path == "" || activeRow.value.path == "-") {
|
|
302772
|
+
reloadRow(activeRow.value);
|
|
302773
|
+
} else {
|
|
302774
|
+
reloadRow(activeRow.value);
|
|
302775
|
+
reloadTreeChilds();
|
|
302776
|
+
}
|
|
302777
|
+
} else if (obl.length != 0 && data[0].MSG.oprtype == "reloadParent") {
|
|
302778
|
+
mtt_panel_8.value.reloadParentRow(activeRow.value);
|
|
302779
|
+
} else if (obl.length != 0 && data[0].MSG.oprtype == "reloadAll") {
|
|
302780
|
+
if ('queryParams' in data[0].MSG) {
|
|
302781
|
+
emit('updateQueryParams', data[0].MSG.queryParams);
|
|
302782
|
+
}
|
|
302783
|
+
|
|
302784
|
+
props.initPageEvent();
|
|
302785
|
+
}
|
|
302786
|
+
}
|
|
302787
|
+
|
|
302788
|
+
return true;
|
|
302789
|
+
} else {
|
|
302790
|
+
if (tag == 'exec') {
|
|
302791
|
+
const {
|
|
302792
|
+
cusItem
|
|
302793
|
+
} = otherParams;
|
|
302794
|
+
|
|
302795
|
+
if (cusItem.Pages.length !== 0) {
|
|
302796
|
+
if (cusItem.Pages[0].formConfig.length !== 0) {
|
|
302797
|
+
const isEmpty = cusItem.Pages[0].formConfig.findIndex(item => item.type != 'empty') != -1;
|
|
302798
|
+
|
|
302799
|
+
if (isEmpty) {
|
|
302800
|
+
cusItem.display = !cusItem.display;
|
|
302801
|
+
}
|
|
302802
|
+
}
|
|
302803
|
+
}
|
|
302804
|
+
}
|
|
302805
|
+
|
|
302806
|
+
const msg = data[0]["MSG"] || data[0]["Result"];
|
|
302807
|
+
ElMessage.warning("执行操作失败[" + msg + "]");
|
|
302808
|
+
return false;
|
|
302809
|
+
}
|
|
302810
|
+
} // 提交表单数据
|
|
302811
|
+
|
|
302812
|
+
|
|
302813
|
+
const formSubmit = ({
|
|
302814
|
+
form,
|
|
302815
|
+
pageData
|
|
302816
|
+
}) => {
|
|
302817
|
+
const type = form.oprtype;
|
|
302818
|
+
_pageData.value = pageData;
|
|
302819
|
+
|
|
302820
|
+
if (!forms_item.value) {
|
|
302821
|
+
console.log("forms_item 不存在");
|
|
302822
|
+
return;
|
|
302823
|
+
}
|
|
302824
|
+
|
|
302825
|
+
if (forms_item.value?.sideBtn) {
|
|
302826
|
+
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, 1);
|
|
302827
|
+
} else {
|
|
302828
|
+
operFunc[type.toLowerCase() + "_handler"](pageData, forms_item.value, activeRow.value.$level);
|
|
302829
|
+
}
|
|
302830
|
+
};
|
|
302831
|
+
|
|
302832
|
+
const hideModal = () => {
|
|
302833
|
+
formList.value.forEach(item => {
|
|
302834
|
+
item.display = false;
|
|
302835
|
+
});
|
|
302836
|
+
};
|
|
302837
|
+
|
|
302838
|
+
expose({
|
|
302839
|
+
cardClick5,
|
|
302840
|
+
customBtns
|
|
302841
|
+
});
|
|
302842
|
+
return (_ctx, _cache) => {
|
|
302843
|
+
const _component_el_tooltip = ElTooltip;
|
|
302844
|
+
|
|
302845
|
+
const _component_el_form_item = ElFormItem;
|
|
302846
|
+
|
|
302847
|
+
const _component_el_form = ElForm;
|
|
302848
|
+
|
|
302849
|
+
const _component_el_card = ElCard;
|
|
302850
|
+
|
|
302851
|
+
const _component_el_aside = ElAside;
|
|
302852
|
+
|
|
302853
|
+
const _component_table_group = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("table-group");
|
|
302854
|
+
|
|
302855
|
+
const _component_el_main = ElMain;
|
|
302856
|
+
|
|
302857
|
+
const _component_el_container = ElContainer;
|
|
302858
|
+
|
|
302859
|
+
const _component_el_empty = ElEmpty;
|
|
302860
|
+
|
|
302861
|
+
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, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)?.[0]?.DataArray.length ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_container, {
|
|
302862
|
+
key: 0,
|
|
302863
|
+
style: {
|
|
302864
|
+
"height": "100%"
|
|
302865
|
+
}
|
|
302866
|
+
}, {
|
|
302867
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_aside, {
|
|
302868
|
+
width: _ctx.queryConfig?.layConfig?.sideWidth ? _ctx.queryConfig?.layConfig?.sideWidth + 'px' : '350px'
|
|
302869
|
+
}, {
|
|
302870
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
302871
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)([{
|
|
302872
|
+
"padding": "12px"
|
|
302873
|
+
}, {
|
|
302874
|
+
width: _ctx.queryConfig?.layConfig?.sideWidth ? _ctx.queryConfig?.layConfig?.sideWidth - 5 + 'px' : '345px'
|
|
302875
|
+
}])
|
|
302876
|
+
}, [((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) => {
|
|
302877
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_card, {
|
|
302878
|
+
onClick: $event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(cardClick5)(item),
|
|
302879
|
+
style: {
|
|
302880
|
+
"margin-bottom": "10px"
|
|
302881
|
+
},
|
|
302882
|
+
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'),
|
|
302883
|
+
key: index
|
|
302884
|
+
}, {
|
|
302885
|
+
header: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_tooltip, {
|
|
302886
|
+
class: "box-item",
|
|
302887
|
+
effect: "dark",
|
|
302888
|
+
content: item[(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(retjson).header[0].prop],
|
|
302889
|
+
visible: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isTooltip) && (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tooltipId) === item.rowid,
|
|
302890
|
+
placement: "top-start"
|
|
302891
|
+
}, {
|
|
302892
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
302893
|
+
onMouseover: event => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(isShowTooltip)(event, item),
|
|
302894
|
+
onMouseleave: _cache[0] || (_cache[0] = (...args) => _ctx.hiddenTooltip && _ctx.hiddenTooltip(...args))
|
|
302895
|
+
}, (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_8vue_type_script_setup_true_lang_js_hoisted_4)])]),
|
|
302896
|
+
_: 2
|
|
302897
|
+
}, 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, {
|
|
302898
|
+
btnNum: _ctx.btnNumLeft,
|
|
302899
|
+
row: item,
|
|
302900
|
+
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(tableData)[0],
|
|
302901
|
+
onHandlerColClick: (funcode, row) => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(handlerColClick)(funcode, row, 1, index)
|
|
302902
|
+
}, null, 8, ["btnNum", "row", "data", "onHandlerColClick"])])])]),
|
|
302903
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form, {
|
|
302904
|
+
"label-width": "auto",
|
|
302905
|
+
inline: "",
|
|
302906
|
+
style: {
|
|
302907
|
+
"max-width": "260px"
|
|
302908
|
+
}
|
|
302909
|
+
}, {
|
|
302910
|
+
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).header.slice(1), (child, index) => {
|
|
302911
|
+
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, {
|
|
302912
|
+
key: index
|
|
302913
|
+
}, [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, {
|
|
302914
|
+
key: 0
|
|
302915
|
+
}, {
|
|
302916
|
+
label: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(child.label) + ": ", 1)]),
|
|
302917
|
+
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[child.prop]), 1)]),
|
|
302918
|
+
_: 2
|
|
302919
|
+
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 64);
|
|
302920
|
+
}), 128))]),
|
|
302921
|
+
_: 2
|
|
302922
|
+
}, 1024)])]),
|
|
302923
|
+
_: 2
|
|
302924
|
+
}, 1032, ["onClick", "class"]);
|
|
302925
|
+
}), 128))], 4)]),
|
|
302926
|
+
_: 1
|
|
302927
|
+
}, 8, ["width"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_main, {
|
|
302928
|
+
style: {
|
|
302929
|
+
"padding": "12px",
|
|
302930
|
+
"background": "#fff"
|
|
302931
|
+
},
|
|
302932
|
+
ref: "mttMainRef"
|
|
302933
|
+
}, {
|
|
302934
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData2)?.[0]?.DataArray?.length > 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_table_group, {
|
|
302935
|
+
key: 0,
|
|
302936
|
+
id: "mtt_panel_8",
|
|
302937
|
+
ref_key: "mtt_panel_8",
|
|
302938
|
+
ref: mtt_panel_8,
|
|
302939
|
+
data: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData2),
|
|
302940
|
+
groupField: "title",
|
|
302941
|
+
handlerConfig: handlerConfig,
|
|
302942
|
+
onCustomEvents: customEvents
|
|
302943
|
+
}, null, 8, ["data", "handlerConfig"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
|
|
302944
|
+
_: 1
|
|
302945
|
+
}, 512)]),
|
|
302946
|
+
_: 1
|
|
302947
|
+
})) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_empty, {
|
|
302948
|
+
"image-size": 200
|
|
302949
|
+
}, {
|
|
302950
|
+
description: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_8]),
|
|
302951
|
+
_: 1
|
|
302952
|
+
})]))]), ((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 => {
|
|
302953
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
302954
|
+
key: form.funcode
|
|
302955
|
+
}, [form.hasListUriType ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", mtt_panel_8vue_type_script_setup_true_lang_js_hoisted_9, [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), {
|
|
302956
|
+
key: 0,
|
|
302957
|
+
form: form,
|
|
302958
|
+
axios: _ctx.axios
|
|
302959
|
+
}, 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_8vue_type_script_setup_true_lang_js_hoisted_10, [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), {
|
|
302960
|
+
key: 0,
|
|
302961
|
+
form: form,
|
|
302962
|
+
axios: _ctx.axios
|
|
302963
|
+
}, null, 8, ["form", "axios"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]))]);
|
|
302964
|
+
}), 128))], 64);
|
|
302965
|
+
};
|
|
302966
|
+
}
|
|
302967
|
+
|
|
302968
|
+
});
|
|
302969
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-8/mtt-panel-8.vue?vue&type=script&setup=true&lang=js
|
|
302970
|
+
/* unplugin-vue-components disabled */
|
|
302971
|
+
;// 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-8/mtt-panel-8.vue?vue&type=style&index=0&id=53295e7e&lang=scss&scoped=true
|
|
302972
|
+
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
302973
|
+
|
|
302974
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-8/mtt-panel-8.vue?vue&type=style&index=0&id=53295e7e&lang=scss&scoped=true
|
|
302975
|
+
/* unplugin-vue-components disabled */
|
|
302976
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/components/mtt-panel-8/mtt-panel-8.vue
|
|
302977
|
+
/* unplugin-vue-components disabled */
|
|
302978
|
+
|
|
302979
|
+
|
|
302980
|
+
;
|
|
302981
|
+
|
|
302982
|
+
|
|
302983
|
+
const mtt_panel_8_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(mtt_panel_8vue_type_script_setup_true_lang_js, [['__scopeId',"data-v-53295e7e"]])
|
|
302984
|
+
|
|
302985
|
+
/* harmony default export */ var mtt_panel_8 = (mtt_panel_8_exports_);
|
|
302986
|
+
;// 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
|
|
302987
|
+
/* unplugin-vue-components disabled */
|
|
302988
|
+
|
|
302989
|
+
|
|
302990
|
+
|
|
302991
|
+
|
|
302992
|
+
|
|
302993
|
+
|
|
302994
|
+
|
|
302995
|
+
|
|
302996
|
+
|
|
302997
|
+
|
|
302998
|
+
|
|
302999
|
+
|
|
303000
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-6e7d4039"), n = n(), _popScopeId(), n);
|
|
303001
|
+
|
|
303002
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
303003
|
+
class: "manager-tree-table-demo",
|
|
303004
|
+
"element-loading-background": "rgba(122, 122, 122, 0.8)",
|
|
303005
|
+
"element-loading-text": "加载中..."
|
|
303006
|
+
};
|
|
303007
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
303008
|
+
key: 0,
|
|
303009
|
+
class: "jt-page-manager-filter"
|
|
303010
|
+
};
|
|
303011
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
303012
|
+
class: "jt-filter-form"
|
|
303013
|
+
};
|
|
303014
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_4 = {
|
|
303015
|
+
key: 2,
|
|
303016
|
+
style: {
|
|
303017
|
+
"margin-right": "6px",
|
|
303018
|
+
"white-space": "nowrap"
|
|
303019
|
+
}
|
|
303020
|
+
};
|
|
303021
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_5 = {
|
|
303022
|
+
key: 3,
|
|
303023
|
+
style: {
|
|
303024
|
+
"margin-right": "6px",
|
|
303025
|
+
"white-space": "nowrap"
|
|
303026
|
+
}
|
|
303027
|
+
};
|
|
303028
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_6 = {
|
|
303029
|
+
key: 5,
|
|
303030
|
+
style: {
|
|
303031
|
+
"margin-right": "6px"
|
|
303032
|
+
}
|
|
303033
|
+
};
|
|
303034
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_7 = {
|
|
303035
|
+
key: 7,
|
|
303036
|
+
style: {
|
|
303037
|
+
"margin-right": "6px",
|
|
303038
|
+
"white-space": "nowrap"
|
|
303039
|
+
}
|
|
303040
|
+
};
|
|
303041
|
+
|
|
303042
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("查询");
|
|
303043
|
+
|
|
303044
|
+
|
|
303045
|
+
|
|
303046
|
+
//左右看板
|
|
303047
|
+
|
|
303048
|
+
//上下看板
|
|
303049
|
+
|
|
303050
|
+
//展开形式看板
|
|
303051
|
+
|
|
303052
|
+
//左侧tab,右侧tree-list
|
|
303053
|
+
|
|
303054
|
+
//左侧树,右侧普通清单
|
|
303055
|
+
|
|
303056
|
+
//左侧tab,右侧分组表格
|
|
303057
|
+
|
|
303058
|
+
|
|
303059
|
+
|
|
303060
|
+
|
|
303061
|
+
|
|
303062
|
+
|
|
303063
|
+
const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
303064
|
+
name: 'manage-tree-table'
|
|
303065
|
+
};
|
|
303066
|
+
/* harmony default export */ var manage_tree_tablevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(manage_tree_tablevue_type_script_setup_true_lang_js_default_, {
|
|
303067
|
+
props: {
|
|
303068
|
+
compPath: String,
|
|
303069
|
+
axios: Function,
|
|
303070
|
+
config: {
|
|
303071
|
+
type: [Object, String],
|
|
303072
|
+
default: () => ({})
|
|
303073
|
+
},
|
|
303074
|
+
buttonWidth: [Number, String],
|
|
303075
|
+
mode: [Number, String],
|
|
303076
|
+
btnNumLeft: {
|
|
303077
|
+
type: [Number, String],
|
|
303078
|
+
default: 1
|
|
303079
|
+
},
|
|
303080
|
+
//右侧按钮数量配置
|
|
303081
|
+
btnNumRight: {
|
|
303082
|
+
type: [Number, String],
|
|
303083
|
+
default: 1
|
|
303084
|
+
},
|
|
303085
|
+
//右侧按钮数量配置
|
|
303086
|
+
accordion: {
|
|
303087
|
+
type: Boolean,
|
|
303088
|
+
default: true
|
|
303089
|
+
},
|
|
303090
|
+
//第三层是否手风琴模式
|
|
303091
|
+
headerHeight: {
|
|
303092
|
+
type: [Number, String],
|
|
303093
|
+
default: 80
|
|
303094
|
+
},
|
|
303095
|
+
//模式2第一层高度
|
|
303096
|
+
isLastLoad: {
|
|
303097
|
+
type: Boolean,
|
|
303098
|
+
default: true
|
|
303099
|
+
}
|
|
303100
|
+
},
|
|
303101
|
+
|
|
303102
|
+
setup(__props) {
|
|
303103
|
+
const props = __props;
|
|
303104
|
+
let pageData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([{
|
|
303105
|
+
retjson: {},
|
|
303106
|
+
DataArray: [],
|
|
303107
|
+
Result: ""
|
|
303108
|
+
}]);
|
|
303109
|
+
let path = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
303110
|
+
const mttpanelRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
303111
|
+
const isLoading = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(true);
|
|
303112
|
+
const queryConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
303113
|
+
const queryParams = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
303114
|
+
radio: 'person_work',
|
|
303115
|
+
checkbox: [],
|
|
303116
|
+
selectid: '',
|
|
303117
|
+
stime: '',
|
|
303118
|
+
etime: '',
|
|
303119
|
+
keyword: ''
|
|
303120
|
+
});
|
|
303121
|
+
const jmttRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
303122
|
+
const isShow = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(false);
|
|
303123
|
+
const button_width = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(500);
|
|
303124
|
+
const cusBtn = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
303125
|
+
|
|
303126
|
+
async function initPage() {
|
|
303127
|
+
try {
|
|
303128
|
+
isLoading.value = true;
|
|
303129
|
+
const tempQueryConfig = typeof props.config == 'string' ? JSON.parse(props.config) : props.config;
|
|
303130
|
+
queryConfig.value = Array.isArray(tempQueryConfig) ? tempQueryConfig[0] : props.config;
|
|
303131
|
+
Object.keys(queryParams).forEach(item => {
|
|
303132
|
+
if (queryConfig.value?.defaultValue && item in queryConfig.value.defaultValue) {
|
|
303133
|
+
queryParams[item] = queryConfig.value.defaultValue[item];
|
|
303134
|
+
}
|
|
303135
|
+
});
|
|
303136
|
+
path.value = props.compPath;
|
|
303137
|
+
button_width.value = props.buttonWidth;
|
|
303138
|
+
search();
|
|
303139
|
+
} catch {
|
|
303140
|
+
isLoading.value = false;
|
|
303141
|
+
}
|
|
303142
|
+
}
|
|
303143
|
+
|
|
303144
|
+
function stimeDisabled(date) {
|
|
303145
|
+
if (queryParams.etime) {
|
|
303146
|
+
const nowDate = new Date(date).getTime();
|
|
303147
|
+
const endDate = new Date(queryParams.etime).getTime();
|
|
303148
|
+
return nowDate > endDate;
|
|
303149
|
+
} else {
|
|
303150
|
+
return false;
|
|
303151
|
+
}
|
|
303152
|
+
}
|
|
303153
|
+
|
|
303154
|
+
function etimeDisabled(date) {
|
|
303155
|
+
if (queryParams.stime) {
|
|
303156
|
+
const nowDate = new Date(date).getTime() + 24 * 3600 * 1000;
|
|
303157
|
+
const endDate = new Date(queryParams.stime).getTime();
|
|
303158
|
+
return nowDate < endDate;
|
|
303159
|
+
} else {
|
|
303160
|
+
return false;
|
|
303161
|
+
}
|
|
303162
|
+
}
|
|
303163
|
+
|
|
303164
|
+
async function search() {
|
|
303165
|
+
cusBtn.value = queryConfig.value?.in_bottons || [];
|
|
303166
|
+
pageData.value = [{
|
|
303167
|
+
retjson: {},
|
|
303168
|
+
DataArray: [],
|
|
303169
|
+
Result: ""
|
|
303170
|
+
}];
|
|
303171
|
+
isLoading.value = true;
|
|
303172
|
+
const queryParmasClone = (0,lodash.cloneDeep)(queryParams);
|
|
303173
|
+
queryParmasClone.checkbox = Array.isArray(queryParmasClone.checkbox) ? queryParmasClone.checkbox.join(',') : queryParmasClone.checkbox;
|
|
303174
|
+
queryParmasClone.stime = dayjs_dayjs_min_default()(queryParmasClone.stime).format('YYYY-MM-DD HH:mm:ss');
|
|
303175
|
+
queryParmasClone.etime = dayjs_dayjs_min_default()(queryParmasClone.etime).format('YYYY-MM-DD HH:mm:ss');
|
|
303176
|
+
const {
|
|
303177
|
+
data
|
|
303178
|
+
} = await props.axios.post(`${path.value}ROOT`, queryParmasClone);
|
|
303179
|
+
pageData.value = data;
|
|
303180
|
+
console.log(pageData.value);
|
|
303181
|
+
|
|
303182
|
+
if ('radio_bottons' in pageData.value[0]) {
|
|
303183
|
+
cusBtn.value.push(...pageData.value[0].radio_bottons);
|
|
303184
|
+
}
|
|
303185
|
+
|
|
303186
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
303187
|
+
isShow.value = true;
|
|
303188
|
+
jtMessage.emit('rootChange', pageData.value);
|
|
303189
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
303190
|
+
if (pageData.value[0].DataArray.length > 0 && (props.mode == 1 || props.mode == 2 || props.mode == 3)) {
|
|
303191
|
+
mttpanelRef.value.cardClick(pageData.value[0].DataArray[0]);
|
|
303192
|
+
}
|
|
303193
|
+
});
|
|
303194
|
+
});
|
|
303195
|
+
isLoading.value = false;
|
|
303196
|
+
}
|
|
303197
|
+
|
|
303198
|
+
async function cusBtnClick(item) {
|
|
303199
|
+
if (props.mode) {
|
|
303200
|
+
mttpanelRef.value.customBtns(item);
|
|
303201
|
+
} else {
|
|
303202
|
+
jmttRef.value.customBtns(item);
|
|
303203
|
+
} // isLoading.value = true
|
|
303204
|
+
// const queryParmasClone = cloneDeep(queryParams)
|
|
303205
|
+
// queryParmasClone.checkbox = Array.isArray(queryParmasClone.checkbox) ? queryParmasClone.checkbox.join(',') : queryParmasClone.checkbox
|
|
303206
|
+
// queryParmasClone.stime = dayjs(queryParmasClone.stime).format('YYYY-MM-DD HH:mm:ss')
|
|
303207
|
+
// queryParmasClone.etime = dayjs(queryParmasClone.etime).format('YYYY-MM-DD HH:mm:ss')
|
|
303208
|
+
// isLoading.value = false
|
|
301712
303209
|
|
|
301713
303210
|
}
|
|
301714
303211
|
|
|
@@ -301898,7 +303395,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
301898
303395
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
|
|
301899
303396
|
height: queryConfig.value ? 'calc(100% - 50px)' : '100%'
|
|
301900
303397
|
})
|
|
301901
|
-
}, [isShow.value && !__props.mode ? ((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)(
|
|
303398
|
+
}, [isShow.value && !__props.mode ? ((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)(components_jt_page_manager_tree_table), {
|
|
301902
303399
|
key: 0,
|
|
301903
303400
|
ref_key: "jmttRef",
|
|
301904
303401
|
ref: jmttRef,
|
|
@@ -301938,6 +303435,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
301938
303435
|
tableData: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData),
|
|
301939
303436
|
axios: __props.axios,
|
|
301940
303437
|
compPath: __props.compPath,
|
|
303438
|
+
mode: __props.mode,
|
|
301941
303439
|
btnNumLeft: __props.btnNumLeft,
|
|
301942
303440
|
btnNumRight: __props.btnNumRight,
|
|
301943
303441
|
cusBoxHeight: 'auto',
|
|
@@ -301952,7 +303450,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
301952
303450
|
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(scope => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
301953
303451
|
item: scope.item
|
|
301954
303452
|
})])
|
|
301955
|
-
} : undefined]), 1032, ["path", "tableData", "axios", "compPath", "btnNumLeft", "btnNumRight", "headerHeight", "accordion", "buttonWidth"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isShow.value && __props.mode == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(mtt_panel_2, {
|
|
303453
|
+
} : undefined]), 1032, ["path", "tableData", "axios", "compPath", "mode", "btnNumLeft", "btnNumRight", "headerHeight", "accordion", "buttonWidth"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isShow.value && __props.mode == 3 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(mtt_panel_2, {
|
|
301956
303454
|
key: 3,
|
|
301957
303455
|
ref_key: "mttpanelRef",
|
|
301958
303456
|
ref: mttpanelRef,
|
|
@@ -301960,11 +303458,82 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
301960
303458
|
tableData: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData),
|
|
301961
303459
|
axios: __props.axios,
|
|
301962
303460
|
compPath: __props.compPath,
|
|
303461
|
+
mode: __props.mode,
|
|
303462
|
+
btnNumLeft: __props.btnNumLeft,
|
|
303463
|
+
btnNumRight: __props.btnNumRight,
|
|
303464
|
+
cusBoxHeight: 'auto',
|
|
303465
|
+
accordion: __props.accordion,
|
|
303466
|
+
initPageEvent: search,
|
|
303467
|
+
buttonWidth: button_width.value
|
|
303468
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
303469
|
+
_: 2
|
|
303470
|
+
}, [_ctx.$slots.cusComp ? {
|
|
303471
|
+
name: "cusComp",
|
|
303472
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(scope => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
303473
|
+
item: scope.item
|
|
303474
|
+
})])
|
|
303475
|
+
} : undefined]), 1032, ["path", "tableData", "axios", "compPath", "mode", "btnNumLeft", "btnNumRight", "accordion", "buttonWidth"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isShow.value && __props.mode == 5 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(mtt_panel_5, {
|
|
303476
|
+
key: 4,
|
|
303477
|
+
ref_key: "mttpanelRef",
|
|
303478
|
+
ref: mttpanelRef,
|
|
303479
|
+
path: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(path),
|
|
303480
|
+
tableData: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData),
|
|
303481
|
+
axios: __props.axios,
|
|
303482
|
+
compPath: __props.compPath,
|
|
303483
|
+
btnNumLeft: __props.btnNumLeft,
|
|
303484
|
+
btnNumRight: __props.btnNumRight,
|
|
303485
|
+
mode: __props.mode,
|
|
303486
|
+
cusBoxHeight: 'auto',
|
|
303487
|
+
accordion: __props.accordion,
|
|
303488
|
+
initPageEvent: search,
|
|
303489
|
+
queryConfig: queryConfig.value,
|
|
303490
|
+
buttonWidth: button_width.value
|
|
303491
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
303492
|
+
_: 2
|
|
303493
|
+
}, [_ctx.$slots.cusComp ? {
|
|
303494
|
+
name: "cusComp",
|
|
303495
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(scope => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
303496
|
+
item: scope.item
|
|
303497
|
+
})])
|
|
303498
|
+
} : undefined]), 1032, ["path", "tableData", "axios", "compPath", "btnNumLeft", "btnNumRight", "mode", "accordion", "queryConfig", "buttonWidth"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isShow.value && __props.mode == 7 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(mtt_panel_7, {
|
|
303499
|
+
key: 5,
|
|
303500
|
+
ref_key: "mttpanelRef",
|
|
303501
|
+
ref: mttpanelRef,
|
|
303502
|
+
path: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(path),
|
|
303503
|
+
tableData: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData),
|
|
303504
|
+
axios: __props.axios,
|
|
303505
|
+
compPath: __props.compPath,
|
|
303506
|
+
mode: __props.mode,
|
|
303507
|
+
btnNumLeft: __props.btnNumLeft,
|
|
303508
|
+
btnNumRight: __props.btnNumRight,
|
|
303509
|
+
cusBoxHeight: 'auto',
|
|
303510
|
+
accordion: __props.accordion,
|
|
303511
|
+
initPageEvent: search,
|
|
303512
|
+
queryConfig: queryConfig.value,
|
|
303513
|
+
isLastLoad: __props.isLastLoad,
|
|
303514
|
+
buttonWidth: button_width.value
|
|
303515
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
303516
|
+
_: 2
|
|
303517
|
+
}, [_ctx.$slots.cusComp ? {
|
|
303518
|
+
name: "cusComp",
|
|
303519
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(scope => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
303520
|
+
item: scope.item
|
|
303521
|
+
})])
|
|
303522
|
+
} : undefined]), 1032, ["path", "tableData", "axios", "compPath", "mode", "btnNumLeft", "btnNumRight", "accordion", "queryConfig", "isLastLoad", "buttonWidth"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), isShow.value && __props.mode == 8 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(mtt_panel_8, {
|
|
303523
|
+
key: 6,
|
|
303524
|
+
ref_key: "mttpanelRef",
|
|
303525
|
+
ref: mttpanelRef,
|
|
303526
|
+
path: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(path),
|
|
303527
|
+
tableData: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(pageData),
|
|
303528
|
+
mode: __props.mode,
|
|
303529
|
+
axios: __props.axios,
|
|
303530
|
+
compPath: __props.compPath,
|
|
301963
303531
|
btnNumLeft: __props.btnNumLeft,
|
|
301964
303532
|
btnNumRight: __props.btnNumRight,
|
|
301965
303533
|
cusBoxHeight: 'auto',
|
|
301966
303534
|
accordion: __props.accordion,
|
|
301967
303535
|
initPageEvent: search,
|
|
303536
|
+
queryConfig: queryConfig.value,
|
|
301968
303537
|
buttonWidth: button_width.value
|
|
301969
303538
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
301970
303539
|
_: 2
|
|
@@ -301973,7 +303542,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
301973
303542
|
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(scope => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "cusComp", {
|
|
301974
303543
|
item: scope.item
|
|
301975
303544
|
})])
|
|
301976
|
-
} : undefined]), 1032, ["path", "tableData", "axios", "compPath", "btnNumLeft", "btnNumRight", "accordion", "buttonWidth"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)])), [[_directive_loading, isLoading.value]])]),
|
|
303545
|
+
} : undefined]), 1032, ["path", "tableData", "mode", "axios", "compPath", "btnNumLeft", "btnNumRight", "accordion", "queryConfig", "buttonWidth"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 4)])), [[_directive_loading, isLoading.value]])]),
|
|
301977
303546
|
_: 3
|
|
301978
303547
|
}, 8, ["locale"]);
|
|
301979
303548
|
};
|
|
@@ -301982,10 +303551,10 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
301982
303551
|
}));
|
|
301983
303552
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=script&setup=true&lang=js
|
|
301984
303553
|
/* unplugin-vue-components disabled */
|
|
301985
|
-
;// 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=
|
|
303554
|
+
;// 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=6e7d4039&scoped=true&lang=scss
|
|
301986
303555
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
301987
303556
|
|
|
301988
|
-
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=
|
|
303557
|
+
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue?vue&type=style&index=0&id=6e7d4039&scoped=true&lang=scss
|
|
301989
303558
|
/* unplugin-vue-components disabled */
|
|
301990
303559
|
;// CONCATENATED MODULE: ./packages/manage-tree-table/index.vue
|
|
301991
303560
|
/* unplugin-vue-components disabled */
|
|
@@ -301994,7 +303563,7 @@ const manage_tree_tablevue_type_script_setup_true_lang_js_default_ = {
|
|
|
301994
303563
|
;
|
|
301995
303564
|
|
|
301996
303565
|
|
|
301997
|
-
const manage_tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(manage_tree_tablevue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
303566
|
+
const manage_tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(manage_tree_tablevue_type_script_setup_true_lang_js, [['__scopeId',"data-v-6e7d4039"]])
|
|
301998
303567
|
|
|
301999
303568
|
/* harmony default export */ var manage_tree_table = (manage_tree_table_exports_);
|
|
302000
303569
|
;// CONCATENATED MODULE: ./packages/index.js
|
|
@@ -302015,9 +303584,10 @@ const manage_tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(
|
|
|
302015
303584
|
|
|
302016
303585
|
|
|
302017
303586
|
|
|
303587
|
+
|
|
302018
303588
|
// 组件列表
|
|
302019
303589
|
|
|
302020
|
-
const components = [packages_form_0, table_base, table_group, table_big_data, tree_table, upload, packages_echarts, packages_Search_Type, manage_tree_table]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
|
303590
|
+
const components = [packages_form_0, table_base, table_group, table_big_data, tree_table, upload, packages_echarts, packages_Search_Type, manage_tree_table, components_jt_page_manager_tree_table]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
|
302021
303591
|
|
|
302022
303592
|
const packages_install = function (Vue) {
|
|
302023
303593
|
// 判断是否安装
|