249be2df by zhen

编辑新增产品添加取消逻辑

1 parent 9e8e52ec
<template>
<Card>
<GoBack class="go-back mb10"></GoBack>
<h4 class="mb10">产品基本属性</h4>
<el-form
class="count-form"
......@@ -124,6 +123,7 @@
</el-form-item>
</el-form>
<div class="bottom">
<el-button @click="goBack">取消</el-button>
<el-button type="primary" @click="submit">提交</el-button>
</div>
</Card>
......@@ -143,15 +143,11 @@ import {
productEdit,
productAdd
} from '@/api/productInforManagement'
import GoBack from '_c/goBack'
const urlReg = /[a-zA-z]+:\/\/[^\s]*/
export default {
props: ['idAndCode'],
components: {
GoBack
},
data() {
const validateCode = async (rule, value, callback) => {
if (!value) {
......@@ -348,6 +344,9 @@ export default {
console.log(error)
}
},
goBack() {
this.$router.go(-1)
},
async editOrAdd() {
const formData = this.constructorFormData()
if (this.idAndCode) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!