meixioacomponent 0.3.82 → 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.82",
3
+ "version": "0.3.83",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -658,24 +658,26 @@ export default {
658
658
  this.module = ''
659
659
  }
660
660
 
661
- let screenResult = this.returnProScreenResult()
662
- this.$props.httpRequire(screenResult).then((res) => {
663
- let isArray = res instanceof Array
664
- if (isArray) {
665
- this.setTableData(res)
666
- } else {
667
- const tableData = res.tableData
668
- if (
669
- res._class.__proto__.__proto__.constructor.name ==
670
- 'LinkViewClass' &&
671
- !this._linkViewClassSubs
672
- ) {
673
- this._linkViewClassSubs = res._class
674
- }
675
- if (tableData) {
676
- 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
+ }
677
679
  }
678
- }
680
+ })
679
681
  })
680
682
  },
681
683
  // 设置表格数据
@@ -717,7 +719,6 @@ export default {
717
719
  },
718
720
  // 自定义表格的列
719
721
  setTableHeaderConfig(configList) {
720
- console.log(configList)
721
722
  let leftFixedList = []
722
723
  let rightFixedList = []
723
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