diff --git a/client/.env.development b/client/.env.development
index 571fd93..0800595 100644
--- a/client/.env.development
+++ b/client/.env.development
@@ -2,8 +2,8 @@
ENV = 'development'
# base api
-VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
-#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
+#VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
+VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
diff --git a/client/src/router/index.js b/client/src/router/index.js
index 50d17fc..cb85c48 100644
--- a/client/src/router/index.js
+++ b/client/src/router/index.js
@@ -159,6 +159,13 @@ export const asyncRoutes = [
meta: { title: '质量巡查', icon: 'inspect', perms: ['qualityinspect'] },
alwaysShow: true,
children: [
+
+ {
+ path: 'item',
+ name: 'InspectItem',
+ component: () => import('@/views/qualityinspect/inspectItem.vue'),
+ meta: { title: '检查项', perms: ['qualityinspect_view'] }
+ },
{
path: 'table',
name: 'InspectTable',
diff --git a/client/src/views/qualityinspect/inspectItem.vue b/client/src/views/qualityinspect/inspectItem.vue
new file mode 100644
index 0000000..968643b
--- /dev/null
+++ b/client/src/views/qualityinspect/inspectItem.vue
@@ -0,0 +1,265 @@
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row.cate_name }}
+
+
+ {{ scope.row.sortnum }}
+
+
+
+ {{ scope.row.name }}
+
+
+ {{ scope.row.type }}
+
+
+
+ {{ scope.row.require }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
diff --git a/client/src/views/qualityinspect/inspectTable.vue b/client/src/views/qualityinspect/inspectTable.vue
index cb60640..3c67d8a 100644
--- a/client/src/views/qualityinspect/inspectTable.vue
+++ b/client/src/views/qualityinspect/inspectTable.vue
@@ -2,7 +2,7 @@
新增创建模板
@@ -186,7 +186,7 @@ export default {
getList() {
this.listLoading = true;
- getQualityinspectList().then((response) => {
+ getQualityinspectList({pageoff:true}).then((response) => {
if (response.data) {
this.inspectTableList = response.data;
}
diff --git a/client/src/views/qualityinspect/mytaskdo.vue b/client/src/views/qualityinspect/mytaskdo.vue
index 5473e95..2e21c9d 100644
--- a/client/src/views/qualityinspect/mytaskdo.vue
+++ b/client/src/views/qualityinspect/mytaskdo.vue
@@ -118,19 +118,19 @@
ref="drawer"
>
-
+
{{ inspectrecord.item_.require }}
-
+
-
+
{
- this.form.note=res.data.note;
- this.from.result=res.data.result;
- this.form.imgs=res.data.imgs;
+ this.inspectrecord = res.data;
})
},
@@ -268,6 +268,7 @@ export default {
{
this.dialog=true;
this.recordid=scope.row.id
+ console.log(this.recordid)
getinspectrecord(this.recordid).then((res) => {
this.inspectrecord = res.data;
@@ -316,10 +317,10 @@ export default {
for (var i = 0; i < this.fileList.length; i++) {
files.push(this.fileList[i].id);
}
- this.form.imgs = files;
- this.form.id=this.recordid;
+ this.inspectrecord.imgs = files;
+ this.inspectrecord.id=this.recordid;
console.log(this.recordid)
- updateinspectrecord(this.recordid, this.form).then((res) => {
+ updateinspectrecord(this.recordid, this.inspectrecord).then((res) => {
if (res.code >= 200) {
this.getinspectrecordlist();
this.getsubinspecttaskdep()