|
@@ -20,7 +20,7 @@ export default Vue.extend({
|
|
|
logo: '/common/2025/0915/68c7b25cc9e26.webp',
|
|
logo: '/common/2025/0915/68c7b25cc9e26.webp',
|
|
|
images: ['/common/2025/0915/68c7b263bc4b1.webp'],
|
|
images: ['/common/2025/0915/68c7b263bc4b1.webp'],
|
|
|
social_links: {
|
|
social_links: {
|
|
|
- facebook: '',
|
|
|
|
|
|
|
+ facebook: ''
|
|
|
},
|
|
},
|
|
|
form_template_id: '',
|
|
form_template_id: '',
|
|
|
urla: '',
|
|
urla: '',
|
|
@@ -29,6 +29,7 @@ export default Vue.extend({
|
|
|
seo_keywords: '',
|
|
seo_keywords: '',
|
|
|
show_official_footer: '1'
|
|
show_official_footer: '1'
|
|
|
},
|
|
},
|
|
|
|
|
+ isShowMore: false,
|
|
|
formList: [],
|
|
formList: [],
|
|
|
loading: false,
|
|
loading: false,
|
|
|
ossUrl: process.env.VUE_APP_OSS_DOMAIN
|
|
ossUrl: process.env.VUE_APP_OSS_DOMAIN
|
|
@@ -111,8 +112,7 @@ export default Vue.extend({
|
|
|
this.exhibitorSetting.location === '' ||
|
|
this.exhibitorSetting.location === '' ||
|
|
|
this.exhibitorSetting.organizer === '' ||
|
|
this.exhibitorSetting.organizer === '' ||
|
|
|
this.exhibitorSetting.contact_phone === '' ||
|
|
this.exhibitorSetting.contact_phone === '' ||
|
|
|
- this.exhibitorSetting.contact_email === '' ||
|
|
|
|
|
- this.exhibitorSetting.urla === ''
|
|
|
|
|
|
|
+ this.exhibitorSetting.contact_email === ''
|
|
|
) {
|
|
) {
|
|
|
this.$notify({
|
|
this.$notify({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -124,6 +124,9 @@ export default Vue.extend({
|
|
|
if (this.loading) {
|
|
if (this.loading) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (this.exhibitorSetting.urla === '') {
|
|
|
|
|
+ this.exhibitorSetting.urla = this.exhibitorSetting.expo_name
|
|
|
|
|
+ }
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
saveExpo(
|
|
saveExpo(
|
|
|
this.exhibitorSetting.id,
|
|
this.exhibitorSetting.id,
|
|
@@ -160,6 +163,46 @@ export default Vue.extend({
|
|
|
type: 'error'
|
|
type: 'error'
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ canAddSocialShow() {
|
|
|
|
|
+ if (this.exhibitorSetting.social_links.facebook === undefined ||
|
|
|
|
|
+ this.exhibitorSetting.social_links.twitter === undefined ||
|
|
|
|
|
+ this.exhibitorSetting.social_links.linkedin === undefined) {
|
|
|
|
|
+ return true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ removeSocial(key) {
|
|
|
|
|
+ delete this.exhibitorSetting.social_links[key]
|
|
|
|
|
+ this.exhibitorSetting.social_links = { ...this.exhibitorSetting.social_links }
|
|
|
|
|
+ },
|
|
|
|
|
+ addSocial() {
|
|
|
|
|
+ console.log(this.exhibitorSetting.social_links)
|
|
|
|
|
+ if (this.exhibitorSetting.social_links.facebook === undefined) {
|
|
|
|
|
+ this.exhibitorSetting.social_links.facebook = ''
|
|
|
|
|
+ this.exhibitorSetting.social_links = { ...this.exhibitorSetting.social_links }
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.exhibitorSetting.social_links.twitter === undefined) {
|
|
|
|
|
+ this.exhibitorSetting.social_links.twitter = ''
|
|
|
|
|
+ this.exhibitorSetting.social_links = { ...this.exhibitorSetting.social_links }
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.exhibitorSetting.social_links.linkedin === undefined) {
|
|
|
|
|
+ this.exhibitorSetting.social_links.linkedin = ''
|
|
|
|
|
+ this.exhibitorSetting.social_links = { ...this.exhibitorSetting.social_links }
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ socialInput(key, value) {
|
|
|
|
|
+ this.exhibitorSetting.social_links[key] = value
|
|
|
|
|
+ },
|
|
|
|
|
+ changeSocialType(oldType, type) {
|
|
|
|
|
+ console.log(oldType, type)
|
|
|
|
|
+ this.exhibitorSetting.social_links[type] = this.exhibitorSetting.social_links[oldType]
|
|
|
|
|
+ delete this.exhibitorSetting.social_links[oldType]
|
|
|
|
|
+ this.exhibitorSetting.social_links = { ...this.exhibitorSetting.social_links }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -215,18 +258,19 @@ export default Vue.extend({
|
|
|
<div class="label">社交账号</div>
|
|
<div class="label">社交账号</div>
|
|
|
<div class="social-list">
|
|
<div class="social-list">
|
|
|
<div v-for="(value,key) in exhibitorSetting.social_links" class="social-item">
|
|
<div v-for="(value,key) in exhibitorSetting.social_links" class="social-item">
|
|
|
- <el-input :value="value" :placeholder="'请输入'+key+'主页地址'">
|
|
|
|
|
- <el-select :value="key" slot="append">
|
|
|
|
|
- <el-option :disabled="exhibitorSetting.social_links.facebook!==undefined" value="facebook" label="facebook"></el-option>
|
|
|
|
|
- <el-option :disabled="exhibitorSetting.social_links.twitter!==undefined" value="twitter" label="twitter"></el-option>
|
|
|
|
|
- <el-option :disabled="exhibitorSetting.social_links.linkedin!==undefined" value="linkedin" label="linkedin"></el-option>
|
|
|
|
|
|
|
+ <el-input :value="value" :placeholder="'请输入'+key+'主页地址'" @input="socialInput(key,$event)">
|
|
|
|
|
+ <el-select slot="prepend" :value="key" @change="changeSocialType(key,$event)">
|
|
|
|
|
+ <el-option :disabled="exhibitorSetting.social_links.facebook!==undefined" value="facebook" label="facebook" />
|
|
|
|
|
+ <el-option :disabled="exhibitorSetting.social_links.twitter!==undefined" value="twitter" label="twitter" />
|
|
|
|
|
+ <el-option :disabled="exhibitorSetting.social_links.linkedin!==undefined" value="linkedin" label="linkedin" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
+ <el-button slot="append" icon="el-icon-delete" @click="removeSocial(key)" />
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-button type="primary" class="add-social el-icon-plus">添加</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="canAddSocialShow()" type="primary" class="add-social el-icon-plus" @click="addSocial()">添加</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="form-item required">
|
|
|
|
|
|
|
+ <div class="form-item">
|
|
|
<div class="label">表单模板</div>
|
|
<div class="label">表单模板</div>
|
|
|
<el-select v-model="exhibitorSetting.form_template_id">
|
|
<el-select v-model="exhibitorSetting.form_template_id">
|
|
|
<el-option v-for="item in formList" :key="item.id" :value="item.id" :label="item.template_name" />
|
|
<el-option v-for="item in formList" :key="item.id" :value="item.id" :label="item.template_name" />
|
|
@@ -236,22 +280,28 @@ export default Vue.extend({
|
|
|
<div class="label">表单底部显示系统信息</div>
|
|
<div class="label">表单底部显示系统信息</div>
|
|
|
<el-switch v-model="exhibitorSetting.show_official_footer" active-value="1" inactive-value="0" class="input" />
|
|
<el-switch v-model="exhibitorSetting.show_official_footer" active-value="1" inactive-value="0" class="input" />
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="form-item required">
|
|
|
|
|
- <div class="label">url短名称</div>
|
|
|
|
|
- <el-input v-model="exhibitorSetting.urla" class="input" placeholder="请输入url" />
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="form-item">
|
|
|
|
|
- <div class="label">SEO标题</div>
|
|
|
|
|
- <el-input v-model="exhibitorSetting.seo_title" class="input" placeholder="请输入SEO标题" />
|
|
|
|
|
- </div>
|
|
|
|
|
<div class="form-item">
|
|
<div class="form-item">
|
|
|
- <div class="label">SEO关键字</div>
|
|
|
|
|
- <el-input v-model="exhibitorSetting.seo_keywords" class="input" placeholder="请输入SEO关键字" />
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="form-item">
|
|
|
|
|
- <div class="label">SEO描述</div>
|
|
|
|
|
- <el-input v-model="exhibitorSetting.seo_description" class="input" placeholder="请输入SEO描述" />
|
|
|
|
|
|
|
+ <div class="label">高级设置</div>
|
|
|
|
|
+ <el-switch v-model="isShowMore" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <template v-if="isShowMore">
|
|
|
|
|
+ <div class="form-item required">
|
|
|
|
|
+ <div class="label">url短名称</div>
|
|
|
|
|
+ <el-input v-model="exhibitorSetting.urla" class="input" placeholder="请输入url" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-item">
|
|
|
|
|
+ <div class="label">SEO标题</div>
|
|
|
|
|
+ <el-input v-model="exhibitorSetting.seo_title" class="input" placeholder="请输入SEO标题" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-item">
|
|
|
|
|
+ <div class="label">SEO关键字</div>
|
|
|
|
|
+ <el-input v-model="exhibitorSetting.seo_keywords" class="input" placeholder="请输入SEO关键字" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-item">
|
|
|
|
|
+ <div class="label">SEO描述</div>
|
|
|
|
|
+ <el-input v-model="exhibitorSetting.seo_description" class="input" placeholder="请输入SEO描述" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="desc">
|
|
<div class="desc">
|