From e5d499ae6a4e6b320f71c49987b76cc11f6bc1e4 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 28 十月 2025 14:13:10 +0800
Subject: [PATCH] 首页问题
---
src/api/platform/check-template.js | 39 +++++++++++++++++++++++++++++++--------
1 files changed, 31 insertions(+), 8 deletions(-)
diff --git a/src/api/platform/check-template.js b/src/api/platform/check-template.js
index d742f49..e8f4fdb 100644
--- a/src/api/platform/check-template.js
+++ b/src/api/platform/check-template.js
@@ -3,16 +3,16 @@
// 鏌ヨ鑰冩牳妯℃澘鍒楄〃
export function listCheckTemplate(query) {
return request({
- url: '/check-template/page',
- method: 'post',
- data: query
+ url: '/check/template/list',
+ method: 'get',
+ params: query
})
}
// 鏌ヨ鑰冩牳妯℃澘璇︾粏
export function getCheckTemplate(id) {
return request({
- url: '/check-template/' + id,
+ url: '/check/template/' + id,
method: 'get'
})
}
@@ -20,25 +20,48 @@
// 鏂板鑰冩牳妯℃澘
export function addCheckTemplate(data) {
return request({
- url: '/check-template',
+ url: '/check/template',
method: 'post',
data: data
})
}
+// 澶嶅埗鑰冩牳妯℃澘
+export function copyCheckTemplate(data) {
+ return request({
+ url: '/check/template/copy',
+ method: 'post',
+ data: data
+ })
+}
// 淇敼鑰冩牳妯℃澘
export function updateCheckTemplate(data) {
return request({
- url: '/check-template',
+ url: '/check/template',
method: 'put',
data: data
})
}
-
+// 淇敼鑰冩牳妯℃澘鏉冮噸
+export function updateWeight(data) {
+ return request({
+ url: '/check/template/weight',
+ method: 'put',
+ data: data
+ })
+}
// 鍒犻櫎鑰冩牳妯℃澘
export function delCheckTemplate(id) {
return request({
- url: '/check-template/' + id,
+ url: '/check/template/' + id,
method: 'delete'
})
}
+
+// 鑾峰彇涓嬫媺鍒楄〃
+export function templateSelect() {
+ return request({
+ url: '/check/template/pullList',
+ method: 'get'
+ })
+}
--
Gitblit v1.8.0