Commit 84f87b16 by liuchenxi

Merge branch 'feature/12月迭代' into dev

parents ec0faf38 0dbc108b
......@@ -34,7 +34,7 @@
<dm-pagination background class="dm-pagination" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="tableData.currentPage" :page-sizes="tableData.pageSizeList" :page-size="tableData.pageSize" layout="total, sizes, prev, pager, next" :total="tableData.total" hide-on-single-page />
</div>
</div>
<add-depart :visible.sync="addDepartDialog.visible" @saved="getTableData" />
<add-depart :visible.sync="addDepartDialog.visible" @saved="resetData" />
<view-store :visible.sync="viewStoreDialog.visible" :depart-id="viewStoreDialog.departId" :depart-list="viewStoreDialog.departList" />
</div>
</template>
......@@ -80,8 +80,7 @@ export default {
},
async created() {
this.getTableHeader();
await this.getSumData();
this.getTableData();
this.resetData();
this.$store.commit('mutations_breadcrumb', [
{ name: '企业管理', path: '' },
{ name: '计费中心', path: '/recharge/board' },
......@@ -186,7 +185,7 @@ export default {
await this.$confirm(opt['info'], opt['title'], options);
await updateDepartStatus({ status: opt['status'], accountDepartId: row.accountDepartId });
this.$message.success(opt['successMsg']);
this.getTableData();
this.resetData();
} catch (e) {
return false;
}
......@@ -205,6 +204,10 @@ export default {
onSearch() {
this.tableData.currentPage = 1;
this.getTableData();
},
async resetData() {
await this.getSumData();
this.getTableData();
}
},
computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment