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