Compare commits

...

2 Commits

Author SHA1 Message Date
wuxw
1f106db540 v1.9 修复水电导表提示错误问题 2025-09-26 13:53:52 +08:00
wuxw
829c544e72 优化代码 2025-09-24 17:27:13 +08:00
4 changed files with 10 additions and 7 deletions

View File

@ -184,8 +184,8 @@ export default {
try { try {
const res = await importMeterWaterData(formData) const res = await importMeterWaterData(formData)
if(!res.code){ if( res.code != 0){
this.$message.error(res) this.$message.error(res.msg)
return ; return ;
} }
this.$message.success(this.$t('meterWater.importSuccess')) this.$message.success(this.$t('meterWater.importSuccess'))

View File

@ -188,7 +188,10 @@ export default {
try { try {
const res = await importMeterWaterData(formData) const res = await importMeterWaterData(formData)
if( res.code != 0){
this.$message.error(res.msg)
return ;
}
this.$message.success(this.$t('meterWater.importSuccess')) this.$message.success(this.$t('meterWater.importSuccess'))
this.dialogVisible = false this.dialogVisible = false
this.$emit('success', res.logId) this.$emit('success', res.logId)

View File

@ -44,7 +44,7 @@
<el-form-item :label="$t('addInspectionPoint.itemId')" prop="itemId"> <el-form-item :label="$t('addInspectionPoint.itemId')" prop="itemId">
<el-select v-model="addInspectionPointInfo.itemId" <el-select v-model="addInspectionPointInfo.itemId"
:placeholder="$t('addInspectionPoint.placeholder.itemId')" style="width: 100%;"> :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" /> :value="item.itemId" />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -158,10 +158,10 @@ export default {
this.dialogVisible = true this.dialogVisible = true
this.resetForm() this.resetForm()
this.getDictData() this.getDictData()
this._listAddInspectionItems()
this.$nextTick(() => { this.$nextTick(() => {
this.initMap() this.initMap()
this._listAddInspectionItems()
}) })
}, },

View File

@ -4,14 +4,14 @@ module.exports = {
open: true, // 自动打开浏览器 open: true, // 自动打开浏览器
proxy: { proxy: {
'/app': { '/app': {
target: 'http://127.0.0.1:8008/app', // 后端API地址 target: 'http://demo.homecommunity.cn/app', // 后端API地址
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/app': '' '^/app': ''
} }
}, },
'/callComponent': { '/callComponent': {
target: 'http://127.0.0.1:8008/callComponent', // 后端API地址 target: 'http://demo.homecommunity.cn/callComponent', // 后端API地址
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/callComponent': '' '^/callComponent': ''