|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
+ <div class="tinymce-title"><span class="title-tip">*</span>关于我们:</div>
|
|
|
<tinymce v-model="introduction" :height="300" />
|
|
|
<el-form ref="dataForm" :rules="rules" :model="from" label-position="left" label-width="80px" style="float: left;margin-top: 20px;">
|
|
|
<el-form-item label="联系我们" prop="contactNumber">
|
|
@@ -44,7 +45,6 @@ export default {
|
|
|
methods: {
|
|
|
initData() {
|
|
|
getOrganizeInfo({ id: this.organizeID }).then(response => {
|
|
|
- console.log(response)
|
|
|
this.introduction = response.data.introduction
|
|
|
this.from.contactNumber = response.data.contactNumber
|
|
|
})
|
|
@@ -52,6 +52,10 @@ export default {
|
|
|
onSubmite() {
|
|
|
this.$refs['dataForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ if (this.introduction === '') {
|
|
|
+ this.$message({ message: '内容不能为空', type: 'warning', center: true })
|
|
|
+ return
|
|
|
+ }
|
|
|
const Formobj = { id: this.organizeID, introduction: this.introduction }
|
|
|
const params = Object.assign(Formobj, this.from)
|
|
|
this.loadingbut = true
|
|
@@ -71,6 +75,15 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
-
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .tinymce-title{
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 20px;
|
|
|
+ padding: 10px 0;
|
|
|
+ text-align: left;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .title-tip{
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
</style>
|