|
|
@@ -31,6 +31,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { getSummaryApprovalList } from '@/api/SUPTaskApproval.js';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -41,24 +42,40 @@ export default {
|
|
|
finished: true,
|
|
|
};
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.getApprovalList();
|
|
|
+ },
|
|
|
methods: {
|
|
|
tabChange(name) {
|
|
|
window.scrollTo(0, 0);
|
|
|
this.pageNum = 1;
|
|
|
this.list = [];
|
|
|
this.tabVal = name;
|
|
|
- // this.onLoad();
|
|
|
+ this.getApprovalList();
|
|
|
},
|
|
|
onClickLeft() {
|
|
|
this.$router.replace({
|
|
|
path: '/My/index',
|
|
|
});
|
|
|
},
|
|
|
+ getApprovalList() {
|
|
|
+ this.toastLoading(0, '加载中...', true);
|
|
|
+ getSummaryApprovalList({ type: this.tabVal })
|
|
|
+ .then((res) => {
|
|
|
+ this.toastLoading().clear();
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ this.list = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.toastLoading().clear();
|
|
|
+ this.$toast(err.msg);
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang="scss" scoped>
|
|
|
+<style lang="scss">
|
|
|
.SUPTaskApproval {
|
|
|
.myTab {
|
|
|
.van-tabs__nav--card {
|