Lou
2024-04-27 c40faa96c951b793bdf457c529ab3f375b6b8948
更新
5 files modified
60 ■■■■■ changed files
pages/home/index.vue 8 ●●●● patch | view | raw | blame | history
pages/home/launch.html 10 ●●●● patch | view | raw | blame | history
pages/home/launch.vue 8 ●●●●● patch | view | raw | blame | history
subPackage/school/clockIn.vue 19 ●●●●● patch | view | raw | blame | history
subPackage/school/troubleDetail.vue 15 ●●●● patch | view | raw | blame | history
pages/home/index.vue
@@ -1073,8 +1073,12 @@
                    code: this.validationCode
                }).then(res => {
                    if (res.code == 200) {
                        this.navToPage();
                        this.isShowModal = false;
                        if (res.data) {
                            this.navToPage();
                            this.isShowModal = false;
                        } else {
                            this.$showTips(res.msg);
                        }
                    }
                })
            },
pages/home/launch.html
@@ -9,11 +9,15 @@
        <script type="text/javascript">
            var config = {
                id: "wx41aa8a5d2e565a05",
                path: "subPackage/workbench/views/cscj",
                version: "trial"
                path: "page/login/login",
                version: "develop",
                query: {
                    type: 1
                }
            }
            window.onload = function() {
            location.href = `weixin://dl/business/?appid=${config.id}&path=${config.path}&env_version=${config.version}`
            location.href =
                `weixin://dl/business/?appid=${config.id}&path=${config.path}&env_version=${config.version}&query=${config.query}`
            })
        </script>
    </body>
pages/home/launch.vue
@@ -18,9 +18,11 @@
            navTo() {
                var config = {
                    id: "wx41aa8a5d2e565a05",
                    path: "subPackage/workbench/views/cscj",
                    version: "trial",
                    query: "test"
                    path: "page/login/login",
                    version: "develop",
                    query: {
                        type: 1
                    }
                }
                location.href =
                    `weixin://dl/business/?appid=${config.id}&path=${config.path}&env_version=${config.version}&query=${config.query}`
subPackage/school/clockIn.vue
@@ -13,7 +13,6 @@
        <view class="content bgc-ff">
            <u-form labelPosition="left" :model="info" :rules="rules" ref="form" labelWidth="90"
                :labelStyle="{fontSize:'28rpx'}">
                <u-form-item label="角色类型" prop="type" borderBottom ref="phone" @click="showPicker = true"
                    v-if="roleName !='mj'">
                    <u-input v-model="clockInRoleTypeValue" border="none" placeholder="请输入" placeholderClass="f-28 c-99"
@@ -75,19 +74,12 @@
            </view>
        </view>
        <!-- <button class="submit-btn" @click="sumitInfo">提交</button> -->
        <!-- <button class="list-btn" @click="navigatorPage">我上报的事件</button> -->
        <footer-btn @click="sumitInfo"></footer-btn>
        <u-picker :defaultIndex="clockInRoleTypeIndex" :closeOnClickOverlay="true" :show="showPicker"
            :columns="[statusList]" @close="showPicker = false" @cancel="showPicker = false" keyName="name"
            @confirm="confirmPicker"></u-picker>
    </view>
</template>
@@ -97,8 +89,6 @@
    import {
        addClockIn
    } from "@/api/school/school.js";
    import {
        getQrCodeDetail
    } from "@/api/system/index"
@@ -200,8 +190,12 @@
                })
            },
            sumitInfo() {
                if (this.info.type == 2) {
                    this.info.gradeAndClass = "";
                    this.info.realName = "";
                }
                this.$refs.form.validate().then(valid => {
                    if (this.form.images.length > 0) {
                        let urls = []
@@ -210,7 +204,6 @@
                        })
                        this.info.images = urls.join(",")
                    }
                    addClockIn(this.info).then(res => {
                        this.$showTips("提交成功", "success")
                        setTimeout(() => {
@@ -224,7 +217,7 @@
            confirmPicker(e) {
                this.clockInRoleTypeIndex = e.indexs;
                this.clockInRoleTypeValue = e.value[0].name;
                this.info.type = e.value[0].value;
                this.info.type = e.value[0].id;
                this.showPicker = false;
            },
subPackage/school/troubleDetail.vue
@@ -191,20 +191,27 @@
            submitInfo() {
                let data = {
                    id: this.info.id,
                    id: this.info.id
                }
                if (this.roleTypeName == "xyzt") {
                    data.confirmFlag = 1;
                    if (!this.form.isProblem) {
                        this.$showTips("请选择是否隐患")
                        return;
                    }
                    if (!this.form.isHandle) {
                        this.$showTips("请选择是否处理")
                        return;
                    }
                    if (this.form.isProblem == 2) {
                        if (this.form.isHandle) {
                            delete this.form.isHandle;
                        }
                        data.confirmFlag = 2;
                    } else if (this.form.isHandle == 1) {
                        data.confirmFlag = 2;
                    } else {
                        data.confirmFlag = 1;
                    }
                } else {
                    if (!this.confirmNotion) {
                        this.$showTips("请输入处理意见")