Commit 6fd91f9e by zhouzy

01

1 parent 92482a52
...@@ -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",
......
...@@ -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.compath + '.vue') })
return routes return routes
}, []) }, [])
} }
export { VueRouter, routes, getRoutes } export { VueRouter, routes, getRoutes }
...@@ -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,
......
...@@ -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
...@@ -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,8 +473,12 @@ export default { ...@@ -472,8 +473,12 @@ export default {
label: '售价', label: '售价',
prop: 'price', prop: 'price',
formatter: (cellValue) => { formatter: (cellValue) => {
if (cellValue.price == null) {
return '39.9' + '元'
} else {
return cellValue.price + '元' return cellValue.price + '元'
} }
}
}, },
{ {
label: '领卡用户', label: '领卡用户',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!