Commit 6fd91f9e by zhouzy

01

1 parent 92482a52
......@@ -10,9 +10,10 @@
"dependencies": {
"axios": "^0.21.4",
"core-js": "^3.4.4",
"cors": "^2.8.5",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.0",
"glsx-common": "^1.4.2",
"glsx-components": "^1.0.4",
"glsx-vue-components": "^1.0.15",
"jquery": "^3.6.0",
......
......@@ -25,8 +25,8 @@ VueRouter.prototype.push = function push(location) {
// }
function getRoutes(routesData) {
return routesData.reduce((routes, route) => {
routes.push({ ...route, component: () => import('@/views' + route.path + '.vue') })
return routes
routes.push({ ...route, component: () => import('@/views' + route.compath + '.vue') })
return routes
}, [])
}
export { VueRouter, routes, getRoutes }
......@@ -15,7 +15,7 @@ const render = (base, routes) => {
const router = new VueRouter({
base,
routes,
mode: 'history'
// mode: 'history'
})
const vm = new Vue({
router,
......
......@@ -11,9 +11,9 @@
<el-button type="text" @click="carsDisplay(scope.scope)">{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}</el-button>
</div>
<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" @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="editEquity(scope.scope, 1)">编辑</el-button>
<el-button type="text" class="tableBtn" @click="updateShelves(scope.scope, 'car')">{{ scope.scope.status == 0 ? '上架' : '下架' }}</el-button>
<el-button type="text" class="tableBtn" @click="setTop(scope.scope.id, 'car')">置顶</el-button>
</span>
</d2-table>
</div>
......@@ -210,9 +210,13 @@ export default {
.opacity {
opacity: 0.5;
}
.el-button {
/* .el-button {
padding: 12px 0px;
font-size: 14px;
border-radius: 4px;
width: 40px;
} */
.tableBtn{
width: 40px;
}
</style>
\ No newline at end of file
......@@ -277,6 +277,7 @@
controls-position="right"
size="mini"
:min="1"
:max="9999.99"
></el-input-number>元
</el-form-item>
</div>
......@@ -472,7 +473,11 @@ export default {
label: '售价',
prop: 'price',
formatter: (cellValue) => {
return cellValue.price + '元'
if (cellValue.price == null) {
return '39.9' + '元'
} else {
return cellValue.price + '元'
}
}
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!