Browse Source

修复二次进入页面更新数据时,原有数据丢失的bug

master
李磊 3 years ago
parent
commit
2ac0c1eea9
  1. 1
      src/views/user/components/data-permission.vue
  2. 4
      src/views/ysjl/2000/2100/zbg/dj/edit.vue
  3. 6
      src/views/ysjl/2000/2200/zbg/dj/edit.vue
  4. 4
      src/views/ysjl/7000/jj/edit.vue

1
src/views/user/components/data-permission.vue

@ -223,6 +223,7 @@ export default {
settingChecked(result, optionsIds) { settingChecked(result, optionsIds) {
let matching = false let matching = false
optionsIds.forEach(optionsId => { optionsIds.forEach(optionsId => {
this.checkedIds.add(optionsId)
if (result.id === optionsId) { if (result.id === optionsId) {
result.checked = true result.checked = true
matching = true matching = true

4
src/views/ysjl/2000/2100/zbg/dj/edit.vue

@ -1589,9 +1589,9 @@ export default {
data: { data: {
ysjl: this.ysjl, ysjl: this.ysjl,
param: this.param, param: this.param,
cyJyxm:{ cyJyxm: {
jyxm: jyxm, jyxm: jyxm,
bgjyxm: jyxm, bgjyxm: jyxm
} }
} }
}).then(data => { }).then(data => {

6
src/views/ysjl/2000/2200/zbg/dj/edit.vue

@ -1185,9 +1185,9 @@ export default {
data: { data: {
ysjl: this.ysjl, ysjl: this.ysjl,
param: this.param, param: this.param,
cyJyxm:{ cyJyxm: {
jyxm: jyxm, jyxm: jyxm,
bgjyxm: jyxm, bgjyxm: jyxm
} }
} }
}).then(data => { }).then(data => {

4
src/views/ysjl/7000/jj/edit.vue

@ -589,8 +589,8 @@ export default {
data: { data: {
ysjl: this.ysjl, ysjl: this.ysjl,
param: this.param, param: this.param,
cyJyxm:{ cyJyxm: {
jyxm: JSON.stringify(this.tableData), jyxm: JSON.stringify(this.tableData)
} }
} }
}).then(data => { }).then(data => {

Loading…
Cancel
Save