This commit is contained in:
zhutianqi
2021-11-17 16:27:17 +08:00
parent de1d3589ed
commit 3216b93621
2 changed files with 6 additions and 2 deletions
@@ -414,16 +414,16 @@
DrawerType: '', DrawerType: '',
} }
}, },
created() {
},
mounted() { mounted() {
this.getTableData() this.getTableData()
}, },
methods: { methods: {
getTableData () { getTableData () {
this.loading = true
this.$http.get('wgdCensusZ/wgd-commi-info/queryAllCommiInfos',this.form, { this.$http.get('wgdCensusZ/wgd-commi-info/queryAllCommiInfos',this.form, {
_this: this _this: this
}, res => { }, res => {
this.loading = false
if (res.ok) { if (res.ok) {
this.tableData = res.data.list this.tableData = res.data.list
this.tableTotal = res.data.count this.tableTotal = res.data.count
@@ -171,6 +171,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<loading :loading="loading">加载中...</loading>
</div> </div>
</div> </div>
<div class="footer"> <div class="footer">
@@ -294,6 +295,7 @@
components: {}, components: {},
data() { data() {
return { return {
loading: false,
submitLoading: false, submitLoading: false,
addDrawerTitle: '', addDrawerTitle: '',
addDrawer: false, addDrawer: false,
@@ -508,9 +510,11 @@
} }
}, },
getData () { getData () {
this.loading = true
this.$http.post('esRevisePlan/es-revise-plan/queryAllPlans', this.form, { this.$http.post('esRevisePlan/es-revise-plan/queryAllPlans', this.form, {
_this: this _this: this
}, res => { }, res => {
this.loading = false
if (res.ok) { if (res.ok) {
this.data = res.data.list this.data = res.data.list
this.total = res.data.count this.total = res.data.count