Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
dcxy-manage-shell
Commits
70f859f6
Commit
70f859f6
authored
Mar 27, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改服务类型获取
parent
3b4d2c11
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
97 additions
and
8 deletions
+97
-8
.env
.env
+1
-0
package.json
package.json
+1
-1
develop.html
public/develop.html
+39
-0
index.html
public/index.html
+5
-0
ServiceTypeSelect.vue
src/components/input/ServiceTypeSelect/ServiceTypeSelect.vue
+2
-2
serviceTypeStore.js
src/components/input/ServiceTypeSelect/serviceTypeStore.js
+7
-3
develop.js
src/develop.js
+31
-0
main.js
src/main.js
+2
-2
vue.config.js
vue.config.js
+9
-0
No files found.
.env
View file @
70f859f6
VUE_APP_BASE_URL=/systemManageShell/
VUE_APP_BASE_URL=/systemManageShell/
VUE_APP_LIB_BASE_URL=/systemManageShell/
VUE_APP_CUSTOMER_MENU_CODE=0001
VUE_APP_CUSTOMER_MENU_CODE=0001
VUE_APP_BASE_MENU_CODE=0002
VUE_APP_BASE_MENU_CODE=0002
VUE_APP_SYSTEM_MENU_CODE=0003
VUE_APP_SYSTEM_MENU_CODE=0003
...
...
package.json
View file @
70f859f6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"author"
:
"kuangshu <252019869@qq.com>"
,
"author"
:
"kuangshu <252019869@qq.com>"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vue-cli-service serve --port 8891"
,
"dev"
:
"vue-cli-service serve
./src/develop.js
--port 8891"
,
"start"
:
"npm run dev"
,
"start"
:
"npm run dev"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"build"
:
"vue-cli-service build --modern"
,
"build"
:
"vue-cli-service build --modern"
,
...
...
public/develop.html
0 → 100644
View file @
70f859f6
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
/>
<script
src=
"https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vuex@3.1.0/dist/vuex.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vue-router@3.0.1/dist/vue-router.js"
></script>
<link
rel=
"stylesheet"
href=
"<%= VUE_APP_LIB_MANAGER %>/customerManage/lib/customerManage.css"
/>
<link
rel=
"stylesheet"
href=
"<%= VUE_APP_LIB_MANAGER %>/baseManage/lib/baseManage.css"
/>
<link
rel=
"stylesheet"
href=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.css"
/>
<title>
系统管理
</title>
</head>
<body>
<noscript>
<strong
>
We're sorry but hello-world doesn't work properly without JavaScript
enabled. Please enable it to continue.
</strong
>
</noscript>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/customerManage/lib/customerManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/baseManage/lib/baseManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.umd.js"
></script>
</html>
public/index.html
View file @
70f859f6
...
@@ -8,6 +8,11 @@
...
@@ -8,6 +8,11 @@
<script
src=
"https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vuex@3.1.0/dist/vuex.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vuex@3.1.0/dist/vuex.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vue-router@3.0.1/dist/vue-router.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/vue-router@3.0.1/dist/vue-router.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %><%= VUE_APP_LIB_BASE_URL %>lib/manageShell.umd.js"
></script>
<link
rel=
"stylesheet"
href=
"<%= VUE_APP_LIB_MANAGER %><%= VUE_APP_LIB_BASE_URL %>lib/manageShell.css"
/>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/customerManage/lib/customerManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/customerManage/lib/customerManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/baseManage/lib/baseManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/baseManage/lib/baseManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.umd.js"
></script>
<script
src=
"<%= VUE_APP_LIB_MANAGER %>/systemManage/lib/systemManage.umd.js"
></script>
...
...
src/components/input/ServiceTypeSelect/ServiceTypeSelect.vue
View file @
70f859f6
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<el-option
<el-option
v-for=
"(item, index) in serviceTypeLists[ServiceType]"
v-for=
"(item, index) in serviceTypeLists[ServiceType]"
:key=
"index"
:key=
"index"
:value=
"item.
id
"
:value=
"item.
value
"
:label=
"item.
serviceN
ame"
:label=
"item.
n
ame"
></el-option>
></el-option>
</el-select>
</el-select>
</
template
>
</
template
>
...
...
src/components/input/ServiceTypeSelect/serviceTypeStore.js
View file @
70f859f6
...
@@ -27,15 +27,19 @@ const actions = {
...
@@ -27,15 +27,19 @@ const actions = {
return
fetchServiceList
({
return
fetchServiceList
({
params
:
{
serviceType
},
params
:
{
serviceType
},
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
{
selfService
}
=
res
;
console
.
log
(
res
);
commit
(
SERVICE_TYPE_LIST
,
{
list
:
selfService
,
index
:
serviceType
});
commit
(
FETCH_STATE
,
false
);
const
{
data
}
=
res
;
commit
(
SERVICE_TYPE_LIST
,
{
list
:
data
,
index
:
serviceType
});
commit
(
FETCH_STATE
,
{
value
:
false
,
index
:
serviceType
});
});
});
},
},
};
};
const
mutations
=
{
const
mutations
=
{
[
SERVICE_TYPE_LIST
](
state
,
{
list
,
index
})
{
[
SERVICE_TYPE_LIST
](
state
,
{
list
,
index
})
{
console
.
log
(
index
,
list
);
state
.
lists
[
index
]
=
list
;
state
.
lists
[
index
]
=
list
;
},
},
[
FETCH_STATE
](
state
,
{
value
,
index
})
{
[
FETCH_STATE
](
state
,
{
value
,
index
})
{
...
...
src/develop.js
0 → 100644
View file @
70f859f6
import
System
from
'./lib/main'
;
window
.
manageShell
=
{
default
:
System
};
setTimeout
(()
=>
{
let
allAasyncRouterMap
=
[
...
customerManage
.
default
,
...
baseManage
.
default
,
...
systemManage
.
default
,
];
System
.
createSystem
({
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
routers
:
allAasyncRouterMap
,
routeFilter
:
(
routes
,
allRoute
)
=>
{
if
(
allRoute
&&
allRoute
.
length
)
{
let
addRoute
=
System
.
utils
.
route
.
formatRouteLink
(
allRoute
);
for
(
let
index
=
0
;
index
<
addRoute
.
length
;
index
++
)
{
const
element
=
addRoute
[
index
];
if
(
element
.
children
)
{
routes
=
routes
.
concat
(
element
.
children
);
}
}
}
return
{
allRoute
,
routes
,
};
},
});
},
1000
);
src/main.js
View file @
70f859f6
import
System
from
'./lib/main'
;
let
allAasyncRouterMap
=
[
let
allAasyncRouterMap
=
[
...
customerManage
.
default
,
...
customerManage
.
default
,
...
baseManage
.
default
,
...
baseManage
.
default
,
...
systemManage
.
default
,
...
systemManage
.
default
,
];
];
const
System
=
manageShell
.
default
;
System
.
createSystem
({
System
.
createSystem
({
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
routers
:
allAasyncRouterMap
,
routers
:
allAasyncRouterMap
,
...
...
vue.config.js
View file @
70f859f6
...
@@ -8,6 +8,7 @@ let isLib = (() => {
...
@@ -8,6 +8,7 @@ let isLib = (() => {
return
false
;
return
false
;
}
}
})();
})();
console
.
log
(
process
.
env
.
NODE_ENV
==
'development'
);
module
.
exports
=
{
module
.
exports
=
{
publicPath
:
process
.
env
.
VUE_APP_BASE_URL
,
publicPath
:
process
.
env
.
VUE_APP_BASE_URL
,
...
@@ -21,4 +22,12 @@ module.exports = {
...
@@ -21,4 +22,12 @@ module.exports = {
},
},
],
],
},
},
chainWebpack
:
config
=>
{
config
.
plugin
(
'html'
).
tap
(
args
=>
{
if
(
process
.
env
.
NODE_ENV
==
'development'
)
{
args
[
0
].
template
=
Path
.
join
(
'public'
,
'develop.html'
);
}
return
args
;
});
},
};
};
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