meixioacomponent 0.3.82 → 0.3.85
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
|
@@ -655,27 +655,28 @@ export default {
|
|
|
655
655
|
clearTimeout(this.triggerDown)
|
|
656
656
|
if (init) {
|
|
657
657
|
this.$props.pageProps[this.$props.pageConfig.page] = 1
|
|
658
|
-
this.module = ''
|
|
659
658
|
}
|
|
660
659
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
660
|
+
this.$nextTick(() => {
|
|
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)
|
|
677
|
+
}
|
|
677
678
|
}
|
|
678
|
-
}
|
|
679
|
+
})
|
|
679
680
|
})
|
|
680
681
|
},
|
|
681
682
|
// 设置表格数据
|
|
@@ -707,7 +708,6 @@ export default {
|
|
|
707
708
|
},
|
|
708
709
|
// 清空高级筛选的条件
|
|
709
710
|
cleanProscreenCondition(flag = false) {
|
|
710
|
-
if (this.proScreenList.length <= 0) return
|
|
711
711
|
this.proScreenList.forEach((item) => {
|
|
712
712
|
item.value = null
|
|
713
713
|
})
|
|
@@ -717,7 +717,6 @@ export default {
|
|
|
717
717
|
},
|
|
718
718
|
// 自定义表格的列
|
|
719
719
|
setTableHeaderConfig(configList) {
|
|
720
|
-
console.log(configList)
|
|
721
720
|
let leftFixedList = []
|
|
722
721
|
let rightFixedList = []
|
|
723
722
|
const { tableConfig } = this.$props
|
|
@@ -861,6 +860,13 @@ export default {
|
|
|
861
860
|
|
|
862
861
|
return index == tableConfig.length - 1
|
|
863
862
|
},
|
|
863
|
+
// 重置的表格查询方法
|
|
864
|
+
resetTable() {
|
|
865
|
+
this.module = ''
|
|
866
|
+
this.$nextTick(() => {
|
|
867
|
+
this.cleanProscreenCondition(true)
|
|
868
|
+
})
|
|
869
|
+
},
|
|
864
870
|
},
|
|
865
871
|
}
|
|
866
872
|
</script>
|
package/src/component/test.vue
CHANGED
|
@@ -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
|
-
|
|
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"
|
|
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
|
|