From ccedc2e714c01d51f8eb986c6549ea701811f4bb Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期六, 08 十月 2022 18:07:44 +0800 Subject: [PATCH] 新增运营管理中基础设置的违规违建类型添加,添加一些取消按钮的实现 --- src/views/operate/management/myIndex/components/examine/index.vue | 50 ++++++++++++++++++++++---------------------------- 1 files changed, 22 insertions(+), 28 deletions(-) diff --git a/src/views/operate/management/myIndex/components/examine/index.vue b/src/views/operate/management/myIndex/components/examine/index.vue index ae20c85..b6c7593 100644 --- a/src/views/operate/management/myIndex/components/examine/index.vue +++ b/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> -- Gitblit v1.8.0