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

暂存

parent 1ada3624
......@@ -11,7 +11,7 @@
<router-link key="expand" class="sidebar-logo-link" to="/">
<div class="sidebar-logoTitle">
<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>
</router-link>
</transition>
......@@ -41,7 +41,7 @@ export default {
// eslint-disable-next-line vue/return-in-computed-property
logo() {
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') {
return require('@/assets/themeBImage/menuLogo.png')
} else if (localStorage.getItem('theme') === '3') {
......@@ -64,5 +64,7 @@ export default {
</script>
<style lang="scss" scoped>
.sidebar-logo-container .sidebar-logo-link .sidebar-title.title-current{
color: #fff !important
}
</style>
......@@ -144,7 +144,7 @@
<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>
<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 v-if="controls.isOperation === '3'" style="width: 80px; height: 40px;font-size: 16px; width: 138px;height: 38px " @click="goBack">返回
</el-button>
......@@ -166,7 +166,7 @@ export default {
data() {
return {
title: '新增新闻',
pubLoading: false,
businessId: null,
// 变更字段存储数组
formChanges: [],
......@@ -387,7 +387,7 @@ export default {
// 拷贝form
const form = JSON.parse(JSON.stringify(this.form))
// 转换时间格式
this.pubLoading = true
this.$refs.deviceFormRef.validate(valid => {
if (valid) {
if (this.form.businessId !== undefined) {
......@@ -399,10 +399,13 @@ export default {
message: '保存成功',
type: 'success'
})
this.pubLoading = false
this.$router.push({
path: '/contentManagement/newsInformation/index'
})
}
}).catch(() => {
this.pubLoading = false
})
} else {
form.flag = '1'
......@@ -412,12 +415,17 @@ export default {
message: '保存成功',
type: 'success'
})
this.pubLoading = false
this.$router.push({
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