Browse Source

优化检验项目保存和更新时的字段差异导致数据发生异常

master
李磊 3 years ago
parent
commit
8e84aa543b
  1. 3
      src/views/task/list.vue
  2. 14
      src/views/ysjl/3000/common/index.vue

3
src/views/task/list.vue

@ -302,7 +302,6 @@ export default {
methods: { methods: {
getList() { getList() {
getOwnList(this.listQuery).then(data => { getOwnList(this.listQuery).then(data => {
console.log(data.list)
this.list = data.list this.list = data.list
this.totalCount = data.total this.totalCount = data.total
}) })
@ -519,7 +518,6 @@ export default {
} }
this.sbxxList.sblbdm = this.shebeileibiedaima this.sbxxList.sblbdm = this.shebeileibiedaima
this.sbxxList.sbpzdm = this.shebeipinzhongdaima this.sbxxList.sbpzdm = this.shebeipinzhongdaima
console.log(this.path + '/null')
this.$router.push({ this.$router.push({
path: this.path + '/null', path: this.path + '/null',
query: { query: {
@ -662,7 +660,6 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(111111111111)
const arr = [] const arr = []
this.$refs.list.selection.map(rw => { this.$refs.list.selection.map(rw => {
arr.push(rw.id) arr.push(rw.id)

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

@ -741,6 +741,12 @@ export default {
// //
return row.jianyanxiang return row.jianyanxiang
} }
},
{
name: 'jianyanmu',
getValue(row) {
return row.jianyanmu
}
} }
], ],
rows: [ rows: [
@ -827,9 +833,6 @@ export default {
if (fubiao[2]) { if (fubiao[2]) {
this.fubiao3 = fubiao[2] this.fubiao3 = fubiao[2]
} }
console.log(this.fubiao1)
console.log(this.fubiao2)
console.log(this.fubiao3)
}) })
}, },
getYsjl() { getYsjl() {
@ -883,6 +886,9 @@ export default {
}) })
} else { } else {
this.jyxmService.getCyJyxm(this.$route.query.templateId, sort).then((data) => { this.jyxmService.getCyJyxm(this.$route.query.templateId, sort).then((data) => {
data.forEach(row => {
row.dicJyxmId = row.id
})
this.bgfyData = data this.bgfyData = data
this.tableJs.getData(this.cols, this.rows, this.bgfyData) this.tableJs.getData(this.cols, this.rows, this.bgfyData)
}) })
@ -968,7 +974,7 @@ export default {
tableData.push({ tableData.push({
ysjlId: this.ysjlId, ysjlId: this.ysjlId,
beizhu: row.beizhu, beizhu: row.beizhu,
dicJyxmId: row.id, dicJyxmId: row.dicJyxmId,
jianyanjieguo: row.jianyanjieguo ? row.jianyanjieguo : '', jianyanjieguo: row.jianyanjieguo ? row.jianyanjieguo : '',
jianyanjielun: row.jianyanjielun ? row.jianyanjielun : '', jianyanjielun: row.jianyanjielun ? row.jianyanjielun : '',
jyxmMode: 0, jyxmMode: 0,

Loading…
Cancel
Save