| | |
| | | |
| | | <span class="header-title">调度指令</span> |
| | | |
| | | <u-icon @click="goToAddPage" top='4' class="header-add" name="plus" color="#fff"> |
| | | <u-icon v-if="$store.state.UserData.rname[0].indexOf('保安') == -1" @click="goToAddPage" top='4' |
| | | class="header-add" name="plus" color="#fff"> |
| | | </u-icon> |
| | | |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | |
| | | list: [{ |
| | | name: '发送指令' |
| | | }, |
| | | { |
| | | name: '接收指令' |
| | | } |
| | | ], |
| | | list: [], |
| | | |
| | | current: 0, |
| | | |
| | |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | |
| | | if (this.$store.state.UserData.rname[0] == '保安') { |
| | | |
| | | this.list = [{ |
| | | name: '接收指令查询' |
| | | }] |
| | | |
| | | this.getSend(); |
| | | |
| | | } else if (this.$store.state.UserData.rname[0] == '保安公司管理员') { |
| | | |
| | | this.list = [{ |
| | | name: '接收指令查询' |
| | | }] |
| | | |
| | | this.getSend(); |
| | | |
| | | } else { |
| | | this.list = [{ |
| | | name: '下发指令查询' |
| | | }, { |
| | | name: '接收指令查询' |
| | | }] |
| | | |
| | | this.getReceive() |
| | | } |
| | | |
| | | }, |
| | | onReachBottom() { |
| | |
| | | |
| | | }, |
| | | mounted() { |
| | | this.getReceive(); |
| | | }, |
| | | methods: { |
| | | getReceive() { |
| | |
| | | } |
| | | |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + "/directive/page?receiveDirectiveIds=" + this.$store.state |
| | | url: this.$store.state.piAPI + "/directive/page?sendDirectiveId=" + this.$store.state |
| | | .puserID, |
| | | method: "get", |
| | | data: { |
| | |
| | | } |
| | | |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + "/directive/page?sendDirectiveId=" + this.$store.state.puserID, |
| | | url: this.$store.state.piAPI + "/directive/page?receiveDirectiveIds=" + this.$store.state.puserID, |
| | | method: "get", |
| | | data: { |
| | | current: that.pagelist, |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | |
| | | position: absolute; |
| | | top: 0; |
| | | left: auto; |
| | | right: 3px; |
| | | right: 10px; |
| | | bottom: 0; |
| | | margin: auto; |
| | | display: inline-block; |