首页登录39后台

This commit is contained in:
宋伟佳
2021-06-16 13:39:28 +08:00
parent 9495265b47
commit 448dab48dc
7 changed files with 141 additions and 11 deletions
+8 -5
View File
@@ -89,7 +89,8 @@ export default {
if (_this) {
_this[loading] = true
}
_axios.post(api() + url + '?' + new Date().getTime(), _formData).then(res => {
const prefix = config.prefix || '/api/'
_axios.post(prefix + '/' + url + '?' + new Date().getTime(), _formData).then(res => {
if (_this && loading) { _this[loading] = false }
if (res.data.ok !== undefined && showTips) {
let type = res.data.ok ? 'success' : 'warning'
@@ -131,7 +132,8 @@ export default {
if (_this) {
_this[loading] = true
}
_axios.post(api() + url + '?' + new Date().getTime(), param).then(res => {
const prefix = config.prefix || '/api/'
_axios.post(prefix + '/' + url + '?' + new Date().getTime(), param).then(res => {
if (_this && loading) { _this[loading] = false }
if (res.data.ok !== undefined && showTips) {
let type = res.data.ok ? 'success' : 'warning'
@@ -170,7 +172,8 @@ export default {
if (_this) {
_this[loading] = true
}
_axios.post(api() + url + '?' + new Date().getTime(), _formData).then(res => {
const prefix = config.prefix || '/api/'
_axios.post(prefix + '/' + url + '?' + new Date().getTime(), _formData).then(res => {
if (_this && loading) { _this[loading] = false }
thenFun.call(this, res.data)
}).catch(err => {
@@ -202,8 +205,8 @@ export default {
if (_this) {
_this[loading] = true
}
_axios.get(api() + url + '?_t=' + new Date().getTime(), { params: param, cancelToken: config.cancelToken }).then(res => {
const prefix = config.prefix || '/api/'
_axios.get(prefix + '/' + url + '?_t=' + new Date().getTime(), { params: param, cancelToken: config.cancelToken }).then(res => {
if (_this && loading) { _this[loading] = false }
// 返回data对象
if (res.ok !== undefined) {
@@ -0,0 +1,80 @@
<!--外部会议资料-->
<template>
<div class="conference-materials">
<ul>
<li v-for="item in materialsList" :key="item.id" class="time-title">
<a class="title" :title="item.title">{{item.name}}</a>
<span class="time">{{putTime}}</span>
</li>
</ul>
</div>
</template>
<script>
export default {
name: "ConferenceMaterials",
data () {
return {
putTime: '',
materialsList: [
{
id: 1,
name: '外部会议资料1',
},
{
id: 2,
name: '外部会议资料2',
},{
id: 3,
name: '外部会议资料3',
},
{
id: 4,
name: '外部会议资料4',
},
], //会议资料数据
}
},
methods: {
//获取当前时间
getDate () {
var date = new Date()
var year = date.getFullYear()
var month = date.getMonth() + 1
var day = date.getDate()
if (month < 10) {
month = '0' + month
}
if (day < 10) {
day = '0' + day
}
var nowDate = year + '-' + month + '-' + day
this.putTime = nowDate
}
},
mounted() {
this.getDate()
},
};
</script>
<style lang="less" scoped>
.conference-materials {
.time-title {
margin: 15px;
.time {
float: right;
color:#FFFFFF;
}
a {
color: #FFFFFF;
&:hover {
color: #e9c851;
text-decoration: underline;
}
}
}
}
</style>
@@ -0,0 +1,23 @@
<!--会议通知-->
<template>
<div class="notice-of-meeting">
</div>
</template>
<script>
export default {
name: "NoticeOfMeeting",
data () {
return {
}
}
};
</script>
<style lang="less" scoped>
.notice-of-meeting {
}
</style>
+11 -1
View File
@@ -21,13 +21,19 @@
class="home-tabs"
@tab-click="handleTabClick"
>
<el-tab-pane label="外部会议资料" name="conferenceMaterials">
<conference-materials></conference-materials>
</el-tab-pane>
<el-tab-pane label="会议通知" name="noticeOfMeeting">
<notice-of-meeting></notice-of-meeting>
</el-tab-pane>
<el-tab-pane label="标准征求意见" name="solicitOpinions">
<solicitOpinions></solicitOpinions>
</el-tab-pane>
<el-tab-pane label="标准发布" name="release">
<release></release>
</el-tab-pane>
<el-tab-pane label="资讯" name="realTimeInfo">
<el-tab-pane label="外部资讯" name="realTimeInfo">
<realTimeInfo></realTimeInfo>
</el-tab-pane>
</el-tabs>
@@ -55,6 +61,8 @@ import navMenu from './components/navMenu'
import solicitOpinions from './components/solicitopinions'
import todoList from './components/todoList'
import Empennage from "./components/empennage"
import noticeOfMeeting from "./components/noticeOfMeeting"
import conferenceMaterials from "./components/conferenceMaterials"
export default {
name: 'Home',
@@ -66,6 +74,8 @@ export default {
release,
navMenu,
todoList,
noticeOfMeeting,
conferenceMaterials,
},
mixins: [],
data() {
+10 -4
View File
@@ -75,7 +75,8 @@ export default {
password: PWD
}, {
_this: this,
loading: 'loading'
loading: 'loading',
prefix: '/foton'
}, res => {
if (res.ok) {
const JSESSIONID = document.cookie
@@ -240,7 +241,8 @@ export default {
return new Promise((resolve, reject) => {
this.$http.get('person/userInfo/getByUserInfoCode', {
}, {
_this: this
_this: this,
prefix: '/foton'
}, res => {
if (true) {
resolve(res.data)
@@ -255,7 +257,10 @@ export default {
// 获取用户头像
getUserPic (attId) {
return new Promise((resolve, reject) => {
this.$http.get('/att/attFile/' + attId, {}, {_this: this}, res => {
this.$http.get('/att/attFile/' + attId, {}, {
_this: this,
prefix: '/foton'
}, res => {
resolve(res.data)
}, e => {
reject(e)
@@ -270,7 +275,8 @@ export default {
getMenu () {
return new Promise((resolve, reject) => {
this.$http.get('userMenu', {}, {
_this: this
_this: this,
prefix: '/foton'
}, res => {
if (res.ok) {
resolve(res.data)
@@ -1878,7 +1878,8 @@ export default {
this.sarMenu.parentIds = this.selectSarMenu.id
}
this.$http.post('lawss/sarMenu/addSarMenu', this.sarMenu, {
_this: this
_this: this,
prefix: '/foton'
}, res => {
this.selectMenu() // 新增成功后,更新二级菜单
this.menuModalFlag = false
+7
View File
@@ -91,6 +91,13 @@ module.exports = {
pathRewrite: {
'^/onlyOffice': '/api'
}
},
'/foton': {
target: 'http://39.98.140.126:10005',
changeOrigin: true,
pathRewrite: {
'^/foton': '/api'
}
}
}
}