quanyawei
2023-11-15 53ae51f7111fe62f0011d304268cbfe1261b36f1
fix:立行立改添加修改责任单位
5 files modified
84 ■■■■ changed files
App.vue 1 ●●●● patch | view | raw | blame | history
pages/actionChange/agencyPage/index.vue 36 ●●●● patch | view | raw | blame | history
pages/actionChange/components/basicInfor.vue 10 ●●●●● patch | view | raw | blame | history
pages/actionChange/newPage/index.vue 33 ●●●●● patch | view | raw | blame | history
pages/index/index.vue 4 ●●●● patch | view | raw | blame | history
App.vue
@@ -158,6 +158,7 @@
    html {
        height: 100%;
        width: 750rpx;
    }
    .formItemContent {
pages/actionChange/agencyPage/index.vue
@@ -203,17 +203,6 @@
                return data
            }
        },
        onReachBottom() {
            //这里是判断是否需要继续掉接口
            if (this.isLoading) {
                console.log('1122111')
                this.status = 'loading'
                //请求一次接口,页码就++
                this.page.currentPage = ++this.page.currentPage
                //根据索引,点击哪个tab加载哪个
                this.getWorkOrder()
            }
        },
        mounted() {},
        filters: {
            stateFormatter(val) {
@@ -223,14 +212,21 @@
        },
        onLoad: () => {},
        methods: {
            onBottom() {
                //这里是判断是否需要继续掉接口
                console.log('1122111')
                this.status = 'loading'
                //请求一次接口,页码就++
                this.page.currentPage = ++this.page.currentPage
                //根据索引,点击哪个tab加载哪个
                this.getWorkOrder()
            },
            getLoadmore() {
                if (this.isLoading) {
                    this.status = 'loading'
                    //请求一次接口,页码就++
                    this.page.currentPage = ++this.page.currentPage
                    //根据索引,点击哪个tab加载哪个
                    this.getWorkOrder()
                }
                this.status = 'loading'
                //请求一次接口,页码就++
                this.page.currentPage = ++this.page.currentPage
                //根据索引,点击哪个tab加载哪个
                this.getWorkOrder()
            },
            async onChooseAvatar(e) {
                const {
@@ -372,6 +368,10 @@
    }
</script>
<style scoped lang="scss">
    page {
        height: 101vh;
    }
    /deep/.uni-page-head {
        display: none;
    }
pages/actionChange/components/basicInfor.vue
@@ -87,6 +87,16 @@
                            <text class="rowTipContenetAll">{{ basicInfor.pollutePosition ||'' }}</text>
                        </view>
                    </p>
                    <p class="rowTip">
                        <view class="rowTipContenet" style="width: 100%;">
                            <view class="wholeLine">
                                <text class="rowTipContenetLabel">任务分类:</text>
                                <text class="rowTipContenetAll">
                                    <text>{{ dictObj.emphasisEnum[basicInfor.keyPoint]||'' }}</text>
                                </text>
                            </view>
                        </view>
                    </p>
                    <view class="formItemContent">
                        <u--form labelPosition="left" label-width="75" :border-bottom="false" ref="uForm">
                            <u-form-item border-bottom label="相关附件:" :border-bottom="false">
pages/actionChange/newPage/index.vue
@@ -53,6 +53,14 @@
                        :customStyle="{marginRight: '16px'}" :label="item.name" :name="item.value" />
                </u-radio-group>
            </u-form-item>
            <u-form-item border-bottom label="任务分类:" prop="keyPoint">
                <u-checkbox-group v-model="form.keyPoint" placement='column' style="font-size: 13px;"
                    @change='changeKeyPoint'>
                    <u-checkbox :key="index" v-for="(item, index) in emphasisEnumlist"
                        :customStyle="{marginTop: '10px'}" shape="circle" :label="item.name" :name="item.value"
                        :disabled="item.disabled"></u-checkbox>
                </u-checkbox-group>
            </u-form-item>
            <u-form-item border-bottom label="问题描述:" prop="problemDescribe" required>
                <u--textarea v-model="form.problemDescribe" border="none" placeholder="请输入内容" />
            </u-form-item>
@@ -147,6 +155,7 @@
                    escalationTime: '',
                    problemDescribe: '',
                    pollutePosition: '',
                    keyPoint: []
                },
                sumbitForm: {
                    unitId: '',
@@ -158,10 +167,12 @@
                    escalationTime: '',
                    problemDescribe: '',
                    pollutePosition: '',
                    keyPoint: null
                },
                unitList: [],
                polluteList: [],
                fileBaseList: [],
                emphasisEnumlist: []
            }
        },
        onReady() {
@@ -182,6 +193,23 @@
            return false
        },
        methods: {
            changeKeyPoint(name) {
                if (name.length > 0) {
                    this.sumbitForm.keyPoint = name[0]
                    this.emphasisEnumlist.forEach(item => {
                        if (item.value === name[0]) {
                            item.disabled = false
                        } else {
                            item.disabled = true
                        }
                    })
                } else {
                    this.emphasisEnumlist.forEach(item => {
                        item.disabled = false
                    })
                }
                console.log(this.emphasisEnumlist)
            },
            handleFile(data) {
                console.log('datadata', data)
                this.fileBaseList = data
@@ -280,6 +308,11 @@
                    this.unitList = res.data
                    this.Dic = JSON.parse(uni.getStorageSync('dict') || '[]')
                    this.changeEnum = this.Dic.changeEnum
                    this.changeEnum = this.Dic.changeEnum
                    this.emphasisEnumlist = this.Dic.emphasisEnum.map(item => {
                        item.disabled = false
                        return item
                    })
                    this.setDefaultValue()
                })
            },
pages/index/index.vue
@@ -36,6 +36,10 @@
            this.currIndex = '0'
            this.showTabBar = true
        },
        onReachBottom() {
            //这里是判断是否需要继续掉接口
            this.$refs.agencyPage.onBottom()
        },
        mounted() {
            //等待登录成功
            this.token = uni.getStorageSync('tonken')