|
@ -680,8 +680,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getGridList () { |
|
|
getGridList () { |
|
|
const { user } = this.$store.state |
|
|
const { user } = this.$store.state |
|
|
|
|
|
let purpose = 'query' |
|
|
|
|
|
if (this.disabled) purpose = 'query' |
|
|
|
|
|
else purpose = 'addorupdate' |
|
|
this.$http |
|
|
this.$http |
|
|
.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId }) |
|
|
.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose }) |
|
|
.then(({ data: res }) => { |
|
|
.then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|