|
@@ -15,13 +15,24 @@
|
|
|
@on-load="onLoad"
|
|
|
:table-loading="loading"
|
|
|
@saveColumn="saveColumn"
|
|
|
- ></avue-crud>
|
|
|
+ >
|
|
|
+ <template slot="corpIdSearch">
|
|
|
+ <crop-select
|
|
|
+ v-model="search.corpId"
|
|
|
+ corpType="KH"
|
|
|
+ ></crop-select>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope" slot="corpId">
|
|
|
+ {{ scope.row.corpName }}
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
</basic-container>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import option from './config/mainList.json'
|
|
|
+import option from './config/mainList.json';
|
|
|
+import {getList} from '@/api/maintenance/integral';
|
|
|
|
|
|
export default {
|
|
|
name: "index",
|
|
@@ -53,6 +64,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
searchChange(params, done) {
|
|
|
+ this.onLoad(this.page, params);
|
|
|
done();
|
|
|
},
|
|
|
currentChange(val) {
|
|
@@ -65,7 +77,20 @@ export default {
|
|
|
refreshChange() {
|
|
|
this.onLoad(this.page, this.search);
|
|
|
},
|
|
|
- onLoad(page, params) {},
|
|
|
+ onLoad(page, params) {
|
|
|
+ this.loading = true;
|
|
|
+ getList(page.currentPage, page.pageSize, params)
|
|
|
+ .then(res => {
|
|
|
+ this.dataList = res.data.data.records ? res.data.data.records : [];
|
|
|
+ this.page.total = res.data.data.total;
|
|
|
+ if (this.page.total) {
|
|
|
+ this.option.height = window.innerHeight - 260;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
async saveColumn() {},
|
|
|
},
|
|
|
}
|