cc8a2226 by zhen

详情页添加返回按钮

1 parent bb5baa7b
......@@ -3,5 +3,5 @@ ENV = 'development'
# base api
# VUE_APP_BASE_API = 'http://192.168.11.67:8096'
VUE_APP_BASE_API = 'http://192.168.10.89:8096'
# VUE_APP_BASE_API = 'https://beta-salecloud-hengan.situdata.com'
# VUE_APP_BASE_API = 'http://192.168.10.89:8096'
VUE_APP_BASE_API = 'https://beta-salecloud-hengan.situdata.com'
......
<template>
<div class="go-back">
<div class="go-back-wrapper" @click="goBack">
<i class="el-icon-back left-icon"></i>
<span class="title">返回</span>
</div>
</div>
</template>
<script>
export default {
methods: {
goBack() {
this.$router.go(-1)
}
}
}
</script>
<style lang="scss" scoped>
.go-back {
&-wrapper {
display: flex;
justify-content: flex-start;
align-items: center;
cursor: pointer;
.left-icon {
display: inline-block;
font-size: 18px;
margin-right: 6px;
align-self: center;
}
.title {
font-size: 14px;
font-weight: 500;
}
}
}
</style>
<template>
<Card>
<GoBack class="go-back mb10"></GoBack>
<h4 class="mb10">产品基本属性</h4>
<el-form
class="count-form"
......@@ -142,11 +143,15 @@ 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) {
......@@ -376,12 +381,20 @@ export default {
}
}
let blackFile = []
this.fileList.forEach(item => {
if (item.file) {
formData.append(`file${item.id}`, item.file)
} else {
blackFile.push(item.id)
}
})
if (this.idAndCode) {
// 修改模式添加此字段
formData.append('blackFile', blackFile.join())
}
formData.append('link', this.linkForm.link)
return formData
......@@ -433,4 +446,9 @@ export default {
display: flex;
justify-content: center;
}
.go-back {
margin-left: -10px;
margin-top: -20px;
}
</style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!