|
|
@@ -477,7 +477,6 @@
|
|
|
this.formData.Id = 0
|
|
|
}
|
|
|
this.getDictOptions()
|
|
|
- this.getorgtreelist()
|
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
if (this.IsCompanyUser && this.serviceId === 'add') {
|
|
|
apiCert.getEntityByCreatorAndType('02', this.$axios).then(res => {
|
|
|
@@ -799,38 +798,6 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getorgtreelist () {
|
|
|
- let _this = this
|
|
|
- let params = {
|
|
|
- IsInnerOrganize: 1
|
|
|
- }
|
|
|
- _this.$axios.get('organizes/orgalllist', {
|
|
|
- params
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
- if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
|
- this.secOrganize = _this.authUser.Profile.Superior.split(',').map((val) => {
|
|
|
- return parseInt(val)
|
|
|
- })
|
|
|
- this.auditOrgChang(this.secOrganize)
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- auditOrgChang (val) {
|
|
|
- let deptid = val[val.length - 1]
|
|
|
- this.auditerOption = []
|
|
|
- this.auditer = ''
|
|
|
- let auditstepcode = 'FIRST_TRIAL'
|
|
|
- api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
- this.auditerOption = res.data.item
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
/* getCityList(val) {
|
|
|
let resultData = JSON.parse(val)
|
|
|
let countstr = JSON.stringify(resultData.districts[0].districts)
|