程志平 hace 3 años
padre
commit
17f95b5b0b

+ 1 - 1
.env.production

@@ -2,5 +2,5 @@
 ENV = 'production'
 
 # base api
-VUE_APP_BASE_API = ''
+VUE_APP_BASE_API = 'host:port/'
 

+ 1 - 1
src/router/index.js

@@ -156,7 +156,7 @@ export const constantRoutes = [{
 ]
 
 const createRouter = () => new Router({
-	// mode: 'history', // require service support
+	mode: 'hash', // require service support
 	scrollBehavior: () => ({
 		y: 0
 	}),

+ 3 - 3
src/views/consumptionRecord/index.vue

@@ -49,7 +49,7 @@
 									<span>{{ scope.row.user_name }}</span>
 								</template>
 							</el-table-column>
-							<el-table-column label="手机" align="center" width="120">
+							<el-table-column label="手机" align="center" width="140">
 								<template slot-scope="scope">
 									<span>{{ scope.row.phone }}</span>
 								</template>
@@ -64,7 +64,7 @@
 									<span>{{ scope.row.floors }}</span>
 								</template>
 							</el-table-column>
-							<el-table-column label="房间号" align="center" width="90">
+							<el-table-column label="房间号" align="center" width="100">
 								<template slot-scope="scope">
 									<span>{{ scope.row.dom }}</span>
 								</template>
@@ -151,8 +151,8 @@
 				tableData: [],
 				// 分页参数
 				pagination: {
-					pageSize: 8,
 					currentPage: 1,
+					pageSize: 9,
 					total: 0
 				}
 			}

+ 1 - 1
src/views/rechargeRecord/index.vue

@@ -136,8 +136,8 @@
 				tableData: [],
 				// 分页参数
 				pagination: {
-					pageSize: 8,
 					currentPage: 1,
+					pageSize: 9,
 					total: 0
 				}
 			}

+ 4 - 4
src/views/serveAC/index.vue

@@ -88,7 +88,7 @@
 													<span>{{ scope.row.name }}</span>
 												</template>
 											</el-table-column>
-											<el-table-column label="IP" align="center" width="130">
+											<el-table-column label="ID" align="center" width="130">
 												<template slot-scope="scope">
 													<span>{{ scope.row.ip }}</span>
 												</template>
@@ -162,7 +162,7 @@
 													<span>{{ scope.row.name }}</span>
 												</template>
 											</el-table-column>
-											<el-table-column label="IP" align="center" width="130">
+											<el-table-column label="ID" align="center" width="130">
 												<template slot-scope="scope">
 													<span>{{ scope.row.ip }}</span>
 												</template>
@@ -238,7 +238,7 @@
 													<span>{{ scope.row.name }}</span>
 												</template>
 											</el-table-column>
-											<el-table-column label="IP" align="center" width="130">
+											<el-table-column label="ID" align="center" width="130">
 												<template slot-scope="scope">
 													<span>{{ scope.row.ip }}</span>
 												</template>
@@ -312,7 +312,7 @@
 													<span>{{ scope.row.name }}</span>
 												</template>
 											</el-table-column>
-											<el-table-column label="IP" align="center" width="130">
+											<el-table-column label="ID" align="center" width="130">
 												<template slot-scope="scope">
 													<span>{{ scope.row.ip }}</span>
 												</template>

+ 1 - 1
vue.config.js

@@ -24,7 +24,7 @@ module.exports = {
 	 * In most cases please use '/' !!!
 	 * Detail: https://cli.vuejs.org/config/#publicpath
 	 */
-	publicPath: '/',
+	publicPath: './',
 	outputDir: 'dist',
 	assetsDir: 'static',
 	lintOnSave: process.env.NODE_ENV === 'development',