|
@@ -307,34 +307,41 @@ export default {
|
|
unitName: '',
|
|
unitName: '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
- this.initAuditUnit()
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- initAuditUnit() {
|
|
|
|
- let userInfo = getUserInfo()
|
|
|
|
- const params = {
|
|
|
|
- orgId: userInfo.deptId,
|
|
|
|
- }
|
|
|
|
|
|
+ created() {
|
|
|
|
+ let userInfo = getUserInfo()
|
|
|
|
+ const params = {
|
|
|
|
+ orgId: userInfo.deptId,
|
|
|
|
+ }
|
|
|
|
+ axios({
|
|
|
|
+ url: 'api/xcoa-mobile/v1/iamorg/getCurrentUserGroup',
|
|
|
|
+ method: 'get',
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ userInfo = res.data
|
|
|
|
+ params.orgId = res.data.id
|
|
axios({
|
|
axios({
|
|
- url: 'api/xcoa-mobile/v1/iamorg/getCurrentUserGroup',
|
|
|
|
- method: 'get',
|
|
|
|
|
|
+ url: 'api/xcoa-mobile/v1/iamorg/findIamOrg',
|
|
|
|
+ method: 'post',
|
|
|
|
+ params,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- userInfo = res.data
|
|
|
|
- params.orgId = res.data.id
|
|
|
|
- axios({
|
|
|
|
- url: 'api/xcoa-mobile/v1/iamorg/findIamOrg',
|
|
|
|
- method: 'post',
|
|
|
|
- params,
|
|
|
|
- }).then((res) => {
|
|
|
|
- const deptCode = userInfo.id.toString()
|
|
|
|
- const deptName = res.data.orgName
|
|
|
|
- this.rootNode = { code: deptCode, name: deptName, id: res.data.id }
|
|
|
|
- this.auditUnit = [this.rootNode]
|
|
|
|
- this.initedSteps++
|
|
|
|
- })
|
|
|
|
|
|
+ const deptCode = userInfo.id.toString()
|
|
|
|
+ const deptName = res.data.orgName
|
|
|
|
+ this.rootNode = { code: deptCode, name: deptName, id: res.data.id }
|
|
|
|
+ this.auditUnit = [this.rootNode]
|
|
|
|
+ this.initedSteps++
|
|
|
|
+ // 审计机构
|
|
|
|
+ if (this.auditUnit[0] !== undefined) {
|
|
|
|
+ this.tableExpressions.push({
|
|
|
|
+ dataType: 'str',
|
|
|
|
+ name: 'unitName',
|
|
|
|
+ op: 'like',
|
|
|
|
+ stringValue: this.auditUnit[0].name,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
- },
|
|
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ mounted() {},
|
|
|
|
+ methods: {
|
|
export() {
|
|
export() {
|
|
this.$refs.rectplanprojectExport.exportdata()
|
|
this.$refs.rectplanprojectExport.exportdata()
|
|
},
|
|
},
|