Browse Source

修改

master
曲树通 6 years ago
parent
commit
dfe3fcdf15
  1. 14
      src/views/modules/custom/gridoperatorinfo-add-or-update.vue
  2. 2
      src/views/modules/custom/gridoperatorinfo.vue

14
src/views/modules/custom/gridoperatorinfo-add-or-update.vue

@ -155,7 +155,6 @@ export default {
methods: {
init () {
this.getByLoginUser()
this.getDutyCategory()
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/upload?token=${Cookies.get('token')}`
this.visible = true
this.$nextTick(() => {
@ -214,18 +213,7 @@ export default {
},
getByLoginUser () {
this.$http
.get(`/sys/dept/party/getDeptTree`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.options = res.data.options
})
.catch(() => { })
},
getDutyCategory () {
this.$http
.get(`/sys/dept/party/getDeptTree`)
.get(`/sys/user/deptOptions/getByLoginUser`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)

2
src/views/modules/custom/gridoperatorinfo.vue

@ -177,7 +177,7 @@ export default {
},
methods: {
getOptions () {
this.$http.get(`/sys/dept/party/getDeptTreeForEpiDemic`).then(({ data: res }) => {
this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

Loading…
Cancel
Save