From 7b1c7ebb1c20c9c1811d50884b4263923d5731bd Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 06 七月 2023 13:56:40 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS-WEB/src/views/modeling/cycle.vue |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/cycle.vue b/Source/UBCS-WEB/src/views/modeling/cycle.vue
index ef721e2..e0fac23 100644
--- a/Source/UBCS-WEB/src/views/modeling/cycle.vue
+++ b/Source/UBCS-WEB/src/views/modeling/cycle.vue
@@ -1,6 +1,6 @@
 <template>
   <basic-container class="">
-    <avue-crud :data="data" :option="option" @refresh-change="gettableList" :table-loading="loading">
+    <avue-crud :data="data" :option="option" @refresh-change="search" :table-loading="loading">
       <template slot-scope="scope" slot="menuLeft">
         <el-button
           type="primary"
@@ -54,12 +54,17 @@
 </template>
 
 <script>
+import API from '@/api/modeling/cycle'
 import CycleFlow from "@/components/flow-cycle/flowchartEditor.vue";
 export default {
   name: "cycle.vue",
   components: { CycleFlow },
   data() {
     return {
+      form: {
+        page: 1,
+        limit: 10
+      },
       option: {
         border: true,
         align: "center",
@@ -152,11 +157,19 @@
       rowData: {},
       dialogWidth: "50%",
       type: "detail",
+      loading: false
     };
   },
+  created() {
+    this.search()
+  },
   methods: {
-    gettableList() {
+    search() {
       this.loading = true
+      API.getList(this.form).then(res => {
+        this.loading = false
+        this.data = res.data.data
+      })
     },
     openDialog(type, row) {
       if (type === "detail") {

--
Gitblit v1.9.3