首页登录39后台
This commit is contained in:
@@ -89,7 +89,8 @@ export default {
|
|||||||
if (_this) {
|
if (_this) {
|
||||||
_this[loading] = true
|
_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 (_this && loading) { _this[loading] = false }
|
||||||
if (res.data.ok !== undefined && showTips) {
|
if (res.data.ok !== undefined && showTips) {
|
||||||
let type = res.data.ok ? 'success' : 'warning'
|
let type = res.data.ok ? 'success' : 'warning'
|
||||||
@@ -131,7 +132,8 @@ export default {
|
|||||||
if (_this) {
|
if (_this) {
|
||||||
_this[loading] = true
|
_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 (_this && loading) { _this[loading] = false }
|
||||||
if (res.data.ok !== undefined && showTips) {
|
if (res.data.ok !== undefined && showTips) {
|
||||||
let type = res.data.ok ? 'success' : 'warning'
|
let type = res.data.ok ? 'success' : 'warning'
|
||||||
@@ -170,7 +172,8 @@ export default {
|
|||||||
if (_this) {
|
if (_this) {
|
||||||
_this[loading] = true
|
_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 (_this && loading) { _this[loading] = false }
|
||||||
thenFun.call(this, res.data)
|
thenFun.call(this, res.data)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@@ -202,8 +205,8 @@ export default {
|
|||||||
if (_this) {
|
if (_this) {
|
||||||
_this[loading] = true
|
_this[loading] = true
|
||||||
}
|
}
|
||||||
|
const prefix = config.prefix || '/api/'
|
||||||
_axios.get(api() + url + '?_t=' + new Date().getTime(), { params: param, cancelToken: config.cancelToken }).then(res => {
|
_axios.get(prefix + '/' + url + '?_t=' + new Date().getTime(), { params: param, cancelToken: config.cancelToken }).then(res => {
|
||||||
if (_this && loading) { _this[loading] = false }
|
if (_this && loading) { _this[loading] = false }
|
||||||
// 返回data对象
|
// 返回data对象
|
||||||
if (res.ok !== undefined) {
|
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>
|
||||||
@@ -21,13 +21,19 @@
|
|||||||
class="home-tabs"
|
class="home-tabs"
|
||||||
@tab-click="handleTabClick"
|
@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">
|
<el-tab-pane label="标准征求意见" name="solicitOpinions">
|
||||||
<solicitOpinions></solicitOpinions>
|
<solicitOpinions></solicitOpinions>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="标准发布" name="release">
|
<el-tab-pane label="标准发布" name="release">
|
||||||
<release></release>
|
<release></release>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="资讯" name="realTimeInfo">
|
<el-tab-pane label="外部资讯" name="realTimeInfo">
|
||||||
<realTimeInfo></realTimeInfo>
|
<realTimeInfo></realTimeInfo>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@@ -55,6 +61,8 @@ import navMenu from './components/navMenu'
|
|||||||
import solicitOpinions from './components/solicitopinions'
|
import solicitOpinions from './components/solicitopinions'
|
||||||
import todoList from './components/todoList'
|
import todoList from './components/todoList'
|
||||||
import Empennage from "./components/empennage"
|
import Empennage from "./components/empennage"
|
||||||
|
import noticeOfMeeting from "./components/noticeOfMeeting"
|
||||||
|
import conferenceMaterials from "./components/conferenceMaterials"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
@@ -66,6 +74,8 @@ export default {
|
|||||||
release,
|
release,
|
||||||
navMenu,
|
navMenu,
|
||||||
todoList,
|
todoList,
|
||||||
|
noticeOfMeeting,
|
||||||
|
conferenceMaterials,
|
||||||
},
|
},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -75,7 +75,8 @@ export default {
|
|||||||
password: PWD
|
password: PWD
|
||||||
}, {
|
}, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'loading'
|
loading: 'loading',
|
||||||
|
prefix: '/foton'
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
const JSESSIONID = document.cookie
|
const JSESSIONID = document.cookie
|
||||||
@@ -240,7 +241,8 @@ export default {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.$http.get('person/userInfo/getByUserInfoCode', {
|
this.$http.get('person/userInfo/getByUserInfoCode', {
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this,
|
||||||
|
prefix: '/foton'
|
||||||
}, res => {
|
}, res => {
|
||||||
if (true) {
|
if (true) {
|
||||||
resolve(res.data)
|
resolve(res.data)
|
||||||
@@ -255,7 +257,10 @@ export default {
|
|||||||
// 获取用户头像
|
// 获取用户头像
|
||||||
getUserPic (attId) {
|
getUserPic (attId) {
|
||||||
return new Promise((resolve, reject) => {
|
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)
|
resolve(res.data)
|
||||||
}, e => {
|
}, e => {
|
||||||
reject(e)
|
reject(e)
|
||||||
@@ -270,7 +275,8 @@ export default {
|
|||||||
getMenu () {
|
getMenu () {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.$http.get('userMenu', {}, {
|
this.$http.get('userMenu', {}, {
|
||||||
_this: this
|
_this: this,
|
||||||
|
prefix: '/foton'
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
resolve(res.data)
|
resolve(res.data)
|
||||||
|
|||||||
@@ -1878,7 +1878,8 @@ export default {
|
|||||||
this.sarMenu.parentIds = this.selectSarMenu.id
|
this.sarMenu.parentIds = this.selectSarMenu.id
|
||||||
}
|
}
|
||||||
this.$http.post('lawss/sarMenu/addSarMenu', this.sarMenu, {
|
this.$http.post('lawss/sarMenu/addSarMenu', this.sarMenu, {
|
||||||
_this: this
|
_this: this,
|
||||||
|
prefix: '/foton'
|
||||||
}, res => {
|
}, res => {
|
||||||
this.selectMenu() // 新增成功后,更新二级菜单
|
this.selectMenu() // 新增成功后,更新二级菜单
|
||||||
this.menuModalFlag = false
|
this.menuModalFlag = false
|
||||||
|
|||||||
@@ -91,6 +91,13 @@ module.exports = {
|
|||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/onlyOffice': '/api'
|
'^/onlyOffice': '/api'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'/foton': {
|
||||||
|
target: 'http://39.98.140.126:10005',
|
||||||
|
changeOrigin: true,
|
||||||
|
pathRewrite: {
|
||||||
|
'^/foton': '/api'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user