| | |
| | | <template> |
| | | <view class="mainContent"> |
| | | <basicInfor :basic-infor="basicInfor" /> |
| | | <basicInfor :basic-infor="basicInfor" v-if="isShow" /> |
| | | <rectificationInfor ref="rectificationInfor" :basic-infor="basicInfor" |
| | | v-if="!(pageState === 'view' && basicInfor.state === 20)" /> |
| | | <approvalnfor ref="approvalnfor" v-if="basicInfor.state >= 30 && basicInfor.stateName!=='待完成'" |
| | |
| | | unitListL: [], |
| | | userInfor: null, |
| | | show: false, |
| | | isShow: false, |
| | | option: {} |
| | | } |
| | | }, |
| | |
| | | userId: this.userInfor.userId |
| | | } |
| | | this.$http.httpGet('/allocationApp/authority', params).then(res => { |
| | | if (!res.data) { |
| | | if (res.data === 3) { |
| | | uni.showModal({ |
| | | content: '您暂无操作权限,请联系管理员!', |
| | | showCancel: false, |
| | |
| | | } |
| | | }, |
| | | }) |
| | | } else if (res.data === 1) { |
| | | // 可以编辑 |
| | | this.basicInfor.pageState = 'edit' |
| | | this.isShow = true |
| | | } else if (res.data === 2) { |
| | | // 可以看 |
| | | this.isShow = true |
| | | this.basicInfor.pageState = 'view' |
| | | } |
| | | }) |
| | | } else { |
| | | this.isShow = true |
| | | } |
| | | console.log('this.basicInfor123', this.basicInfor) |
| | | }, |