Commit 86704e6f authored by 陈明豪's avatar 陈明豪

bug修改

parent 33079484
import request from '@/utils/request'
// 查询基础配置列表
export function listConfig(query) {
return request({
url: '/system/baseConfig/list',
method: 'get',
params: query
})
}
// 查询基础配置详细
export function getConfig(id) {
return request({
url: '/system/baseConfig/' + id,
method: 'get'
})
}
// 新增基础配置
export function addConfig(data) {
return request({
url: '/system/baseConfig',
method: 'post',
data: data
})
}
// 修改基础配置
export function updateConfig(data) {
return request({
url: '/system/baseConfig',
method: 'put',
data: data
})
}
// 删除基础配置
export function delConfig(id) {
return request({
url: '/system/baseConfig/' + id,
method: 'delete'
})
}
export function listBaseConfig(query) {
return request({
url: '/system/baseConfig/wechat/list',
method: 'get',
params: query
})
}
<template>
<div class="bootmText">
<pre v-if="platformMessage.phone ==='' " style="font-family: Microsoft YaHei-Regular, Microsoft YaHei">{{ "Copyright:" + (platformMessage.copyright || '-') }} {{ "ICP备: "+ ( platformMessage.ICP || '-' ) }}</pre>
<pre v-else style="font-family: Microsoft YaHei-Regular, Microsoft YaHei">{{ "Copyright:" +platformMessage.copyright }} {{ "("+platformMessage.phone+") " }} {{ "ICP备:"+platformMessage.ICP }}</pre>
</div>
</template>
<script>
import { listConfig } from '@/api/business/baseConfig'
import { parseStrEmpty } from '@/utils/ruoyi'
export default {
name: 'CopyRight',
data() {
return {
// 平台信息
platformMessage: {
logo: null, // 平台log
ICP: null, // ICP备案号
copyright: null, // 版权所有
phone: null, // 客服电话
email: null // 客服邮箱
}
}
},
watch: {},
created() {
this.getPlatformMessage()
},
methods: {
// 获取平台的基础配置
getPlatformMessage() {
listConfig({ type: '2' }).then(response => {
if (response.rows.length !== 0) {
const data = response.rows[0]
// 如果查询出来的平台基础数据个数不为0, 将内容反序列化赋给平台信息
this.platformMessage = JSON.parse(data.content)
this.platformMessage.phone = parseStrEmpty(this.platformMessage.phone)
console.log('获取平台基础设置', this.platformMessage)
}
})
}
}
}
</script>
<style scoped lang="scss">
.bootmText{
padding-top: 20px;
width: 100%;
text-align: center;
color: #999999;
font-size: 12px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400;
line-height: 25px;
position: absolute;
bottom: 0;
}
</style>
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