Browse Source

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

魏熙美 6 years ago
parent
commit
6656b61137

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MessageServiceImpl.java View File

80
 			// 查询工单是否待评价,如果为待评价把Content改为工单的标题
80
 			// 查询工单是否待评价,如果为待评价把Content改为工单的标题
81
 			TpTicket tpTicket= tpTicketMapper.selectByPrimaryKey(tpMessage.getTicketId());
81
 			TpTicket tpTicket= tpTicketMapper.selectByPrimaryKey(tpMessage.getTicketId());
82
 			if (null != tpTicket) {
82
 			if (null != tpTicket) {
83
-				if (!"".equals(tpMessage.getTicketId()) && "5".equals(tpTicket.getStatus())) {
83
+				if (!"".equals(tpMessage.getTicketId())) {
84
 					tpMessage.setContent(tpTicket.getTicketTitle());
84
 					tpMessage.setContent(tpTicket.getTicketTitle());
85
 				}
85
 				}
86
 			}
86
 			}

+ 3
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpRentalHouseServicelImpl.java View File

40
         List<TpRentalHouse> tpRentalHouseList= tpRentalHouseMapper.getRentalHouse(houseName,rentalType,houseType,rentalPrice,priceFluctuate,userElement.getCommunityId());
40
         List<TpRentalHouse> tpRentalHouseList= tpRentalHouseMapper.getRentalHouse(houseName,rentalType,houseType,rentalPrice,priceFluctuate,userElement.getCommunityId());
41
             // 把字符串转数组
41
             // 把字符串转数组
42
         for (TpRentalHouse tpRentalHouse:tpRentalHouseList){
42
         for (TpRentalHouse tpRentalHouse:tpRentalHouseList){
43
-            String [] result = tpRentalHouse.getHouseLabel().split(",");
43
+            String houseLabel= tpRentalHouse.getHouseLabel();
44
+            String houseLabelarr= houseLabel.replace(",", ",");
45
+            String [] result = houseLabelarr.split(",");
44
             tpRentalHouse.setHouseLabelArr(Arrays.asList(result));
46
             tpRentalHouse.setHouseLabelArr(Arrays.asList(result));
45
             // 根据 tpRentalHouse.getId()和img_type为2查询列表图
47
             // 根据 tpRentalHouse.getId()和img_type为2查询列表图
46
             List<TpRentalHouseImg> tpRentalHouseImgList= tpRentalHouseImgMapper.selectRentalHouseImg(tpRentalHouse.getId(),1);
48
             List<TpRentalHouseImg> tpRentalHouseImgList= tpRentalHouseImgMapper.selectRentalHouseImg(tpRentalHouse.getId(),1);

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpHotelMapper.xml View File

191
     where community_id = #{communityId,jdbcType=INTEGER}
191
     where community_id = #{communityId,jdbcType=INTEGER}
192
   </select>
192
   </select>
193
   
193
   
194
-  <select id="hotelSetting" resultType="integer">
194
+  <select id="hotelSetting" resultType="string">
195
     select id from tp_hotel_setting where  community_id = #{communityId};
195
     select id from tp_hotel_setting where  community_id = #{communityId};
196
   </select>
196
   </select>
197
 
197
 

+ 10
- 10
CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml View File

537
       </if>
537
       </if>
538
 
538
 
539
       <if test="rentalPrice == 1" >
539
       <if test="rentalPrice == 1" >
540
-        and  '1000' >= rh.rental_price
540
+        and rh.rental_price <![CDATA[<= ]]> 1000
541
       </if>
541
       </if>
542
 
542
 
543
       <if test="rentalPrice == 2" >
543
       <if test="rentalPrice == 2" >
544
-        and  '1500' >= rh.rental_type
545
-        and  rh.rental_price >= '1000'
544
+        and  rh.rental_price <![CDATA[>= ]]> 1000
545
+        and  rh.rental_price <![CDATA[<= ]]> 1500
546
       </if>
546
       </if>
547
 
547
 
548
       <if test="rentalPrice == 3" >
548
       <if test="rentalPrice == 3" >
549
-        and  '2000' >= rh.rental_type
550
-        and  rh.rental_price >= '1500'
549
+        and  rh.rental_price <![CDATA[>= ]]> 1500
550
+        and  rh.rental_price <![CDATA[<= ]]> 2000
551
       </if>
551
       </if>
552
 
552
 
553
       <if test="rentalPrice == 4" >
553
       <if test="rentalPrice == 4" >
554
-        and  '3000' >= rh.rental_type
555
-        and  rh.rental_price >= '2000'
554
+        and  rh.rental_price <![CDATA[>= ]]> 2000
555
+        and  rh.rental_price <![CDATA[<= ]]> 3000
556
       </if>
556
       </if>
557
 
557
 
558
       <if test="rentalPrice == 5" >
558
       <if test="rentalPrice == 5" >
559
-        and  '4000' >= rh.rental_type
560
-        and  rh.rental_price >= '3000'
559
+        and  rh.rental_price <![CDATA[>= ]]> 3000
560
+        and  rh.rental_price<![CDATA[ <= ]]> 4000
561
       </if>
561
       </if>
562
 
562
 
563
       <if test="rentalPrice == 6" >
563
       <if test="rentalPrice == 6" >
564
-        and  rh.rental_price >= '4000'
564
+        and  rh.rental_price >= 4000
565
       </if>
565
       </if>
566
 
566
 
567
       <if test="priceFluctuate == 1" >
567
       <if test="priceFluctuate == 1" >

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/HotelController.java View File

112
 
112
 
113
     @ApiOperation(value = "修改当前房间上架或下架状态", notes = "修改当前房间上架或下架状态")
113
     @ApiOperation(value = "修改当前房间上架或下架状态", notes = "修改当前房间上架或下架状态")
114
     @ApiImplicitParams({
114
     @ApiImplicitParams({
115
-            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:房间ID,roomStatus:(1:是已上架 2:是已下架)"
115
+            @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "id:[]房间ID,roomStatus:(1:是已上架 2:是已下架)"
116
             )})
116
             )})
117
     @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
117
     @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
118
     @RequestMapping(value = "/hotelRoomRoomStatus", method = RequestMethod.POST)
118
     @RequestMapping(value = "/hotelRoomRoomStatus", method = RequestMethod.POST)
135
         return responseBean;
135
         return responseBean;
136
     }
136
     }
137
     
137
     
138
-    @ApiOperation(value = "添加房间", notes = "添加房间")
138
+    @ApiOperation(value = "添加酒店", notes = "添加酒店")
139
     @ApiImplicitParams({
139
     @ApiImplicitParams({
140
             @ApiImplicitParam(paramType = "body", dataType = "Hotel", name = "hotel", value = "酒店"),
140
             @ApiImplicitParam(paramType = "body", dataType = "Hotel", name = "hotel", value = "酒店"),
141
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
141
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")

+ 5
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/Hotel.java View File

97
     @TableField(exist = false)
97
     @TableField(exist = false)
98
     private Boolean hotelSettingValue;
98
     private Boolean hotelSettingValue;
99
 
99
 
100
+    /**
101
+     * 酒店名称
102
+     */
103
+    private String hotelName;
104
+
100
 }
105
 }

+ 24
- 13
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/HotelServiceImpl.java View File

1
 package com.community.huiju.service.impl;
1
 package com.community.huiju.service.impl;
2
 
2
 
3
+import com.alibaba.fastjson.JSONArray;
3
 import com.alibaba.fastjson.JSONObject;
4
 import com.alibaba.fastjson.JSONObject;
4
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
 import com.baomidou.mybatisplus.core.metadata.IPage;
6
 import com.baomidou.mybatisplus.core.metadata.IPage;
149
     public ResponseBean hotelRoomRoomStatus(String parameter, UserElement userElement) {
150
     public ResponseBean hotelRoomRoomStatus(String parameter, UserElement userElement) {
150
         ResponseBean responseBean= new ResponseBean<>();
151
         ResponseBean responseBean= new ResponseBean<>();
151
         JSONObject object= JSONObject.parseObject(parameter);
152
         JSONObject object= JSONObject.parseObject(parameter);
152
-        Integer id= object.getInteger("id");
153
-        String roomStatus= object.getString("roomStatus");
154
-        HotelRoom hotelRoom= tpHotelRoomMapper.selectById(id);
155
-        hotelRoom.setRoomStatus(roomStatus);
156
-        hotelRoom.setUpdateDate(LocalDateTime.now());
157
-        hotelRoom.setUpdateUser(userElement.getId());
158
-        tpHotelRoomMapper.updateById(hotelRoom);
159
-        responseBean.addSuccess("成功");
153
+        JSONArray arr= object.getJSONArray("id");
154
+        Integer[] arrId= arr.toArray(new Integer[]{});
155
+        for (Integer id:arrId){
156
+            String roomStatus= object.getString("roomStatus");
157
+            HotelRoom hotelRoom= tpHotelRoomMapper.selectById(id);
158
+            hotelRoom.setRoomStatus(roomStatus);
159
+            hotelRoom.setUpdateDate(LocalDateTime.now());
160
+            hotelRoom.setUpdateUser(userElement.getId());
161
+            tpHotelRoomMapper.updateById(hotelRoom);
162
+            responseBean.addSuccess("成功");
163
+        }
164
+
160
         return responseBean;
165
         return responseBean;
161
     }
166
     }
162
     
167
     
208
     @Override
213
     @Override
209
     public ResponseBean addHotel(Hotel hotel, UserElement userElement) {
214
     public ResponseBean addHotel(Hotel hotel, UserElement userElement) {
210
         if (hotel.getHotelSettingValue()){
215
         if (hotel.getHotelSettingValue()){
211
-            HotelSetting hotelSetting = new HotelSetting();
212
-            hotelSetting.setCommunityId(userElement.getCommunityId());
213
-            hotelSetting.setCreateDate(LocalDateTime.now());
214
-            hotelSetting.setCreateUser(userElement.getId());
215
-            hotelSettingMapper.insert(hotelSetting);
216
+            // 为true时判断tp_hotel_setting是否存在当前小区
217
+            QueryWrapper<HotelSetting> hotelSettingQuery = new QueryWrapper<>();
218
+            hotelSettingQuery.eq("community_id",userElement.getCommunityId());
219
+            HotelSetting communitySetting= hotelSettingMapper.selectOne(hotelSettingQuery);
220
+            if (null == communitySetting) {
221
+                HotelSetting hotelSetting = new HotelSetting();
222
+                hotelSetting.setCommunityId(userElement.getCommunityId());
223
+                hotelSetting.setCreateDate(LocalDateTime.now());
224
+                hotelSetting.setCreateUser(userElement.getId());
225
+                hotelSettingMapper.insert(hotelSetting);
226
+            }
216
         }else {
227
         }else {
217
             QueryWrapper<HotelSetting> queryWrapper = new QueryWrapper<>();
228
             QueryWrapper<HotelSetting> queryWrapper = new QueryWrapper<>();
218
             queryWrapper.eq("community_id",userElement.getCommunityId());
229
             queryWrapper.eq("community_id",userElement.getCommunityId());

+ 1
- 1
VUECODE/smart-property-manage/src/api/grogshop.js View File

60
     url: '/hotelRoomRoomStatus',
60
     url: '/hotelRoomRoomStatus',
61
     method: 'post',
61
     method: 'post',
62
     data: {
62
     data: {
63
-      id: data.id,
63
+      roomStatusIds: data.roomStatusIds,
64
       roomStatus: data.roomStatus
64
       roomStatus: data.roomStatus
65
     }
65
     }
66
   })
66
   })

+ 8
- 1
VUECODE/smart-property-manage/src/views/grogshop/configindex.vue View File

37
           <img width="100%" :src="dialogImageUrl" alt="">
37
           <img width="100%" :src="dialogImageUrl" alt="">
38
         </el-dialog>
38
         </el-dialog>
39
       </el-form-item>
39
       </el-form-item>
40
+      <el-form-item label="酒店名称" prop="hotelName">
41
+        <el-input v-model="listData.hotelName"/>
42
+      </el-form-item>
40
       <el-form-item label="联系电话" prop="hotelTel">
43
       <el-form-item label="联系电话" prop="hotelTel">
41
         <el-input v-model="listData.hotelTel"/>
44
         <el-input v-model="listData.hotelTel"/>
42
       </el-form-item>
45
       </el-form-item>
93
         hotelAddress: '',
96
         hotelAddress: '',
94
         hotelLongitude: '',
97
         hotelLongitude: '',
95
         hotelLatitude: '',
98
         hotelLatitude: '',
96
-        hotelIntroduction: ''
99
+        hotelIntroduction: '',
100
+        hotelName: ''
97
       },
101
       },
98
       dialogImageUrl: '',
102
       dialogImageUrl: '',
99
       dialogVisible: false,
103
       dialogVisible: false,
120
         appCarouselImg: [
124
         appCarouselImg: [
121
           { required: true, message: '轮播图', trigger: 'blur' }
125
           { required: true, message: '轮播图', trigger: 'blur' }
122
         ],
126
         ],
127
+        hotelName: [
128
+          { required: true, message: '酒店名称', trigger: 'blur' }
129
+        ],
123
       }
130
       }
124
     }
131
     }
125
   },
132
   },

+ 7
- 13
VUECODE/smart-property-manage/src/views/grogshop/grogshopRoom.vue View File

37
       <el-row>
37
       <el-row>
38
       <el-button type="success" @click="addHotelRoom()">新增</el-button>
38
       <el-button type="success" @click="addHotelRoom()">新增</el-button>
39
       <el-button type="info" @click="addHotelEndit()">编辑</el-button>
39
       <el-button type="info" @click="addHotelEndit()">编辑</el-button>
40
-       <el-button type="primary" @click="addHotelEnditRoom(1)">上架房间</el-button>
41
-      <el-button type="danger" @click="addHotelEnditRoom(2)">下架房间</el-button>
40
+       <el-button type="primary" @click="enditRoom(1)">上架房间</el-button>
41
+      <el-button type="danger" @click="enditRoom(2)">下架房间</el-button>
42
       </el-row>
42
       </el-row>
43
 
43
 
44
     </el-form>
44
     </el-form>
102
             beginTime: '',
102
             beginTime: '',
103
             endTime: '',
103
             endTime: '',
104
             roomStatus: '',
104
             roomStatus: '',
105
-            editUser: ''      
105
+            editUser: '',
106
+            roomStatusIds: []       
106
           },
107
           },
107
            deleteIds: [], // 选择的id集合
108
            deleteIds: [], // 选择的id集合
108
            total: 0,
109
            total: 0,
195
     clickTitle(ids){
196
     clickTitle(ids){
196
     this.$router.push({ name: 'grogshop-grogshopRoomEdit', query: { id: ids}})
197
     this.$router.push({ name: 'grogshop-grogshopRoomEdit', query: { id: ids}})
197
     },
198
     },
198
-    addHotelEnditRoom(ides){
199
-       const SID = this.deleteIds
200
-      if (SID.length > 1) {
201
-        this.$message.error('只能选择一行数据进行修改!')
202
-        return
203
-      }
204
-      console.log('ides',ides)
205
-        const ids = this.deleteIds[0]
206
-         this.listQuery.id = ids
207
-         this.listQuery.roomStatus = ides
199
+    enditRoom(){
200
+         const ids = this.deleteIds
201
+         this.listQuery.roomStatusIds = ids
208
          this.$store.dispatch('HotelRoomRoomStatus', this.listQuery).then((res) => {
202
          this.$store.dispatch('HotelRoomRoomStatus', this.listQuery).then((res) => {
209
          this.$message({
203
          this.$message({
210
           message: '成功',
204
           message: '成功',

+ 4
- 3
VUECODE/smart-property-manage/src/views/social/activity/add/index.vue View File

14
           :before-upload="beforeAvatarUpload"
14
           :before-upload="beforeAvatarUpload"
15
           class="avatar-uploader"
15
           class="avatar-uploader"
16
           name="uploadFiles"
16
           name="uploadFiles"
17
-          action="http://106.14.20.193:8086/property-api/uploadimage">
17
+          :action="uploadImgUrl">
18
           <img v-if="imageUrl" :src="imageUrl" class="avatar">
18
           <img v-if="imageUrl" :src="imageUrl" class="avatar">
19
           <i v-else  class="el-icon-plus avatar-uploader-icon"/>
19
           <i v-else  class="el-icon-plus avatar-uploader-icon"/>
20
         </el-upload>
20
         </el-upload>
33
           :on-remove="handleRemove"
33
           :on-remove="handleRemove"
34
           :on-success="handleSuccessContentImg"
34
           :on-success="handleSuccessContentImg"
35
           name="uploadFiles"
35
           name="uploadFiles"
36
-          action="http://106.14.20.193:8086/property-api/uploadimage"
36
+          :action="uploadImgUrl"
37
           list-type="picture-card">
37
           list-type="picture-card">
38
           <i class="el-icon-plus"/>
38
           <i class="el-icon-plus"/>
39
         </el-upload>
39
         </el-upload>
116
         sort: [
116
         sort: [
117
           { required: true, message: '请输入权重值', trigger: 'change' }
117
           { required: true, message: '请输入权重值', trigger: 'change' }
118
         ]
118
         ]
119
-      }
119
+      },
120
+      uploadImgUrl: process.env.BASE_API + '/uploadimage',
120
     }
121
     }
121
   },
122
   },
122
   methods: {
123
   methods: {

+ 5
- 4
VUECODE/smart-property-manage/src/views/social/activity/edi/index.vue View File

13
           :on-success="handleAvatarSuccess"
13
           :on-success="handleAvatarSuccess"
14
           :before-upload="beforeAvatarUpload"
14
           :before-upload="beforeAvatarUpload"
15
           class="avatar-uploader"
15
           class="avatar-uploader"
16
-          name="uploadFiles"
17
-          action="http://106.14.20.193:8086/property-api/uploadimage">
16
+          :name="uploadFiles"
17
+          :action="uploadImgUrl">
18
           <img v-if="imageUrl" :src="imageUrl" class="avatar">
18
           <img v-if="imageUrl" :src="imageUrl" class="avatar">
19
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
19
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
20
         </el-upload>
20
         </el-upload>
34
           :on-success="handleSuccessContentImg"
34
           :on-success="handleSuccessContentImg"
35
           :file-list="activityContentList"
35
           :file-list="activityContentList"
36
           name="uploadFiles"
36
           name="uploadFiles"
37
-          action="http://106.14.20.193:8086/property-api/uploadimage"
37
+          :action="uploadImgUrl"
38
           list-type="picture-card">
38
           list-type="picture-card">
39
           <i class="el-icon-plus"/>
39
           <i class="el-icon-plus"/>
40
         </el-upload>
40
         </el-upload>
120
         sort: [
120
         sort: [
121
           { required: true, message: '请输入权重值', trigger: 'change' }
121
           { required: true, message: '请输入权重值', trigger: 'change' }
122
         ]
122
         ]
123
-      }
123
+      },
124
+      uploadImgUrl: process.env.BASE_API + '/uploadimage',
124
     }
125
     }
125
   },
126
   },
126
   mounted() {
127
   mounted() {

+ 4
- 3
VUECODE/smart-property-manage/src/views/social/announcement/add.vue View File

15
           :before-upload="beforeAvatarUpload"
15
           :before-upload="beforeAvatarUpload"
16
           class="avatar-uploader"
16
           class="avatar-uploader"
17
           name="uploadFiles"
17
           name="uploadFiles"
18
-          action="http://106.14.20.193:8086/property-api/uploadimage">
18
+          :action="uploadImgUrl">
19
           <img v-if="imageUrl" :src="imageUrl" class="avatar">
19
           <img v-if="imageUrl" :src="imageUrl" class="avatar">
20
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
20
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
21
         </el-upload>
21
         </el-upload>
35
           :on-remove="handleRemove"
35
           :on-remove="handleRemove"
36
           :on-success="handleSuccessContentImg"
36
           :on-success="handleSuccessContentImg"
37
           name="uploadFiles"
37
           name="uploadFiles"
38
-          action="http://106.14.20.193:8086/property-api/uploadimage"
38
+          :action="uploadImgUrl"
39
           list-type="picture-card">
39
           list-type="picture-card">
40
           <i class="el-icon-plus"/>
40
           <i class="el-icon-plus"/>
41
         </el-upload>
41
         </el-upload>
84
         sort: [
84
         sort: [
85
           { required: true, message: '请输入权重值', trigger: 'change' }
85
           { required: true, message: '请输入权重值', trigger: 'change' }
86
         ]
86
         ]
87
-      }
87
+      },
88
+      uploadImgUrl: process.env.BASE_API + '/uploadimage',
88
     }
89
     }
89
   },
90
   },
90
   methods: {
91
   methods: {

+ 4
- 3
VUECODE/smart-property-manage/src/views/social/announcement/edit.vue View File

14
           :before-upload="beforeAvatarUpload"
14
           :before-upload="beforeAvatarUpload"
15
           class="avatar-uploader"
15
           class="avatar-uploader"
16
           name="uploadFiles"
16
           name="uploadFiles"
17
-          action="http://106.14.20.193:8086/property-api/uploadimage">
17
+          :action="uploadImgUrl">
18
           <img v-if="Urlimage" :src="Urlimage" class="avatar">
18
           <img v-if="Urlimage" :src="Urlimage" class="avatar">
19
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
19
           <i v-else class="el-icon-plus avatar-uploader-icon"/>
20
         </el-upload>
20
         </el-upload>
34
           :on-success="handleSuccessContentImg"
34
           :on-success="handleSuccessContentImg"
35
           :file-list="contentImgList"
35
           :file-list="contentImgList"
36
           name="uploadFiles"
36
           name="uploadFiles"
37
-          action="http://106.14.20.193:8086/property-api/uploadimage"
37
+          :action="uploadImgUrl"
38
           list-type="picture-card">
38
           list-type="picture-card">
39
           <i class="el-icon-plus"/>
39
           <i class="el-icon-plus"/>
40
         </el-upload>
40
         </el-upload>
83
         sort: [
83
         sort: [
84
           { required: true, message: '请输入权重值', trigger: 'change' }
84
           { required: true, message: '请输入权重值', trigger: 'change' }
85
         ]
85
         ]
86
-      }
86
+      },
87
+      uploadImgUrl: process.env.BASE_API + '/uploadimage',
87
     }
88
     }
88
   },
89
   },
89
   mounted() {
90
   mounted() {

+ 3
- 2
VUECODE/smart-property-manage/src/views/social/transaction/transactionAdd.vue View File

27
           :on-remove="handleRemove"
27
           :on-remove="handleRemove"
28
           :on-success="handleSuccessContentImg"
28
           :on-success="handleSuccessContentImg"
29
           name="uploadFiles"
29
           name="uploadFiles"
30
-          action="http://106.14.20.193:8086/property-api/uploadimage"
30
+          :action="uploadImgUrl"
31
           list-type="picture-card">
31
           list-type="picture-card">
32
           <i class="el-icon-plus"/>
32
           <i class="el-icon-plus"/>
33
         </el-upload>
33
         </el-upload>
92
           { required: true, message: '请输入权重值', trigger: 'change' }
92
           { required: true, message: '请输入权重值', trigger: 'change' }
93
         ]
93
         ]
94
       },
94
       },
95
-      lock: false
95
+      lock: false,
96
+      uploadImgUrl: process.env.BASE_API + '/uploadimage',
96
     }
97
     }
97
   },
98
   },
98
   methods: {
99
   methods: {

+ 3
- 2
VUECODE/smart-property-manage/src/views/social/transaction/transactionEdit.vue View File

29
           :on-success="handleSuccessContentImg"
29
           :on-success="handleSuccessContentImg"
30
           :file-list="contentImgList"
30
           :file-list="contentImgList"
31
           name="uploadFiles"
31
           name="uploadFiles"
32
-          action="http://106.14.20.193:8086/property-api/uploadimage"
32
+          :action="uploadImgUrl"
33
           list-type="picture-card">
33
           list-type="picture-card">
34
           <i class="el-icon-plus"/>
34
           <i class="el-icon-plus"/>
35
         </el-upload>
35
         </el-upload>
96
         sort: [
96
         sort: [
97
           { required: true, message: '请输入权重值', trigger: 'change' }
97
           { required: true, message: '请输入权重值', trigger: 'change' }
98
         ]
98
         ]
99
-      }
99
+      },
100
+      uploadImgUrl: process.env.BASE_API + '/uploadimage',
100
     }
101
     }
101
   },
102
   },
102
   mounted() {
103
   mounted() {