智慧保安互联网APP
shuishen
2021-11-25 19f8e45ad02f51dd058455e3013b53d6885db5e7
部分文件修改
4 files modified
119 ■■■■ changed files
pages/dispatch/imgissue.vue 54 ●●●● patch | view | raw | blame | history
pages/report/initiate.vue 51 ●●●● patch | view | raw | blame | history
pages/securityStaff/information.vue 10 ●●●● patch | view | raw | blame | history
store/index.js 4 ●●●● patch | view | raw | blame | history
pages/dispatch/imgissue.vue
@@ -11,7 +11,10 @@
                <u-form-item label-width='158' prop="recipientText" label="指令接收人" :required="true">
                    <u-button slot="right" type="success" size="mini" @click="recipientClick">选择接收人</u-button>
                    <u-input type='textarea' v-model="form.recipientPeople" placeholder="请选择指令接收人"
                        @click="recipientClick" autoHeight  />
                    <!-- <u-button slot="right" type="success" size="mini" @click="recipientClick">选择接收人</u-button> -->
                    <u-popup :closeable="true" v-model="recipientShow" mode="bottom" height="50%" border-radius="14">
@@ -77,11 +80,11 @@
            return {
                recipientShow: false,
                recipientList: [],
                form: {
                    content: '',
                    recipient: '',
                    recipientData: []
                    recipientData: [],
                    recipientPeople: ''
                },
                rules: {
@@ -106,6 +109,11 @@
        },
        methods: {
            recipientClick() {
                if (this.recipientList.length > 0) {
                    this.recipientShow = true;
                    return;
                }
                uni.request({
                    url: this.$store.state.piAPI + "/blade-user/seleL",
                    method: "get",
@@ -118,12 +126,21 @@
                        this.recipientList = []
                        res.data.data.forEach(item => {
                            var flag = true
                            if (item.id != this.$store.state
                                .UserData.user_id
                            ) {
                                item.checked = false;
                                this.recipientList.push(item)
                            if (this.recipientList.length > 0) {
                                this.recipientList.forEach(it => {
                                    if (item.id == it.id) flag = false
                                })
                            }
                            if (flag == true) {
                                if (item.id != this.$store.state
                                    .UserData.user_id
                                ) {
                                    item.checked = false;
                                    this.recipientList.push(item)
                                }
                            }
                        })
@@ -246,9 +263,30 @@
                });
            },
            checkboxGroupChange(e) {
                var that = this
                this.form.recipientData = e
                var str = ""
                var num = 0
                that.form.recipientData.forEach((item, index) => {
                    that.recipientList.forEach((it, index) => {
                        if (item == it.id) {
                            if (num > 0) {
                                str += '、';
                                str += it.real_name;
                            } else {
                                str += it.real_name
                            }
                            num += 1
                            return
                        }
                    })
                })
                this.form.recipientPeople = str
            },
        }
pages/report/initiate.vue
@@ -25,7 +25,8 @@
                <u-form-item label-width='132' label="接收人">
                    <u-button slot="right" type="success" size="mini" @click="recipientClick">选择接收人</u-button>
                    <u-input type='textarea' v-model="form.recipientPeople" placeholder="请选择接收人"
                        @click="recipientClick" autoHeight  />
                    <u-popup :closeable="true" v-model="recipientShow" mode="bottom" height="50%" border-radius="14">
                        
@@ -105,7 +106,8 @@
                    categoryText: '',
                    type: '',
                    typeText: '',
                    recipientData: []
                    recipientData: [],
                    recipientPeople: ''
                },
                rules: {
                    categoryText: [{
@@ -230,14 +232,22 @@
                                this.recipientList = []
                                res.data.data.forEach(item => {
                                    if (item.id != this.$store.state
                                        .UserData.user_id
                                    ) {
                                        item.checked = false;
                                        this.recipientList.push(item)
                                    var flag = true
                                    if (this.recipientList.length > 0) {
                                        this.recipientList.forEach(it => {
                                            if (item.id == it.id) flag = false
                                        })
                                    }
                                    if (flag == true) {
                                        if (item.id != this.$store.state
                                            .UserData.user_id
                                        ) {
                                            item.checked = false;
                                            this.recipientList.push(item)
                                        }
                                    }
                                    
                                })
@@ -317,8 +327,29 @@
                });
            },
            checkboxGroupChange(e) {
                var that = this
                this.form.recipientData = e
                var str = ""
                var num = 0
                that.form.recipientData.forEach((item, index) => {
                    that.recipientList.forEach((it, index) => {
                        if (item == it.id) {
                            if (num > 0) {
                                str += '、';
                                str += it.real_name;
                            } else {
                                str += it.real_name
                            }
                            num += 1
                            return
                        }
                    })
                })
                this.form.recipientPeople = str
            },
pages/securityStaff/information.vue
@@ -27,13 +27,13 @@
                <i>学历</i> <span> {{ datalist.education }} </span>
            </view>
            <view class="once">
                <i>出生日期</i> <span> {{ datalist.birthtime }} </span>
                <i>出生日期</i> <span> {{ datalist.birthday }} </span>
            </view>
            <view class="once">
                <i>政治面貌</i> <span> {{ datalist.politicaloutlook }} </span>
            </view>
            <view class="once">
                <i>联系电话</i> <span> {{ datalist.cell }} </span>
                <i>联系电话</i> <span> {{ datalist.phone }} </span>
            </view>
            <view class="once">
                <i>所属公司</i> <span> {{ datalist.deptName }} </span>
@@ -61,13 +61,13 @@
                    性别:<view class="o-once"> {{datalist.sex == 1 ? '男' : '女'}}</view>
                </view>
                <view class="once">
                    编号:<view class="o-once"> {{datalist.baoanzheng}}</view>
                    编号:<view class="o-once"> {{datalist.securitynumber}}</view>
                </view>
                <view class="once">
                    发证机关:<view class="o-once"> {{datalist.fzobj}}</view>
                    发证机关:<view class="o-once"> 南昌市公安局 </view>
                </view>
                <view class="once">
                    发证日期:<view class="o-once"> {{datalist.fztime}}</view>
                    发证日期:<view class="o-once"> {{datalist.updateTime}}</view>
                </view>
                
                <u-image class="img" width="150rpx" height="150rpx" :src="datalist.avatar">
store/index.js
@@ -33,8 +33,8 @@
            useName: '过客 ',
        },
        logPath: '',
        // piAPI: 'http://223.82.109.183:2080/api',
        piAPI: 'http://192.168.0.114:81',
        piAPI: 'http://223.82.109.183:2080/api',
        // piAPI: 'http://192.168.0.114:81',
        api: 'http://223.82.109.183:2080/api',
        // piAPI: 'http://localhost:83/',
        // piAPI: 'http://192.168.0.115:83',