From da410c0e2a68fb08f08abe94cac4ee175fcd57c0 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期三, 25 六月 2025 14:45:56 +0800
Subject: [PATCH] 1
---
src/views/flowmgr/backImport.vue | 50 ++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 40 insertions(+), 10 deletions(-)
diff --git a/src/views/flowmgr/backImport.vue b/src/views/flowmgr/backImport.vue
index 64a2d08..765128e 100644
--- a/src/views/flowmgr/backImport.vue
+++ b/src/views/flowmgr/backImport.vue
@@ -14,10 +14,15 @@
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
+ @selection-change="selectionChange"
>
<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>
+ <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>
@@ -27,6 +32,7 @@
export default {
data() {
return {
+ selection: [],
search: {},
loading: true,
mypage: {
@@ -42,6 +48,7 @@
emptyBtn: false,
searchSpan: 8,
menu: false,
+ selection: true,
column: [
{
label: '鏂囦欢璺緞',
@@ -52,15 +59,15 @@
},
{
label: '浠诲姟缂栧彿',
- prop: ''
+ prop: 'programNo'
},
{
label: '绋嬪簭鍚嶇О',
- prop: '',
+ prop: 'programName',
},
{
label: '鏂囦欢鍒拌揪鏃堕棿',
- prop: '',
+ prop: 'fileBackTime',
},
{
label: '鏂囦欢鏁版嵁搴撶紪鍙�',
@@ -84,7 +91,7 @@
},
{
label: 'MD5鍊�',
- prop: ''
+ prop: 'md5 '
}
],
},
@@ -92,8 +99,32 @@
};
},
methods: {
- handleEdit(row,index) {
-
+ selectionChange(selection) {
+ this.selection = selection;
+ },
+ 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;
+ }
+ );
+ }
},
searchReset() {
//this.onLoad(this.mypage);
@@ -121,7 +152,7 @@
size: this.mypage.size,
}
axios({
- url: '/program/dncsendback/page',
+ url: '/blade-mdm/program/dncsendback/page',
method: 'get',
params: obj,
}).then(
@@ -135,7 +166,6 @@
}
);
-
}
},
};
--
Gitblit v1.9.3