eoss-ui 0.5.74 → 0.5.76

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.
Files changed (72) hide show
  1. package/lib/button-group.js +125 -23
  2. package/lib/button.js +125 -23
  3. package/lib/checkbox-group.js +125 -23
  4. package/lib/data-table-form.js +125 -23
  5. package/lib/data-table.js +155 -40
  6. package/lib/date-picker.js +125 -23
  7. package/lib/dialog.js +125 -23
  8. package/lib/eoss-ui.common.js +520 -296
  9. package/lib/flow-group.js +125 -23
  10. package/lib/flow-list.js +136 -31
  11. package/lib/flow.js +125 -23
  12. package/lib/form.js +125 -23
  13. package/lib/handle-user.js +125 -23
  14. package/lib/handler.js +125 -23
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +124 -22
  17. package/lib/input.js +141 -29
  18. package/lib/login.js +293 -143
  19. package/lib/main.js +125 -23
  20. package/lib/nav.js +125 -23
  21. package/lib/page.js +125 -23
  22. package/lib/player.js +125 -23
  23. package/lib/qr-code.js +178 -59
  24. package/lib/radio-group.js +125 -23
  25. package/lib/retrial-auth.js +125 -23
  26. package/lib/select-ganged.js +125 -23
  27. package/lib/select.js +140 -28
  28. package/lib/selector-panel.js +125 -23
  29. package/lib/selector.js +125 -23
  30. package/lib/sizer.js +125 -23
  31. package/lib/steps.js +125 -23
  32. package/lib/switch.js +124 -22
  33. package/lib/table-form.js +125 -23
  34. package/lib/tabs.js +125 -23
  35. package/lib/theme-chalk/base.css +1 -1
  36. package/lib/theme-chalk/index.css +1 -1
  37. package/lib/theme-chalk/login.css +1 -1
  38. package/lib/theme-chalk/main.css +1 -1
  39. package/lib/theme-chalk/menu.css +1 -1
  40. package/lib/theme-chalk/sizer.css +1 -1
  41. package/lib/theme-chalk/upload.css +1 -1
  42. package/lib/tips.js +125 -23
  43. package/lib/toolbar.js +3 -2
  44. package/lib/tree-group.js +159 -57
  45. package/lib/tree.js +140 -26
  46. package/lib/upload.js +125 -23
  47. package/lib/utils/util.js +124 -22
  48. package/lib/wujie.js +125 -23
  49. package/lib/wxlogin.js +152 -34
  50. package/package.json +2 -2
  51. package/packages/data-table/src/main.vue +25 -15
  52. package/packages/flow-list/src/main.vue +63 -41
  53. package/packages/input/src/main.vue +7 -6
  54. package/packages/login/src/main.vue +42 -14
  55. package/packages/qr-code/src/main.vue +48 -37
  56. package/packages/select/src/main.vue +6 -5
  57. package/packages/theme-chalk/lib/base.css +1 -1
  58. package/packages/theme-chalk/lib/index.css +1 -1
  59. package/packages/theme-chalk/lib/login.css +1 -1
  60. package/packages/theme-chalk/lib/main.css +1 -1
  61. package/packages/theme-chalk/lib/menu.css +1 -1
  62. package/packages/theme-chalk/lib/sizer.css +1 -1
  63. package/packages/theme-chalk/lib/upload.css +1 -1
  64. package/packages/theme-chalk/src/base.scss +3 -0
  65. package/packages/theme-chalk/src/login.scss +862 -376
  66. package/packages/theme-chalk/src/main.scss +5 -2
  67. package/packages/toolbar/src/main.vue +16 -6
  68. package/packages/tree/src/main.vue +13 -1
  69. package/packages/tree-group/src/main.vue +24 -37
  70. package/packages/wxlogin/src/main.vue +30 -12
  71. package/src/index.js +1 -1
  72. package/src/utils/util.js +138 -23
@@ -620,6 +620,35 @@ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
620
620
  return workdays;
621
621
  };
622
622
 
623
+ /**
624
+ * chunkToChinese
625
+ * @desc 将四位数的整数转换为中文大写
626
+ * @param {number} chunk - 数字
627
+ **/
628
+ function chunkToChinese(chunk) {
629
+ var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
630
+ var capitalDigits = ['', '拾', '佰', '仟'];
631
+
632
+ var result = '';
633
+ var digitIndex = 0;
634
+
635
+ while (chunk > 0) {
636
+ var digit = chunk % 10;
637
+ if (digit > 0) {
638
+ result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
639
+ } else {
640
+ // 当前数字是零,需要判断是否需要添加零
641
+ if (result.charAt(0) !== '零') {
642
+ result = '零' + result;
643
+ }
644
+ }
645
+ chunk = Math.floor(chunk / 10);
646
+ digitIndex++;
647
+ }
648
+
649
+ return result;
650
+ }
651
+
623
652
  /**
624
653
  * concatenate
625
654
  * @desc 指定连接符合并文本
@@ -1815,6 +1844,31 @@ var getWeekday = function getWeekday(date) {
1815
1844
  return adjustedDay === 0 ? 7 : adjustedDay;
1816
1845
  };
1817
1846
 
1847
+ /**
1848
+ * getZoom
1849
+ * @desc 获取缩放比
1850
+ * @param {number} n - 可选参数,表示星期的起始日,0 表示星期天,1 表示星期一,以此类推,默认为 0
1851
+ **/
1852
+ var getZoom = function getZoom() {
1853
+ var ratio = 0;
1854
+ var screen = window.screen;
1855
+ var ua = navigator.userAgent.toLowerCase();
1856
+ if (window.devicePixelRatio !== undefined) {
1857
+ ratio = window.devicePixelRatio;
1858
+ } else if (~ua.indexOf('msie')) {
1859
+ if (screen.deviceXDPI && screen.logicalXDPI) {
1860
+ ratio = screen.deviceXDPI / screen.logicalXDPI;
1861
+ }
1862
+ } else if (window.outerWidth !== undefined && window.innerWidth !== undefined) {
1863
+ ratio = window.outerWidth / window.innerWidth;
1864
+ }
1865
+
1866
+ if (ratio) {
1867
+ ratio = Math.round(ratio * 100);
1868
+ }
1869
+
1870
+ return ratio / 100;
1871
+ };
1818
1872
  /**
1819
1873
  * handlerUrl
1820
1874
  * @desc:更新url参数中的时间戳
@@ -2249,6 +2303,31 @@ var isObject = function isObject(obj) {
2249
2303
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2250
2304
  };
2251
2305
 
2306
+ /**
2307
+ * isObjectEqual
2308
+ * @desc:判断对象是否相等
2309
+ * @author huangbo
2310
+ * @date 2022年5月7日
2311
+ * @param {Object} [obj] - 对象
2312
+ * @param {Object} [_obj] - 对象
2313
+ **/
2314
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2315
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2316
+ return false;
2317
+ }
2318
+ var aProps = Object.getOwnPropertyNames(obj);
2319
+ var bProps = Object.getOwnPropertyNames(_obj);
2320
+ if (aProps.length !== bProps.length) {
2321
+ return false;
2322
+ }
2323
+ for (var i in obj) {
2324
+ if (obj[i] !== _obj[i]) {
2325
+ return false;
2326
+ }
2327
+ }
2328
+ return true;
2329
+ };
2330
+
2252
2331
  /**
2253
2332
  * jointUrl
2254
2333
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -2557,32 +2636,53 @@ var rmbToCapital = function rmbToCapital(number) {
2557
2636
 
2558
2637
  return result;
2559
2638
  };
2560
-
2561
- // 辅助函数,将四位数的整数转换为中文大写
2562
- function chunkToChinese(chunk) {
2563
- var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
2564
- var capitalDigits = ['', '拾', '佰', '仟'];
2565
-
2566
- var result = '';
2567
- var digitIndex = 0;
2568
-
2569
- while (chunk > 0) {
2570
- var digit = chunk % 10;
2571
- if (digit > 0) {
2572
- result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
2639
+ /**
2640
+ * setScale
2641
+ * @desc 设置缩放
2642
+ * @param {number} width - 分辨率宽度
2643
+ * @param {number} height - 分辨率高度
2644
+ **/
2645
+ var setScale = function setScale() {
2646
+ var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1920;
2647
+ var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1080;
2648
+
2649
+ var n = 1;
2650
+ var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
2651
+ var zoom = getZoom();
2652
+ if (isMac) {
2653
+ n = 2;
2654
+ } else {
2655
+ n = 1;
2656
+ }
2657
+ if (zoom === 1) {
2658
+ document.body.style.removeProperty('transform');
2659
+ document.body.style.removeProperty('width');
2660
+ document.body.style.removeProperty('height');
2661
+ document.body.style.removeProperty('transform-origin');
2662
+ return;
2663
+ }
2664
+ if (Math.abs(parseInt(width - window.innerWidth * zoom / n, 10)) > 15 && window.innerWidth * zoom / n !== width) {
2665
+ var scale = 'scale(' + window.innerWidth * zoom / width / zoom + ',' + window.innerHeight * zoom / height / zoom + ')';
2666
+ document.body.style.transform = scale;
2667
+ document.body.style.width = width + 'px';
2668
+ document.body.style.height = height + 'px';
2669
+ document.body.style.transformOrigin = '0 0';
2670
+ } else {
2671
+ if (isMac) {
2672
+ var _scale = 'scale(' + 1 * n / zoom + ')';
2673
+ document.body.style.transform = _scale;
2674
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2675
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2676
+ document.body.style.transformOrigin = '0 0';
2573
2677
  } else {
2574
- // 当前数字是零,需要判断是否需要添加零
2575
- if (result.charAt(0) !== '零') {
2576
- result = '零' + result;
2577
- }
2678
+ var _scale2 = 'scale(' + 1 * n / zoom + ')';
2679
+ document.body.style.transform = _scale2;
2680
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2681
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2682
+ document.body.style.transformOrigin = '0 0';
2578
2683
  }
2579
- chunk = Math.floor(chunk / 10);
2580
- digitIndex++;
2581
2684
  }
2582
-
2583
- return result;
2584
- }
2585
-
2685
+ };
2586
2686
  /**
2587
2687
  * sendMessage
2588
2688
  * @desc:向iframe发送信息
@@ -3104,6 +3204,7 @@ var watermark = function watermark(option) {
3104
3204
  isLogged: isLogged,
3105
3205
  isLogined: isLogined,
3106
3206
  isObject: isObject,
3207
+ isObjectEqual: isObjectEqual,
3107
3208
  jointUrl: jointUrl,
3108
3209
  loadJs: loadJs,
3109
3210
  loading: loading,
@@ -3118,6 +3219,7 @@ var watermark = function watermark(option) {
3118
3219
  rmbToCapital: rmbToCapital,
3119
3220
  sendMessage: sendMessage,
3120
3221
  setFavicon: setFavicon,
3222
+ setScale: setScale,
3121
3223
  setStorage: setStorage,
3122
3224
  socket: socket,
3123
3225
  startWith: startWith,
package/lib/data-table.js CHANGED
@@ -620,6 +620,35 @@ var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
620
620
  return workdays;
621
621
  };
622
622
 
623
+ /**
624
+ * chunkToChinese
625
+ * @desc 将四位数的整数转换为中文大写
626
+ * @param {number} chunk - 数字
627
+ **/
628
+ function chunkToChinese(chunk) {
629
+ var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
630
+ var capitalDigits = ['', '拾', '佰', '仟'];
631
+
632
+ var result = '';
633
+ var digitIndex = 0;
634
+
635
+ while (chunk > 0) {
636
+ var digit = chunk % 10;
637
+ if (digit > 0) {
638
+ result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
639
+ } else {
640
+ // 当前数字是零,需要判断是否需要添加零
641
+ if (result.charAt(0) !== '零') {
642
+ result = '零' + result;
643
+ }
644
+ }
645
+ chunk = Math.floor(chunk / 10);
646
+ digitIndex++;
647
+ }
648
+
649
+ return result;
650
+ }
651
+
623
652
  /**
624
653
  * concatenate
625
654
  * @desc 指定连接符合并文本
@@ -1815,6 +1844,31 @@ var getWeekday = function getWeekday(date) {
1815
1844
  return adjustedDay === 0 ? 7 : adjustedDay;
1816
1845
  };
1817
1846
 
1847
+ /**
1848
+ * getZoom
1849
+ * @desc 获取缩放比
1850
+ * @param {number} n - 可选参数,表示星期的起始日,0 表示星期天,1 表示星期一,以此类推,默认为 0
1851
+ **/
1852
+ var getZoom = function getZoom() {
1853
+ var ratio = 0;
1854
+ var screen = window.screen;
1855
+ var ua = navigator.userAgent.toLowerCase();
1856
+ if (window.devicePixelRatio !== undefined) {
1857
+ ratio = window.devicePixelRatio;
1858
+ } else if (~ua.indexOf('msie')) {
1859
+ if (screen.deviceXDPI && screen.logicalXDPI) {
1860
+ ratio = screen.deviceXDPI / screen.logicalXDPI;
1861
+ }
1862
+ } else if (window.outerWidth !== undefined && window.innerWidth !== undefined) {
1863
+ ratio = window.outerWidth / window.innerWidth;
1864
+ }
1865
+
1866
+ if (ratio) {
1867
+ ratio = Math.round(ratio * 100);
1868
+ }
1869
+
1870
+ return ratio / 100;
1871
+ };
1818
1872
  /**
1819
1873
  * handlerUrl
1820
1874
  * @desc:更新url参数中的时间戳
@@ -2249,6 +2303,31 @@ var isObject = function isObject(obj) {
2249
2303
  return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
2250
2304
  };
2251
2305
 
2306
+ /**
2307
+ * isObjectEqual
2308
+ * @desc:判断对象是否相等
2309
+ * @author huangbo
2310
+ * @date 2022年5月7日
2311
+ * @param {Object} [obj] - 对象
2312
+ * @param {Object} [_obj] - 对象
2313
+ **/
2314
+ var isObjectEqual = function isObjectEqual(obj, _obj) {
2315
+ if (obj === undefined && _obj || obj && _obj === undefined) {
2316
+ return false;
2317
+ }
2318
+ var aProps = Object.getOwnPropertyNames(obj);
2319
+ var bProps = Object.getOwnPropertyNames(_obj);
2320
+ if (aProps.length !== bProps.length) {
2321
+ return false;
2322
+ }
2323
+ for (var i in obj) {
2324
+ if (obj[i] !== _obj[i]) {
2325
+ return false;
2326
+ }
2327
+ }
2328
+ return true;
2329
+ };
2330
+
2252
2331
  /**
2253
2332
  * jointUrl
2254
2333
  * @desc:判断url地址是否以字符开头,没有则添加
@@ -2557,32 +2636,53 @@ var rmbToCapital = function rmbToCapital(number) {
2557
2636
 
2558
2637
  return result;
2559
2638
  };
2560
-
2561
- // 辅助函数,将四位数的整数转换为中文大写
2562
- function chunkToChinese(chunk) {
2563
- var numberToChinese = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
2564
- var capitalDigits = ['', '拾', '佰', '仟'];
2565
-
2566
- var result = '';
2567
- var digitIndex = 0;
2568
-
2569
- while (chunk > 0) {
2570
- var digit = chunk % 10;
2571
- if (digit > 0) {
2572
- result = numberToChinese[digit] + capitalDigits[digitIndex] + result;
2639
+ /**
2640
+ * setScale
2641
+ * @desc 设置缩放
2642
+ * @param {number} width - 分辨率宽度
2643
+ * @param {number} height - 分辨率高度
2644
+ **/
2645
+ var setScale = function setScale() {
2646
+ var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1920;
2647
+ var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1080;
2648
+
2649
+ var n = 1;
2650
+ var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
2651
+ var zoom = getZoom();
2652
+ if (isMac) {
2653
+ n = 2;
2654
+ } else {
2655
+ n = 1;
2656
+ }
2657
+ if (zoom === 1) {
2658
+ document.body.style.removeProperty('transform');
2659
+ document.body.style.removeProperty('width');
2660
+ document.body.style.removeProperty('height');
2661
+ document.body.style.removeProperty('transform-origin');
2662
+ return;
2663
+ }
2664
+ if (Math.abs(parseInt(width - window.innerWidth * zoom / n, 10)) > 15 && window.innerWidth * zoom / n !== width) {
2665
+ var scale = 'scale(' + window.innerWidth * zoom / width / zoom + ',' + window.innerHeight * zoom / height / zoom + ')';
2666
+ document.body.style.transform = scale;
2667
+ document.body.style.width = width + 'px';
2668
+ document.body.style.height = height + 'px';
2669
+ document.body.style.transformOrigin = '0 0';
2670
+ } else {
2671
+ if (isMac) {
2672
+ var _scale = 'scale(' + 1 * n / zoom + ')';
2673
+ document.body.style.transform = _scale;
2674
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2675
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2676
+ document.body.style.transformOrigin = '0 0';
2573
2677
  } else {
2574
- // 当前数字是零,需要判断是否需要添加零
2575
- if (result.charAt(0) !== '零') {
2576
- result = '零' + result;
2577
- }
2678
+ var _scale2 = 'scale(' + 1 * n / zoom + ')';
2679
+ document.body.style.transform = _scale2;
2680
+ document.body.style.width = parseInt(window.innerWidth * zoom / n, 10) + 'px';
2681
+ document.body.style.height = parseInt(window.innerHeight * zoom / n, 10) + 'px';
2682
+ document.body.style.transformOrigin = '0 0';
2578
2683
  }
2579
- chunk = Math.floor(chunk / 10);
2580
- digitIndex++;
2581
2684
  }
2582
-
2583
- return result;
2584
- }
2585
-
2685
+ };
2586
2686
  /**
2587
2687
  * sendMessage
2588
2688
  * @desc:向iframe发送信息
@@ -3104,6 +3204,7 @@ var watermark = function watermark(option) {
3104
3204
  isLogged: isLogged,
3105
3205
  isLogined: isLogined,
3106
3206
  isObject: isObject,
3207
+ isObjectEqual: isObjectEqual,
3107
3208
  jointUrl: jointUrl,
3108
3209
  loadJs: loadJs,
3109
3210
  loading: loading,
@@ -3118,6 +3219,7 @@ var watermark = function watermark(option) {
3118
3219
  rmbToCapital: rmbToCapital,
3119
3220
  sendMessage: sendMessage,
3120
3221
  setFavicon: setFavicon,
3222
+ setScale: setScale,
3121
3223
  setStorage: setStorage,
3122
3224
  socket: socket,
3123
3225
  startWith: startWith,
@@ -3826,8 +3928,8 @@ module.exports = require("vue");
3826
3928
  // ESM COMPAT FLAG
3827
3929
  __webpack_require__.r(__webpack_exports__);
3828
3930
 
3829
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=7b641b60&
3830
- var mainvue_type_template_id_7b641b60_render = function () {
3931
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=f80417f8&
3932
+ var mainvue_type_template_id_f80417f8_render = function () {
3831
3933
  var _vm = this
3832
3934
  var _h = _vm.$createElement
3833
3935
  var _c = _vm._self._c || _h
@@ -4138,10 +4240,10 @@ var mainvue_type_template_id_7b641b60_render = function () {
4138
4240
  )
4139
4241
  }
4140
4242
  var staticRenderFns = []
4141
- mainvue_type_template_id_7b641b60_render._withStripped = true
4243
+ mainvue_type_template_id_f80417f8_render._withStripped = true
4142
4244
 
4143
4245
 
4144
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=7b641b60&
4246
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=f80417f8&
4145
4247
 
4146
4248
  // EXTERNAL MODULE: ./src/config/api.js
4147
4249
  var api = __webpack_require__(1);
@@ -6558,7 +6660,8 @@ var mainvue_type_script_lang_js_components, _watch;
6558
6660
  pageSize: 20,
6559
6661
  totalCount: 0
6560
6662
  },
6561
- wheres: {},
6663
+ searchWhere: {},
6664
+ advanceWhere: {},
6562
6665
  tableHeight: 'auto',
6563
6666
  styles: {},
6564
6667
  selected: null,
@@ -6572,6 +6675,9 @@ var mainvue_type_script_lang_js_components, _watch;
6572
6675
  },
6573
6676
 
6574
6677
  computed: {
6678
+ wheres: function wheres() {
6679
+ return mainvue_type_script_lang_js_extends({}, this.searchWhere, this.advanceWhere);
6680
+ },
6575
6681
  params: function params() {
6576
6682
  return mainvue_type_script_lang_js_extends({}, this.param || {}, this.searchValue || {}, this.advanceValue || {});
6577
6683
  },
@@ -6585,12 +6691,14 @@ var mainvue_type_script_lang_js_components, _watch;
6585
6691
  theads: {
6586
6692
  get: function get() {
6587
6693
  var thead = [];
6694
+ var addfilter = false;
6588
6695
  var types = this.theadData.filter(function (item) {
6589
6696
  return item.type == 'selection' || item.type == 'index' || item.type == 'sort';
6590
6697
  }).map(function (item) {
6591
6698
  return item.type;
6592
6699
  });
6593
6700
  if (this.dragSort && !types.includes('sort')) {
6701
+ addfilter = true;
6594
6702
  thead.push({
6595
6703
  type: 'sort',
6596
6704
  key: 'es-sort'
@@ -6604,8 +6712,12 @@ var mainvue_type_script_lang_js_components, _watch;
6604
6712
  fixed: 'left',
6605
6713
  selectable: this.selectable,
6606
6714
  reserveSelection: this.reserveSelection,
6715
+ filterIcon: this.filter && !addfilter ? 'es-icon-biao' : undefined,
6607
6716
  key: 'es-checkbox'
6608
6717
  });
6718
+ if (!addfilter) {
6719
+ addfilter = true;
6720
+ }
6609
6721
  }
6610
6722
  if (this.numbers && !types.includes('index')) {
6611
6723
  var index = 1;
@@ -6621,9 +6733,12 @@ var mainvue_type_script_lang_js_components, _watch;
6621
6733
  align: 'center',
6622
6734
  fixed: 'left',
6623
6735
  index: index,
6624
- filterIcon: this.filter ? 'es-icon-biao' : undefined,
6736
+ filterIcon: this.filter && !addfilter ? 'es-icon-biao' : undefined,
6625
6737
  key: 'es-index'
6626
6738
  });
6739
+ if (!addfilter) {
6740
+ addfilter = true;
6741
+ }
6627
6742
  }
6628
6743
  if (this.theadData.length) {
6629
6744
  thead = [].concat(thead, this.theadData);
@@ -7421,18 +7536,19 @@ var mainvue_type_script_lang_js_components, _watch;
7421
7536
  this.$emit('next', res);
7422
7537
  },
7423
7538
  hanleSearch: function hanleSearch(data) {
7424
- this.wheres = this.response !== undefined ? this.response({
7539
+ this.searchWhere = this.response !== undefined ? this.response({
7425
7540
  type: 'search',
7426
7541
  data: JSON.parse(JSON.stringify(data))
7427
7542
  }) : data;
7428
7543
  if (this.url && this.executeSearch) {
7429
7544
  this.getTableData({ where: this.wheres });
7430
7545
  }
7431
- this.$emit('search', this.wheres);
7546
+ this.$emit('search', this.searchWhere);
7432
7547
  },
7433
7548
  hanleReset: function hanleReset() {
7549
+ this.searchWhere = {};
7550
+ this.advanceWhere = {};
7434
7551
  if (this.url) {
7435
- this.wheres = {};
7436
7552
  this.getTableData();
7437
7553
  }
7438
7554
  this.$emit('reset', this.params);
@@ -7441,21 +7557,20 @@ var mainvue_type_script_lang_js_components, _watch;
7441
7557
  var data = _ref.data,
7442
7558
  show = _ref.show;
7443
7559
 
7444
- var where = this.response !== undefined ? this.response({
7560
+ this.advanceWhere = this.response !== undefined ? this.response({
7445
7561
  type: 'filter',
7446
7562
  data: JSON.parse(JSON.stringify(data))
7447
7563
  }) : data;
7448
- this.wheres = mainvue_type_script_lang_js_extends({}, this.wheres, where);
7449
7564
  if (this.url && this.executeFilter) {
7450
7565
  this.getTableData({ where: this.wheres });
7451
7566
  }
7452
- this.$emit('submit', { data: where, where: this.wheres, show: show });
7567
+ this.$emit('submit', {
7568
+ data: this.advanceWhere,
7569
+ where: this.wheres,
7570
+ show: show
7571
+ });
7453
7572
  },
7454
7573
  hanleCancel: function hanleCancel() {
7455
- // if (this.url && JSON.stringify(this.wheres) !== '{}') {
7456
- // this.wheres = {};
7457
- // this.getTableData();
7458
- // }
7459
7574
  this.$emit('cancel', this.params);
7460
7575
  },
7461
7576
  handleTabs: function handleTabs(_ref2) {
@@ -7589,7 +7704,7 @@ var mainvue_type_script_lang_js_components, _watch;
7589
7704
 
7590
7705
  var main_component = Object(componentNormalizer["a" /* default */])(
7591
7706
  src_mainvue_type_script_lang_js_,
7592
- mainvue_type_template_id_7b641b60_render,
7707
+ mainvue_type_template_id_f80417f8_render,
7593
7708
  staticRenderFns,
7594
7709
  false,
7595
7710
  null,