From 057ce688e9fe904c1a74b2505531d5afc7acf43e Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 10 九月 2025 23:03:56 +0800
Subject: [PATCH] 修复bug
---
src/views/flowmgr/backImport.vue | 207 +++++++++------------------------------------------
1 files changed, 38 insertions(+), 169 deletions(-)
diff --git a/src/views/flowmgr/backImport.vue b/src/views/flowmgr/backImport.vue
index 765128e..5f3d4ad 100644
--- a/src/views/flowmgr/backImport.vue
+++ b/src/views/flowmgr/backImport.vue
@@ -1,176 +1,45 @@
+<!--
+ * @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">
+ <keep-alive>
+ <backImport1 v-if="activeName==='todo'"></backImport1>
+ </keep-alive>
+ </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