update 系统名称、样式修改;在线编辑挪到登录页面
This commit is contained in:
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<title>JeroBoot平台</title>
|
<title>中国重汽标准法规管理模块系统</title>
|
||||||
<!--<link rel="icon" href="<%= BASE_URL %>logo.png">-->
|
<!--<link rel="icon" href="<%= BASE_URL %>logo.png">-->
|
||||||
<script src="<%= BASE_URL %>cdn/babel-polyfill/polyfill_7_2_5.js"></script>
|
<script src="<%= BASE_URL %>cdn/babel-polyfill/polyfill_7_2_5.js"></script>
|
||||||
<script src="<%= BASE_URL %>api_address_config.js"></script>
|
<script src="<%= BASE_URL %>api_address_config.js"></script>
|
||||||
|
|||||||
@@ -1,19 +1,39 @@
|
|||||||
import store from '@/store'
|
// import store from '@/store'
|
||||||
import { getFileInfo } from '@api/api'
|
import { getFileInfo } from '@api/api'
|
||||||
|
|
||||||
export default (fileId, showFileName) => {
|
export default async (fileId, showFileName) => {
|
||||||
getFileInfo({ id: fileId }).then(res => {
|
let fileInfo = {}
|
||||||
if (res.success) {
|
// 如果有fileId就从接口获取文件信息,否则打开默认模板
|
||||||
const userId = store.getters.userInfo.id
|
if (fileId) {
|
||||||
const userName = store.getters.userInfo.username
|
fileInfo = await getFileInfoData(fileId) || {}
|
||||||
const fileInfo = res.result || {}
|
} else {
|
||||||
const fullFilePathArr = fileInfo.url.split('/')
|
// 这个是福田现在的模板
|
||||||
const fileName = fileInfo.fileName
|
fileInfo = {
|
||||||
const fileSuffix = fileName ? fileName.split('.')[fileName.split('.').length - 1] : ''
|
fileName: 'task_9ad64b01_top_9ad64b01_node.docx',
|
||||||
const filePath = `${fullFilePathArr[0]}/`
|
url: 'model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx"'
|
||||||
const fileDownloadUrl = `${window._CONFIG.onlyOfficeDownloadFileUrl}/${fileInfo.url}`
|
|
||||||
const url = `${window._CONFIG.onlyOfficeUrl}/editor?attId=${fileId}&userId=${userId}&userName=${userName}&filePath=${filePath}&fileName=${fileName}&oldFileName=${showFileName}&fileType=${fileSuffix}&key=${fileId}&fileUrl=${fileDownloadUrl}`
|
|
||||||
window.open(url, '_blank')
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// const userId = store.getters.userInfo.id
|
||||||
|
// const userName = store.getters.userInfo.username
|
||||||
|
const fullFilePathArr = fileInfo.url.split('/')
|
||||||
|
const fileName = fileInfo.fileName
|
||||||
|
const fileSuffix = fileName ? fileName.split('.')[fileName.split('.').length - 1] : ''
|
||||||
|
const filePath = `${fullFilePathArr[0]}/${fullFilePathArr[1]}/`
|
||||||
|
// 这会儿不用登录,先把关于用户信息的东西去掉
|
||||||
|
// &userId=${userId}&userName=${userName}
|
||||||
|
const url = `${window._CONFIG.onlyOfficeUrl}/editor?attId=${fileInfo.id}&filePath=${filePath}&fileName=${fileName}&oldFileName=${showFileName}&fileType=${fileSuffix}&key=${fileId}&isEdit=123`
|
||||||
|
window.open(url, '_blank')
|
||||||
|
}
|
||||||
|
|
||||||
|
const getFileInfoData = (id) => {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
let fileInfo
|
||||||
|
getFileInfo({ id }).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
fileInfo = res.result
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
resolve(fileInfo)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题
|
// update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题
|
||||||
changeTitle (title) {
|
changeTitle (title) {
|
||||||
const projectTitle = 'Jero-Boot 企业级快速开发平台'
|
const projectTitle = '中国重汽标准法规管理模块系统'
|
||||||
// 首页特殊处理
|
// 首页特殊处理
|
||||||
if (this.$route.path === indexKey) {
|
if (this.$route.path === indexKey) {
|
||||||
document.title = projectTitle
|
document.title = projectTitle
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
<div id="userLayout" :class="['user-layout-wrapper',device]">
|
<div id="userLayout" :class="['user-layout-wrapper',device]">
|
||||||
<div :class="!mobile ? 'container' : 'container-mobile'">
|
<div :class="!mobile ? 'container' : 'container-mobile'">
|
||||||
<div class="top" id="top" v-if="!mobile">
|
<div class="top" id="top" v-if="!mobile">
|
||||||
<div class="logo">
|
<!-- <div class="logo">-->
|
||||||
<img id="logo" src="~@/assets/logo.png" alt="">
|
<!-- <img id="logo" src="~@/assets/logo.png" alt="">-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div id="company">
|
<!-- <div id="company">-->
|
||||||
<span id="c-company">合众未来</span>
|
<!-- <span id="c-company">合众未来</span>-->
|
||||||
<span id="p-company">HEZHONGWEILAI</span>
|
<!-- <span id="p-company">HEZHONGWEILAI</span>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
<div v-if="mobile">
|
<div v-if="mobile">
|
||||||
<span class="top-bg"><img src="~/@assets/mobileBg.png" alt=""></span>
|
<span class="top-bg"><img src="~/@assets/mobileBg.png" alt=""></span>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
:type="collapsed ? 'menu-unfold' : 'menu-fold'"
|
:type="collapsed ? 'menu-unfold' : 'menu-fold'"
|
||||||
@click="toggle"/>
|
@click="toggle"/>
|
||||||
|
|
||||||
<span v-if="device === 'desktop'">欢迎进入 Jero-Boot 平台</span>
|
<span v-if="device === 'desktop'">中国重汽标准法规管理模块系统</span>
|
||||||
<span v-else>Jero-Boot</span>
|
<span v-else>Jero-Boot</span>
|
||||||
|
|
||||||
<user-menu :theme="theme"/>
|
<user-menu :theme="theme"/>
|
||||||
@@ -192,9 +192,9 @@ export default {
|
|||||||
|
|
||||||
.header {
|
.header {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
color: white;
|
color: #1D2129;
|
||||||
height: @height;
|
height: @height;
|
||||||
background-color: @primary-color;
|
background-color: white;
|
||||||
transition: background 300ms;
|
transition: background 300ms;
|
||||||
|
|
||||||
/* dark 样式 */
|
/* dark 样式 */
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<router-link :to="routerLinkTo">
|
<router-link :to="routerLinkTo">
|
||||||
|
|
||||||
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
|
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
|
||||||
<img v-if="navTheme === 'dark'" src="~@/assets/logo.png" alt="logo">
|
<!-- <img v-if="navTheme === 'dark'" src="~@/assets/logo.png" alt="logo">-->
|
||||||
<img v-else src="~@/assets/logo.png" alt="logo">
|
<!-- <img v-else src="~@/assets/logo.png" alt="logo">-->
|
||||||
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
|
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
|
||||||
|
|
||||||
<h1 v-if="showTitle">{{ title }}</h1>
|
<h1 v-if="showTitle">{{ title }}</h1>
|
||||||
@@ -21,7 +21,7 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'Jero-Boot Pro',
|
default: '研发云平台',
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
showTitle: {
|
showTitle: {
|
||||||
@@ -38,27 +38,34 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
/*缩小首页布 局顶部的高度*/
|
/*缩小首页布 局顶部的高度*/
|
||||||
@height: 59px;
|
@height: 59px;
|
||||||
|
|
||||||
.sider {
|
.sider {
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
.logo {
|
|
||||||
height: @height !important;
|
|
||||||
line-height: @height !important;
|
|
||||||
box-shadow: none !important;
|
|
||||||
transition: background 300ms;
|
|
||||||
|
|
||||||
a {
|
.logo {
|
||||||
color: white;
|
height: @height !important;
|
||||||
&:hover {
|
line-height: @height !important;
|
||||||
color: rgba(255, 255, 255, 0.8);
|
box-shadow: 1px 0px 0 0 #e8e8e8 !important;
|
||||||
}
|
transition: background 300ms;
|
||||||
|
background-color: transparent !important;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #222222 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.light .logo {
|
|
||||||
background-color: @primary-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.light .logo {
|
||||||
|
background-color: @primary-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ export const ConfigurableTableMixin = {
|
|||||||
loading: false,
|
loading: false,
|
||||||
orderBy: '1',
|
orderBy: '1',
|
||||||
orderByField: '',
|
orderByField: '',
|
||||||
getTableHeaderData: null, // 获取表头数据的方法
|
|
||||||
operateMaxNum: 1,
|
operateMaxNum: 1,
|
||||||
// 操作列的column
|
// 操作列的column
|
||||||
operateColumn: {
|
operateColumn: {
|
||||||
|
|||||||
@@ -1,22 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<user-or-organ-selection></user-or-organ-selection>
|
<!-- <user-or-organ-selection></user-or-organ-selection>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UserOrOrganSelection from '../../components/selection/UserOrOrganSelection'
|
// import UserOrOrganSelection from '../../components/selection/UserOrOrganSelection'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Analysis',
|
name: 'Analysis',
|
||||||
components: { UserOrOrganSelection },
|
// components: { UserOrOrganSelection },
|
||||||
data () {
|
data () {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
<div></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'DomesticStandardList'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -92,6 +92,17 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="3"></a-col>
|
<a-col :span="3"></a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-row class="login-btn">
|
||||||
|
<a-col :span="3"></a-col>
|
||||||
|
<a-col :span="18">
|
||||||
|
<a-form-item>
|
||||||
|
<a-button block size="large" type="primary" htmlType="submit" @click="editFileByOnlyOffice('')">
|
||||||
|
在线编辑
|
||||||
|
</a-button>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="3"></a-col>
|
||||||
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
</a-form>
|
</a-form>
|
||||||
<a-form v-if="mobile" :form="form" class="user-layout-login user-layout-login-mobile" ref="formLogin" id="formLogin">
|
<a-form v-if="mobile" :form="form" class="user-layout-login user-layout-login-mobile" ref="formLogin" id="formLogin">
|
||||||
@@ -186,6 +197,7 @@ import { postAction, getAction } from '@/api/manage'
|
|||||||
|
|
||||||
import { getRSAPublicKey } from '@/utils/encryption.js'
|
import { getRSAPublicKey } from '@/utils/encryption.js'
|
||||||
import { JSEncrypt } from 'jsencrypt'
|
import { JSEncrypt } from 'jsencrypt'
|
||||||
|
import onlyOfficeEdit from '@/common/onlyOffice/onlyOfficeEdit'
|
||||||
// const Base64 = require('js-base64').Base64
|
// const Base64 = require('js-base64').Base64
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -388,6 +400,9 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
editFileByOnlyOffice (fileId) {
|
||||||
|
onlyOfficeEdit(fileId, '企业标准')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -429,7 +444,7 @@ function isMobile () {
|
|||||||
.user-layout-login{
|
.user-layout-login{
|
||||||
z-index: 99;
|
z-index: 99;
|
||||||
width: 24%;
|
width: 24%;
|
||||||
height: 56%;
|
height: 59%;
|
||||||
padding: 3% 0 3% 0;
|
padding: 3% 0 3% 0;
|
||||||
min-width: 332px;
|
min-width: 332px;
|
||||||
min-height: 460px;
|
min-height: 460px;
|
||||||
|
|||||||
Reference in New Issue
Block a user