浏览代码

接口地址切换为:https://chtech.ncjti.edu.cn/shuidian/

hzj18279462576@163.com 8 月之前
父节点
当前提交
ec6bc3971a

+ 6 - 6
config/index.js

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

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

@@ -220,7 +220,7 @@
 				var _this = this;
 				let formData = new FormData();
 				formData.append("id", this.del_id);
-				this.$axios.post('/jxch-smartmp/HotWaters/advertdel_h.action', formData)
+				this.$axios.post('/shuidian/HotWaters/advertdel_h.action', formData)
 					.then(res => {
 						// console.log(res.data.data);
 						if (res.data.code == 200) {
@@ -278,7 +278,7 @@
 				let formData = new FormData();
 				formData.append("url_name", this.addform.url_name);
 				_this.tableData = []
-				this.$axios.post('/jxch-smartmp/HotWaters/advertquery_h.action', formData)
+				this.$axios.post('/shuidian/HotWaters/advertquery_h.action', formData)
 					.then(res => {
 						// console.log(res.data.data);
 						if (res.data.code == 200) {
@@ -360,7 +360,7 @@
 				}
 				formData.append("state", this.addform.state);
 				var _this = this
-				this.$axios.post('/jxch-smartmp/HotWaters/adverthimage.action', formData)
+				this.$axios.post('/shuidian/HotWaters/adverthimage.action', formData)
 					.then(res => {
 						// console.log(res.data);
 						if (res.data.code == 200) {
@@ -402,7 +402,7 @@
 				formData.append("state", this.form.state);
 				formData.append("id", this.form.id);
 				var _this = this
-				this.$axios.post('/jxch-smartmp/HotWaters/adverth_uimage.action', formData)
+				this.$axios.post('/shuidian/HotWaters/adverth_uimage.action', formData)
 					.then(res => {
 						// console.log(res.data);
 						if (res.data.code == 200) {

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

@@ -178,7 +178,7 @@
 					return;
 				}
 
-				this.$axios.post('/jxch-smartmp/HotWaters/waterrefund.action', formData)
+				this.$axios.post('/shuidian/HotWaters/waterrefund.action', formData)
 					.then(res => {
 						// console.log(res.data);
 						if (res.data.code == 200) {
@@ -248,7 +248,7 @@
 				var _this = this
 				// _this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp/HotWaters/waterMoney.action', {
+				this.$axios.get('/shuidian/HotWaters/waterMoney.action', {
 						params: params
 					})
 					.then(res => {
@@ -272,7 +272,7 @@
 			 */
 			get_total_amount() {
 				var _this = this
-				this.$axios.get('/jxch-smartmp/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
@@ -355,7 +355,7 @@
 			get_view_total_amount() {
 				var _this = this
 				_this.view_total_amount = 0.0.toFixed(2)
-				this.$axios.get('/jxch-smartmp/HotWaters/waterrechargeTotal.action', {
+				this.$axios.get('/shuidian/HotWaters/waterrechargeTotal.action', {
 						params: {
 							re_time: this.select_month,
 							stu_number: this.stu_number
@@ -402,7 +402,7 @@
 			 */
 			get_view_list(params) {
 				var _this = this
-				this.$axios.get('/jxch-smartmp/HotWaters/waterfindRecharge.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindRecharge.action', {
 						params: params
 					})
 					.then(res => {
@@ -446,4 +446,4 @@
 
 <style scoped>
 	@import url("Balance.css");
-</style>
+</style>

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

@@ -198,7 +198,7 @@
 				}
 
 				var _this = this;
-				this.$axios.post('/jxch-smartmp/HotWaters/wpqueryOrder.action', formData)
+				this.$axios.post('/shuidian/HotWaters/wpqueryOrder.action', formData)
 					.then(res => {
 						// console.log(res.data);
 						if (res.data.code == 200) {
@@ -284,7 +284,7 @@
 				var _this = this
 				// _this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp/HotWaters/waterqueryRe.action', {
+				this.$axios.get('/shuidian/HotWaters/waterqueryRe.action', {
 						params: params
 					})
 					.then(res => {
@@ -407,12 +407,12 @@
 				if (typeof _this.endTime != 'undefined' && _this.endTime != '') {
 					formData.append("end_time", _this.endTime);
 				}
-				this.$axios.post('/jxch-smartmp/HotWaters/waterre_toExcel.action', formData)
+				this.$axios.post('/shuidian/HotWaters/waterre_toExcel.action', formData)
 					.then(res => {
 						if (typeof res.data.downurl != 'undefined' && res.data.downurl != '' && JSON
 							.stringify(res.data) != '{}') {
 							// console.log(res.data.downurl);
-							window.open('https://jtishfw.ncjti.edu.cn/jxch-smartmp' + res.data.downurl);
+							window.open('https://chtech.ncjti.edu.cn/shuidian' + res.data.downurl);
 						} else {
 							_this.$message.error(res.data.message);
 						}
@@ -429,7 +429,7 @@
 				var _this = this
 				_this.view_tableData = []
 				// _this.view_rows_total = 0
-				this.$axios.get('/jxch-smartmp/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" target="_blank"
-						href="https://jtishfw.ncjti.edu.cn/jxch-smartmp/HotWaters/download/模板.xls">
+						href="https://chtech.ncjti.edu.cn/shuidian/HotWaters/download/模板.xls">
 						模板下载</el-link>
 				</span>
 			</el-col>
@@ -249,7 +249,7 @@
 				rows: this.pageRows
 			}
 			// 更新表格
-			this.updateTable('/jxch-smartmp/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/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/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/HotWaters/waterquerylist.action', params)
+				this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 			},
 			/**
 			 * 改变页码
@@ -389,7 +389,7 @@
 					}
 				}
 				// 查询该栋的信息
-				this.updateTable('/jxch-smartmp/HotWaters/waterquerylist.action', params)
+				this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 			},
 			/**
 			 * 导出表格
@@ -406,12 +406,12 @@
 				} else {
 					params = ''
 				}
-				this.$axios.post('/jxch-smartmp/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
 								.data) != '{}') {
-							window.open('https://jtishfw.ncjti.edu.cn/jxch-smartmp' + res.data.downurl)
+							window.open('https://chtech.ncjti.edu.cn/shuidian' + res.data.downurl)
 						} else {
 							_this.$message.error('【未获得】表格!');
 						}
@@ -436,7 +436,7 @@
 			 */
 			handleDelRow() {
 				var _this = this
-				this.$axios.get('/jxch-smartmp/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/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/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(),
@@ -560,8 +560,8 @@
 							_this.$message.error('请输入宿舍号')
 							return
 						}
-						
-						_this.$axios.get('/jxch-smartmp/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/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/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) {
@@ -645,7 +645,7 @@
 							page: 1,
 							rows: this.pageRows
 						}
-						this.updateTable('/jxch-smartmp/HotWaters/waterquerylist.action', params)
+						this.updateTable('/shuidian/HotWaters/waterquerylist.action', params)
 					}
 					// this.$message.error('请输入水表id 或 选择 楼栋号')
 				}

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

@@ -96,7 +96,7 @@
 			 * 获取当前费率
 			 */
 			get_current_feilv() {
-				this.$axios.get('/jxch-smartmp/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/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/HotWaters/waterupdatePrice.action', {
+							_this.$axios.get('/shuidian/HotWaters/waterupdatePrice.action', {
 									params: {
 										rate: _this.modifyForm.inputFeilv
 									}
@@ -193,12 +193,12 @@
 									// console.log(res.data);
 									if (typeof(res.data.msg) != 'undefined' && res.data.msg == '修改成功') {
 										_this.$message.success('【修改费率】修改成功!')
-						
+
 										_this.editdialogFormVisible = false
-						
+
 										// 获取当前费率
 										_this.get_current_feilv()
-						
+
 										// 获取历史费率
 										_this.get_history_feilv()
 									} else {

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

@@ -97,7 +97,7 @@
 
 				_this.$refs[formName].validate((valid) => {
 					if (valid) {
-						_this.$axios.get('/jxch-smartmp/HotWaters/userlog.action', {
+						_this.$axios.get('/shuidian/HotWaters/userlog.action', {
 								params: params
 							})
 							.then(res => {
@@ -139,7 +139,7 @@
 					page: 1,
 					rows: 30
 				}
-				_this.$axios.get('/jxch-smartmp/HotWaters/waterqueryAdmin.action', {
+				_this.$axios.get('/shuidian/HotWaters/waterqueryAdmin.action', {
 						params: params
 					})
 					.then(res => {
@@ -167,4 +167,4 @@
 
 <style scoped>
 	@import url("./login.css");
-</style>
+</style>

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

@@ -235,13 +235,13 @@
 				if (_this.select_riqi.select_day) {
 					formData.append("begin_time", _this.select_riqi.select_day);
 				}
-				this.$axios.post('/jxch-smartmp/HotWaters/watertoComExcel.action', formData)
+				this.$axios.post('/shuidian/HotWaters/watertoComExcel.action', formData)
 					.then(res => {
 						if (typeof(res.data.downurl) != 'undefined' && res.data.downurl != '' && JSON
 							.stringify(res
 								.data) != '{}') {
 							// console.log(res.data.downurl);
-							window.open('https://jtishfw.ncjti.edu.cn/jxch-smartmp' + res.data.downurl);
+							window.open('https://chtech.ncjti.edu.cn/shuidian' + res.data.downurl);
 						} else {
 							_this.$message.error('【未获得】表格!');
 						}
@@ -314,7 +314,7 @@
 						build: this.drom_options.label
 					}
 				}
-				this.$axios.get('/jxch-smartmp/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(
@@ -414,7 +414,7 @@
 			 */
 			getTodayXiaofei(params) {
 				var _this = this
-				this.$axios.get('/jxch-smartmp/HotWaters/waterfindConsume.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindConsume.action', {
 						params: params
 					})
 					.then(res => {
@@ -448,7 +448,7 @@
 			getBuildsFillSelect() {
 				// 获取楼栋号,填充下拉列表
 				var _this = this
-				this.$axios.get('/jxch-smartmp/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
@@ -485,7 +485,7 @@
 				this.xiaofei.day_balance = 0.0.toFixed(2)
 				this.today_xiaofei = 0.0.toFixed(2)
 				// 年消费记录
-				this.$axios.get('/jxch-smartmp/HotWaters/watertotalFeel.action', {
+				this.$axios.get('/shuidian/HotWaters/watertotalFeel.action', {
 						params: {
 							year: this.select_riqi.select_year
 						}
@@ -506,7 +506,7 @@
 					})
 
 				// 月消费记录
-				this.$axios.get('/jxch-smartmp/HotWaters/watertotalFeel.action', {
+				this.$axios.get('/shuidian/HotWaters/watertotalFeel.action', {
 						params: {
 							month: this.select_riqi.select_month
 						}
@@ -527,7 +527,7 @@
 					})
 
 				// 日消费记录
-				this.$axios.get('/jxch-smartmp/HotWaters/watertotalFeel.action', {
+				this.$axios.get('/shuidian/HotWaters/watertotalFeel.action', {
 						params: {
 							day: this.select_riqi.select_day
 						}

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

@@ -98,7 +98,7 @@
 
 				// 初始化日期为今天天 至 明天
 				// this.initDate();
-				
+
 				// 显示列表
 				this.handleCurrentChange('init')
 			} else {
@@ -120,7 +120,7 @@
 				if (_this.searchformUser != '' && typeof _this.searchformUser != 'undefined') {
 					formData.append('user_name', this.searchformUser);
 				}
-				this.$axios.post('/jxch-smartmp/HotWaters/waterrefund_total.action', formData)
+				this.$axios.post('/shuidian/HotWaters/waterrefund_total.action', formData)
 					.then(res => {
 						// console.log(res.data);
 						if (res.data.code == 200) {
@@ -156,7 +156,7 @@
 			 */
 			get_amount_list(params) {
 				var _this = this
-				this.$axios.get('/jxch-smartmp/HotWaters/waterrefund_list.action', {
+				this.$axios.get('/shuidian/HotWaters/waterrefund_list.action', {
 						params: params
 					})
 					.then(res => {
@@ -270,12 +270,12 @@
 				if (typeof _this.endTime != 'undefined' && _this.endTime != '') {
 					formData.append("end_time", _this.endTime);
 				}
-				this.$axios.post('/jxch-smartmp/HotWaters/watertoRefundExcel.action', formData)
+				this.$axios.post('/shuidian/HotWaters/watertoRefundExcel.action', formData)
 					.then(res => {
 						if (typeof res.data.downurl != 'undefined' && res.data.downurl != '' && JSON
 							.stringify(res.data) != '{}') {
 							// console.log(res.data.downurl);
-							window.open('https://jtishfw.ncjti.edu.cn/jxch-smartmp' + res.data.downurl);
+							window.open('https://chtech.ncjti.edu.cn/shuidian' + res.data.downurl);
 						} else {
 							_this.$message.error(res.data.message);
 						}
@@ -291,4 +291,4 @@
 
 <style scoped>
 	@import url("tuikuan.css");
-</style>
+</style>

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

@@ -211,7 +211,7 @@
 					dom: this.room_value
 				}
 				var _this = this
-				this.$axios.get('/jxch-smartmp/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/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/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/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/HotWaters/wateryearTong.action', {
+					this.$axios.get('/shuidian/HotWaters/wateryearTong.action', {
 							params: params
 						})
 						.then(res => {
@@ -399,7 +399,7 @@
 			show_detail() {
 				// this.detail_tableData = [];
 				this.detail_dialogFormVisible = true;
-				
+
 				let params = {
 					page: this.control_table.detail_current_page,
 					rows: this.control_table.detail_page_rows
@@ -413,10 +413,10 @@
 				if (this.detail_userName != '' && typeof(this.detail_userName) != 'undefined') {
 					params.username = this.detail_userName
 				}
-				
+
 				var _this = this;
 				// 显示详细列表
-				this.$axios.get('/jxch-smartmp/HotWaters/waterdetailWater.action', {
+				this.$axios.get('/shuidian/HotWaters/waterdetailWater.action', {
 						params: params
 					})
 					.then(res => {

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

@@ -135,10 +135,10 @@
 
 				this.startTime = this.getDate(year2, mon2, day2)
 				this.endTime = this.getDate(year1, mon1, day1)
-				
+
 				this.select_datetime.push(this.startTime)
 				this.select_datetime.push(this.endTime)
-				
+
 				this.handleCurrentChange(1)
 			},
 			/**
@@ -150,7 +150,7 @@
 			getDate(y, m, d) {
 				m = m > 9 ? m : '0' + m;
 				d = d > 9 ? d : '0' + d;
-				
+
 				return y + "-" + m + "-" + d;
 			},
 			/**
@@ -215,7 +215,7 @@
 				var _this = this
 				// _this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp/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/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

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

@@ -111,7 +111,7 @@
 					page: this.currentPage,
 					rows: this.pageRows
 				}
-				
+
 				if (this.drom == '水费') {
 					// 水费支付异常列表
 					this.get_water_exception_list(params)
@@ -142,7 +142,7 @@
 								id: row.id
 							}
 							if (this.drom == '水费') {
-								this.$axios.get('/jxch-smartmp/HotWaters/waterhandlerPayError.action', {
+								this.$axios.get('/shuidian/HotWaters/waterhandlerPayError.action', {
 										params: params
 									})
 									.then(res => {
@@ -159,7 +159,7 @@
 										_this.$message.error('【处理】请求异常: ' + err);
 									})
 							} else if (this.drom == '电费') {
-								this.$axios.get('/jxch-smartmp/HotWaters/waterhandlerElecPayError.action', {
+								this.$axios.get('/shuidian/HotWaters/waterhandlerElecPayError.action', {
 										params: params
 									})
 									.then(res => {
@@ -189,7 +189,7 @@
 				var _this = this
 				// _this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp/HotWaters/waterfindErrorPayByNo.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindErrorPayByNo.action', {
 						params: params
 					})
 					.then(res => {
@@ -214,7 +214,7 @@
 				var _this = this
 				// _this.tableData = []
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp/HotWaters/waterfindErrorElcPayByNo.action', {
+				this.$axios.get('/shuidian/HotWaters/waterfindErrorElcPayByNo.action', {
 						params: params
 					})
 					.then(res => {

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

@@ -323,7 +323,7 @@
 					params.number = this.account
 				}
 				// _this.rows_total = 0
-				this.$axios.get('/jxch-smartmp/HotWaters/waterqueryAdmin.action', {
+				this.$axios.get('/shuidian/HotWaters/waterqueryAdmin.action', {
 						params: params
 					})
 					.then(res => {
@@ -391,7 +391,7 @@
 							return
 						}
 						var _this = this
-						this.$axios.get('/jxch-smartmp/HotWaters/wateraddAdmin.action', {
+						this.$axios.get('/shuidian/HotWaters/wateraddAdmin.action', {
 								params: {
 									name: String(this.addform.name).trim(),
 									number: String(this.addform.number).trim(),
@@ -472,7 +472,7 @@
 							return
 						}
 
-						_this.$axios.get('/jxch-smartmp/HotWaters/waterupdateAdmin.action', {
+						_this.$axios.get('/shuidian/HotWaters/waterupdateAdmin.action', {
 								params: {
 									id: _this.form.id,
 									name: String(_this.form.name).trim(),
@@ -530,7 +530,7 @@
 				_this.$refs[formName].validate((valid) => {
 					if (valid) {
 						if (_this.delConfirmPwdform.delPwd.trim()) {
-							_this.$axios.get('/jxch-smartmp/HotWaters/waterdelAdmin.action', {
+							_this.$axios.get('/shuidian/HotWaters/waterdelAdmin.action', {
 									params: {
 										id: _this.del_id,
 										password: _this.delPwd
@@ -588,4 +588,4 @@
 
 <style scoped>
 	@import url("zhuanghaoguanli.css");
-</style>
+</style>

+ 2 - 2
src/main.js

@@ -15,7 +15,7 @@ Axios.defaults.headers['token'] = sessionStorage.getItem('token');
 // Axios.defaults.timeout = 3000 //响应时间
 // Axios.defaults.headers.post['Content-Type'] = 'multipart/form-data'; //配置请求头
 // Axios.defaults.baseURL = process.env.NODE_HOST; // 配置接口地址
-// Axios.defaults.baseURL='https://jtishfw.ncjti.edu.cn/jxch-smartmp'
+// Axios.defaults.baseURL='https://jtishfw.ncjti.edu.cn/shuidian'
 // console.log('环境:' + process.env.NODE_ENV)
 Vue.use(ElementUI);
 // Vue.prototype.$qs = Qs;
@@ -33,4 +33,4 @@ new Vue({
 		App
 	},
 	template: '<App/>'
-});
+});

+ 89 - 73
src/router/index.js

@@ -1,81 +1,97 @@
-import Vue from 'vue'
-import Router from 'vue-router'
-import Login from '@/components/login/Login' // 登陆
-import Index from '@/components/index/Index' // 首页
-import DevMgr from '@/components/dev_mgr/DevMgr' // 设备管理
-import Balance from '@/components/balance/Balance' // 余额管理
-import CZJL from '@/components/congzhijilu/congzhijilu' // 充值记录
-import TK from '@/components/tuikuan/tuikuan' // 充值记录
-import SJDZ from '@/components/shangjiaduizhang/shangjiaduizhang' // 商家对账
-import YSFX from '@/components/yongshuifenxi/yongshuifenxi' // 用水分析
-import FLSZ from '@/components/feilvset/feilvset' // 费率设置
-import YSYC from '@/components/yongshuiyichang/yongshuiyichang' // 用水异常
-import ZFYC from '@/components/zhifuyichang/zhifuyichang' // 支付异常
-import ZHGL from '@/components/zhuanghaoguanli/zhuanghaoguanli' // 账户管理
-import AD from '@/components/ad/ad' // 广告管理
+import Vue from "vue";
+import Router from "vue-router";
+import Login from "@/components/login/Login"; // 登陆
+import Index from "@/components/index/Index"; // 首页
+import DevMgr from "@/components/dev_mgr/DevMgr"; // 设备管理
+import Balance from "@/components/balance/Balance"; // 余额管理
+import CZJL from "@/components/congzhijilu/congzhijilu"; // 充值记录
+import TK from "@/components/tuikuan/tuikuan"; // 充值记录
+import SJDZ from "@/components/shangjiaduizhang/shangjiaduizhang"; // 商家对账
+import YSFX from "@/components/yongshuifenxi/yongshuifenxi"; // 用水分析
+import FLSZ from "@/components/feilvset/feilvset"; // 费率设置
+import YSYC from "@/components/yongshuiyichang/yongshuiyichang"; // 用水异常
+import ZFYC from "@/components/zhifuyichang/zhifuyichang"; // 支付异常
+import ZHGL from "@/components/zhuanghaoguanli/zhuanghaoguanli"; // 账户管理
+import AD from "@/components/ad/ad"; // 广告管理
 
 // 刷新问题,解决办法:
 // https://share.bito.co/static/share?aid=2791e6a5-5bf8-4337-be70-e09b33aa2737
 // https://share.bito.co/static/share?aid=aa1b0cf0-41ba-422e-8fa8-46543b795899
 
-Vue.use(Router)
+Vue.use(Router);
 
 export default new Router({
-	mode: 'history',
-	base: '/jxch-smartmp/',
-	routes: [{
-		path: '/',
-		name: 'Login',
-		component: Login
-	}, {
-		path: '/index',
-		name: 'index',
-		redirect: '/index/devmgr', // 设置默认打开的页面
-		component: Index,
-		children: [{
-			path: 'devmgr',
-			name: 'DevMgr',
-			component: DevMgr // 设备管理
-		}, {
-			path: 'balan',
-			name: 'Balance',
-			component: Balance // 余额管理
-		}, {
-			path: 'czjl',
-			name: 'CZJL',
-			component: CZJL // 充值记录
-		}, {
-			path: 'tk',
-			name: 'TK',
-			component: TK // 充值记录
-		}, {
-			path: 'sjdz',
-			name: 'SJDZ',
-			component: SJDZ // 商家对账
-		}, {
-			path: 'ysfx',
-			name: 'YSFX',
-			component: YSFX // 用水分析
-		}, {
-			path: 'flsz',
-			name: 'FLSZ',
-			component: FLSZ // 费率设置
-		}, {
-			path: 'ysyc',
-			name: 'YSYC',
-			component: YSYC // 用水异常
-		}, {
-			path: 'zfyc',
-			name: 'ZFYC',
-			component: ZFYC // 支付异常
-		}, {
-			path: 'zhgl',
-			name: 'ZHGL',
-			component: ZHGL // 账户管理
-		}, {
-			path: 'ad',
-			name: 'AD',
-			component: AD // 广告管理
-		}]
-	}]
+  mode: "history",
+  // base: "/shuidian/",
+  base: "/shuidian/",
+  routes: [
+    {
+      path: "/",
+      name: "Login",
+      component: Login,
+    },
+    {
+      path: "/index",
+      name: "index",
+      redirect: "/index/devmgr", // 设置默认打开的页面
+      component: Index,
+      children: [
+        {
+          path: "devmgr",
+          name: "DevMgr",
+          component: DevMgr, // 设备管理
+        },
+        {
+          path: "balan",
+          name: "Balance",
+          component: Balance, // 余额管理
+        },
+        {
+          path: "czjl",
+          name: "CZJL",
+          component: CZJL, // 充值记录
+        },
+        {
+          path: "tk",
+          name: "TK",
+          component: TK, // 充值记录
+        },
+        {
+          path: "sjdz",
+          name: "SJDZ",
+          component: SJDZ, // 商家对账
+        },
+        {
+          path: "ysfx",
+          name: "YSFX",
+          component: YSFX, // 用水分析
+        },
+        {
+          path: "flsz",
+          name: "FLSZ",
+          component: FLSZ, // 费率设置
+        },
+        {
+          path: "ysyc",
+          name: "YSYC",
+          component: YSYC, // 用水异常
+        },
+        {
+          path: "zfyc",
+          name: "ZFYC",
+          component: ZFYC, // 支付异常
+        },
+        {
+          path: "zhgl",
+          name: "ZHGL",
+          component: ZHGL, // 账户管理
+        },
+        {
+          path: "ad",
+          name: "AD",
+          component: AD, // 广告管理
+        },
+      ],
+    },
+  ],
 });

+ 2 - 2
static/interface/index.js

@@ -1,6 +1,6 @@
 // 配置主机地址和端口号(可以有多个,需要测试那个环境字节打开那个base即可)
-let base = "https://jtishfw.ncjti.edu.cn/jxch-smartmp"
-// let base = "https://chtech.ncjti.edu.cn/jxch-smartmp"
+// let base = "https://jtishfw.ncjti.edu.cn/shuidian"
+let base = "https://chtech.ncjti.edu.cn/shuidian/"
 // let base = "http://192.168.1.34:8080/HotWaters/"
 
 // 在线api接口路径,需要和项目后台确认