|
|
|
@ -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) |
|
|
|
|