| | |
| | | <view class="blank"></view> |
| | | <!-- <footer-btn @click="submitInfo" v-if="roleType == 2 && (info.status == 4 || info.status == 3)" /> --> |
| | | <audit-action v-if="roleType == 1 && info.status == 1" @handle="submitAudit" /> |
| | | <footer-btn v-if="roleType == 2 && info.status == 3" text="重新提交" @click="navTo" /> |
| | | <footer-btn v-if="roleType == 2 && info.status == 3 " text="重新提交" @click="navTo" /> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | signatureUrl: [], |
| | | label: "", |
| | | itemList: [], |
| | | roleType: '', //1.民警/系统管理员 2.场所负责人 |
| | | roleType: '', //1.民警/系统管理员 2.场所负责人 / 学校主体 |
| | | ids: [], |
| | | taskId: "" |
| | | taskId: "", |
| | | type: 1 // 2学校主体 |
| | | } |
| | | }, |
| | | async onLoad(option) { |
| | | let { |
| | | roleName |
| | | roleName, |
| | | roleAlias |
| | | } = uni.getStorageSync("activeRole") |
| | | if (roleName == "居民") { |
| | | this.roleType = 2; |
| | | } |
| | | if (roleName == "民警" || roleName == "系统管理员") { |
| | | } else if (roleName == "民警" || roleName == "系统管理员") { |
| | | this.roleType = 1; |
| | | } else if (roleAlias == "xyzt") { |
| | | this.roleType = 2; |
| | | } |
| | | |
| | | |
| | | if (option.type) { |
| | | this.type = option.type; |
| | | } |
| | | |
| | | await this.getItem(); |
| | |
| | | taskId: this.taskId |
| | | }).then(res => { |
| | | let data = res.data; |
| | | if (data.type == 2) { |
| | | uni.setNavigationBarTitle({ |
| | | title: "校园安保检查" |
| | | }) |
| | | } |
| | | // this.info = res.data; |
| | | this.images = this.$setImageUrl(res.data.imageUrls); |
| | | this.signatureUrl = this.$setImageUrl(res.data.signaturePath); |
| | |
| | | }, |
| | | |
| | | getItem() { |
| | | getPlaceCheckItem({ |
| | | let data = { |
| | | childType: 1, |
| | | type: 1 |
| | | }).then(res => { |
| | | } |
| | | if (this.type == 2) { |
| | | data.childType = 9; |
| | | data.type = 3; |
| | | } |
| | | getPlaceCheckItem(data).then(res => { |
| | | if (res.code == 200) { |
| | | this.itemList = res.data; |
| | | } |
| | |
| | | }, |
| | | |
| | | navTo() { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/label/check?taskId=${this.info.taskId}` |
| | | }) |
| | | if (this.type == 1) { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/label/check?taskId=${this.info.taskId}` |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/school/security?taskId=${this.info.taskId}` |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | |
| | | } |