Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
component
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
purplevin
component
Commits
3838b2ba
Commit
3838b2ba
authored
Sep 02, 2022
by
shuaiqiang
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:调整baseUrl
parent
72fafdc3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
76 deletions
+14
-76
config/index.js
config/index.js
+0
-25
example/App.vue
example/App.vue
+5
-5
packages/convertTool/src/index.vue
packages/convertTool/src/index.vue
+2
-9
packages/fileSplit/src/index.vue
packages/fileSplit/src/index.vue
+2
-9
packages/splitTool/src/index.vue
packages/splitTool/src/index.vue
+2
-10
packages/upload/src/index.vue
packages/upload/src/index.vue
+1
-8
packages/upload_excel/src/index.vue
packages/upload_excel/src/index.vue
+2
-10
No files found.
config/index.js
deleted
100644 → 0
View file @
72fafdc3
module
.
exports
=
{
prod_sz
:
{
VUE_APP_GRAPHAPI_URL
:
'
https://pvapi.purplevineip.com/graphAPI/api/v1.0/
'
},
prod_tp
:
{
VUE_APP_GRAPHAPI_URL
:
'
https://pvapi.purplevineip.com/graphAPI/api/v1.0/
'
},
prod_test_sz
:
{
VUE_APP_GRAPHAPI_URL
:
'
https://dev.essenptl.com/graphAPITest/api/v1.0/
'
,
VUE_FILE_URL
:
'
https://dev.essenptl.com/dev2/wade_ext/
'
},
dev_tp
:
{
VUE_APP_GRAPHAPI_URL
:
'
http://localhost:64224/api/v1.0/
'
},
dev_sz
:
{
VUE_APP_GRAPHAPI_URL
:
'
http://localhost:64224/api/v1.0/
'
},
dev_test_tp
:
{
VUE_APP_GRAPHAPI_URL
:
'
https://dev.essenptl.com/graphAPITest/api/v1.0/
'
},
dev_test_sz
:
{
VUE_APP_GRAPHAPI_URL
:
'
https://dev.essenptl.com/graphAPITest/api/v1.0/
'
,
VUE_FILE_URL
:
'
https://dev.essenptl.com/dev2/wade_ext/
'
}
}
\ No newline at end of file
example/App.vue
View file @
3838b2ba
...
...
@@ -2,11 +2,11 @@
<div
id=
"app"
>
Hi app
<pLink
type=
"primary"
>
Test
</pLink>
<splitTool
env=
"dev_test_sz
"
></splitTool>
<convertTool
env=
"dev_test_sz
"
></convertTool>
<fileSplit
env=
"dev_test_sz
"
></fileSplit>
<upload
env=
"dev_test_sz
"
></upload>
<uploadExcel
env=
"dev_test_sz
"
></uploadExcel>
<splitTool
baseUrl=
"https://dev.essenptl.com/graphAPITest/api/v1.0/
"
></splitTool>
<convertTool
baseUrl=
"https://dev.essenptl.com/graphAPITest/api/v1.0/
"
></convertTool>
<fileSplit
baseUrl=
"https://dev.essenptl.com/dev2/wade_ext/
"
></fileSplit>
<upload
baseUrl=
"https://dev.essenptl.com/dev2/wade_ext/
"
></upload>
<uploadExcel
baseUrl=
"https://dev.essenptl.com/graphAPITest/api/v1.0/
"
></uploadExcel>
</div>
</
template
>
...
...
packages/convertTool/src/index.vue
View file @
3838b2ba
...
...
@@ -19,11 +19,10 @@ import Cn2CpcForm from './components/Cn2CpcForm'
import
Cn2PctForm
from
'
./components/Cn2PctForm
'
import
VisioForm
from
'
./components/VisioForm
'
import
Pct2CnForm
from
'
./components/Pct2CnForm
'
import
config
from
'
@config/index.js
'
export
default
{
name
:
'
ConvertTool
'
,
props
:{
env
:{
baseUrl
:{
type
:
String
,
default
:
'
prod_sz
'
}
...
...
@@ -33,12 +32,6 @@ export default {
Cn2PctForm
,
VisioForm
,
Pct2CnForm
},
computed
:{
baseUrl
(){
console
.
log
(
'
config
'
,
config
,
this
.
env
)
return
config
[
this
.
env
].
VUE_APP_GRAPHAPI_URL
}
},
}
}
</
script
>
packages/fileSplit/src/index.vue
View file @
3838b2ba
...
...
@@ -6,21 +6,14 @@
<
script
>
import
SplitWordForm
from
'
./components/SplitWordForm
'
import
config
from
'
@config/index.js
'
export
default
{
name
:
'
fileSplit
'
,
components
:
{
SplitWordForm
},
props
:{
env
:{
baseUrl
:{
type
:
String
,
default
:
'
prod_sz
'
}
},
computed
:{
baseUrl
(){
console
.
log
(
'
config
'
,
config
,
this
.
env
)
return
config
[
this
.
env
].
VUE_FILE_URL
}
},
}
}
</
script
>
packages/splitTool/src/index.vue
View file @
3838b2ba
...
...
@@ -16,17 +16,15 @@
</el-tabs>
</div>
</
template
>
<
script
>
import
SplitWordForm
from
'
./components/SplitWordForm
'
import
SplitRangeWordForm
from
'
./components/SplitRangeWordForm
'
import
SplitPageBreakWordForm
from
'
./components/SplitPageBreakWordForm.vue
'
import
SplitBookMarkWordForm
from
'
./components/SplitBookMarkWordForm.vue
'
import
config
from
'
@config/index.js
'
export
default
{
name
:
'
SplitTool
'
,
props
:{
env
:{
baseUrl
:{
type
:
String
,
default
:
'
prod_sz
'
}
...
...
@@ -36,12 +34,6 @@ export default {
SplitRangeWordForm
,
SplitPageBreakWordForm
,
SplitBookMarkWordForm
},
computed
:{
baseUrl
(){
console
.
log
(
'
config
'
,
config
,
this
.
env
)
return
config
[
this
.
env
].
VUE_APP_GRAPHAPI_URL
}
},
}
}
</
script
>
packages/upload/src/index.vue
View file @
3838b2ba
...
...
@@ -131,11 +131,10 @@ import {
}
from
'
@api/uploadApi
'
import
moment
from
'
moment
'
import
config
from
'
@config/index.js
'
export
default
{
name
:
'
upload
'
,
props
:{
env
:{
baseUrl
:{
type
:
String
,
default
:
'
prod_sz
'
}
...
...
@@ -153,12 +152,6 @@ export default {
createMonth
:
''
}
},
computed
:{
baseUrl
(){
console
.
log
(
'
config
'
,
config
,
this
.
env
)
return
config
[
this
.
env
].
VUE_FILE_URL
}
},
created
()
{
// eslint-disable-next-line no-undef
this
.
createMonth
=
moment
().
format
(
'
YYYY年MM月
'
)
...
...
packages/upload_excel/src/index.vue
View file @
3838b2ba
...
...
@@ -26,12 +26,11 @@
import
{
mapGetters
}
from
'
vuex
'
import
UploadExcelComponent
from
'
./components/UploadExcel.vue
'
import
{
fetchEhrEmployeeByName
,
fetchCaseLevelList
}
from
"
@api/uploadExcelApi
"
import
config
from
'
@config/index.js
'
export
default
{
name
:
'
uploadExcel
'
,
components
:
{
UploadExcelComponent
},
props
:{
env
:{
baseUrl
:{
type
:
String
,
default
:
'
prod_sz
'
}
...
...
@@ -49,20 +48,14 @@ export default {
}
},
computed
:
{
...
mapGetters
(
'
user/
'
,
[
'
wadeUserID
'
]),
baseUrl
(){
console
.
log
(
'
config
'
,
config
,
this
.
env
)
return
config
[
this
.
env
].
VUE_APP_GRAPHAPI_URL
}
...
mapGetters
(
'
user/
'
,
[
'
wadeUserID
'
])
},
methods
:
{
beforeUpload
(
file
)
{
const
isLt1M
=
file
.
size
/
1024
/
1024
<
1
if
(
isLt1M
)
{
return
true
}
this
.
$message
({
message
:
'
Please do not upload files larger than 1m in size.
'
,
type
:
'
warning
'
...
...
@@ -98,7 +91,6 @@ export default {
})
return
}
console
.
log
(
rest
.
data
.
wade_user_id
)
const
params
=
{
customer_id
:
'
0BE8F97E-320D-49D7-A13B-E4E5EF4738ED
'
,
// 華星
case_level
:
item
[
level
.
name
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment