From 735d4324721ea5ad1dc025dc412e56f17c477e61 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Mon, 12 Apr 2021 10:33:38 +0800
Subject: [PATCH] zhiliangxunjian
---
client/src/api/qualityinspect.js | 44 +++
client/src/router/index.js | 6 +-
client/src/views/qualityinspect/index.vue | 0
.../src/views/qualityinspect/inspectTable.vue | 265 ++++++++++++++++++
4 files changed, 312 insertions(+), 3 deletions(-)
create mode 100644 client/src/api/qualityinspect.js
delete mode 100644 client/src/views/qualityinspect/index.vue
create mode 100644 client/src/views/qualityinspect/inspectTable.vue
diff --git a/client/src/api/qualityinspect.js b/client/src/api/qualityinspect.js
new file mode 100644
index 0000000..6c80438
--- /dev/null
+++ b/client/src/api/qualityinspect.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+
+
+
+export function getQualityinspectList(query) {
+ return request({
+ url: '/quality/inspectitem/',
+ method: 'get',
+ params: query
+ })
+}
+
+export function getQualityinspect(id) {
+ return request({
+ url: `/quality/inspectitem/${id}/`,
+ method: 'get'
+ })
+}
+
+export function createQualityinspect(data) {
+ return request({
+ url: '/quality/inspectitem/',
+ method: 'post',
+ data
+ })
+}
+
+export function updateQualityinspect(id, data) {
+ return request({
+ url: `/quality/inspectitem/${id}/`,
+ method: 'put',
+ data
+ })
+}
+
+export function deleteQualityinspect(id, data) {
+ return request({
+ url: `/quality/inspectitem/${id}/`,
+ method: 'delete',
+ data
+ })
+}
+
diff --git a/client/src/router/index.js b/client/src/router/index.js
index ff24581..49cb6e7 100644
--- a/client/src/router/index.js
+++ b/client/src/router/index.js
@@ -161,14 +161,14 @@ export const asyncRoutes = [
children: [
{
path: 'table',
- name: 'inspectTable',
- component: () => import('@/views/qualityinspect/index.vue'),
+ name: 'InspectTable',
+ component: () => import('@/views/qualityinspect/inspectTable.vue'),
meta: { title: '检查表', perms: ['qualityinspect_view'] }
},
{
path: 'task',
name: 'inspectTask',
- component: () => import('@/views/qualityinspect/index.vue'),
+ component: () => import('@/views/qualityinspect/inspectTable.vue'),
meta: { title: '巡查任务', perms: ['qualityinspect_view'] }
},
]
diff --git a/client/src/views/qualityinspect/index.vue b/client/src/views/qualityinspect/index.vue
deleted file mode 100644
index e69de29..0000000
diff --git a/client/src/views/qualityinspect/inspectTable.vue b/client/src/views/qualityinspect/inspectTable.vue
new file mode 100644
index 0000000..65c573c
--- /dev/null
+++ b/client/src/views/qualityinspect/inspectTable.vue
@@ -0,0 +1,265 @@
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row.cate_name }}
+
+
+ {{ scope.row.sortnum }}
+
+
+
+ {{ scope.row.name }}
+
+
+ {{ scope.row.type }}
+
+
+
+ {{ scope.row.require }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+