Commit 1f106db54068cb6d3e10732f5bf1a2703160724b

Authored by wuxw
1 parent 829c544e

v1.9 修复水电导表提示错误问题

src/components/fee/importMeterWaterFee.vue
@@ -184,8 +184,8 @@ export default { @@ -184,8 +184,8 @@ export default {
184 184
185 try { 185 try {
186 const res = await importMeterWaterData(formData) 186 const res = await importMeterWaterData(formData)
187 - if(!res.code){  
188 - this.$message.error(res) 187 + if( res.code != 0){
  188 + this.$message.error(res.msg)
189 return ; 189 return ;
190 } 190 }
191 this.$message.success(this.$t('meterWater.importSuccess')) 191 this.$message.success(this.$t('meterWater.importSuccess'))
src/components/fee/importMeterWaterFee2.vue
@@ -188,7 +188,10 @@ export default { @@ -188,7 +188,10 @@ export default {
188 188
189 try { 189 try {
190 const res = await importMeterWaterData(formData) 190 const res = await importMeterWaterData(formData)
191 - 191 + if( res.code != 0){
  192 + this.$message.error(res.msg)
  193 + return ;
  194 + }
192 this.$message.success(this.$t('meterWater.importSuccess')) 195 this.$message.success(this.$t('meterWater.importSuccess'))
193 this.dialogVisible = false 196 this.dialogVisible = false
194 this.$emit('success', res.logId) 197 this.$emit('success', res.logId)
vue.config.js
@@ -4,14 +4,14 @@ module.exports = { @@ -4,14 +4,14 @@ module.exports = {
4 open: true, // 自动打开浏览器 4 open: true, // 自动打开浏览器
5 proxy: { 5 proxy: {
6 '/app': { 6 '/app': {
7 - target: 'http://127.0.0.1:8008/app', // 后端API地址 7 + target: 'http://demo.homecommunity.cn/app', // 后端API地址
8 changeOrigin: true, 8 changeOrigin: true,
9 pathRewrite: { 9 pathRewrite: {
10 '^/app': '' 10 '^/app': ''
11 } 11 }
12 }, 12 },
13 '/callComponent': { 13 '/callComponent': {
14 - target: 'http://127.0.0.1:8008/callComponent', // 后端API地址 14 + target: 'http://demo.homecommunity.cn/callComponent', // 后端API地址
15 changeOrigin: true, 15 changeOrigin: true,
16 pathRewrite: { 16 pathRewrite: {
17 '^/callComponent': '' 17 '^/callComponent': ''