meixioacomponent 0.3.80 → 0.3.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.3.80",
3
+ "version": "0.3.83",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- v-show="getRenderShow"
3
+ v-if="getRenderShow"
4
4
  ref="dialogCacheWrapRef"
5
5
  class="dialog-cache-wrap"
6
6
  v-clickOutside="dialogCacheWrapOnBlue"
@@ -655,26 +655,29 @@ export default {
655
655
  clearTimeout(this.triggerDown)
656
656
  if (init) {
657
657
  this.$props.pageProps[this.$props.pageConfig.page] = 1
658
+ this.module = ''
658
659
  }
659
660
 
660
- let screenResult = this.returnProScreenResult()
661
- this.$props.httpRequire(screenResult).then((res) => {
662
- let isArray = res instanceof Array
663
- if (isArray) {
664
- this.setTableData(res)
665
- } else {
666
- const tableData = res.tableData
667
- if (
668
- res._class.__proto__.__proto__.constructor.name ==
669
- 'LinkViewClass' &&
670
- !this._linkViewClassSubs
671
- ) {
672
- this._linkViewClassSubs = res._class
673
- }
674
- if (tableData) {
675
- this.setTableData(tableData)
661
+ this.$nextTick(() => {
662
+ let screenResult = this.returnProScreenResult()
663
+ this.$props.httpRequire(screenResult).then((res) => {
664
+ let isArray = res instanceof Array
665
+ if (isArray) {
666
+ this.setTableData(res)
667
+ } else {
668
+ const tableData = res.tableData
669
+ if (
670
+ res._class.__proto__.__proto__.constructor.name ==
671
+ 'LinkViewClass' &&
672
+ !this._linkViewClassSubs
673
+ ) {
674
+ this._linkViewClassSubs = res._class
675
+ }
676
+ if (tableData) {
677
+ this.setTableData(tableData)
678
+ }
676
679
  }
677
- }
680
+ })
678
681
  })
679
682
  },
680
683
  // 设置表格数据
@@ -716,7 +719,6 @@ export default {
716
719
  },
717
720
  // 自定义表格的列
718
721
  setTableHeaderConfig(configList) {
719
- console.log(configList)
720
722
  let leftFixedList = []
721
723
  let rightFixedList = []
722
724
  const { tableConfig } = this.$props
@@ -1,4 +1,4 @@
1
- <template>
1
+ <!-- <template>
2
2
  <base-dialog
3
3
  ref="dialog"
4
4
  :modal="true"
@@ -166,7 +166,7 @@ export default {
166
166
  transform: translateY(-50%);
167
167
  }
168
168
  }
169
- </style>
169
+ </style> -->
170
170
 
171
171
  <!-- <template>
172
172
  <base-drawer
@@ -312,9 +312,10 @@ export default {
312
312
  }
313
313
  </style> -->
314
314
 
315
- <!-- <template>
315
+ <template>
316
316
  <div class="page-table-wrap" ref="pageTableWrap" v-if="show">
317
317
  <base-pro-table
318
+ ref="table"
318
319
  :align="`left`"
319
320
  v-model="keyWords"
320
321
  :height="pageHeight"
@@ -327,7 +328,6 @@ export default {
327
328
  :headerConfig="headerConfig"
328
329
  :totalPropsList="totalPropsList"
329
330
  :proScreenConfig="proScreenConfig"
330
-
331
331
  >
332
332
  <template>
333
333
  <base-icon
@@ -339,7 +339,9 @@ export default {
339
339
 
340
340
  <template slot="headerExtend">
341
341
  <el-button type="primary" size="medium">新建客户</el-button>
342
- <el-button type="info" plain size="small">查重</el-button>
342
+ <el-button type="info" plain size="small" @click="test">
343
+ 查重
344
+ </el-button>
343
345
  </template>
344
346
 
345
347
  <el-dropdown slot="suffix" trigger="click">
@@ -526,6 +528,7 @@ export default {
526
528
  components: {},
527
529
  methods: {
528
530
  async httpRequire(screenCofig) {
531
+ console.log(screenCofig);
529
532
  companyInfoConfig.setTable()
530
533
  try {
531
534
  // result = await test(screenCofig);
@@ -547,6 +550,9 @@ export default {
547
550
  rowClick(row) {
548
551
  console.log(row)
549
552
  },
553
+ test() {
554
+ this.$refs.table.refreshData(true)
555
+ },
550
556
  },
551
557
  }
552
558
  </script>
@@ -557,7 +563,7 @@ export default {
557
563
  height: 100%;
558
564
  background: inherit;
559
565
  }
560
- </style> -->
566
+ </style>
561
567
 
562
568
  <!-- 普通表单 -->
563
569