Commit d4a13f83 authored by 刘怀志's avatar 刘怀志

暂存

parent 1ada3624
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<router-link key="expand" class="sidebar-logo-link" to="/"> <router-link key="expand" class="sidebar-logo-link" to="/">
<div class="sidebar-logoTitle"> <div class="sidebar-logoTitle">
<div class="sidebar-logoRow"><img :src="logo" class="sidebar-logo"></div> <div class="sidebar-logoRow"><img :src="logo" class="sidebar-logo"></div>
<div class="sidebar-title">{{ title }} </div> <div class="sidebar-title title-current">{{ title }} </div>
</div> </div>
</router-link> </router-link>
</transition> </transition>
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
// eslint-disable-next-line vue/return-in-computed-property // eslint-disable-next-line vue/return-in-computed-property
logo() { logo() {
if (!localStorage.getItem('theme') || localStorage.getItem('theme') === '1') { if (!localStorage.getItem('theme') || localStorage.getItem('theme') === '1') {
return require('@/assets/image/menuLogo.png') return require('@/assets/image/logo2.png')
} else if (localStorage.getItem('theme') === '2') { } else if (localStorage.getItem('theme') === '2') {
return require('@/assets/themeBImage/menuLogo.png') return require('@/assets/themeBImage/menuLogo.png')
} else if (localStorage.getItem('theme') === '3') { } else if (localStorage.getItem('theme') === '3') {
...@@ -64,5 +64,7 @@ export default { ...@@ -64,5 +64,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.sidebar-logo-container .sidebar-logo-link .sidebar-title.title-current{
color: #fff !important
}
</style> </style>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<div class="btn-box"> <div class="btn-box">
<el-button v-if="controls.isOperation !== '3'" style="width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px " @click="submit">保存 <el-button v-if="controls.isOperation !== '3'" style="width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px " @click="submit">保存
</el-button> </el-button>
<el-button v-if="controls.isOperation !== '3'" style="width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px " type="primary" @click="publish">发布 <el-button v-if="controls.isOperation !== '3'" style="width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px " type="primary" :loading="pubLoading" @click="publish">发布
</el-button> </el-button>
<el-button v-if="controls.isOperation === '3'" style="width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px " @click="goBack">返回 <el-button v-if="controls.isOperation === '3'" style="width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px " @click="goBack">返回
</el-button> </el-button>
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
data() { data() {
return { return {
title: '新增新闻', title: '新增新闻',
pubLoading: false,
businessId: null, businessId: null,
// 变更字段存储数组 // 变更字段存储数组
formChanges: [], formChanges: [],
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
// 拷贝form // 拷贝form
const form = JSON.parse(JSON.stringify(this.form)) const form = JSON.parse(JSON.stringify(this.form))
// 转换时间格式 // 转换时间格式
this.pubLoading = true
this.$refs.deviceFormRef.validate(valid => { this.$refs.deviceFormRef.validate(valid => {
if (valid) { if (valid) {
if (this.form.businessId !== undefined) { if (this.form.businessId !== undefined) {
...@@ -399,10 +399,13 @@ export default { ...@@ -399,10 +399,13 @@ export default {
message: '保存成功', message: '保存成功',
type: 'success' type: 'success'
}) })
this.pubLoading = false
this.$router.push({ this.$router.push({
path: '/contentManagement/newsInformation/index' path: '/contentManagement/newsInformation/index'
}) })
} }
}).catch(() => {
this.pubLoading = false
}) })
} else { } else {
form.flag = '1' form.flag = '1'
...@@ -412,12 +415,17 @@ export default { ...@@ -412,12 +415,17 @@ export default {
message: '保存成功', message: '保存成功',
type: 'success' type: 'success'
}) })
this.pubLoading = false
this.$router.push({ this.$router.push({
path: '/contentManagement/newsInformation/index' path: '/contentManagement/newsInformation/index'
}) })
} }
}).catch(() => {
this.pubLoading = false
}) })
} }
} else {
this.pubLoading = false
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment