Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-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 0be0d418
authored
Jul 25, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建v2.8.0改UI规范
1 parent
e0284cc7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
84 additions
and
42 deletions
package-lock.json
package.json
src/assets/css/public.scss
src/plugins/element.js
src/setup/qiankun.js
src/views/goods/index.vue
vue.config.js
package-lock.json
View file @
0be0d41
This diff could not be displayed because it is too large.
package.json
View file @
0be0d41
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"el-tree-transfer"
:
"^2.4.7"
,
"el-tree-transfer"
:
"^2.4.7"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^1.4.9"
,
"glsx-common"
:
"^1.4.9"
,
"glsx-components"
:
"^1.
3
.7"
,
"glsx-components"
:
"^1.
4
.7"
,
"glsx-vue-components"
:
"^1.0.15"
,
"glsx-vue-components"
:
"^1.0.15"
,
"jquery"
:
"^3.6.0"
,
"jquery"
:
"^3.6.0"
,
"vue"
:
"^2.6.14"
,
"vue"
:
"^2.6.14"
,
...
...
src/assets/css/public.scss
View file @
0be0d41
.equity-wrap
.contain
{
.equity-wrap
.contain
{
background
:
#FFFFFF
;
background
:
#FFFFFF
;
margin
:
0
0
20px
0
;
//
margin: 0 0 20px 0;
padding
:
20px
;
padding
:
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
//
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
}
.equity-wrap
.contain
.el-table__empty-text
{
.equity-wrap
.contain
.el-table__empty-text
{
display
:
inline-block
;
display
:
inline-block
;
...
@@ -128,6 +128,25 @@
...
@@ -128,6 +128,25 @@
margin
:
0
0
30px
0
;
margin
:
0
0
30px
0
;
padding-left
:
8px
;
padding-left
:
8px
;
}
}
.find_wrap
{
background
:
#ffffff
;
padding
:
20px
15px
;
// padding: 20px 20px 0px 20px;
}
.tableTopButton
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
margin-bottom
:
10px
;
margin-right
:
2px
;
}
.pannel
{
padding
:
0
15px
;
}
.table_wrap
{
padding
:
0
15px
;
padding-bottom
:
10px
;
}
// .equity-wrap table {
// .equity-wrap table {
// width: 98%;
// width: 98%;
...
...
src/plugins/element.js
View file @
0be0d41
import
VueQuillEditor
from
'vue-quill-editor'
import
'@/components'
import
VueBus
from
'vue-bus'
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
Message
,
Button
,
ButtonGroup
,
Form
,
FormItem
,
Input
,
Radio
,
RadioGroup
,
Checkbox
,
CheckboxGroup
,
Switch
,
Select
,
Option
,
TimePicker
,
Col
,
DatePicker
,
Tree
,
Dialog
,
Tabs
,
TabPane
,
Table
,
TableColumn
,
Pagination
,
RadioButton
,
Upload
,
Image
,
Loading
,
InputNumber
}
from
'element-ui'
import
{
Message
,
Button
,
ButtonGroup
,
Form
,
FormItem
,
Input
,
Radio
,
RadioGroup
,
Checkbox
,
CheckboxGroup
,
Switch
,
Select
,
Option
,
TimePicker
,
Col
,
DatePicker
,
Tree
,
Card
,
Table
,
TableColumn
,
Pagination
,
Loading
,
Dialog
,
MessageBox
,
Upload
,
Tooltip
,
Tabs
,
TabPane
,
Container
,
Progress
,
Timeline
,
TimelineItem
,
Dropdown
,
DropdownMenu
,
Rate
,
Image
,
Drawer
,
Popover
,
Row
}
from
'element-ui'
import
{
GLButton
,
GLTable
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
Vue
.
use
(
Button
)
// Vue.use(Button)
Vue
.
use
(
ButtonGroup
)
// Vue.use(ButtonGroup)
Vue
.
use
(
Form
)
// Vue.use(Form)
Vue
.
use
(
FormItem
)
// Vue.use(FormItem)
Vue
.
use
(
Input
)
// Vue.use(Input)
Vue
.
use
(
Radio
)
// Vue.use(Radio)
Vue
.
use
(
RadioGroup
)
// Vue.use(RadioGroup)
Vue
.
use
(
Checkbox
)
// Vue.use(Checkbox)
Vue
.
use
(
CheckboxGroup
)
// Vue.use(CheckboxGroup)
Vue
.
use
(
Switch
)
// Vue.use(Switch)
Vue
.
use
(
Select
)
// Vue.use(Select)
Vue
.
use
(
Option
)
// Vue.use(Option)
Vue
.
use
(
TimePicker
)
// Vue.use(TimePicker)
Vue
.
use
(
Col
)
// Vue.use(Col)
Vue
.
use
(
DatePicker
)
// Vue.use(DatePicker)
Vue
.
use
(
Tree
)
// Vue.use(Dialog)
Vue
.
use
(
Card
)
// Vue.use(Tabs)
Vue
.
use
(
Table
)
// Vue.use(TabPane)
Vue
.
use
(
TableColumn
)
// Vue.use(Table)
Vue
.
use
(
Pagination
)
// Vue.use(TableColumn)
Vue
.
use
(
Loading
)
// Vue.use(Pagination)
Vue
.
use
(
Dialog
)
// Vue.use(RadioButton)
Vue
.
use
(
Upload
)
// Vue.use(Upload)
Vue
.
use
(
Tooltip
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
Tabs
)
Vue
.
use
(
VueQuillEditor
)
Vue
.
use
(
TabPane
)
Vue
.
use
(
VueBus
)
Vue
.
use
(
Progress
)
// Vue.use(Image)
Vue
.
use
(
Timeline
)
// Vue.use(Loading)
Vue
.
use
(
TimelineItem
)
// Vue.use(InputNumber)
Vue
.
use
(
Dropdown
)
import
ElementUI
from
'element-ui'
Vue
.
use
(
DropdownMenu
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
Rate
)
Vue
.
use
(
Image
)
Vue
.
use
(
Drawer
)
Vue
.
use
(
Popover
)
Vue
.
use
(
Row
)
export
const
message
=
Message
export
const
message
=
Message
export
const
messageBox
=
MessageBox
\ No newline at end of file
\ No newline at end of file
src/setup/qiankun.js
View file @
0be0d41
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
message
}
from
'@/plugins/element.js'
import
ElementUI
from
'element-ui'
import
{
message
,
messageBox
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
{
GLButton
,
GLTable
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLButton
,
GLTable
,
GLCombiForm
,
GLTableButton
,
GLDialog
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
import
render
from
'./render'
import
'glsx-components/dist/glsx-components.css'
import
'glsx-components/dist/glsx-components.css'
let
routes
=
[]
let
routes
=
[]
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
Vue
.
use
(
GLTable
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLDialog
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
let
newrequest
=
Object
.
assign
({},
request
)
let
newrequest
=
Object
.
assign
({},
request
)
newrequest
.
baseURL
=
juedeDomain
(
request
.
baseURL
)
newrequest
.
baseURL
=
juedeDomain
(
request
.
baseURL
)
...
@@ -16,6 +24,8 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
...
@@ -16,6 +24,8 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$new_http
=
new
common
.
Http
({
response
,
request
:
newrequest
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$new_http
=
new
common
.
Http
({
response
,
request
:
newrequest
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
...
...
src/views/goods/index.vue
View file @
0be0d41
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
0be0d41
...
@@ -4,6 +4,12 @@ const node_env = process.env.NODE_ENV === 'production'
...
@@ -4,6 +4,12 @@ const node_env = process.env.NODE_ENV === 'production'
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
// const baseUrl = process.env.VUE_APP_BASE_URL;
// const baseUrl = process.env.VUE_APP_BASE_URL;
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
cdn
=
{
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
// css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.13.0/theme-chalk/index.css`],
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
}
module
.
exports
=
{
module
.
exports
=
{
outputDir
:
`dist`
,
outputDir
:
`dist`
,
publicPath
,
publicPath
,
...
@@ -34,6 +40,11 @@ module.exports = {
...
@@ -34,6 +40,11 @@ module.exports = {
}
}
},
},
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
config
.
plugin
(
'html'
).
tap
(
args
=>
{
// args[0].minify.removeComments = false;
args
[
0
].
cdn
=
cdn
return
args
})
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
config
.
resolve
.
alias
config
.
resolve
.
alias
...
...
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