Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 05d52d53
authored
Nov 01, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.45' into 'master'
上线合并 See merge request
!1
2 parents
1b0e07c5
e0b6dacf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
package.json
src/base.js
package.json
View file @
05d52d5
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
"glsx-vue-common"
:
"^1.2.8"
,
"glsx-vue-common"
:
"^1.2.8"
,
"glsx-vue-components"
:
"^1.0.13"
,
"glsx-vue-components"
:
"^1.0.13"
,
"glsx-common"
:
"^2.10.1"
,
"sha1"
:
"^1.1.1"
,
"sha1"
:
"^1.1.1"
,
"vee-validate"
:
"^2.1.7"
,
"vee-validate"
:
"^2.1.7"
,
"vue"
:
"^2.5.17"
,
"vue"
:
"^2.5.17"
,
...
...
src/base.js
View file @
05d52d5
...
@@ -14,7 +14,8 @@ import 'glsx-vue-components/dist/glsx-vue-components.css'
...
@@ -14,7 +14,8 @@ import 'glsx-vue-components/dist/glsx-vue-components.css'
import
'./styles/index.css'
import
'./styles/index.css'
import
ElementUI
from
'element-ui'
;
import
ElementUI
from
'element-ui'
;
import
'element-ui/lib/theme-chalk/index.css'
;
import
'element-ui/lib/theme-chalk/index.css'
;
Vue
.
use
(
ElementUI
);
import
{
utils
}
from
'glsx-common'
Vue
.
use
(
ElementUI
)
//引用富文本编辑器
//引用富文本编辑器
import
VueQuillEditor
from
'vue-quill-editor'
import
VueQuillEditor
from
'vue-quill-editor'
//引入富文本css
//引入富文本css
...
@@ -59,26 +60,40 @@ var mixin = {
...
@@ -59,26 +60,40 @@ var mixin = {
}
}
}
}
const
URL
=
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
// const URL =
const
getConfig
=
(
url
=
URL
+
'/oss_rightsAndInterests'
)
=>
{
// 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
return
new
Promise
(
resolve
=>
{
// const getConfig = (url = URL + '/oss_rightsAndInterests') => {
const
xhr
=
new
XMLHttpRequest
()
// return new Promise(resolve => {
xhr
.
onreadystatechange
=
()
=>
{
// const xhr = new XMLHttpRequest()
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
// xhr.onreadystatechange = () => {
let
config
=
JSON
.
parse
(
xhr
.
responseText
)
// if (xhr.readyState === 4 && xhr.status === 200) {
window
.
localStorage
.
setItem
(
'GLSX_OSS_EQUITY_CONFIG'
,
xhr
.
responseText
)
// let config = JSON.parse(xhr.responseText)
resolve
({
// window.localStorage.setItem('GLSX_OSS_EQUITY_CONFIG', xhr.responseText)
'vue'
:
Vue
,
// resolve({ vue: Vue, config: config })
'config'
:
config
// }
})
// }
// xhr.open('GET', url)
// xhr.send()
// })
// }
const
getConfig
=
()
=>
{
let
params
=
{
moduleName
:
'glsx-oss-rightsAndInterests'
,
mockUrl
:
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_rightsAndInterests'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
}
}
xhr
.
open
(
'GET'
,
url
)
return
new
Promise
((
resolve
,
reject
)
=>
{
xhr
.
send
()
utils
.
getConfig
(
params
).
then
(
res
=>
{
window
.
localStorage
.
setItem
(
'GLSX_OSS_EQUITY_CONFIG'
,
JSON
.
stringify
(
res
))
resolve
({
vue
:
Vue
,
config
:
res
})
})
})
}
})
/* eslint-disable no-new */
}
/* eslint-disable no-new */
const
render
=
App
=>
{
const
render
=
App
=>
{
window
.
vm
=
new
Vue
({
window
.
vm
=
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment