Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-insurance
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 95899c19
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
6bfe146c
05335095
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
9 deletions
package.json
src/base.js
package.json
View file @
95899c1
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
"glsx-vue-common"
:
"^1.2.1"
,
"glsx-vue-common"
:
"^1.2.1"
,
"glsx-vue-components"
:
"^1.0.13"
,
"glsx-vue-components"
:
"^1.0.13"
,
"glsx-common"
:
"^2.10.1"
,
"moment"
:
"^2.29.1"
,
"moment"
:
"^2.29.1"
,
"sass-loader"
:
"^7.1.0"
,
"sass-loader"
:
"^7.1.0"
,
"vue"
:
"^2.5.17"
,
"vue"
:
"^2.5.17"
,
...
...
src/base.js
View file @
95899c1
...
@@ -7,11 +7,13 @@ import '@/styles/index.scss'
...
@@ -7,11 +7,13 @@ import '@/styles/index.scss'
import
{
Request
as
request
}
from
'glsx-vue-common'
import
{
Request
as
request
}
from
'glsx-vue-common'
import
moment
from
'moment'
import
moment
from
'moment'
import
XLSX
from
'xlsx'
import
XLSX
from
'xlsx'
import
{
utils
}
from
'glsx-common'
// import axios from 'axios'
// import axios from 'axios'
Vue
.
use
(
GlsxVueComponents
)
Vue
.
use
(
GlsxVueComponents
)
Vue
.
use
(
XLSX
)
Vue
.
use
(
XLSX
)
// Vue.prototype.getAddrUrl = 'https://dj.test.glsx.com.cn/web-dj-site/common/address/getAddressByLngLat'
// Vue.prototype.getAddrUrl = 'https://dj.test.glsx.com.cn/web-dj-site/common/address/getAddressByLngLat'
Vue
.
prototype
.
getAddrUrl
=
'http://dj.glsx.com.cn/web-dj-site/common/address/getAddressByLngLat'
Vue
.
prototype
.
getAddrUrl
=
'http://dj.glsx.com.cn/web-dj-site/common/address/getAddressByLngLat'
Vue
.
prototype
.
size
=
'mini'
Vue
.
prototype
.
size
=
'mini'
Vue
.
prototype
.
$moment
=
moment
Vue
.
prototype
.
$moment
=
moment
moment
.
locale
(
'zh-cn'
)
moment
.
locale
(
'zh-cn'
)
...
@@ -38,15 +40,31 @@ var mixin = {
...
@@ -38,15 +40,31 @@ var mixin = {
})
})
}
}
}
}
const
URL
=
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
// const URL = 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/insurance'
)
=>
{
// const getConfig = (url = URL + '/insurance') => {
// return new Promise((resolve, reject) => {
// request({ url }).then(res => {
// if (res.status === 'success') {
// resolve({ 'vue': Vue, 'config': JSON.parse(res.data) })
// } else {
// reject('ERROR.')
// }
// })
// })
// }
const
getConfig
=
()
=>
{
let
params
=
{
moduleName
:
'glsx-oss-insurance'
,
mockUrl
:
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/insurance'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
request
({
url
}).
then
(
res
=>
{
utils
.
getConfig
(
params
).
then
(
res
=>
{
if
(
res
.
status
===
'success'
)
{
resolve
({
vue
:
Vue
,
config
:
res
})
resolve
({
'vue'
:
Vue
,
'config'
:
JSON
.
parse
(
res
.
data
)
})
}
else
{
reject
(
'ERROR.'
)
}
})
})
})
})
}
}
...
...
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