Browse Source

修改

master
z_yu 3 years ago
parent
commit
a005a01286
  1. 6
      src/views/archivesConfig/dict/dictDetail.vue
  2. 3
      src/views/archivesConfig/dict/index.vue

6
src/views/archivesConfig/dict/dictDetail.vue

@ -72,7 +72,7 @@ export default {
presenter(), presenter(),
header(), header(),
form(function() { form(function() {
return Object.assign({ dic_pid: this.dictId }, defaultForm)
return Object.assign({ dic_pid: this.dicPid }, defaultForm)
})], })],
props: { props: {
activeAddBtn: { activeAddBtn: {
@ -81,7 +81,7 @@ export default {
}, },
data() { data() {
return { return {
dictId: null,
dicPid: null,
rules: { rules: {
label: [ label: [
{ required: true, message: '请输入字典名称', trigger: 'blur' } { required: true, message: '请输入字典名称', trigger: 'blur' }
@ -108,7 +108,7 @@ export default {
}, },
// //
[CRUD.HOOK.beforeRefresh]() { [CRUD.HOOK.beforeRefresh]() {
this.crud.query.id = this.dictId
this.crud.query.id = this.dicPid
return true return true
} }
} }

3
src/views/archivesConfig/dict/index.vue

@ -107,8 +107,7 @@ export default {
this.crud.selectionChangeHandler([]) this.crud.selectionChangeHandler([])
} }
this.$refs.dictDetail.query.id = val.id this.$refs.dictDetail.query.id = val.id
console.log(1)
this.$refs.dictDetail.dictId = val.id
this.$refs.dictDetail.dicPid = val.id
this.$refs.dictDetail.crud.toQuery() this.$refs.dictDetail.crud.toQuery()
this.activeAddBtn = true this.activeAddBtn = true
} }

Loading…
Cancel
Save