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 |  204 ++++++++------------------------------------------
 1 files changed, 35 insertions(+), 169 deletions(-)

diff --git a/src/views/flowmgr/backImport.vue b/src/views/flowmgr/backImport.vue
index 765128e..1e986fd 100644
--- a/src/views/flowmgr/backImport.vue
+++ b/src/views/flowmgr/backImport.vue
@@ -1,176 +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"
-      @selection-change="selectionChange"
-    >
-      <template #menu-left>
-        <div style="display: flex;">
-          <el-upload action="/blade-mdm/program/dncsendback/upload">
-            <el-button type="primary" size="default" icon="el-icon-circle-plus">瀵煎叆</el-button>
-          </el-upload>
-          <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse" style="margin-left: 12px;">鍏ュ簱</el-button>
-        </div>
-      </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 {
-      selection: [],
-      search: {},
-      loading: true,
-      mypage: {
-        size: 10,
-        current: 1,
-        total: 0,
-      },
-      option: {
-        addBtn: false,
-        editBtn: false,
-        delBtn: false,
-        labelWidth: 120,
-        emptyBtn: false,
-        searchSpan: 8,
-        menu: false,
-        selection: true,
-        column: [
-          {
-            label: '鏂囦欢璺緞',
-            type: 'input',
-            prop: 'keyword',
-            search: true,
-            hide: true
-          },
-          {
-            label: '浠诲姟缂栧彿',
-            prop: 'programNo'
-          },
-          {
-            label: '绋嬪簭鍚嶇О',
-            prop: 'programName',
-          },
-          {
-            label: '鏂囦欢鍒拌揪鏃堕棿',
-            prop: 'fileBackTime',
-          },
-          {
-            label: '鏂囦欢鏁版嵁搴撶紪鍙�',
-            prop: '',
-          },
-          {
-            label: '澶勭悊鐘舵��',
-            prop: '',
-          },
-          {
-            label: '澶勭悊鏂瑰紡',
-            prop: ''
-          },
-          {
-            label: '澶勭悊鏃堕棿',
-            prop: ''
-          },
-          {
-            label: '澶勭悊浜�',
-            prop: ''
-          },
-          {
-            label: 'MD5鍊�',
-            prop: 'md5	'
-          }
-        ],
-      },
-      data: [],
-    };
-  },
-  methods: {
-    selectionChange(selection) {
-      this.selection = selection;
+    components: {
+        backImport1,
+        backImport2
     },
-    handleWarehouse(row,index) {
-      if(this.selection.length == 0) {
-        this.$message.error("璇烽�夋嫨鏁版嵁")
-      }else {
-        var selection = [];
-        this.selection.forEach(item=> {
-          selection.push(item.id);
-        })
-        this.loading = true;
-        var obj = {
-          ids: selection.join(","),
-        }
-        axios({
-          url: '/blade-mdm/program/dncsendback/accept',
-          method: 'get',
-          params: obj,
-        }).then(
-          res => {
-            this.$message.success("鎿嶄綔鎴愬姛");
-            this.loading = false;
-          }
-        );
-      }
+    data() {
+        return {
+            activeName: 'todo',
+        };
     },
-    searchReset() {
-      //this.onLoad(this.mypage);
-    },
-    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/program/dncsendback/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