|
|
@@ -8,7 +8,7 @@
|
|
|
:show-file-list="false">
|
|
|
<el-button type="primary" size="small">表格导入</el-button>
|
|
|
</el-upload>
|
|
|
- <el-link type="primary" href="https://jtishfw.ncjti.edu.cn/jxch-smartmp/HotWaters/download/模板.xls">
|
|
|
+ <el-link type="primary" href="https://jtishfw.ncjti.edu.cn/jxch-smartmp/jxch-smartmp-api/HotWaters/download/模板.xls">
|
|
|
模板下载</el-link>
|
|
|
</span>
|
|
|
</el-col>
|
|
|
@@ -171,7 +171,7 @@
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
// 更新表格
|
|
|
- this.updateTable('/HotWaters/waterlist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
|
|
|
// 取得楼栋号,填充下拉列表
|
|
|
this.getBuildsFillSelect()
|
|
|
},
|
|
|
@@ -181,7 +181,7 @@
|
|
|
*/
|
|
|
getBuildsFillSelect() {
|
|
|
// 获取楼栋号,填充下拉列表
|
|
|
- this.getBuilds('/HotWaters/watergetBuilds.action')
|
|
|
+ this.getBuilds()
|
|
|
},
|
|
|
/**
|
|
|
* 导入设备xls文件
|
|
|
@@ -193,7 +193,7 @@
|
|
|
form.append('file', param.file);
|
|
|
this.$axios({
|
|
|
method: "post",
|
|
|
- url: "/api/HotWaters/upload",
|
|
|
+ url: "/jxch-smartmp-api/HotWaters/upload",
|
|
|
headers: {
|
|
|
'Content-type': 'multipart/form-data'
|
|
|
},
|
|
|
@@ -211,7 +211,7 @@
|
|
|
*/
|
|
|
getBuilds(url) {
|
|
|
var _this = this
|
|
|
- this.$axios.get('/api' + url)
|
|
|
+ this.$axios.get('/jxch-smartmp-api/HotWaters/watergetBuilds.action')
|
|
|
.then(res => {
|
|
|
// console.log(res.data);
|
|
|
if (typeof(res.data.builds) != 'undefined' && res.data.builds != '' && JSON.stringify(res
|
|
|
@@ -243,7 +243,7 @@
|
|
|
var _this = this
|
|
|
_this.tableData = []
|
|
|
// _this.rows_total = 0
|
|
|
- this.$axios.get('/api' + url, {
|
|
|
+ this.$axios.get(url, {
|
|
|
params: params
|
|
|
})
|
|
|
.then(res => {
|
|
|
@@ -289,7 +289,7 @@
|
|
|
}
|
|
|
}
|
|
|
// 查询该栋的信息
|
|
|
- this.updateTable('/HotWaters/waterquerylist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
|
|
|
},
|
|
|
/**
|
|
|
* 改变页码
|
|
|
@@ -311,7 +311,7 @@
|
|
|
}
|
|
|
}
|
|
|
// 查询该栋的信息
|
|
|
- this.updateTable('/HotWaters/waterquerylist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
|
|
|
},
|
|
|
/**
|
|
|
* 导出表格
|
|
|
@@ -328,7 +328,7 @@
|
|
|
} else {
|
|
|
params = ''
|
|
|
}
|
|
|
- this.$axios.post('/api/HotWaters/watertoExcel.action', params)
|
|
|
+ this.$axios.post('/jxch-smartmp-api/HotWaters/watertoExcel.action', params)
|
|
|
.then(res => {
|
|
|
console.log(res.data.downurl);
|
|
|
if (typeof(res.data.downurl) != 'undefined' && res.data.downurl != '' && JSON.stringify(res
|
|
|
@@ -358,7 +358,7 @@
|
|
|
*/
|
|
|
handleDelRow() {
|
|
|
var _this = this
|
|
|
- this.$axios.get('/api/HotWaters/waterdelBuild.action', {
|
|
|
+ this.$axios.get('/jxch-smartmp-api/HotWaters/waterdelBuild.action', {
|
|
|
params: {
|
|
|
id: this.delRowId
|
|
|
}
|
|
|
@@ -372,7 +372,7 @@
|
|
|
page: this.currentPage,
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
- this.updateTable('/HotWaters/waterlist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
|
|
|
// 取得楼栋号,填充下拉列表
|
|
|
this.getBuildsFillSelect()
|
|
|
} else {
|
|
|
@@ -422,7 +422,7 @@
|
|
|
return
|
|
|
}
|
|
|
var _this = this
|
|
|
- this.$axios.get('/api/HotWaters/wateraddBuild.action', {
|
|
|
+ this.$axios.get('/jxch-smartmp-api/HotWaters/wateraddBuild.action', {
|
|
|
params: {
|
|
|
user_id: String(this.addform.user_id).trim(),
|
|
|
dom: String(this.addform.dom).trim(),
|
|
|
@@ -443,7 +443,7 @@
|
|
|
page: this.currentPage,
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
- this.updateTable('/HotWaters/waterlist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
|
|
|
// 取得楼栋号,填充下拉列表
|
|
|
this.getBuildsFillSelect()
|
|
|
} else {
|
|
|
@@ -473,7 +473,7 @@
|
|
|
return
|
|
|
}
|
|
|
var _this = this
|
|
|
- this.$axios.get('/api/HotWaters/waterupdateBuild.action', {
|
|
|
+ this.$axios.get('/jxch-smartmp-api/HotWaters/waterupdateBuild.action', {
|
|
|
params: {
|
|
|
id: this.form.id,
|
|
|
user_id: String(this.form.user_id).trim(),
|
|
|
@@ -490,7 +490,7 @@
|
|
|
page: this.currentPage,
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
- this.updateTable('/HotWaters/waterlist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterlist.action', params)
|
|
|
// 取得楼栋号,填充下拉列表
|
|
|
this.getBuildsFillSelect()
|
|
|
} else {
|
|
|
@@ -536,7 +536,7 @@
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
}
|
|
|
- this.updateTable('/HotWaters/waterquerylist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
|
|
|
this.$message.success('水表id包含:' + this.query_shuibiaoId + ' 查询完成!')
|
|
|
} else {
|
|
|
if (this.form_select.value == 0) {
|
|
|
@@ -544,14 +544,14 @@
|
|
|
page: 1,
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
- this.updateTable('/HotWaters/waterquerylist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
|
|
|
} else {
|
|
|
params = {
|
|
|
build: this.form_select.label,
|
|
|
page: 1,
|
|
|
rows: this.pageRows
|
|
|
}
|
|
|
- this.updateTable('/HotWaters/waterquerylist.action', params)
|
|
|
+ this.updateTable('/jxch-smartmp-api/HotWaters/waterquerylist.action', params)
|
|
|
}
|
|
|
// this.$message.error('请输入水表id 或 选择 楼栋号')
|
|
|
}
|