12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import { request } from '../libs/request.js'
- // 获取所有检查表及其内容
- export function getChecklist(params) {
- return request({
- url: '/goaf/goafChecklist/list',
- params
- })
- }
- // 分页获取所有检查表及其内容
- export function getChecklistByPage(params) {
- return request({
- url: '/goaf/goafChecklist/page',
- params
- })
- }
- // 获取指定的检查表及其内容
- export function getChecklistById(goafchecklistId) {
- return request({
- url: `/goaf/goafChecklist/${goafchecklistId}`
- })
- }
- // 获取指定的检查项
- export function getChecklistItemById(goafchecklistId) {
- return request({
- url: `/goaf/goafChecklist/checklistitem/${goafchecklistId}`
- })
- }
- // 增加检查表及其内容
- export function createChecklist(data) {
- return request({
- url: '/goaf/goafChecklist/add',
- method: 'POST',
- data
- })
- }
- // 更新
- export function updateChecklist(data) {
- return request({
- url: '/goaf/goafChecklist/update',
- method: 'PUT',
- data
- })
- }
- // 删除指定检查表
- export function deleteChecklistById(goafchecklistId) {
- return request({
- url: `/goaf/goafChecklist/deletechecklist/${goafchecklistId}`,
- method: 'DELETE'
- })
- }
- // .删除指定检查表的某项内容
- export function deleteChecklistItemById(goafchecklistitemid) {
- return request({
- url: `/goaf/goafChecklist/deletecheckitemlist/${goafchecklistitemid}`,
- method: 'DELETE'
- })
- }
- // 增加检查表及其内容
- export function createChecklistItem(data) {
- return request({
- url: '/goaf/goafChecklist/add',
- method: 'POST',
- data
- })
- }
- // 更新
- export function updateChecklistItem(data) {
- return request({
- url: '/goaf/goafChecklist/update',
- method: 'PUT',
- data
- })
- }
|