Kaynağa Gözat

基本完成

soft5566 2 yıl önce
ebeveyn
işleme
f9e2b4f7bd

+ 2 - 2
.env.development

@@ -2,10 +2,10 @@
 ENV = 'development'
 ENV = 'development'
 
 
 # base api
 # base api
-VUE_APP_BASE_API = ''
+VUE_APP_BASE_API = '/api'
 # VUE_APP_BASE_API = 'https://www.靖安人家.com/hotelReservation/mhotel'
 # VUE_APP_BASE_API = 'https://www.靖安人家.com/hotelReservation/mhotel'
 # VUE_APP_BASE_API = 'https://chtech.ncjti.edu.cn/hotelReservation/mhotel'
 # VUE_APP_BASE_API = 'https://chtech.ncjti.edu.cn/hotelReservation/mhotel'
 
 
 
 
-VUE_APP_BASE_FILE = ''
+VUE_APP_BASE_FILE = '/api'
 # VUE_APP_BASE_FILE = 'https://chtech.ncjti.edu.cn/hotelReservation/fileload'
 # VUE_APP_BASE_FILE = 'https://chtech.ncjti.edu.cn/hotelReservation/fileload'

+ 2 - 2
.env.production

@@ -2,9 +2,9 @@
 ENV = 'production'
 ENV = 'production'
 
 
 # base api
 # base api
-VUE_APP_BASE_API = 'https://www.靖安人家.com/hotelReservation/mhotel'
+VUE_APP_BASE_API = 'https://www.靖安人家.com/hotelReservation'
 # VUE_APP_BASE_API = 'https://chtech.ncjti.edu.cn/hotelReservation/mhotel'
 # VUE_APP_BASE_API = 'https://chtech.ncjti.edu.cn/hotelReservation/mhotel'
 
 
 
 
-VUE_APP_BASE_FILE = 'https://www.靖安人家.com/hotelReservation/mhotel'
+VUE_APP_BASE_FILE = 'https://www.靖安人家.com/hotelReservation'
 # VUE_APP_BASE_FILE = 'https://chtech.ncjti.edu.cn/hotelReservation/fileload'
 # VUE_APP_BASE_FILE = 'https://chtech.ncjti.edu.cn/hotelReservation/fileload'

+ 4 - 0
package.json

@@ -16,7 +16,9 @@
 		"test:ci": "npm run lint && npm run test:unit"
 		"test:ci": "npm run lint && npm run test:unit"
 	},
 	},
 	"dependencies": {
 	"dependencies": {
+		"@tinymce/tinymce-vue": "^3.2.8",
 		"axios": "0.18.1",
 		"axios": "0.18.1",
+		"ckeditor-vue": "^1.0.1",
 		"core-js": "3.6.5",
 		"core-js": "3.6.5",
 		"echarts": "^5.4.3",
 		"echarts": "^5.4.3",
 		"element-ui": "2.13.2",
 		"element-ui": "2.13.2",
@@ -24,9 +26,11 @@
 		"normalize.css": "7.0.0",
 		"normalize.css": "7.0.0",
 		"nprogress": "0.2.0",
 		"nprogress": "0.2.0",
 		"path-to-regexp": "2.4.0",
 		"path-to-regexp": "2.4.0",
+		"tinymce-vue": "^1.0.0",
 		"v-viewer": "^1.6.4",
 		"v-viewer": "^1.6.4",
 		"vue": "2.6.10",
 		"vue": "2.6.10",
 		"vue-baidu-map": "^0.21.22",
 		"vue-baidu-map": "^0.21.22",
+		"vue-quill-editor": "^3.0.6",
 		"vue-router": "3.0.6",
 		"vue-router": "3.0.6",
 		"vue-video-player": "^5.0.1",
 		"vue-video-player": "^5.0.1",
 		"vuex": "3.1.0"
 		"vuex": "3.1.0"

+ 5 - 5
src/api/accountMgr.js

@@ -9,7 +9,7 @@ export function getTableData(forData) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/adminqueryPage.action' + query,
+		url: '/mhotel/adminqueryPage.action' + query,
 		method: 'get'
 		method: 'get'
 	});
 	});
 };
 };
@@ -26,7 +26,7 @@ export function addAccount(param) {
 	data.append('adminPower', '1,2,3');
 	data.append('adminPower', '1,2,3');
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/admininsertAdmin.action',
+		url: '/mhotel/admininsertAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -45,7 +45,7 @@ export function modifyAccount(param) {
 	data.append('adminPower', '1,2,3');
 	data.append('adminPower', '1,2,3');
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/adminupdateAdmin.action',
+		url: '/mhotel/adminupdateAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -57,7 +57,7 @@ export function deleteAccount(param) {
 	data.append('id', param);
 	data.append('id', param);
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/admindelAdmin.action',
+		url: '/mhotel/admindelAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -69,7 +69,7 @@ export function resetAccountPassword(param) {
 	data.append('id', param);
 	data.append('id', param);
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/adminremovePwd.action',
+		url: '/mhotel/adminremovePwd.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});

+ 1 - 1
src/api/audited.js

@@ -5,7 +5,7 @@ export function getTableData(param) {
 	var pg = '?page=' + param.currentPage + '&pageSize=' + param.pageSize
 	var pg = '?page=' + param.currentPage + '&pageSize=' + param.pageSize
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/workflowqueryApprovedWorkflow.action' + pg,
+		url: '/mhotel/workflowqueryApprovedWorkflow.action' + pg,
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }

+ 3 - 3
src/api/complaintMgr.js

@@ -17,7 +17,7 @@ export function getTableData(forData) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/ComplainqueryPage.action' + data,
+		url: '/mhotel/ComplainqueryPage.action' + data,
 		method: 'get',
 		method: 'get',
 		data
 		data
 	})
 	})
@@ -28,7 +28,7 @@ export function getXiang(row) {
 	let query = '?id=' + row.id
 	let query = '?id=' + row.id
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/ComplaingetById.action' + query,
+		url: '/mhotel/ComplaingetById.action' + query,
 		method: 'get'
 		method: 'get'
 	});
 	});
 };
 };
@@ -50,7 +50,7 @@ export function downloadExcel(forData) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/ComplaintoComplainExcel.action',
+		url: '/mhotel/ComplaintoComplainExcel.action',
 		method: 'get',
 		method: 'get',
 		data
 		data
 	})
 	})

+ 7 - 7
src/api/data.js

@@ -3,7 +3,7 @@ import request from '@/utils/request'
 // 获取订单数据 订单状态占比
 // 获取订单数据 订单状态占比
 export function getOrderData() {
 export function getOrderData() {
 	return request({
 	return request({
-		url: '/api/mhotel/idcgetBookStatusData.action',
+		url: '/mhotel/idcgetBookStatusData.action',
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }
@@ -11,7 +11,7 @@ export function getOrderData() {
 // 查询各县民宿数量 民宿统计
 // 查询各县民宿数量 民宿统计
 export function getHomestayStatistics() {
 export function getHomestayStatistics() {
 	return request({
 	return request({
-		url: '/api/mhotel/idcgetHotelData.action',
+		url: '/mhotel/idcgetHotelData.action',
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }
@@ -19,7 +19,7 @@ export function getHomestayStatistics() {
 // 订单量排行
 // 订单量排行
 export function getOrderVolumeRanking(param) {
 export function getOrderVolumeRanking(param) {
 	return request({
 	return request({
-		url: '/api/mhotel/idcgetRankBookNumData.action?type=' + param,
+		url: '/mhotel/idcgetRankBookNumData.action?type=' + param,
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }
@@ -27,7 +27,7 @@ export function getOrderVolumeRanking(param) {
 // 查询销售额排行
 // 查询销售额排行
 export function getQuerySalesRankings(param) {
 export function getQuerySalesRankings(param) {
 	return request({
 	return request({
-		url: '/api/mhotel/idcgetRankSalesAmountData.action?type=' + param,
+		url: '/mhotel/idcgetRankSalesAmountData.action?type=' + param,
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }
@@ -35,7 +35,7 @@ export function getQuerySalesRankings(param) {
 // 查询经营概况
 // 查询经营概况
 export function getManagementProfile() {
 export function getManagementProfile() {
 	return request({
 	return request({
-		url: '/api/mhotel/idcgetSumData.action',
+		url: '/mhotel/idcgetSumData.action',
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }
@@ -43,7 +43,7 @@ export function getManagementProfile() {
 // 今日访问量
 // 今日访问量
 export function getIdcvisitsToday() {
 export function getIdcvisitsToday() {
 	return request({
 	return request({
-		url: '/api/mhotel/idcvisitsToday.action',
+		url: '/mhotel/idcvisitsToday.action',
 		method: 'post'
 		method: 'post'
 	})
 	})
 }
 }
@@ -58,7 +58,7 @@ export function getIdcvisitsDiyQuery(param) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/idcvisitsDiyQuery.action',
+		url: '/mhotel/idcvisitsDiyQuery.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})

+ 7 - 7
src/api/discountCouponMgr.js

@@ -20,7 +20,7 @@ export function getTableData(forData) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/CoupomqueryPage.action' + data,
+		url: '/mhotel/CoupomqueryPage.action' + data,
 		method: 'get',
 		method: 'get',
 		data
 		data
 	})
 	})
@@ -35,7 +35,7 @@ export function coupomsaveBatchLapse(forData) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/CoupomsaveBatchLapse.action',
+		url: '/mhotel/CoupomsaveBatchLapse.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -70,7 +70,7 @@ export function coupominsterVoucher(forData) {
 	data.append('status', forData.status)
 	data.append('status', forData.status)
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/Coupominster.action',
+		url: '/mhotel/Coupominster.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -106,7 +106,7 @@ export function coupominsterCoupon(forData) {
 	data.append('status', forData.status)
 	data.append('status', forData.status)
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/Coupominster.action',
+		url: '/mhotel/Coupominster.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -142,7 +142,7 @@ export function coupominsterCoupon(forData) {
 // 	data.append('id', forData.id)
 // 	data.append('id', forData.id)
 
 
 // 	return request({
 // 	return request({
-// 		url: '/api/mhotel/Coupomupdate.action',
+// 		url: '/mhotel/Coupomupdate.action',
 // 		method: 'post',
 // 		method: 'post',
 // 		data
 // 		data
 // 	})
 // 	})
@@ -179,7 +179,7 @@ export function coupominsterCoupon(forData) {
 // 	data.append('id', forData.id)
 // 	data.append('id', forData.id)
 
 
 // 	return request({
 // 	return request({
-// 		url: '/api/mhotel/Coupomupdate.action',
+// 		url: '/mhotel/Coupomupdate.action',
 // 		method: 'post',
 // 		method: 'post',
 // 		data
 // 		data
 // 	})
 // 	})
@@ -189,7 +189,7 @@ export function coupominsterCoupon(forData) {
 export function hotelqueryAllHotel() {
 export function hotelqueryAllHotel() {
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hotelqueryListhotel.action',
+		url: '/mhotel/hotelqueryListhotel.action',
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }

+ 2 - 2
src/api/fileInfo.js

@@ -5,7 +5,7 @@ export function getFileList(linkId) {
 	const query = '?linkId=' + linkId
 	const query = '?linkId=' + linkId
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/uploadgetByLinkId.action' + query,
+		url: '/mhotel/uploadgetByLinkId.action' + query,
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }
@@ -16,7 +16,7 @@ export function uploadhimage(forData) {
 	data.append('myFile', forData.file)
 	data.append('myFile', forData.file)
 
 
 	return request2({//https://chtech.ncjti.edu.cn/hotelReservation/fileload
 	return request2({//https://chtech.ncjti.edu.cn/hotelReservation/fileload
-		url: '/api/mhotel/loadhimage.action', 
+		url: '/mhotel/loadhimage.action', 
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})

+ 2 - 2
src/api/myAgent.js

@@ -5,7 +5,7 @@ export function getTableData(param) {
 	var pg = '?page=' + param.currentPage + '&pageSize=' + param.pageSize
 	var pg = '?page=' + param.currentPage + '&pageSize=' + param.pageSize
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/workflowqueryWorkflow.action' + pg,
+		url: '/mhotel/workflowqueryWorkflow.action' + pg,
 		method: 'get'
 		method: 'get'
 	})
 	})
 }
 }
@@ -16,7 +16,7 @@ export function approved(param) {
 
 
 	// ?id=0f8d5f3d-2261-47a2-bc5e-40251cabc55d&type=2&status=2&workflowRemark=同意
 	// ?id=0f8d5f3d-2261-47a2-bc5e-40251cabc55d&type=2&status=2&workflowRemark=同意
 	return request({
 	return request({
-		url: '/api/mhotel/workflowworkflow.action' + qp,
+		url: '/mhotel/workflowworkflow.action' + qp,
 		method: 'post'
 		method: 'post'
 	})
 	})
 }
 }

+ 164 - 17
src/api/perimeterMgr.js

@@ -20,7 +20,7 @@ export function getTableData(forData) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/applistAround.action',
+		url: '/mhotel/applistAround.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -31,47 +31,52 @@ export function getTowns() {
 	let query = '?code=10'
 	let query = '?code=10'
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hotelqueryList.action' + query,
+		url: '/mhotel/hotelqueryList.action' + query,
 		method: 'get'
 		method: 'get'
 	});
 	});
 };
 };
 
 
+// 修改周边
 // 添加周边
 // 添加周边
 export function appinsertArounds(forData) {
 export function appinsertArounds(forData) {
-	let data = new FormData()
+	let data = {}
 	if (typeof forData.rtype !== 'undefined' && forData.rtype !== '') {
 	if (typeof forData.rtype !== 'undefined' && forData.rtype !== '') {
-		data.append('rtype', forData.rtype)
+		data.rtype = forData.rtype
 	}
 	}
 	if (typeof forData.rtown !== 'undefined' && forData.rtown !== '') {
 	if (typeof forData.rtown !== 'undefined' && forData.rtown !== '') {
-		data.append('rtown', forData.rtown)
+		data.rtown = forData.rtown
 	}
 	}
 	if (typeof forData.rname !== 'undefined' && forData.rname !== '') {
 	if (typeof forData.rname !== 'undefined' && forData.rname !== '') {
-		data.append('rname', forData.rname)
+		data.rname = forData.rname
 	}
 	}
 	if (typeof forData.rphone !== 'undefined' && forData.rphone !== '') {
 	if (typeof forData.rphone !== 'undefined' && forData.rphone !== '') {
-		data.append('rphone', forData.rphone)
+		data.rphone = forData.rphone
 	}
 	}
 	if (typeof forData.radress !== 'undefined' && forData.radress !== '') {
 	if (typeof forData.radress !== 'undefined' && forData.radress !== '') {
-		data.append('radress', forData.radress)
+		data.radress = forData.radress
 	}
 	}
 	if (typeof forData.detail !== 'undefined' && forData.detail !== '') {
 	if (typeof forData.detail !== 'undefined' && forData.detail !== '') {
-		data.append('detail', forData.detail)
+		data.detail = forData.detail
 	}
 	}
 	if (typeof forData.first_img !== 'undefined' && forData.first_img !== '') {
 	if (typeof forData.first_img !== 'undefined' && forData.first_img !== '') {
-		data.append('first_img', forData.first_img)
+		data.first_img = forData.first_img
 	}
 	}
-	if (typeof forData.show_video !== 'undefined' && forData.show_video !== '') {
-		data.append('show_video', forData.show_video)
+	if (typeof forData.post_video !== 'undefined' && forData.post_video !== '') {
+		data.show_video = forData.post_video
 	}
 	}
-	if (typeof forData.detail_img !== 'undefined' && forData.detail_img !== '') {
-		data.append('detail_img', forData.detail_img)
+	if (typeof forData.detail_img !== 'undefined' && forData.detail_img !== '' && forData.detail_img.length > 0) {
+		var tmpStr = ''
+		for (var i = 0; i < forData.detail_img.length; i++) {
+			tmpStr += forData.detail_img[i] + ','
+		}
+		data.detail_img = tmpStr.substring(0, tmpStr.length - 1)
 	}
 	}
 	if (typeof forData.jingwei !== 'undefined' && forData.jingwei !== '') {
 	if (typeof forData.jingwei !== 'undefined' && forData.jingwei !== '') {
-		data.append('jingwei', forData.jingwei)
+		data.jingwei = forData.jingwei
 	}
 	}
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/appinsertArounds.action',
+		url: '/mhotel/appinsertArounds.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -85,7 +90,149 @@ export function uploadFiles(file) {
 	}
 	}
 	
 	
 	return request({
 	return request({
-		url: '/api/file/cos/upload',
+		url: '/file/cos/upload',
+		method: 'post',
+		data
+	})
+}
+
+// 修改周边
+export function appupdateArounds(forData) {
+	let data = {}
+	if (typeof forData.id !== 'undefined' && forData.id !== '') {
+		data.id = forData.id
+	}
+	if (typeof forData.rtype !== 'undefined' && forData.rtype !== '') {
+		data.rtype = forData.rtype
+	}
+	if (typeof forData.rtown !== 'undefined' && forData.rtown !== '') {
+		data.rtown = forData.rtown
+	}
+	if (typeof forData.rname !== 'undefined' && forData.rname !== '') {
+		data.rname = forData.rname
+	}
+	if (typeof forData.rphone !== 'undefined' && forData.rphone !== '') {
+		data.rphone = forData.rphone
+	}
+	if (typeof forData.radress !== 'undefined' && forData.radress !== '') {
+		data.radress = forData.radress
+	}
+	if (typeof forData.detail !== 'undefined' && forData.detail !== '') {
+		data.detail = forData.detail
+	}
+	if (typeof forData.first_img !== 'undefined' && forData.first_img !== '') {
+		data.first_img = forData.first_img
+	}
+	if (typeof forData.post_video !== 'undefined' && forData.post_video !== '') {
+		data.show_video = forData.post_video
+	}
+	if (typeof forData.detail_img !== 'undefined' && forData.detail_img !== '' && forData.detail_img.length > 0) {
+		var tmpStr = ''
+		for (var i = 0; i < forData.detail_img.length; i++) {
+			tmpStr += forData.detail_img[i] + ','
+		}
+		data.detail_img = tmpStr.substring(0, tmpStr.length - 1)
+	}
+	if (typeof forData.jingwei !== 'undefined' && forData.jingwei !== '') {
+		data.jingwei = forData.jingwei
+	}
+	
+	return request({
+		url: '/mhotel/appupdateArounds.action',
+		method: 'post',
+		data
+	})
+}
+
+// 获取周边对应的产品
+export function getProductTableData(forData) {
+	let data = new FormData()
+	if (typeof forData.page !== 'undefined') {
+		data.append('page', forData.page)
+	}
+	if (typeof forData.rows !== 'undefined') {
+		data.append('rows', forData.rows)
+	}
+	if (typeof forData.aid !== 'undefined') {
+		data.append('aid', forData.aid)
+	}
+
+	return request({
+		url: '/mhotel/applistAround_pd.action',
+		method: 'post',
+		data
+	})
+}
+
+// 删除周边
+export function appdelAround(forData) {
+	let data = new FormData()
+	if (typeof forData !== 'undefined' && forData != '') {
+		data.append('id', forData)
+	}
+
+	return request({
+		url: '/mhotel/appdelAround.action',
+		method: 'post',
+		data
+	})
+}
+
+// 添加产品
+export function appinsertAroundPd(forData) {
+	let data = {}
+	if (typeof forData.aid !== 'undefined' && forData.aid !== '') {
+		data.aid = forData.aid
+	}
+	if (typeof forData.product_name !== 'undefined' && forData.product_name !== '') {
+		data.product_name = forData.product_name
+	}
+	if (typeof forData.product_desc !== 'undefined' && forData.product_desc !== '') {
+		data.product_desc = forData.product_desc
+	}
+	if (typeof forData.price !== 'undefined' && forData.price !== '') {
+		data.price = forData.price
+	}
+	
+	return request({
+		url: '/mhotel/appinsertAroundPd.action',
+		method: 'post',
+		data
+	})
+}
+
+// 编辑产品
+export function appupdateAround_pd(forData) {
+	let data = {}
+	if (typeof forData.id !== 'undefined' && forData.id !== '') {
+		data.id = forData.id
+	}
+	if (typeof forData.product_name !== 'undefined' && forData.product_name !== '') {
+		data.product_name = forData.product_name
+	}
+	if (typeof forData.product_desc !== 'undefined' && forData.product_desc !== '') {
+		data.product_desc = forData.product_desc
+	}
+	if (typeof forData.price !== 'undefined' && forData.price !== '') {
+		data.price = forData.price
+	}
+	
+	return request({
+		url: '/mhotel/appupdateAround_pd.action',
+		method: 'post',
+		data
+	})
+}
+
+// 删除产品
+export function appdelAround_pd(forData) {
+	let data = new FormData()
+	if (typeof forData !== 'undefined' && forData != '') {
+		data.append('id', forData)
+	}
+
+	return request({
+		url: '/mhotel/appdelAround_pd.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})

+ 14 - 14
src/api/residentialhostelMgr.js

@@ -17,7 +17,7 @@ export function getTableData(forData) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/managerAdminqueryPage.action' + query,
+		url: '/mhotel/managerAdminqueryPage.action' + query,
 		method: 'get'
 		method: 'get'
 	});
 	});
 };
 };
@@ -27,7 +27,7 @@ export function getTowns() {
 	let query = '?code=10'
 	let query = '?code=10'
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hotelqueryList.action' + query,
+		url: '/mhotel/hotelqueryList.action' + query,
 		method: 'get'
 		method: 'get'
 	});
 	});
 };
 };
@@ -50,7 +50,7 @@ export function addHostel(param) {
 	data.append('linkProUrl', param.linkproUrl);
 	data.append('linkProUrl', param.linkproUrl);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/managerAdmininsertAdmin.action',
+		url: '/mhotel/managerAdmininsertAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -75,7 +75,7 @@ export function modifyHostel(param) {
 	data.append('linkProUrl', param.linkProUrl);
 	data.append('linkProUrl', param.linkProUrl);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/managerAdminupdateAdmin.action',
+		url: '/mhotel/managerAdminupdateAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -87,7 +87,7 @@ export function delHostelAccount(param) {
 	data.append('id', param);
 	data.append('id', param);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/managerAdmindelAdmin.action',
+		url: '/mhotel/managerAdmindelAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -99,7 +99,7 @@ export function resetHostelAccountPassword(param) {
 	data.append('id', param);
 	data.append('id', param);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/managerAdminremovePwd.action',
+		url: '/mhotel/managerAdminremovePwd.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -111,7 +111,7 @@ export function frozenHostelAccount(param) {
 	data.append('id', param);
 	data.append('id', param);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/managerAdminfreezeAdmin.action',
+		url: '/mhotel/managerAdminfreezeAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -123,7 +123,7 @@ export function thawHostelAccount(param) {
 	data.append('id', param);
 	data.append('id', param);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/managerAdminthawAdmin.action',
+		url: '/mhotel/managerAdminthawAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -136,7 +136,7 @@ export function listHomestayDictionary(param) {
 	data.append('code', param);
 	data.append('code', param);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hotelqueryList.action',
+		url: '/mhotel/hotelqueryList.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -152,7 +152,7 @@ export function addHomestayDictionary(param) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hotelinsterHotelDict.action',
+		url: '/mhotel/hotelinsterHotelDict.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -169,7 +169,7 @@ export function modifyHomestayDictionary(param) {
 	}
 	}
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hotelupdateHotelDict.action',
+		url: '/mhotel/hotelupdateHotelDict.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -181,7 +181,7 @@ export function delHomestayDictionary(param) {
 	data.append('id', param);
 	data.append('id', param);
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hoteldelHotelDict.action',
+		url: '/mhotel/hoteldelHotelDict.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});
@@ -190,7 +190,7 @@ export function delHomestayDictionary(param) {
 // 获取民宿其他配置
 // 获取民宿其他配置
 export function otherConfig(param) {
 export function otherConfig(param) {
 	return request({
 	return request({
-		url: '/api/mhotel/hotelqueryTakeOrderDict.action',
+		url: '/mhotel/hotelqueryTakeOrderDict.action',
 		method: 'get'
 		method: 'get'
 	});
 	});
 };
 };
@@ -215,7 +215,7 @@ export function modifyOtherConfig(param) {
 	};
 	};
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/hotelupdateTakeOrderDict.action',
+		url: '/mhotel/hotelupdateTakeOrderDict.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	});
 	});

+ 3 - 3
src/api/stdbookMgr.js

@@ -24,7 +24,7 @@ export function getTableData(forData) {
 	}
 	}
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/bookquearyLedgerPage.action',
+		url: '/mhotel/bookquearyLedgerPage.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -36,7 +36,7 @@ export function getTowns() {
 	let query = '?code=10'
 	let query = '?code=10'
 
 
 	return request({
 	return request({
-		url: '/api/mhotel/hotelqueryList.action' + query,
+		url: '/mhotel/hotelqueryList.action' + query,
 		method: 'get'
 		method: 'get'
 	});
 	});
 };
 };
@@ -62,7 +62,7 @@ export function downloadExcel(forData) {
 	}
 	}
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/booktoLedgerAdmimnExcel.action',
+		url: '/mhotel/booktoLedgerAdmimnExcel.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})

+ 2 - 2
src/api/systemSet.js

@@ -2,7 +2,7 @@ import request from '@/utils/request'
 
 
 export function updateSet(data) {
 export function updateSet(data) {
 	return request({
 	return request({
-		url: '/api/mhotel/configupdate.action',
+		url: '/mhotel/configupdate.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -10,7 +10,7 @@ export function updateSet(data) {
 
 
 export function getSet() {
 export function getSet() {
 	return request({
 	return request({
-		url: '/api/mhotel/configlist.action',
+		url: '/mhotel/configlist.action',
 		method: 'post'
 		method: 'post'
 	})
 	})
 }
 }

+ 3 - 3
src/api/user.js

@@ -6,7 +6,7 @@ export function login(forData) {
 	data.append('password', forData.password.trim())
 	data.append('password', forData.password.trim())
 	
 	
 	return request({
 	return request({
-		url: '/api/mhotel/adminloginAdmin.action',
+		url: '/mhotel/adminloginAdmin.action',
 		method: 'post',
 		method: 'post',
 		data
 		data
 	})
 	})
@@ -14,7 +14,7 @@ export function login(forData) {
 
 
 // export function getInfo(token) {
 // export function getInfo(token) {
 // 	return request({
 // 	return request({
-// 		url: '/api/mhotel/info',
+// 		url: '/mhotel/info',
 // 		method: 'get',
 // 		method: 'get',
 // 		params: {
 // 		params: {
 // 			token
 // 			token
@@ -24,7 +24,7 @@ export function login(forData) {
 
 
 // export function logout() {
 // export function logout() {
 // 	return request({
 // 	return request({
-// 		url: '/api/mhotel/adminloginout.action',
+// 		url: '/mhotel/adminloginout.action',
 // 		method: 'post'
 // 		method: 'post'
 // 	})
 // 	})
 // }
 // }

+ 7 - 0
src/main.js

@@ -7,6 +7,13 @@ import 'element-ui/lib/theme-chalk/index.css'
 import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
 import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
 import '@/styles/index.scss' // global css
 import '@/styles/index.scss' // global css
 
 
+import VueQuillEditor from 'vue-quill-editor'
+// 引入样式文件
+import 'quill/dist/quill.core.css'
+import 'quill/dist/quill.snow.css'
+import 'quill/dist/quill.bubble.css'
+Vue.use(VueQuillEditor)
+
 // import { VueVideoPlayer } from "vue-video-player"
 // import { VueVideoPlayer } from "vue-video-player"
 import VueVideoPlayer from 'vue-video-player'
 import VueVideoPlayer from 'vue-video-player'
 import 'video.js/dist/video-js.css'
 import 'video.js/dist/video-js.css'

Dosya farkı çok büyük olduğundan ihmal edildi
+ 576 - 234
src/views/perimeterMgr/index.vue


+ 4 - 5
vue.config.js

@@ -37,22 +37,21 @@ module.exports = {
 			errors: true
 			errors: true
 		},
 		},
 		proxy: {
 		proxy: {
-			['^/api']: {
+			['^' + process.env.VUE_APP_BASE_API]: {
 				target: 'https://www.xn--gmq052a5d255v.com/hotelReservation',
 				target: 'https://www.xn--gmq052a5d255v.com/hotelReservation',
 				// target: 'https://chtech.ncjti.edu.cn/hotelReservation/mhotel',
 				// target: 'https://chtech.ncjti.edu.cn/hotelReservation/mhotel',
 				// target: 'http://101.42.162.31/mhotel',
 				// target: 'http://101.42.162.31/mhotel',
 				changeOrigin: true,
 				changeOrigin: true,
 				pathRewrite: {
 				pathRewrite: {
-					// ['^' + process.env.VUE_APP_BASE_API]: ''
-					['^/api']: ''
+					['^' + process.env.VUE_APP_BASE_API]: ''
 				}
 				}
 			},
 			},
-			['^/api']: { // 图片上传
+			['^' + process.env.VUE_APP_BASE_FILE]: { // 图片上传
 				target: 'https://www.xn--gmq052a5d255v.com/hotelReservation',
 				target: 'https://www.xn--gmq052a5d255v.com/hotelReservation',
 				// target: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload',
 				// target: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload',
 				changeOrigin: true,
 				changeOrigin: true,
 				pathRewrite: {
 				pathRewrite: {
-					['^/api']: ''
+					['^' + process.env.VUE_APP_BASE_FILE]: ''
 				}
 				}
 			}
 			}
 		}
 		}