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 6fd91f9e
authored
Oct 14, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
01
1 parent
92482a52
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
9 deletions
package.json
src/router/index.js
src/setup/render.js
src/views/list/index.vue
src/views/rightsCard/index.vue
package.json
View file @
6fd91f9
...
@@ -10,9 +10,10 @@
...
@@ -10,9 +10,10 @@
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.21.4"
,
"axios"
:
"^0.21.4"
,
"core-js"
:
"^3.4.4"
,
"core-js"
:
"^3.4.4"
,
"cors"
:
"^2.8.5"
,
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^1.4.
0
"
,
"glsx-common"
:
"^1.4.
2
"
,
"glsx-components"
:
"^1.0.4"
,
"glsx-components"
:
"^1.0.4"
,
"glsx-vue-components"
:
"^1.0.15"
,
"glsx-vue-components"
:
"^1.0.15"
,
"jquery"
:
"^3.6.0"
,
"jquery"
:
"^3.6.0"
,
...
...
src/router/index.js
View file @
6fd91f9
...
@@ -25,8 +25,8 @@ VueRouter.prototype.push = function push(location) {
...
@@ -25,8 +25,8 @@ VueRouter.prototype.push = function push(location) {
// }
// }
function
getRoutes
(
routesData
)
{
function
getRoutes
(
routesData
)
{
return
routesData
.
reduce
((
routes
,
route
)
=>
{
return
routesData
.
reduce
((
routes
,
route
)
=>
{
routes
.
push
({
...
route
,
component
:
()
=>
import
(
'@/views'
+
route
.
path
+
'.vue'
)
})
routes
.
push
({
...
route
,
component
:
()
=>
import
(
'@/views'
+
route
.
com
path
+
'.vue'
)
})
return
routes
return
routes
},
[])
},
[])
}
}
export
{
VueRouter
,
routes
,
getRoutes
}
export
{
VueRouter
,
routes
,
getRoutes
}
src/setup/render.js
View file @
6fd91f9
...
@@ -15,7 +15,7 @@ const render = (base, routes) => {
...
@@ -15,7 +15,7 @@ const render = (base, routes) => {
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
base
,
base
,
routes
,
routes
,
mode
:
'history'
//
mode: 'history'
})
})
const
vm
=
new
Vue
({
const
vm
=
new
Vue
({
router
,
router
,
...
...
src/views/list/index.vue
View file @
6fd91f9
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
<el-button
type=
"text"
@
click=
"carsDisplay(scope.scope)"
>
{{
scope
.
scope
.
mainPageFlag
==
1
?
'取消首页展示'
:
'首页展示'
}}
</el-button>
<el-button
type=
"text"
@
click=
"carsDisplay(scope.scope)"
>
{{
scope
.
scope
.
mainPageFlag
==
1
?
'取消首页展示'
:
'首页展示'
}}
</el-button>
</div>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"editEquity(scope.scope, 1)"
>
编辑
</el-button>
<el-button
type=
"text"
class=
"tableBtn"
@
click=
"editEquity(scope.scope, 1)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"updateShelves(scope.scope, 'car')"
>
{{
scope
.
scope
.
status
==
0
?
'上架'
:
'下架'
}}
</el-button>
<el-button
type=
"text"
class=
"tableBtn"
@
click=
"updateShelves(scope.scope, 'car')"
>
{{
scope
.
scope
.
status
==
0
?
'上架'
:
'下架'
}}
</el-button>
<el-button
type=
"text"
@
click=
"setTop(scope.scope.id, 'car')"
>
置顶
</el-button>
<el-button
type=
"text"
class=
"tableBtn"
@
click=
"setTop(scope.scope.id, 'car')"
>
置顶
</el-button>
</span>
</span>
</d2-table>
</d2-table>
</div>
</div>
...
@@ -210,9 +210,13 @@ export default {
...
@@ -210,9 +210,13 @@ export default {
.opacity
{
.opacity
{
opacity
:
0.5
;
opacity
:
0.5
;
}
}
.el-button
{
/*
.el-button {
padding: 12px 0px;
padding: 12px 0px;
font-size: 14px;
font-size: 14px;
border-radius: 4px;
border-radius: 4px;
width: 40px;
} */
.tableBtn
{
width
:
40px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/rightsCard/index.vue
View file @
6fd91f9
...
@@ -277,6 +277,7 @@
...
@@ -277,6 +277,7 @@
controls-position=
"right"
controls-position=
"right"
size=
"mini"
size=
"mini"
:min=
"1"
:min=
"1"
:max=
"9999.99"
></el-input-number>
元
></el-input-number>
元
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -472,7 +473,11 @@ export default {
...
@@ -472,7 +473,11 @@ export default {
label
:
'售价'
,
label
:
'售价'
,
prop
:
'price'
,
prop
:
'price'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
price
+
'元'
if
(
cellValue
.
price
==
null
)
{
return
'39.9'
+
'元'
}
else
{
return
cellValue
.
price
+
'元'
}
}
}
},
},
{
{
...
...
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