mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
Compare commits
2 Commits
e9417fb07f
...
1f106db540
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f106db540 | ||
|
|
829c544e72 |
@ -184,8 +184,8 @@ export default {
|
||||
|
||||
try {
|
||||
const res = await importMeterWaterData(formData)
|
||||
if(!res.code){
|
||||
this.$message.error(res)
|
||||
if( res.code != 0){
|
||||
this.$message.error(res.msg)
|
||||
return ;
|
||||
}
|
||||
this.$message.success(this.$t('meterWater.importSuccess'))
|
||||
|
||||
@ -188,7 +188,10 @@ export default {
|
||||
|
||||
try {
|
||||
const res = await importMeterWaterData(formData)
|
||||
|
||||
if( res.code != 0){
|
||||
this.$message.error(res.msg)
|
||||
return ;
|
||||
}
|
||||
this.$message.success(this.$t('meterWater.importSuccess'))
|
||||
this.dialogVisible = false
|
||||
this.$emit('success', res.logId)
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
<el-form-item :label="$t('addInspectionPoint.itemId')" prop="itemId">
|
||||
<el-select v-model="addInspectionPointInfo.itemId"
|
||||
:placeholder="$t('addInspectionPoint.placeholder.itemId')" style="width: 100%;">
|
||||
<el-option v-for="item in addInspectionPointInfo.items" :key="item.itemId" :label="item.itemName"
|
||||
<el-option v-for="(item, index) in addInspectionPointInfo.items" :key="index" :label="item.itemName"
|
||||
:value="item.itemId" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -158,10 +158,10 @@ export default {
|
||||
this.dialogVisible = true
|
||||
this.resetForm()
|
||||
this.getDictData()
|
||||
this._listAddInspectionItems()
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.initMap()
|
||||
this._listAddInspectionItems()
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@ -4,14 +4,14 @@ module.exports = {
|
||||
open: true, // 自动打开浏览器
|
||||
proxy: {
|
||||
'/app': {
|
||||
target: 'http://127.0.0.1:8008/app', // 后端API地址
|
||||
target: 'http://demo.homecommunity.cn/app', // 后端API地址
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/app': ''
|
||||
}
|
||||
},
|
||||
'/callComponent': {
|
||||
target: 'http://127.0.0.1:8008/callComponent', // 后端API地址
|
||||
target: 'http://demo.homecommunity.cn/callComponent', // 后端API地址
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/callComponent': ''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user