jtui3.0 1.0.67 → 1.0.69

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.
@@ -34734,7 +34734,7 @@ Object.defineProperty(exports, "__esModule", ({
34734
34734
  }));
34735
34735
  exports.commands = void 0;
34736
34736
 
34737
- var _store = _interopRequireDefault(__webpack_require__(7992));
34737
+ var _store = _interopRequireDefault(__webpack_require__(3482));
34738
34738
 
34739
34739
  function _interopRequireDefault(obj) {
34740
34740
  return obj && obj.__esModule ? obj : {
@@ -35113,7 +35113,7 @@ Object.defineProperty(exports, "__esModule", ({
35113
35113
  }));
35114
35114
  exports.formats = void 0;
35115
35115
 
35116
- var _store = _interopRequireDefault(__webpack_require__(7992));
35116
+ var _store = _interopRequireDefault(__webpack_require__(3482));
35117
35117
 
35118
35118
  function _interopRequireDefault(obj) {
35119
35119
  return obj && obj.__esModule ? obj : {
@@ -35139,7 +35139,7 @@ Object.defineProperty(exports, "__esModule", ({
35139
35139
  }));
35140
35140
  exports.hooks = void 0;
35141
35141
 
35142
- var _store = _interopRequireDefault(__webpack_require__(7992));
35142
+ var _store = _interopRequireDefault(__webpack_require__(3482));
35143
35143
 
35144
35144
  function _interopRequireDefault(obj) {
35145
35145
  return obj && obj.__esModule ? obj : {
@@ -35233,7 +35233,7 @@ Object.defineProperty(exports, "__esModule", ({
35233
35233
  }));
35234
35234
  exports.menus = void 0;
35235
35235
 
35236
- var _store = _interopRequireDefault(__webpack_require__(7992));
35236
+ var _store = _interopRequireDefault(__webpack_require__(3482));
35237
35237
 
35238
35238
  function _interopRequireDefault(obj) {
35239
35239
  return obj && obj.__esModule ? obj : {
@@ -36147,7 +36147,7 @@ exports.setup = setup;
36147
36147
 
36148
36148
  /***/ }),
36149
36149
 
36150
- /***/ 7992:
36150
+ /***/ 3482:
36151
36151
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
36152
36152
 
36153
36153
  "use strict";
@@ -90457,7 +90457,7 @@ function useFilterData() {
90457
90457
  /*
90458
90458
  * @Author: leevan
90459
90459
  * @Date: 2022-07-12 16:59:44
90460
- * @LastEditTime: 2023-08-31 14:40:14
90460
+ * @LastEditTime: 2024-02-04 15:10:57
90461
90461
  * @LastEditors: leevan
90462
90462
  * @FilePath: /jtui3.0/packages/tables/hooks/useFormatter.js
90463
90463
  */
@@ -99459,11 +99459,11 @@ function cascadervue_type_template_id_6775b4a7_render(_ctx, _cache, $props, $set
99459
99459
  const cascader_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(cascadervue_type_script_lang_js, [['render',cascadervue_type_template_id_6775b4a7_render]])
99460
99460
 
99461
99461
  /* harmony default export */ var cascader = (cascader_exports_);
99462
- ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/hooks/edit-render/cascader-select.vue?vue&type=template&id=5954d7fa
99462
+ ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/hooks/edit-render/cascader-select.vue?vue&type=template&id=33ac6616
99463
99463
  /* unplugin-vue-components disabled */
99464
99464
 
99465
99465
 
99466
- function cascader_selectvue_type_template_id_5954d7fa_render(_ctx, _cache, $props, $setup, $data, $options) {
99466
+ function cascader_selectvue_type_template_id_33ac6616_render(_ctx, _cache, $props, $setup, $data, $options) {
99467
99467
  const _component_el_option = ElOption;
99468
99468
 
99469
99469
  const _component_el_select = ElSelect;
@@ -99483,7 +99483,7 @@ function cascader_selectvue_type_template_id_5954d7fa_render(_ctx, _cache, $prop
99483
99483
  _: 1
99484
99484
  }, 8, ["onChange", "onVisibleChange"])]);
99485
99485
  }
99486
- ;// CONCATENATED MODULE: ./packages/tables/hooks/edit-render/cascader-select.vue?vue&type=template&id=5954d7fa
99486
+ ;// CONCATENATED MODULE: ./packages/tables/hooks/edit-render/cascader-select.vue?vue&type=template&id=33ac6616
99487
99487
  /* unplugin-vue-components disabled */
99488
99488
  ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/hooks/edit-render/cascader-select.vue?vue&type=script&lang=js
99489
99489
  /* unplugin-vue-components disabled */
@@ -99507,7 +99507,12 @@ function cascader_selectvue_type_template_id_5954d7fa_render(_ctx, _cache, $prop
99507
99507
  selectValue.value = row[column.field];
99508
99508
 
99509
99509
  if (Array.isArray(opts)) {
99510
- options.value = opts;
99510
+ row.cascaderOpt = {};
99511
+ row.cascaderOpt[column.field] = opts;
99512
+ }
99513
+
99514
+ if ('cascaderOpt' in row && column.field in row.cascaderOpt) {
99515
+ options.value = row.cascaderOpt[column.field];
99511
99516
  }
99512
99517
  }
99513
99518
 
@@ -99523,10 +99528,9 @@ function cascader_selectvue_type_template_id_5954d7fa_render(_ctx, _cache, $prop
99523
99528
  const {
99524
99529
  path,
99525
99530
  params,
99526
- nextProp,
99527
- options: opts
99531
+ nextProp
99528
99532
  } = column.editRender;
99529
- const temp = opts.find(item => item.value === data);
99533
+ const temp = row.cascaderOpt[column.field].find(item => item.value === data);
99530
99534
  row[column.field] = temp;
99531
99535
 
99532
99536
  if (nextProp) {
@@ -99534,14 +99538,39 @@ function cascader_selectvue_type_template_id_5954d7fa_render(_ctx, _cache, $prop
99534
99538
  axios.post(path + '/' + data, params).then(async ({
99535
99539
  data: res
99536
99540
  }) => {
99537
- nextCol.editRender.options = res;
99541
+ if ('cascaderOpt' in row && nextCol) {
99542
+ row.cascaderOpt[nextCol.field] = res;
99543
+ clearNextCol(nextCol);
99544
+ }
99538
99545
 
99539
99546
  if ($table) {
99540
99547
  await $table.clearEdit();
99541
99548
  }
99542
99549
  });
99543
99550
  }
99544
- }
99551
+
99552
+ function clearNextCol(nextCol) {
99553
+ if (nextCol) {
99554
+ row[nextCol.field] = '';
99555
+ const {
99556
+ nextProp
99557
+ } = nextCol.editRender;
99558
+ const nextColChild = $table.getColumnByField(nextProp);
99559
+ clearNextCol(nextColChild);
99560
+ }
99561
+ }
99562
+ } // function mockChild(){
99563
+ // return [
99564
+ // {
99565
+ // label:`这是${Math.floor(Math.random() * 1000) + 1}`,
99566
+ // value:Math.floor(Math.random() * 1000) + 1
99567
+ // },{
99568
+ // label:`这是${Math.floor(Math.random() * 1000) + 1}`,
99569
+ // value:Math.floor(Math.random() * 1000) + 1
99570
+ // }
99571
+ // ]
99572
+ // }
99573
+
99545
99574
 
99546
99575
  async function visibleChange(val) {
99547
99576
  if (val === false) {
@@ -99568,14 +99597,14 @@ function cascader_selectvue_type_template_id_5954d7fa_render(_ctx, _cache, $prop
99568
99597
 
99569
99598
 
99570
99599
  ;
99571
- const cascader_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(cascader_selectvue_type_script_lang_js, [['render',cascader_selectvue_type_template_id_5954d7fa_render]])
99600
+ const cascader_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(cascader_selectvue_type_script_lang_js, [['render',cascader_selectvue_type_template_id_33ac6616_render]])
99572
99601
 
99573
99602
  /* harmony default export */ var cascader_select = (cascader_select_exports_);
99574
- ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/hooks/edit-render/cus-select.vue?vue&type=template&id=411a42b6
99603
+ ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/hooks/edit-render/cus-select.vue?vue&type=template&id=61f3ece2
99575
99604
  /* unplugin-vue-components disabled */
99576
99605
 
99577
99606
 
99578
- function cus_selectvue_type_template_id_411a42b6_render(_ctx, _cache, $props, $setup, $data, $options) {
99607
+ function cus_selectvue_type_template_id_61f3ece2_render(_ctx, _cache, $props, $setup, $data, $options) {
99579
99608
  const _component_el_option = ElOption;
99580
99609
 
99581
99610
  const _component_el_select = ElSelect;
@@ -99601,7 +99630,7 @@ function cus_selectvue_type_template_id_411a42b6_render(_ctx, _cache, $props, $s
99601
99630
  _: 1
99602
99631
  }, 8, ["modelValue", "filterable", "allow-create", "multiple", "onChange", "onVisibleChange"])]);
99603
99632
  }
99604
- ;// CONCATENATED MODULE: ./packages/tables/hooks/edit-render/cus-select.vue?vue&type=template&id=411a42b6
99633
+ ;// CONCATENATED MODULE: ./packages/tables/hooks/edit-render/cus-select.vue?vue&type=template&id=61f3ece2
99605
99634
  /* unplugin-vue-components disabled */
99606
99635
  ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/hooks/edit-render/cus-select.vue?vue&type=script&lang=js
99607
99636
  /* unplugin-vue-components disabled */
@@ -99612,7 +99641,6 @@ function cus_selectvue_type_template_id_411a42b6_render(_ctx, _cache, $props, $s
99612
99641
  const tableVM = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRef)(props, 'params');
99613
99642
  const value = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)('');
99614
99643
  const options = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
99615
- console.log(tableVM);
99616
99644
  load();
99617
99645
 
99618
99646
  function load() {
@@ -99667,7 +99695,7 @@ function cus_selectvue_type_template_id_411a42b6_render(_ctx, _cache, $props, $s
99667
99695
 
99668
99696
 
99669
99697
  ;
99670
- const cus_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(cus_selectvue_type_script_lang_js, [['render',cus_selectvue_type_template_id_411a42b6_render]])
99698
+ const cus_select_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(cus_selectvue_type_script_lang_js, [['render',cus_selectvue_type_template_id_61f3ece2_render]])
99671
99699
 
99672
99700
  /* harmony default export */ var cus_select = (cus_select_exports_);
99673
99701
  ;// CONCATENATED MODULE: ./packages/tables/hooks/edit-render/edit-render.js
@@ -105068,7 +105096,7 @@ const ElColorPicker = _ColorPicker;
105068
105096
 
105069
105097
 
105070
105098
 
105071
- ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=template&id=422c2ffa&scoped=true
105099
+ ;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=template&id=c5c6e504&scoped=true
105072
105100
  /* unplugin-vue-components disabled */
105073
105101
 
105074
105102
 
@@ -105078,26 +105106,26 @@ const ElColorPicker = _ColorPicker;
105078
105106
 
105079
105107
 
105080
105108
 
105081
- const echartsvue_type_template_id_422c2ffa_scoped_true_withScopeId = n => (_pushScopeId("data-v-422c2ffa"), n = n(), _popScopeId(), n);
105109
+ const echartsvue_type_template_id_c5c6e504_scoped_true_withScopeId = n => (_pushScopeId("data-v-c5c6e504"), n = n(), _popScopeId(), n);
105082
105110
 
105083
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_1 = {
105111
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_1 = {
105084
105112
  class: "echarts-wapper"
105085
105113
  };
105086
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_2 = ["id"];
105114
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_2 = ["id"];
105087
105115
 
105088
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105116
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105089
105117
 
105090
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105118
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105091
105119
 
105092
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105120
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105093
105121
 
105094
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105122
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105095
105123
 
105096
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105124
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105097
105125
 
105098
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105126
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105099
105127
 
105100
- function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
105128
+ function echartsvue_type_template_id_c5c6e504_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
105101
105129
  const _component_el_switch = ElSwitch;
105102
105130
 
105103
105131
  const _component_el_form_item = ElFormItem;
@@ -105112,11 +105140,11 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105112
105140
 
105113
105141
  const _component_el_dialog = ElDialog;
105114
105142
 
105115
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
105143
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
105116
105144
  ref: el => $setup.setRef(el),
105117
105145
  id: $props.id,
105118
105146
  class: "jt-chart-vm"
105119
- }, null, 8, echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
105147
+ }, null, 8, echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
105120
105148
  class: "jtIcon iconpeizhi41 eitid-icon",
105121
105149
  onClick: _cache[0] || (_cache[0] = $event => $setup.dialogVisible = true)
105122
105150
  }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dialog, {
@@ -105199,21 +105227,21 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105199
105227
  "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => $setup.gridLineConfig.lineType = $event),
105200
105228
  label: "solid"
105201
105229
  }, {
105202
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_3]),
105230
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_3]),
105203
105231
  _: 1
105204
105232
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105205
105233
  modelValue: $setup.gridLineConfig.lineType,
105206
105234
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => $setup.gridLineConfig.lineType = $event),
105207
105235
  label: "dashed"
105208
105236
  }, {
105209
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_4]),
105237
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_4]),
105210
105238
  _: 1
105211
105239
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105212
105240
  modelValue: $setup.gridLineConfig.lineType,
105213
105241
  "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => $setup.gridLineConfig.lineType = $event),
105214
105242
  label: "dotted"
105215
105243
  }, {
105216
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_5]),
105244
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_5]),
105217
105245
  _: 1
105218
105246
  }, 8, ["modelValue"])]),
105219
105247
  _: 1
@@ -105260,21 +105288,21 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105260
105288
  "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => $setup.tickLineConfig.lineType = $event),
105261
105289
  label: "solid"
105262
105290
  }, {
105263
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_6]),
105291
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_6]),
105264
105292
  _: 1
105265
105293
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105266
105294
  modelValue: $setup.tickLineConfig.lineType,
105267
105295
  "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => $setup.tickLineConfig.lineType = $event),
105268
105296
  label: "dashed"
105269
105297
  }, {
105270
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_7]),
105298
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_7]),
105271
105299
  _: 1
105272
105300
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105273
105301
  modelValue: $setup.tickLineConfig.lineType,
105274
105302
  "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => $setup.tickLineConfig.lineType = $event),
105275
105303
  label: "dotted"
105276
105304
  }, {
105277
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_8]),
105305
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_8]),
105278
105306
  _: 1
105279
105307
  }, 8, ["modelValue"])]),
105280
105308
  _: 1
@@ -105284,7 +105312,7 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105284
105312
  _: 1
105285
105313
  }, 8, ["modelValue"])]);
105286
105314
  }
105287
- ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=422c2ffa&scoped=true
105315
+ ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=c5c6e504&scoped=true
105288
105316
  /* unplugin-vue-components disabled */
105289
105317
  ;// CONCATENATED MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
105290
105318
 
@@ -223820,6 +223848,14 @@ const erd = element_resize_detector_default()();
223820
223848
  //自定义事件间隔
223821
223849
  customIntrerVal: {
223822
223850
  type: Number
223851
+ },
223852
+ yLeft: {
223853
+ type: String,
223854
+ default: ''
223855
+ },
223856
+ yRight: {
223857
+ type: String,
223858
+ default: ''
223823
223859
  }
223824
223860
  },
223825
223861
 
@@ -223838,22 +223874,29 @@ const erd = element_resize_detector_default()();
223838
223874
 
223839
223875
  let chartVM;
223840
223876
  let option;
223841
- let tempArray = [];
223877
+ const isDoubleY = props.data.findIndex(item => 'yAxisIndex' in item && item.yAxisIndex == 1) != -1;
223878
+ let tempArray = []; //左边y轴的数据
223879
+
223880
+ let tempArrayRight = []; //右边y轴的数据
223881
+
223842
223882
  props.data.forEach(item => {
223843
- tempArray = tempArray.concat(item.data);
223883
+ if ('yAxisIndex' in item && item.yAxisIndex == 1) {
223884
+ tempArrayRight = tempArrayRight.concat(item.data);
223885
+ } else {
223886
+ tempArray = tempArray.concat(item.data);
223887
+ }
223844
223888
  });
223845
223889
 
223846
223890
  if (timeRange.value && tempArray.length != 0) {
223847
- const {
223848
- minVal,
223849
- maxVal
223850
- } = getMaxAndMinValue();
223851
223891
  option = {
223852
223892
  xAxis: {
223853
223893
  type: "value",
223854
223894
  min: new Date(timeRange.value[0]).getTime(),
223855
223895
  max: new Date(timeRange.value[1]).getTime(),
223856
223896
  interval: 6 * 60 * 60 * 1000,
223897
+ nameTextStyle: {
223898
+ padding: [0, 0, 0, 20]
223899
+ },
223857
223900
  axisLabel: {
223858
223901
  formatter: function (e) {
223859
223902
  let temp;
@@ -223901,17 +223944,35 @@ const erd = element_resize_detector_default()();
223901
223944
  tooltip: {
223902
223945
  trigger: 'axis',
223903
223946
  formatter: params => {
223904
- return `${dayjs_dayjs_min_default()(params[0].data[0]).format('YYYY-MM-DD HH:mm')}
223905
- <br/>${params[0].seriesName}:${params[0].data[1]}`;
223947
+ let str = '';
223948
+ params.forEach(item => {
223949
+ str += `<br/>${item.seriesName}:${item.data[1]}`;
223950
+ });
223951
+ return `${dayjs_dayjs_min_default()(params[0].data[0]).format('YYYY-MM-DD HH:mm')}${str}`;
223906
223952
  }
223907
223953
  },
223954
+ grid: {
223955
+ bottom: 80
223956
+ },
223908
223957
  legend: {
223909
223958
  data: []
223910
223959
  },
223911
- yAxis: {
223912
- type: 'value',
223913
- min: minVal,
223914
- max: maxVal,
223960
+ yAxis: [],
223961
+ dataZoom: [{
223962
+ type: 'inside',
223963
+ xAxisIndex: 0
223964
+ }, {
223965
+ type: 'slider',
223966
+ xAxisIndex: 0
223967
+ }],
223968
+ series: props.data
223969
+ };
223970
+
223971
+ if (isDoubleY) {
223972
+ option.yAxis = [{
223973
+ name: props.yLeft,
223974
+ min: 0,
223975
+ max: 0,
223915
223976
  minorTick: {
223916
223977
  show: true,
223917
223978
  lineStyle: {}
@@ -223928,16 +223989,66 @@ const erd = element_resize_detector_default()();
223928
223989
  color: '#333'
223929
223990
  }
223930
223991
  }
223931
- },
223932
- dataZoom: [{
223933
- type: 'inside',
223934
- xAxisIndex: 0
223935
223992
  }, {
223936
- type: 'slider',
223937
- xAxisIndex: 0
223938
- }],
223939
- series: props.data
223940
- };
223993
+ name: props.yRight,
223994
+ min: 0,
223995
+ max: 5,
223996
+ minorTick: {
223997
+ show: true,
223998
+ lineStyle: {}
223999
+ },
224000
+ minorSplitLine: {
224001
+ show: true,
224002
+ lineStyle: {
224003
+ color: '#ccc'
224004
+ }
224005
+ },
224006
+ splitLine: {
224007
+ show: true,
224008
+ lineStyle: {
224009
+ color: '#333'
224010
+ }
224011
+ }
224012
+ }];
224013
+ } else {
224014
+ option.yAxis = [{
224015
+ name: props.yLeft,
224016
+ min: 0,
224017
+ max: 0,
224018
+ minorTick: {
224019
+ show: true,
224020
+ lineStyle: {}
224021
+ },
224022
+ minorSplitLine: {
224023
+ show: true,
224024
+ lineStyle: {
224025
+ color: '#ccc'
224026
+ }
224027
+ },
224028
+ splitLine: {
224029
+ show: true,
224030
+ lineStyle: {
224031
+ color: '#333'
224032
+ }
224033
+ }
224034
+ }];
224035
+ }
224036
+
224037
+ const {
224038
+ minVal,
224039
+ maxVal
224040
+ } = getMaxAndMinValue(tempArray);
224041
+ option.yAxis[0].min = minVal;
224042
+ option.yAxis[0].max = maxVal;
224043
+
224044
+ if (isDoubleY) {
224045
+ const {
224046
+ minVal: minValRight,
224047
+ maxValRight
224048
+ } = getMaxAndMinValue(tempArrayRight);
224049
+ option.yAxis[1].min = minValRight;
224050
+ option.yAxis[1].max = maxValRight;
224051
+ }
223941
224052
  } else {
223942
224053
  option = {
223943
224054
  title: {
@@ -224029,7 +224140,6 @@ const erd = element_resize_detector_default()();
224029
224140
  option.xAxis.max = maxTime;
224030
224141
  option.legend.data = option.series.map(item => item.name);
224031
224142
  setGridLine(gridLineConfig);
224032
- console.log(option, 111);
224033
224143
  chartVM.setOption(option, true);
224034
224144
  } //监听网格线相关设置操作
224035
224145
 
@@ -224046,36 +224156,95 @@ const erd = element_resize_detector_default()();
224046
224156
 
224047
224157
  function setGridLine(obj) {
224048
224158
  option.xAxis.minorTick.show = obj.tickX;
224049
- option.yAxis.minorTick.show = obj.tickY;
224159
+ option.yAxis[0].minorTick.show = obj.tickY;
224160
+
224161
+ if (isDoubleY) {
224162
+ option.yAxis[1].minorTick.show = obj.tickY;
224163
+ }
224164
+
224050
224165
  option.xAxis.minorSplitLine.show = obj.lineX;
224051
- option.yAxis.minorSplitLine.show = obj.lineY;
224166
+ option.yAxis[0].minorSplitLine.show = obj.lineY;
224167
+
224168
+ if (isDoubleY) {
224169
+ option.yAxis[1].minorSplitLine.show = obj.lineY;
224170
+ }
224171
+
224052
224172
  option.xAxis.minorSplitLine.lineStyle.color = obj.lineColor;
224053
- option.yAxis.minorSplitLine.lineStyle.color = obj.lineColor;
224173
+ option.yAxis[0].minorSplitLine.lineStyle.color = obj.lineColor;
224174
+
224175
+ if (isDoubleY) {
224176
+ option.yAxis[1].minorSplitLine.lineStyle.color = obj.lineColor;
224177
+ }
224178
+
224054
224179
  option.xAxis.minorTick.lineStyle.width = obj.lineWidth;
224055
- option.yAxis.minorTick.lineStyle.width = obj.lineWidth;
224180
+ option.yAxis[0].minorTick.lineStyle.width = obj.lineWidth;
224181
+
224182
+ if (isDoubleY) {
224183
+ option.yAxis[1].minorTick.lineStyle.width = obj.lineWidth;
224184
+ }
224185
+
224056
224186
  option.xAxis.minorSplitLine.lineStyle.width = obj.lineWidth;
224057
- option.yAxis.minorSplitLine.lineStyle.width = obj.lineWidth;
224187
+ option.yAxis[0].minorSplitLine.lineStyle.width = obj.lineWidth;
224188
+
224189
+ if (isDoubleY) {
224190
+ option.yAxis[1].minorSplitLine.lineStyle.width = obj.lineWidth;
224191
+ }
224192
+
224058
224193
  option.xAxis.minorTick.lineStyle.type = obj.lineType;
224059
- option.yAxis.minorTick.lineStyle.type = obj.lineType;
224194
+ option.yAxis[0].minorTick.lineStyle.type = obj.lineType;
224195
+
224196
+ if (isDoubleY) {
224197
+ option.yAxis[1].minorTick.lineStyle.type = obj.lineType;
224198
+ }
224199
+
224060
224200
  option.xAxis.minorSplitLine.lineStyle.type = obj.lineType;
224061
- option.yAxis.minorSplitLine.lineStyle.type = obj.lineType;
224201
+ option.yAxis[0].minorSplitLine.lineStyle.type = obj.lineType;
224202
+
224203
+ if (isDoubleY) {
224204
+ option.yAxis[1].minorSplitLine.lineStyle.type = obj.lineType;
224205
+ }
224206
+
224062
224207
  option.xAxis.minorTick.splitNumber = obj.splitNumber;
224208
+ option.yAxis[0].minorTick.splitNumber = obj.splitNumber;
224209
+
224210
+ if (isDoubleY) {
224211
+ option.yAxis[1].minorTick.splitNumber = obj.splitNumber;
224212
+ }
224063
224213
  } //刻度线相关设置
224064
224214
 
224065
224215
 
224066
224216
  function setTickLine(obj) {
224067
224217
  //显隐
224068
224218
  option.xAxis.splitLine.show = obj.tickX;
224069
- option.yAxis.splitLine.show = obj.tickY; //颜色
224219
+ option.yAxis[0].splitLine.show = obj.tickY;
224220
+
224221
+ if (isDoubleY) {
224222
+ option.yAxis[1].splitLine.show = obj.tickY;
224223
+ } //颜色
224224
+
224070
224225
 
224071
224226
  option.xAxis.splitLine.lineStyle.color = obj.lineColor;
224072
- option.yAxis.splitLine.lineStyle.color = obj.lineColor; //线宽
224227
+ option.yAxis[0].splitLine.lineStyle.color = obj.lineColor;
224228
+
224229
+ if (isDoubleY) {
224230
+ option.yAxis[1].splitLine.lineStyle.color = obj.lineColor;
224231
+ } //线宽
224232
+
224073
224233
 
224074
224234
  option.xAxis.splitLine.lineStyle.width = obj.lineWidth;
224075
- option.yAxis.splitLine.lineStyle.width = obj.lineWidth; //类型
224235
+ option.yAxis[0].splitLine.lineStyle.width = obj.lineWidth;
224236
+
224237
+ if (isDoubleY) {
224238
+ option.yAxis[1].splitLine.lineStyle.width = obj.lineWidth;
224239
+ } //类型
224240
+
224076
224241
 
224077
224242
  option.xAxis.splitLine.lineStyle.type = obj.lineType;
224078
- option.yAxis.splitLine.lineStyle.type = obj.lineType;
224243
+ option.yAxis[0].splitLine.lineStyle.type = obj.lineType;
224244
+
224245
+ if (isDoubleY) {
224246
+ option.yAxis[1].splitLine.lineStyle.type = obj.lineType;
224247
+ }
224079
224248
  } //自定义配置持久化
224080
224249
 
224081
224250
 
@@ -224098,13 +224267,19 @@ const erd = element_resize_detector_default()();
224098
224267
  } //计算图表y轴最大值和最小值
224099
224268
 
224100
224269
 
224101
- function getMaxAndMinValue() {
224270
+ function getMaxAndMinValue(tempArray) {
224102
224271
  let minVal, maxVal;
224103
- const tempArraySort = tempArray.sort((a, b) => {
224272
+ const tempArraySort = tempArray.filter(item => item[1] != null).sort((a, b) => {
224104
224273
  return a[1] - b[1];
224105
224274
  });
224106
- minVal = tempArraySort[0][1];
224107
- maxVal = tempArraySort[tempArraySort.length - 1][1];
224275
+
224276
+ if (tempArraySort.length == 0) {
224277
+ minVal = 0, maxVal = 1;
224278
+ } else {
224279
+ minVal = tempArraySort[0][1];
224280
+ maxVal = tempArraySort[tempArraySort.length - 1][1];
224281
+ }
224282
+
224108
224283
  const sub = maxVal - minVal;
224109
224284
  minVal = Math.floor((minVal - sub * props.maxAndMinLevel) * Math.pow(10, props.yMaxAndMinkeepDecimal)) / Math.pow(10, props.yMaxAndMinkeepDecimal);
224110
224285
  maxVal = Math.ceil((maxVal + sub * props.maxAndMinLevel) * Math.pow(10, props.yMaxAndMinkeepDecimal)) / Math.pow(10, props.yMaxAndMinkeepDecimal);
@@ -224130,10 +224305,10 @@ const erd = element_resize_detector_default()();
224130
224305
  });
224131
224306
  ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=script&lang=js
224132
224307
  /* unplugin-vue-components disabled */
224133
- ;// 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/echarts/index.vue?vue&type=style&index=0&id=422c2ffa&lang=scss&scoped=true
224308
+ ;// 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/echarts/index.vue?vue&type=style&index=0&id=c5c6e504&lang=scss&scoped=true
224134
224309
  /* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
224135
224310
 
224136
- ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=422c2ffa&lang=scss&scoped=true
224311
+ ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=c5c6e504&lang=scss&scoped=true
224137
224312
  /* unplugin-vue-components disabled */
224138
224313
  ;// CONCATENATED MODULE: ./packages/echarts/index.vue
224139
224314
  /* unplugin-vue-components disabled */
@@ -224143,7 +224318,7 @@ const erd = element_resize_detector_default()();
224143
224318
  ;
224144
224319
 
224145
224320
 
224146
- const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',echartsvue_type_template_id_422c2ffa_scoped_true_render],['__scopeId',"data-v-422c2ffa"]])
224321
+ const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',echartsvue_type_template_id_c5c6e504_scoped_true_render],['__scopeId',"data-v-c5c6e504"]])
224147
224322
 
224148
224323
  /* harmony default export */ var echarts = (echarts_exports_);
224149
224324
  ;// CONCATENATED MODULE: ./packages/echarts/index.js