quanyawei
2023-11-08 f71917022b1f1078c2670972c8dd9c7f89eb3744
fix:查看详情权限修改
3 files modified
48 ■■■■ changed files
pages/actionChange/newPage/index.vue 29 ●●●●● patch | view | raw | blame | history
pages/actionChange/secondLevelData/index.vue 4 ●●●● patch | view | raw | blame | history
pages/actionChange/workOrderDetails/index.vue 15 ●●●● patch | view | raw | blame | history
pages/actionChange/newPage/index.vue
@@ -27,18 +27,14 @@
                    type="select" />
                <u-icon slot="right" name="arrow-right" />
            </u-form-item>
            <u-form-item border="none" border-bottom label="整改类型:" prop="changeType" required @click="
                    showCheckBox = true;
                    hideKeyboard('changeEnum', 'changeType');
                ">
                <u-input v-model="form.changeType" border="none" disabled disabled-color="#ffffff" placeholder="请选择"
                    type="select" />
                <u-icon slot="right" name="arrow-right" />
            <u-form-item border="none" border-bottom label="整改类型:" prop="changeType" required>
                <u-radio-group v-model="form.changeType" style="font-size: 13px;">
                    <u-radio :key="index" v-for="(item, index) in changeEnum" :customStyle="{marginRight: '16px'}"
                        :label="item.name" :name="item.value" />
                </u-radio-group>
            </u-form-item>
            <u-form-item border-bottom label="限期天数:" placeholder="请输入" required
                :disabled='Number(sumbitForm.changeType)===1'>
                <u-input v-model="form.changeDay" border="none" type="number"
                    :disabled='Number(sumbitForm.changeType)===1' />
            <u-form-item border-bottom label="限期天数:" placeholder="请输入" required :disabled='Number(form.changeType)===1'>
                <u-input v-model="form.changeDay" border="none" type="number" :disabled='Number(form.changeType)===1' />
            </u-form-item>
            <u-form-item border-bottom label="上报单位:" prop="escalationUnitId" required @click="
                    showCheckBox = true;
@@ -54,7 +50,7 @@
            <u-form-item border-bottom label="排查方式:" prop="investigationType" required>
                <u-radio-group v-model="form.investigationType" style="font-size: 13px;">
                    <u-radio :key="index" v-for="(item, index) in Dic.investigationEnum"
                        :custom-style="{marginRight: '8px'}" :label="item.name" :name="item.value" />
                        :customStyle="{marginRight: '16px'}" :label="item.name" :name="item.value" />
                </u-radio-group>
            </u-form-item>
            <u-form-item border-bottom label="问题描述:" prop="problemDescribe" required>
@@ -67,7 +63,7 @@
            </u-form-item>
        </u-form>
        <u-picker :show="showCheckBox" keyName="label" :columns="actionOptionList" @cancel="showCheckBox = false"
            @confirm="selectBack"></u-picker>
            :immediateChange='true' @confirm="selectBack"></u-picker>
        <!--     <u-action-sheet v-if="actionOptionList.length > 0" :actions="actionOptionList" :show="showCheckBox" title="请选择"
            @close="showCheckBox = false" @select="selectBack" /> -->
        <view class="bunts">
@@ -102,11 +98,6 @@
                        trigger: ['blur', 'change']
                    },
                    'polluteType': {
                        required: true,
                        message: '请选择',
                        trigger: ['blur', 'change']
                    },
                    'changeType': {
                        required: true,
                        message: '请选择',
                        trigger: ['blur', 'change']
@@ -263,7 +254,7 @@
                this.form.escalationTime = data
                this.sumbitForm.escalationTime = data
                if (this.changeEnum.length > 0) {
                    this.form.changeType = this.changeEnum[0].name
                    this.form.changeType = this.changeEnum[0].value
                    this.sumbitForm.changeType = this.changeEnum[0].value
                }
                let userInfor = JSON.parse(uni.getStorageSync('userInfor') || '{}')
pages/actionChange/secondLevelData/index.vue
@@ -126,7 +126,7 @@
                alarmLevel: null,
                aqi: 0,
                baseUrl: '',
                windDir: 'null',
                windDir: '',
                windDeg: 180,
                wsData2: null,
                // 报警进度条
@@ -150,7 +150,7 @@
        },
        computed: {
            windDirData() {
                if (this.wsData2) {
                if (this.wsData2 && this.windDir) {
                    return `${this.windDir} (${this.wsData2.a01008})`
                } else {
                    return ''
pages/actionChange/workOrderDetails/index.vue
@@ -1,6 +1,6 @@
<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!=='待完成'"
@@ -35,6 +35,7 @@
                unitListL: [],
                userInfor: null,
                show: false,
                isShow: false,
                option: {}
            }
        },
@@ -63,7 +64,7 @@
                    userId: this.userInfor.userId
                }
                this.$http.httpGet('/allocationApp/authority', params).then(res => {
                    if (!res.data) {
                    if (res.data === 3) {
                        uni.showModal({
                            content: '您暂无操作权限,请联系管理员!',
                            showCancel: false,
@@ -76,8 +77,18 @@
                                }
                            },
                        })
                    } 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)
        },