|
@@ -19,7 +19,6 @@
|
|
|
</el-form>
|
|
|
</template>
|
|
|
|
|
|
-
|
|
|
<script>
|
|
|
export default {
|
|
|
name: "waitApproval",
|
|
@@ -47,11 +46,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
submit() {
|
|
|
- const { status, remark } = this.ruleForm;
|
|
|
- this.$emit("confirm", {
|
|
|
- status,
|
|
|
- remark
|
|
|
- });
|
|
|
+ this.$refs.ruleForm.validate(isValid => {
|
|
|
+ if(!isValid) return
|
|
|
+ const { status, remark } = this.ruleForm;
|
|
|
+ this.$emit("confirm", { status, remark });
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
};
|