Jelajahi Sumber

换服务器

程志平 4 tahun lalu
induk
melakukan
f5fd114547

+ 2 - 2
config/index.js

@@ -11,12 +11,12 @@ module.exports = {
 		assetsPublicPath: '/shuidian/',
 		// 后端请求地址代理,配置后testIp再之后的页面调用时就直接指代 http://197.82.15.15:8088
 		proxyTable: {
-			'/jxch-smartmp-api': {
+			'/shuidian': {
 				target: 'https://chtech.ncjti.edu.cn/shuidian/', // 你请求的第三方接口
 				// target: 'http://baibai.natapp1.cc', // 你请求的第三方接口
 				changeOrigin: true, // 在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
 				pathRewrite: { // 路径重写,
-					'^/jxch-smartmp-api': '/' // 替换target中的请求地址,也就是说以后你在请求http://api.douban.com/v2/XXXXX这个地址的时候直接写成/api即可。
+					'^/shuidian': '/' // 替换target中的请求地址,也就是说以后你在请求http://api.douban.com/v2/XXXXX这个地址的时候直接写成/api即可。
 				}
 			}
 		},

+ 4 - 4
src/components/balance/Balance.vue

@@ -149,7 +149,7 @@
 				var _this = this
 				_this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterMoney.action', {
+				this.$axios.get('/shuidian/HotWaters/waterMoney.action', {
 						params: params
 					})
 					.then(res => {
@@ -173,7 +173,7 @@
 			 */
 			get_total_amount() {
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterfindMoneyTotal.action')
+				this.$axios.get('/shuidian/HotWaters/waterfindMoneyTotal.action')
 					.then(res => {
 						// console.log(res.data);
 						if (typeof(res.data.money) != 'undefined' && res.data.money != '' && JSON.stringify(res
@@ -253,7 +253,7 @@
 			get_view_total_amount() {
 				var _this = this
 				_this.view_total_amount = 0.0.toFixed(2)
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterrechargeTotal.action', {
+				this.$axios.get('/shuidian/HotWaters/waterrechargeTotal.action', {
 						params: {
 							re_time: this.select_month,
 							stu_number: this.stu_number
@@ -302,7 +302,7 @@
 				var _this = this
 				_this.view_tableData = []
 				// _this.view_rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterfindRecharge.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindRecharge.action', {
 						params: params
 					})
 					.then(res => {

+ 2 - 2
src/components/congzhijilu/congzhijilu.vue

@@ -165,7 +165,7 @@
 				var _this = this
 				_this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterqueryRe.action', {
+				this.$axios.get('/shuidian/HotWaters/waterqueryRe.action', {
 						params: params
 					})
 					.then(res => {
@@ -288,7 +288,7 @@
 				var _this = this
 				_this.view_tableData = []
 				// _this.view_rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterfindRecharge.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindRecharge.action', {
 						params: params
 					})
 					.then(res => {

+ 16 - 16
src/components/dev_mgr/DevMgr.vue

@@ -9,7 +9,7 @@
 						<el-button type="primary" size="small">表格导入</el-button>
 					</el-upload>
 					<el-link type="primary"
-						href="https://jtishfw.ncjti.edu.cn/jxch-smartmp/jxch-smartmp-api/HotWaters/download/模板.xls">
+						href="https://jtishfw.ncjti.edu.cn/jxch-smartmp/shuidian/HotWaters/download/模板.xls">
 						模板下载</el-link>
 				</span>
 			</el-col>
@@ -249,7 +249,7 @@
 				rows: this.pageRows
 			}
 			// 更新表格
-			this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
+			this.updateTable('/shuidian/HotWaters/waterlist.action', params)
 			// 取得楼栋号,填充下拉列表
 			this.getBuildsFillSelect()
 		},
@@ -271,7 +271,7 @@
 				form.append('file', param.file);
 				this.$axios({
 						method: "post",
-						url: "/jxch-smartmp-api/HotWaters/upload",
+						url: "/shuidian/HotWaters/upload",
 						headers: {
 							'Content-type': 'multipart/form-data'
 						},
@@ -289,7 +289,7 @@
 			 */
 			getBuilds(url) {
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watergetBuilds.action')
+				this.$axios.get('/shuidian/HotWaters/watergetBuilds.action')
 					.then(res => {
 						// console.log(res.data);
 						if (typeof(res.data.builds) != 'undefined' && res.data.builds != '' && JSON.stringify(res
@@ -367,7 +367,7 @@
 					}
 				}
 				// 查询该栋的信息
-				this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
+				this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 			},
 			/**
 			 * 改变页码
@@ -389,7 +389,7 @@
 					}
 				}
 				// 查询该栋的信息
-				this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
+				this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 			},
 			/**
 			 * 导出表格
@@ -406,7 +406,7 @@
 				} else {
 					params = ''
 				}
-				this.$axios.post('/jxch-smartmp-api/HotWaters/watertoExcel.action', params)
+				this.$axios.post('/shuidian/HotWaters/watertoExcel.action', params)
 					.then(res => {
 						console.log(res.data.downurl);
 						if (typeof(res.data.downurl) != 'undefined' && res.data.downurl != '' && JSON.stringify(res
@@ -436,7 +436,7 @@
 			 */
 			handleDelRow() {
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterdelBuild.action', {
+				this.$axios.get('/shuidian/HotWaters/waterdelBuild.action', {
 						params: {
 							id: this.delRowId
 						}
@@ -450,7 +450,7 @@
 								page: this.currentPage,
 								rows: this.pageRows
 							}
-							this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
+							this.updateTable('/shuidian/HotWaters/waterlist.action', params)
 							// 取得楼栋号,填充下拉列表
 							this.getBuildsFillSelect()
 						} else {
@@ -501,7 +501,7 @@
 							_this.$message.error('请输入宿舍号')
 							return
 						}
-						_this.$axios.get('/jxch-smartmp-api/HotWaters/wateraddBuild.action', {
+						_this.$axios.get('/shuidian/HotWaters/wateraddBuild.action', {
 								params: {
 									user_id: String(_this.addform.user_id).trim(),
 									dom: String(_this.addform.dom).trim(),
@@ -523,7 +523,7 @@
 										page: _this.currentPage,
 										rows: _this.pageRows
 									}
-									_this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
+									_this.updateTable('/shuidian/HotWaters/waterlist.action', params)
 									// 取得楼栋号,填充下拉列表
 									_this.getBuildsFillSelect()
 								} else {
@@ -561,7 +561,7 @@
 							return
 						}
 						
-						_this.$axios.get('/jxch-smartmp-api/HotWaters/waterupdateBuild.action', {
+						_this.$axios.get('/shuidian/HotWaters/waterupdateBuild.action', {
 								params: {
 									id: _this.modifyForm.id,
 									user_id: String(_this.modifyForm.user_id).trim(),
@@ -579,7 +579,7 @@
 										page: _this.currentPage,
 										rows: _this.pageRows
 									}
-									_this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
+									_this.updateTable('/shuidian/HotWaters/waterlist.action', params)
 									// 取得楼栋号,填充下拉列表
 									_this.getBuildsFillSelect()
 								} else {
@@ -630,7 +630,7 @@
 							rows: this.pageRows
 						}
 					}
-					this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
+					this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 					this.$message.success('水表id包含:' + this.query_shuibiaoId + ' 查询完成!')
 				} else {
 					if (this.form_select.value == 0) {
@@ -638,14 +638,14 @@
 							page: 1,
 							rows: this.pageRows
 						}
-						this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
+						this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 					} else {
 						params = {
 							build: this.form_select.label,
 							page: 1,
 							rows: this.pageRows
 						}
-						this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
+						this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 					}
 					// this.$message.error('请输入水表id 或 选择 楼栋号')
 				}

+ 3 - 3
src/components/feilvset/feilvset.vue

@@ -96,7 +96,7 @@
 			 * 获取当前费率
 			 */
 			get_current_feilv() {
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watercurrentRate.action')
+				this.$axios.get('/shuidian/HotWaters/watercurrentRate.action')
 					.then(res => {
 						// console.log(res.data);
 						if (typeof(res.data.rate) != 'undefined' && res.data.rate != '' && JSON.stringify(res
@@ -117,7 +117,7 @@
 			get_history_feilv() {
 				this.tableData = []
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterqueryPrice.action', {
+				this.$axios.get('/shuidian/HotWaters/waterqueryPrice.action', {
 						params: {
 							page: this.current_page,
 							rows: this.page_rows
@@ -184,7 +184,7 @@
 				_this.$refs[formName].validate((valid) => {
 					if (valid) {
 						if (_this.modifyForm.inputFeilv) {
-							_this.$axios.get('/jxch-smartmp-api/HotWaters/waterupdatePrice.action', {
+							_this.$axios.get('/shuidian/HotWaters/waterupdatePrice.action', {
 									params: {
 										rate: _this.modifyForm.inputFeilv
 									}

+ 1 - 1
src/components/login/Login.vue

@@ -99,7 +99,7 @@
 				}
 
 				_this.$refs[formName].validate((valid) => {
-					_this.$axios.get('/jxch-smartmp-api/HotWaters/waterlogin.action', {
+					_this.$axios.get('/shuidian/HotWaters/waterlogin.action', {
 							params: params
 						})
 						.then(res => {

+ 7 - 7
src/components/shangjiaduizhang/shangjiaduizhang.vue

@@ -239,7 +239,7 @@
 				if (JSON.stringify(params.data) == '{}') {
 					params = ''
 				}
-				this.$axios.post('/jxch-smartmp-api/HotWaters/watertoComExcel.action', params)
+				this.$axios.post('/shuidian/HotWaters/watertoComExcel.action', params)
 					.then(res => {
 						// console.log(res.data.downurl);
 						if (typeof(res.data.downurl) != 'undefined' && res.data.downurl != '' && JSON.stringify(res
@@ -317,7 +317,7 @@
 						build: this.drom_options.label
 					}
 				}
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watergetdoms.action', params)
+				this.$axios.get('/shuidian/HotWaters/watergetdoms.action', params)
 					.then(res => {
 						// console.log(res.data);
 						if (typeof(res.data.doms) != 'undefined' && res.data.doms != '' && JSON.stringify(res.data) !=
@@ -416,7 +416,7 @@
 			 */
 			getTodayXiaofei(params) {
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterfindConsume.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindConsume.action', {
 						params: params
 					})
 					.then(res => {
@@ -449,7 +449,7 @@
 			getBuildsFillSelect() {
 				// 获取楼栋号,填充下拉列表
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watergetBuilds.action')
+				this.$axios.get('/shuidian/HotWaters/watergetBuilds.action')
 					.then(res => {
 						// console.log(res.data);
 						if (typeof(res.data.builds) != 'undefined' && res.data.builds != '' && JSON.stringify(res
@@ -485,7 +485,7 @@
 				this.xiaofei.day_balance = 0.0.toFixed(2)
 				this.today_xiaofei = 0.0.toFixed(2)
 				// 年消费记录
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watertotalFeel.action', {
+				this.$axios.get('/shuidian/HotWaters/watertotalFeel.action', {
 						params: {
 							year: this.select_riqi.select_year
 						}
@@ -505,7 +505,7 @@
 					})
 
 				// 月消费记录
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watertotalFeel.action', {
+				this.$axios.get('/shuidian/HotWaters/watertotalFeel.action', {
 						params: {
 							month: this.select_riqi.select_month
 						}
@@ -525,7 +525,7 @@
 					})
 
 				// 日消费记录
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watertotalFeel.action', {
+				this.$axios.get('/shuidian/HotWaters/watertotalFeel.action', {
 						params: {
 							day: this.select_riqi.select_day
 						}

+ 6 - 6
src/components/yongshuifenxi/yongshuifenxi.vue

@@ -211,7 +211,7 @@
 					dom: this.room_value
 				}
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterwaterTotal.action', {
+				this.$axios.get('/shuidian/HotWaters/waterwaterTotal.action', {
 						params: params
 					})
 					.then(res => {
@@ -242,7 +242,7 @@
 			getBuildsFillSelect() {
 				// 获取楼栋号,填充下拉列表
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watergetBuilds.action')
+				this.$axios.get('/shuidian/HotWaters/watergetBuilds.action')
 					.then(res => {
 						// console.log(res.data);
 						if (typeof(res.data.builds) != 'undefined' && res.data.builds != '' && JSON.stringify(res
@@ -285,7 +285,7 @@
 				// 日用水量
 				if (riqi == '日') {
 					// 查询日的数据
-					this.$axios.get('/jxch-smartmp-api/HotWaters/waterdayTong.action', {
+					this.$axios.get('/shuidian/HotWaters/waterdayTong.action', {
 							params: params
 						})
 						.then(res => {
@@ -304,7 +304,7 @@
 						})
 				} else if (riqi == '月') { // 月用水量
 					// 查询月的数据
-					this.$axios.get('/jxch-smartmp-api/HotWaters/watermonthTong.action', {
+					this.$axios.get('/shuidian/HotWaters/watermonthTong.action', {
 							params: params
 						})
 						.then(res => {
@@ -323,7 +323,7 @@
 						})
 				} else if (riqi == '年') { // 年用水量
 					// 查询年的数据
-					this.$axios.get('/jxch-smartmp-api/HotWaters/wateryearTong.action', {
+					this.$axios.get('/shuidian/HotWaters/wateryearTong.action', {
 							params: params
 						})
 						.then(res => {
@@ -416,7 +416,7 @@
 					params.username = this.detail_userName
 				}
 				// 显示详细列表
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterdetailWater.action', {
+				this.$axios.get('/shuidian/HotWaters/waterdetailWater.action', {
 						params: params
 					})
 					.then(res => {

+ 2 - 2
src/components/yongshuiyichang/yongshuiyichang.vue

@@ -215,7 +215,7 @@
 				var _this = this
 				_this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterqueryErrorWater.action', {
+				this.$axios.get('/shuidian/HotWaters/waterqueryErrorWater.action', {
 						params: params
 					})
 					.then(res => {
@@ -239,7 +239,7 @@
 			getBuildsFillSelect() {
 				// 获取楼栋号,填充下拉列表
 				var _this = this
-				this.$axios.get('/jxch-smartmp-api/HotWaters/watergetBuilds.action')
+				this.$axios.get('/shuidian/HotWaters/watergetBuilds.action')
 					.then(res => {
 						// console.log(res.data);
 						if (typeof(res.data.builds) != 'undefined' && res.data.builds != '' && JSON.stringify(res

+ 4 - 4
src/components/zhifuyichang/zhifuyichang.vue

@@ -141,7 +141,7 @@
 								id: row.id
 							}
 							if (this.drom == '水费') {
-								this.$axios.get('/jxch-smartmp-api/HotWaters/waterhandlerPayError.action', {
+								this.$axios.get('/shuidian/HotWaters/waterhandlerPayError.action', {
 										params: params
 									})
 									.then(res => {
@@ -158,7 +158,7 @@
 										_this.$message.error('【处理】请求异常: ' + err);
 									})
 							} else if (this.drom == '电费') {
-								this.$axios.get('/jxch-smartmp-api/HotWaters/waterhandlerElecPayError.action', {
+								this.$axios.get('/shuidian/HotWaters/waterhandlerElecPayError.action', {
 										params: params
 									})
 									.then(res => {
@@ -188,7 +188,7 @@
 				var _this = this
 				_this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterfindErrorPayByNo.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindErrorPayByNo.action', {
 						params: params
 					})
 					.then(res => {
@@ -213,7 +213,7 @@
 				var _this = this
 				_this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterfindErrorElcPayByNo.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindErrorElcPayByNo.action', {
 						params: params
 					})
 					.then(res => {

+ 4 - 4
src/components/zhuanghaoguanli/zhuanghaoguanli.vue

@@ -337,7 +337,7 @@
 					params.number = this.account
 				}
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp-api/HotWaters/waterqueryAdmin.action', {
+				this.$axios.get('/shuidian/HotWaters/waterqueryAdmin.action', {
 						params: params
 					})
 					.then(res => {
@@ -405,7 +405,7 @@
 							return
 						}
 						var _this = this
-						this.$axios.get('/jxch-smartmp-api/HotWaters/wateraddAdmin.action', {
+						this.$axios.get('/shuidian/HotWaters/wateraddAdmin.action', {
 								params: {
 									name: String(this.addform.name).trim(),
 									number: String(this.addform.number).trim(),
@@ -486,7 +486,7 @@
 							return
 						}
 
-						_this.$axios.get('/jxch-smartmp-api/HotWaters/waterupdateAdmin.action', {
+						_this.$axios.get('/shuidian/HotWaters/waterupdateAdmin.action', {
 								params: {
 									id: _this.form.id,
 									name: String(_this.form.name).trim(),
@@ -544,7 +544,7 @@
 				_this.$refs[formName].validate((valid) => {
 					if (valid) {
 						if (_this.delConfirmPwdform.delPwd.trim()) {
-							_this.$axios.get('/jxch-smartmp-api/HotWaters/waterdelAdmin.action', {
+							_this.$axios.get('/shuidian/HotWaters/waterdelAdmin.action', {
 									params: {
 										id: _this.del_id,
 										password: _this.delPwd

+ 1 - 1
src/router/index.js

@@ -15,7 +15,7 @@ import ZHGL from '@/components/zhuanghaoguanli/zhuanghaoguanli' // 账户管理
 Vue.use(Router)
 
 export default new Router({
-	base: '/jxch-smartmp/',
+	base: '/shuidian/',
 	mode: 'history',
 	routes: [{
 		path: '/',