“dzb”
2022-10-08 ccedc2e714c01d51f8eb986c6549ea701811f4bb
src/views/operate/management/myIndex/components/examine/index.vue
@@ -161,35 +161,29 @@
        // 提交审核意见
        handleSubmit(mystatus) {
            // this.getUserLoginInfo();
            const {baseCase} = this;
            this.$refs.viewForm.validate((valid) => {
                if (valid) {
                    this.$axios({
                        method: 'post',
                        url: 'sccg/check_handle/check',
                        data: {
                            baseCaseId: baseCase.id,
                            checkOpinion: baseCase.auditOpinion,
                            currentUser: baseCase.createUser,
                            status: mystatus,
                        }
                    })
                    .then(res=>{
                        console.log(res);
                        if(res.code===200){
                            this.$message({
                                type:'success',
                                message:mystatus === 0 ? '驳回成功' : '审核通过'
                            })
                            this.$emit('closeDialog',{flag:false});
                        }
                    })
                    .catch(err=>{console.log(err)});
                } else {
                    return false;
            const { baseCase } = this;
            this.$axios({
                method: 'post',
                url: 'sccg/check_handle/check',
                data: {
                    baseCaseId: baseCase.id,
                    checkOpinion: baseCase.auditOpinion,
                    currentUser: baseCase.createUser,
                    status: mystatus,
                }
            })
                .then(res => {
                    console.log(res);
                    if (res.code === 200) {
                        this.$message({
                            type: 'success',
                            message: mystatus === 0 ? '驳回成功' : '审核通过'
                        })
                        this.$emit('closeDialog', { flag: false });
                    }
                })
                .catch(err => { console.log(err) });
        },
        // 获取当前用户登录信息
        getUserLoginInfo() {
@@ -207,7 +201,7 @@
                })
        }
    },
    props: ['info','closeDialog']
    props: ['info', 'closeDialog']
}
</script>
<style lang="scss" scoped>