From 7d137d8d5e966ceadab9f07434cdbae602e4ec59 Mon Sep 17 00:00:00 2001 From: leo <10200039@qq.com> Date: Mon, 17 Apr 2023 12:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=A9=E6=96=99=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api/view.ts | 9 ++ src/views/materia/all.vue | 128 +++++++++++--------- src/views/materia/components/AddMateria.vue | 38 +++--- src/views/materia/components/EditView.vue | 100 +++++++++++---- src/views/materia/route.vue | 77 +++++------- 5 files changed, 201 insertions(+), 151 deletions(-) diff --git a/src/api/api/view.ts b/src/api/api/view.ts index 8f16ce2..e4d3f98 100644 --- a/src/api/api/view.ts +++ b/src/api/api/view.ts @@ -9,6 +9,15 @@ export async function getListByTeamId(params) { return result; } +//根据物料路线ID获取物料视图 +export async function getMaterialViewsByTeamId(params) { + let result = {}; + await http.post('/api/View/GetMaterialViewsByTeamId', params).then((data) => { + result = data.Data; + }); + return result; +} + //保存视图编辑的内容 export async function updateBatchById(params) { let result = {}; diff --git a/src/views/materia/all.vue b/src/views/materia/all.vue index ebba5d0..c8cf726 100644 --- a/src/views/materia/all.vue +++ b/src/views/materia/all.vue @@ -1,24 +1,23 @@ -