diff --git a/src/api/qualityCheck.js b/src/api/qualityCheck.js
index 5eaa704..dda6572 100644
--- a/src/api/qualityCheck.js
+++ b/src/api/qualityCheck.js
@@ -35,7 +35,7 @@
url: '/qualityModular/delete',
method: 'post',
params: {
- ids: id
+ id: id
}
})
}
@@ -55,7 +55,7 @@
// 查询质检标准
export function getQIndexList(id) {
return request({
- url: '/sound/soundList',
+ url: '/qualityIndex/list',
method: 'get',
params: {
modularId: id
@@ -65,7 +65,7 @@
// 新增质检标准
export function addQIndex(params) {
return request({
- url: '/qualityIndex/addIndex',
+ url: '/qualityIndex/add',
method: 'post',
params
})
@@ -103,7 +103,7 @@
// 待质检录音列表
export function getWaitCheckSoundList(params) {
return request({
- url: '/sound/soundList',
+ url: '/qualityCheck/soundCheckList',
method: 'get',
params
})
@@ -111,7 +111,7 @@
// 已质检录音列表
export function getCheckedSoundList(params) {
return request({
- url: '/sound/soundList',
+ url: '/qualityCheck/soundCheckList',
method: 'get',
params
})
diff --git a/src/api/qualityCheck.js b/src/api/qualityCheck.js
index 5eaa704..dda6572 100644
--- a/src/api/qualityCheck.js
+++ b/src/api/qualityCheck.js
@@ -35,7 +35,7 @@
url: '/qualityModular/delete',
method: 'post',
params: {
- ids: id
+ id: id
}
})
}
@@ -55,7 +55,7 @@
// 查询质检标准
export function getQIndexList(id) {
return request({
- url: '/sound/soundList',
+ url: '/qualityIndex/list',
method: 'get',
params: {
modularId: id
@@ -65,7 +65,7 @@
// 新增质检标准
export function addQIndex(params) {
return request({
- url: '/qualityIndex/addIndex',
+ url: '/qualityIndex/add',
method: 'post',
params
})
@@ -103,7 +103,7 @@
// 待质检录音列表
export function getWaitCheckSoundList(params) {
return request({
- url: '/sound/soundList',
+ url: '/qualityCheck/soundCheckList',
method: 'get',
params
})
@@ -111,7 +111,7 @@
// 已质检录音列表
export function getCheckedSoundList(params) {
return request({
- url: '/sound/soundList',
+ url: '/qualityCheck/soundCheckList',
method: 'get',
params
})
diff --git a/src/views/qualityManage/qualityModular/components/modulerTree.vue b/src/views/qualityManage/qualityModular/components/modulerTree.vue
index f0aa0ad..e8713dd 100644
--- a/src/views/qualityManage/qualityModular/components/modulerTree.vue
+++ b/src/views/qualityManage/qualityModular/components/modulerTree.vue
@@ -47,7 +47,7 @@
},
methods: {
// 获取组织结构树
- fetchTypeTree() {
+ fetchTypeTree(needClick = true) {
this.treeLoading = true
getQModulerList().then(response => {
// response.data = [
@@ -61,10 +61,9 @@
disabled: true,
children: response.data
}]
- // this.$refs.tree.setCheckedKeys(['2'])
- // this.$refs.tree.setChecked(response.data[0])
- // this.$refs.tree.setCurrentKey('2')
- this.handleNodeClick(response.data[0])
+ if (needClick) {
+ this.handleNodeClick(response.data[0])
+ }
this.treeLoading = false
})
},
diff --git a/src/api/qualityCheck.js b/src/api/qualityCheck.js
index 5eaa704..dda6572 100644
--- a/src/api/qualityCheck.js
+++ b/src/api/qualityCheck.js
@@ -35,7 +35,7 @@
url: '/qualityModular/delete',
method: 'post',
params: {
- ids: id
+ id: id
}
})
}
@@ -55,7 +55,7 @@
// 查询质检标准
export function getQIndexList(id) {
return request({
- url: '/sound/soundList',
+ url: '/qualityIndex/list',
method: 'get',
params: {
modularId: id
@@ -65,7 +65,7 @@
// 新增质检标准
export function addQIndex(params) {
return request({
- url: '/qualityIndex/addIndex',
+ url: '/qualityIndex/add',
method: 'post',
params
})
@@ -103,7 +103,7 @@
// 待质检录音列表
export function getWaitCheckSoundList(params) {
return request({
- url: '/sound/soundList',
+ url: '/qualityCheck/soundCheckList',
method: 'get',
params
})
@@ -111,7 +111,7 @@
// 已质检录音列表
export function getCheckedSoundList(params) {
return request({
- url: '/sound/soundList',
+ url: '/qualityCheck/soundCheckList',
method: 'get',
params
})
diff --git a/src/views/qualityManage/qualityModular/components/modulerTree.vue b/src/views/qualityManage/qualityModular/components/modulerTree.vue
index f0aa0ad..e8713dd 100644
--- a/src/views/qualityManage/qualityModular/components/modulerTree.vue
+++ b/src/views/qualityManage/qualityModular/components/modulerTree.vue
@@ -47,7 +47,7 @@
},
methods: {
// 获取组织结构树
- fetchTypeTree() {
+ fetchTypeTree(needClick = true) {
this.treeLoading = true
getQModulerList().then(response => {
// response.data = [
@@ -61,10 +61,9 @@
disabled: true,
children: response.data
}]
- // this.$refs.tree.setCheckedKeys(['2'])
- // this.$refs.tree.setChecked(response.data[0])
- // this.$refs.tree.setCurrentKey('2')
- this.handleNodeClick(response.data[0])
+ if (needClick) {
+ this.handleNodeClick(response.data[0])
+ }
this.treeLoading = false
})
},
diff --git a/src/views/qualityManage/qualityModular/editIndex.vue b/src/views/qualityManage/qualityModular/editIndex.vue
index 1483461..443f08e 100644
--- a/src/views/qualityManage/qualityModular/editIndex.vue
+++ b/src/views/qualityManage/qualityModular/editIndex.vue
@@ -19,6 +19,19 @@
+
+
+
+
+
+
+
+
+
@@ -53,8 +66,8 @@