Squashed commit of the following:
commit1daa137d98Author: 不做码农 <599854767@qq.com> Date: Sat Apr 9 14:51:29 2022 +0800 IPRatelimit添加白名单接口 commitd05690654bAuthor: 不做码农 <599854767@qq.com> Date: Fri Apr 8 20:20:11 2022 +0800 添加页签openPage支持传递参数 commit861710079aAuthor: 不做码农 <599854767@qq.com> Date: Fri Apr 8 12:44:28 2022 +0800 update FileHelper.cs commita0cf47c099Author: 不做码农 <599854767@qq.com> Date: Thu Apr 7 13:30:47 2022 +0800 优化代码生成模板 commit5b376614d0Author: 不做码农 <599854767@qq.com> Date: Thu Apr 7 13:30:13 2022 +0800 IP限制增加百名单接口 commit939ec56d1dAuthor: 不做码农 <599854767@qq.com> Date: Mon Apr 4 21:48:27 2022 +0800 fix 基础sql脚本bug commit19c738b974Author: 不做码农 <599854767@qq.com> Date: Mon Apr 4 18:53:02 2022 +0800 新增加IPRateLimit限制 commit6b0e6b11b3Author: 不做码农 <599854767@qq.com> Date: Mon Apr 4 12:09:39 2022 +0800 格式化代码 commit1024471c64Author: 不做码农 <599854767@qq.com> Date: Mon Apr 4 12:02:32 2022 +0800 自定义异常新增获取LogAttribute属性
This commit is contained in:
@@ -55,10 +55,10 @@ export default {
|
||||
return store.dispatch('tagsView/delOthersViews', obj || router.currentRoute);
|
||||
},
|
||||
// 添加tab页签
|
||||
openPage(title, url) {
|
||||
openPage(title, url, params) {
|
||||
var obj = { path: url, meta: { title: title } }
|
||||
store.dispatch('tagsView/addView', obj);
|
||||
return router.push(url);
|
||||
return router.push({ path: url, query: params });
|
||||
},
|
||||
// 修改tab页签
|
||||
updatePage(obj) {
|
||||
|
||||
@@ -57,7 +57,7 @@ service.interceptors.response.use(res => {
|
||||
})
|
||||
|
||||
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
||||
} else if (code == 0 || code == 1 || code == 110 || code == 101 || code == 403 || code == 500) {
|
||||
} else if (code == 0 || code == 1 || code == 110 || code == 101 || code == 403 || code == 500 || code == 429) {
|
||||
Message({
|
||||
message: msg,
|
||||
type: 'error'
|
||||
@@ -70,13 +70,13 @@ service.interceptors.response.use(res => {
|
||||
},
|
||||
error => {
|
||||
console.log('err' + error)
|
||||
let {
|
||||
message
|
||||
} = error;
|
||||
let { message } = error;
|
||||
if (message == "Network Error") {
|
||||
message = "后端接口连接异常";
|
||||
} else if (message.includes("timeout")) {
|
||||
message = "系统接口请求超时";
|
||||
} else if (message.includes("Request failed with status code 429")) {
|
||||
message = "请求过于频繁,请稍后再试";
|
||||
} else if (message.includes("Request failed with status code")) {
|
||||
message = "系统接口" + message.substr(message.length - 3) + "异常";
|
||||
}
|
||||
|
||||
@@ -15,24 +15,23 @@
|
||||
<div class="user-item-right overflow">
|
||||
<el-row>
|
||||
<el-col :xs="24" :md="24" class="right-title mb20 one-text-overflow">
|
||||
{{userInfo.welcomeMessage}},{{ userInfo.nickName }},{{ userInfo.welcomeContent }}
|
||||
</el-col>
|
||||
{{ userInfo.welcomeMessage }},{{ userInfo.nickName }},{{ userInfo.welcomeContent }}</el-col>
|
||||
<el-col :xs="24" :sm="24" :md="24">
|
||||
<el-col :xs="24" :md="8" class="right-l-v">
|
||||
<div class="right-label">昵称:</div>
|
||||
<div class="right-value">{{userInfo.nickName}}</div>
|
||||
<div class="right-value">{{ userInfo.nickName }}</div>
|
||||
</el-col>
|
||||
<el-col :xs="24" :md="16" class="right-l-v">
|
||||
<div class="right-label">身份:</div>
|
||||
<div class="right-value">
|
||||
<span v-for="item in userInfo.roles" :key="item.roleId">{{item.roleName}}</span>
|
||||
<span v-for="item in userInfo.roles" :key="item.roleId">{{ item.roleName }}</span>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-col>
|
||||
<el-col :md="24" class="mt10">
|
||||
<el-col :xs="24" :sm="12" :md="8" class="right-l-v">
|
||||
<div class="right-label one-text-overflow">IP:</div>
|
||||
<div class="right-value one-text-overflow">{{userInfo.loginIP}}</div>
|
||||
<div class="right-value one-text-overflow">{{ userInfo.loginIP }}</div>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="12" :md="16" class="right-l-v">
|
||||
<div class="right-label one-text-overflow">时间:</div>
|
||||
@@ -41,9 +40,7 @@
|
||||
</el-col>
|
||||
<el-col :lg="24" class="mt10">
|
||||
<el-button size="small" icon="el-icon-edit-outline">
|
||||
<router-link to="/user/profile">
|
||||
修改信息
|
||||
</router-link>
|
||||
<router-link to="/user/profile">修改信息</router-link>
|
||||
</el-button>
|
||||
<!-- <el-button size="small" icon="el-icon-position" type="primary">发布活动</el-button> -->
|
||||
</el-col>
|
||||
@@ -94,56 +91,55 @@
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PanelGroup from "./dashboard/PanelGroup";
|
||||
import LineChart from "./dashboard/LineChart";
|
||||
import RaddarChart from "./dashboard/RaddarChart";
|
||||
import PieChart from "./dashboard/PieChart";
|
||||
import BarChart from "./dashboard/BarChart";
|
||||
import Scroll from "vue-seamless-scroll";
|
||||
import { listNewArticle } from "@/api/system/article.js";
|
||||
import PanelGroup from './dashboard/PanelGroup'
|
||||
import LineChart from './dashboard/LineChart'
|
||||
import RaddarChart from './dashboard/RaddarChart'
|
||||
import PieChart from './dashboard/PieChart'
|
||||
import BarChart from './dashboard/BarChart'
|
||||
import Scroll from 'vue-seamless-scroll'
|
||||
import { listNewArticle } from '@/api/system/article.js'
|
||||
|
||||
const lineChartData = {
|
||||
newVisitis: {
|
||||
expectedData: [100, 120, 161, 134, 105, 160, 165],
|
||||
actualData: [120, 82, 91, 154, 162, 140, 145],
|
||||
actualData: [120, 82, 91, 154, 162, 140, 145]
|
||||
},
|
||||
messages: {
|
||||
expectedData: [200, 192, 120, 144, 160, 130, 140],
|
||||
actualData: [180, 160, 151, 106, 145, 150, 130],
|
||||
actualData: [180, 160, 151, 106, 145, 150, 130]
|
||||
},
|
||||
purchases: {
|
||||
expectedData: [80, 100, 121, 104, 105, 90, 100],
|
||||
actualData: [120, 90, 100, 138, 142, 130, 130],
|
||||
actualData: [120, 90, 100, 138, 142, 130, 130]
|
||||
},
|
||||
shoppings: {
|
||||
expectedData: [130, 140, 141, 142, 145, 150, 160],
|
||||
actualData: [120, 82, 91, 154, 162, 140, 130],
|
||||
},
|
||||
};
|
||||
actualData: [120, 82, 91, 154, 162, 140, 130]
|
||||
}
|
||||
}
|
||||
export default {
|
||||
name: "Index",
|
||||
name: 'Index',
|
||||
components: {
|
||||
PanelGroup,
|
||||
LineChart,
|
||||
RaddarChart,
|
||||
PieChart,
|
||||
BarChart,
|
||||
Scroll,
|
||||
Scroll
|
||||
},
|
||||
computed: {
|
||||
photo() {
|
||||
return this.$store.getters.photo;
|
||||
return this.$store.getters.photo
|
||||
},
|
||||
userInfo() {
|
||||
return this.$store.getters.userinfo;
|
||||
return this.$store.getters.userinfo
|
||||
},
|
||||
currentTime() {
|
||||
return this.parseTime(new Date());
|
||||
return this.parseTime(new Date())
|
||||
},
|
||||
optionSingleHeight() {
|
||||
return {
|
||||
@@ -154,28 +150,28 @@ export default {
|
||||
openWatch: true, // 开启数据实时监控刷新dom
|
||||
singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
|
||||
singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
|
||||
waitTime: 1000, // 单步运动停止的时间(默认值1000ms)
|
||||
};
|
||||
},
|
||||
waitTime: 1000 // 单步运动停止的时间(默认值1000ms)
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
lineChartData: lineChartData.newVisitis,
|
||||
newArticleList: [],
|
||||
};
|
||||
newArticleList: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
listNewArticle().then((res) => {
|
||||
this.newArticleList = res.data;
|
||||
});
|
||||
this.newArticleList = res.data
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
handleSetLineChartData(type) {
|
||||
this.lineChartData = lineChartData[type];
|
||||
this.lineChartData = lineChartData[type]
|
||||
},
|
||||
onOpenGitee() {},
|
||||
},
|
||||
};
|
||||
onOpenGitee() {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user