From 04068a92a762556f30740973da654745b6795594 Mon Sep 17 00:00:00 2001
From: leo <10200039@qq.com>
Date: Sat, 22 Apr 2023 23:59:01 +0800
Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E6=96=B0=E5=A2=9E=E8=B7=AF?=
=?UTF-8?q?=E7=BA=BF=E5=A2=9E=E5=8A=A0=E8=A7=86=E5=9B=BE=E5=AF=BC=E5=87=BA?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api/materialEdit.ts | 18 ++++++++++++
src/views/materia/components/EditView.vue | 36 +++++++++++++++++++----
2 files changed, 48 insertions(+), 6 deletions(-)
diff --git a/src/api/api/materialEdit.ts b/src/api/api/materialEdit.ts
index 841b713..d6b9b49 100644
--- a/src/api/api/materialEdit.ts
+++ b/src/api/api/materialEdit.ts
@@ -43,4 +43,22 @@ export async function modifyMaterial(params, controller) {
result = data
});
return result;
+}
+
+// 下载SAP视图
+export async function downMateialViewSAP(params, controller) {
+ let result = {};
+ await http.post('/api/' + controller + '/DownMateialViewSAP', params).then((data) => {
+ result = data
+ });
+ return result;
+}
+
+// 下载视图
+export async function downMateialView(params, controller) {
+ let result = {};
+ await http.post('/api/' + controller + '/DownMateialView', params).then((data) => {
+ result = data
+ });
+ return result;
}
\ No newline at end of file
diff --git a/src/views/materia/components/EditView.vue b/src/views/materia/components/EditView.vue
index bc7dbb6..fd103b2 100644
--- a/src/views/materia/components/EditView.vue
+++ b/src/views/materia/components/EditView.vue
@@ -13,6 +13,12 @@
@click="_clickFreezingColumnSetting()">固定项
+
+ 导出SAP
+
+ 导出视图
+
+
@@ -85,12 +91,11 @@
import {
ref
} from 'vue';
-import {
- updateMaterialViewById
-} from "/src/api/api/view";
import {
getMaterialViewsByTeamId,
- updateMaterial
+ updateMaterial,
+ downMateialViewSAP,
+ downMateialView
} from "/src/api/api/materialEdit"
import {
getBasicRoleList,
@@ -100,7 +105,6 @@ import {
getDataCode,
commonSave
} from "/src/api/api/common";
-
import {
getInfoData,
GetMaterialInfoList
@@ -584,7 +588,27 @@ export default {
},
deepCopy(arr) {
return JSON.parse(JSON.stringify(arr))
- }
+ },
+ async downSAP() {
+ let result = await downMateialViewSAP({
+ teamId: this.dataInfoObj.FTeamID,
+ teamWorkType: this.dataInfoObj.FTeamworkType,
+ materialName: this.dataInfoObj.FMaterialName
+ }, "MaterialTeamwork");
+ if (result.Code == "200") {
+ window.location.href = result.Data
+ }
+ },
+ async downView() {
+ let result = await downMateialView({
+ teamId: this.dataInfoObj.FTeamID,
+ teamWorkType: this.dataInfoObj.FTeamworkType,
+ materialName: this.dataInfoObj.FMaterialName
+ }, "MaterialTeamwork");
+ if (result.Code == "200") {
+ window.location.href = result.Data
+ }
+ },
}
}