Browse Source

优化调整机电类检验项目获取接口

master
李磊 3 years ago
parent
commit
684efcd77c
  1. 5
      src/api/jyxm.js
  2. 2
      src/api/ysjl.js
  3. 4
      src/controller/jyxmController.js
  4. 4
      src/views/ysjl/3000/common/index.vue

5
src/api/jyxm.js

@ -11,13 +11,14 @@ export default {
}
})
},
getJdCyJyxm: (ysjlId, sort) => {
getJdCyJyxm: (ysjlId, templateId, orders) => {
return api({
url: '/jyxm/getJdJyxmByYsjl',
method: 'get',
params: {
ysjlId: ysjlId,
orders: sort
templateId: templateId,
orders: orders
}
})
},

2
src/api/ysjl.js

@ -85,7 +85,7 @@ export default {
*/
getYsjlFb: (ysjlId) => {
return api({
url: '/ysjl/getJyxmInfoByYsjl',
url: '/jyxm/getJyxmInfoByYsjl',
method: 'get',
params: {
ysjlId: ysjlId

4
src/controller/jyxmController.js

@ -28,8 +28,8 @@ export default {
getCyJyxm(modelId, sort) {
return jyxm.getCyJyxm(modelId, sort)
},
getJdCyJyxm(ysjlId, sort) {
return jyxm.getJdCyJyxm(ysjlId, sort)
getJdCyJyxm(ysjlId, templateId, orders) {
return jyxm.getJdCyJyxm(ysjlId, templateId, orders)
},
/**
* 找到检验项或者检验目开始的第一条数据并进行签名

4
src/views/ysjl/3000/common/index.vue

@ -860,7 +860,7 @@ export default {
},
getJyxm(sort) {
if (this.$route.query.state === 'update') {
this.jyxmController.getJdCyJyxm(this.ysjlId, sort).then((data) => {
this.jyxmController.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort).then((data) => {
this.bgfyData = data
console.log(data, 5685)
this.tableJs.mergeColRows(this.cols, this.rows, data)
@ -1018,7 +1018,7 @@ export default {
})
arr.push(item.data)
})
let arr1 = JSON.parse(JSON.stringify(this.$refs.table1.tableData))
const arr1 = JSON.parse(JSON.stringify(this.$refs.table1.tableData))
arr1.map(item => {
delete item.name
})

Loading…
Cancel
Save