From 0859122d9f4167d1a0766b966bd31f87dd023829 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 11 Mar 2024 16:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=99=84=E5=8A=A0=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/additionitem/additionitem.js | 35 ++ yxt-as-ui/src/router/index.js | 16 + .../src/views/additionitem/additionitem.vue | 326 ++++++++++++++++++ 3 files changed, 377 insertions(+) create mode 100644 yxt-as-ui/src/api/additionitem/additionitem.js create mode 100644 yxt-as-ui/src/views/additionitem/additionitem.vue diff --git a/yxt-as-ui/src/api/additionitem/additionitem.js b/yxt-as-ui/src/api/additionitem/additionitem.js new file mode 100644 index 0000000000..35df6f409b --- /dev/null +++ b/yxt-as-ui/src/api/additionitem/additionitem.js @@ -0,0 +1,35 @@ +import request from '@/utils/request' + +export default { + // 查询分页列表 + listPage: function(params) { + return request({ + url: '/as/v1/AsServiceAttachItem/listPage', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) + }, + saveOrUpdate: function(data) { + return request({ + url: '/as/v1/AsServiceAttachItem/saveAttachItem', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + }, + fetchBySid: function(data) { + return request({ + url: '/as/v1/AsServiceAttachItem/fetchDetails/' + data, + method: 'get' + }) + }, + deleteBySids: function(data) { + return request({ + url: '/as/v1/AsServiceAttachItem/delBySids', + method: 'DELETE', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + } +} diff --git a/yxt-as-ui/src/router/index.js b/yxt-as-ui/src/router/index.js index af0f079c4d..a77e076b75 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -90,6 +90,22 @@ export const constantRoutes = [ meta: { title: '维修项目管理', noCache: true } } ] + }, + { + path: '/additionitem', + component: Layout, + redirect: '/additionitem', + meta: { + title: '附加项目管理' + }, + children: [ + { + path: '/additionitem/additionitem', + component: () => import('@/views/additionitem/additionitem.vue'), + name: 'AdditionItem', + meta: { title: '附加项目管理', noCache: true } + } + ] }, // 404 page must be placed at the end !!! // { path: '*', redirect: '/404', hidden: true } diff --git a/yxt-as-ui/src/views/additionitem/additionitem.vue b/yxt-as-ui/src/views/additionitem/additionitem.vue new file mode 100644 index 0000000000..f6a49fbd2b --- /dev/null +++ b/yxt-as-ui/src/views/additionitem/additionitem.vue @@ -0,0 +1,326 @@ + + + +