From 7bcc72a7fce7c0636b91b2d156e3d4962efb76a7 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期四, 28 八月 2025 09:59:49 +0800
Subject: [PATCH] 界面优化

---
 src/views/flowmgr/backImport.vue |  175 +++++++++++----------------------------------------------
 1 files changed, 35 insertions(+), 140 deletions(-)

diff --git a/src/views/flowmgr/backImport.vue b/src/views/flowmgr/backImport.vue
index 827fcc4..1e986fd 100644
--- a/src/views/flowmgr/backImport.vue
+++ b/src/views/flowmgr/backImport.vue
@@ -1,147 +1,42 @@
+<!--
+ * @Date: 2025-08-10 14:14:58
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-08-18 18:47:02
+ * @FilePath: /mdmweb/src/views/flowmgr/backImport.vue
+-->
 <template>
-  <basic-container>
-    <avue-crud
-      :addBtn="false"
-      :option="option"
-      :table-loading="loading"
-      :data="data"
-      ref="crud"
-      v-model:search="search"
-      v-model:page="mypage"
-      @search-change="searchChange"
-      @search-reset="searchReset"
-      @current-change="currentChange"
-      @size-change="sizeChange"
-      @refresh-change="refreshChange"
-      @on-load="onLoad"
-    >
-      <template #menu-left>
-        <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">瀵煎叆</el-button>
-        <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">鍏ュ簱</el-button>
-      </template>
-    </avue-crud>
-  </basic-container>
+    <basic-container>
+        <el-tabs
+            v-model="activeName"
+            type="card"
+            class="demo-tabs"
+        >
+            <el-tab-pane label="瀵煎叆" name="todo">
+                <backImport1 v-if="activeName==='todo'"></backImport1>
+            </el-tab-pane>
+            <el-tab-pane label="鍥炰紶璁板綍" name="done">
+                <backImport2 v-if="activeName==='done'"> </backImport2>
+            </el-tab-pane>
+        </el-tabs>
+    </basic-container>
 </template>
-
 <script>
+import backImport1 from './backImport1.vue';
+import backImport2 from './backImport2.vue';
 export default {
-  data() {
-    return {
-      search: {},
-      loading: true,
-      mypage: {
-        size: 10,
-        current: 1,
-        total: 0,
-      },
-      option: {
-        addBtn: false,
-        editBtn: false,
-        delBtn: false,
-        labelWidth: 120,
-        emptyBtn: false,
-        searchSpan: 8,
-        selection: true,
-        menu: false,
-        column: [
-          {
-            label: '鏂囦欢璺緞',
-            type: 'input',
-            prop: 'keyword',
-            search: true,
-            hide: true
-          },
-          {
-            label: '浠诲姟缂栧彿',
-            prop: ''
-          },
-          {
-            label: '绋嬪簭鍚嶇О',
-            prop: '',
-          },
-          {
-            label: '鏂囦欢鍒拌揪鏃堕棿',
-            prop: '',
-          },
-          {
-            label: '鏂囦欢鏁版嵁搴撶紪鍙�',
-            prop: '',
-          },
-          {
-            label: '澶勭悊鐘舵��',
-            prop: '',
-          },
-          {
-            label: '澶勭悊鏂瑰紡',
-            prop: ''
-          },
-          {
-            label: '澶勭悊鏃堕棿',
-            prop: ''
-          },
-          {
-            label: '澶勭悊浜�',
-            prop: ''
-          },
-          {
-            label: 'MD5鍊�',
-            prop: ''
-          }
-        ],
-      },
-      data: [],
-    };
-  },
-  methods: {
-    handleEdit(row,index) {
-      
+    components: {
+        backImport1,
+        backImport2
     },
-    searchReset() {
-      //this.onLoad(this.mypage);
+    data() {
+        return {
+            activeName: 'todo',
+        };
     },
-    searchChange(params, done) {
-      this.mypage.current = 1;
-      this.onLoad();
-      done();
-    },
-    currentChange(current) {
-      this.mypage.current = current;
-    },
-    sizeChange(size) {
-      this.mypage.size = size;
-    },
-    refreshChange() {
-      
-    },
-    onLoad() {
-      this.loading = true;
-      var obj = {
-        keyword: this.search.keyword,
-        machineSpec: "",
-        current: this.mypage.current,
-        size: this.mypage.size,
-      }
-      axios({
-        url: '/blade-mdm/machineback/file/page',
-        method: 'get',
-        params: obj,
-      }).then(
-        res => {
-          const data = res.data.data;
-          this.mypage.total = data.total;
-          this.data = data.records;
-          this.loading = false;
+    methods: {
+        handleTabClick(tab, event) {
+            console.log(tab, event);
         },
-        error => {
-            
-        }
-      );
-
-    }
-  },
-};
-</script>
-
-<style lang="scss">
-
-</style>
\ No newline at end of file
+    },
+}
+</script>
\ No newline at end of file

--
Gitblit v1.9.3