|
|
@@ -135,7 +135,6 @@
|
|
|
<script>
|
|
|
import ImageUpload from '~components/common/image-upload/imageUpload.vue'
|
|
|
import PageComponent from '~components/common/page/pageComponent.vue'
|
|
|
- import {Message} from 'element-ui'
|
|
|
export default {
|
|
|
name: 'messageBoard',
|
|
|
data () {
|
|
|
@@ -222,19 +221,19 @@
|
|
|
this.$store.dispatch('uploadMessageBoardInformation', {question: this.messageBoard.question, role: this.messageBoard.role, submitTitle: '【优软商城】IC电子元器件现货采购交易平台商城', submitUrl: window.location.href, type: this.messageBoard.type, imgs: this.dialogImageUrl, userTel: '13333333333'})
|
|
|
if (this.messageBoard) {
|
|
|
if (!this.messageBoard.question) {
|
|
|
- Message.info('您还没有填写反馈内容')
|
|
|
+ this.$message.info('您还没有填写反馈内容')
|
|
|
} else if (!this.messageBoard.role) {
|
|
|
- Message.info('请选择您的身份信息')
|
|
|
+ this.$message.info('请选择您的身份信息')
|
|
|
} else if (!this.messageBoard.type) {
|
|
|
- Message.info('请选择一种反馈类型')
|
|
|
+ this.$message.info('请选择一种反馈类型')
|
|
|
} else if (!this.user) {
|
|
|
if (!this.messageBoard.userTel && !this.messageBoard.email) {
|
|
|
- Message.info('请填写任意一种联系方式')
|
|
|
+ this.$message.info('请填写任意一种联系方式')
|
|
|
}
|
|
|
} else {
|
|
|
this.$store.dispatch('uploadMessageBoardInformation', {question: this.messageBoard.question, role: this.messageBoard.role, submitTitle: '【优软商城】IC电子元器件现货采购交易平台商城', submitUrl: window.location.href, type: this.messageBoard.type, imgs: this.dialogImageUrl, userTel: '13333333333'})
|
|
|
this.isOpendMessage()
|
|
|
- Message.info('感谢您的宝贵意见')
|
|
|
+ this.$message.info('感谢您的宝贵意见')
|
|
|
// window.location.reload()
|
|
|
this.messageBoard = {}
|
|
|
}
|