dingxin 6 年之前
父節點
當前提交
8a7a427c5f

+ 4
- 12
VUECODE/smart-property-manage/src/views/grogshop/configindex.vue 查看文件

@@ -48,20 +48,12 @@
48 48
       <el-form-item label="酒店地址" prop="hotelAddress">
49 49
         <el-input v-model="listData.hotelAddress"/>
50 50
       </el-form-item>
51
-<<<<<<< HEAD
52 51
       <el-form-item label="地图定位">
53
-        <span  style="font-size:0.7vw;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
54
-        <div>
52
+        <span  style="font-size:14px;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
55 53
         <span>高德坐标</span>
56
-        <el-input placeholder="经度" v-model="listData.hotelLongitude" style="width: 150px;" />
57
-        <el-input placeholder="纬度" v-model="listData.hotelLatitude" style="width: 150px;" />
58
-        </div>
59
-=======
60
-      <el-form-item label="高德坐标" prop="hotelLatitude">
61
-        <el-input placeholder="经度" v-model="listData.hotelLongitude" style="width: 150px;" />
62
-        <el-input placeholder="纬度" v-model="listData.hotelLatitude" style="width: 150px;" />
63
-        <span  style="color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
64
->>>>>>> e8f4a282c9948bc18a2bac11b9a4ab6b8d9e8c70
54
+        <el-input placeholder="经度" v-model="listData.hotelLongitude" style="width: 100px;" />
55
+        <el-input placeholder="纬度" v-model="listData.hotelLatitude" style="width: 100px;" />
56
+        
65 57
       </el-form-item>
66 58
       <el-form-item label="">
67 59
          <!-- 地图 -->

+ 4
- 5
VUECODE/smart-property-manage/src/views/rental/rentalAdd.vue 查看文件

@@ -92,12 +92,11 @@
92 92
         <el-checkbox v-model="listData.balcony" true-label="1" false-label="0">阳台</el-checkbox>
93 93
       </el-form-item>
94 94
       <el-form-item label="地图定位" prop="communityLatitude">
95
-        <span  style="font-size:0.7vw;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
96
-        <div>
97 95
         <span>高德坐标</span>
98
-        <el-input placeholder="经度" v-model="listData.communityLongitude" style="width: 150px;" />
99
-        <el-input placeholder="纬度" v-model="listData.communityLatitude" style="width: 150px;" />
100
-        </div>
96
+        <span  style="font-size:14px;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
97
+        <span>高德坐标</span>
98
+        <el-input placeholder="经度" v-model="listData.communityLongitude" style="width: 100px;" />
99
+        <el-input placeholder="纬度" v-model="listData.communityLatitude" style="width: 100px;" />
101 100
       </el-form-item>
102 101
       <el-form-item label="">
103 102
          <!-- 地图 -->

+ 10
- 1
VUECODE/smart-property-manage/src/views/shop/shopAdd.vue 查看文件

@@ -88,7 +88,7 @@
88 88
           </el-amap>
89 89
         </div>
90 90
       </el-form-item>
91
-      <el-form-item label="商铺介绍">
91
+      <el-form-item label="商铺介绍" prop="shopIntroductionValue">
92 92
           <!-- <el-input v-model="addForm.bannerContent" placeholder="内容详情"/> -->
93 93
           <div id="father">
94 94
             <wangeditor @wangeditorEvent="wangeditorValue"/>
@@ -177,6 +177,9 @@ export default {
177 177
         ],
178 178
         averagePrice: [
179 179
           { required: true, message: '请输入人均消费', trigger: 'blur' }
180
+        ],
181
+        shopIntroductionValue: [
182
+          { required: true, message: '', trigger: 'blur' }
180 183
         ]
181 184
       }
182 185
     }
@@ -248,6 +251,11 @@ export default {
248 251
       this.listData.shopIntroduction = value // 在这里接受子组件传过来的参数,赋值给data里的参数
249 252
     },
250 253
     submitForm(formName) { // 提交
254
+    console.log('this.listData.shopIntroduction',this.listData.shopIntroduction)
255
+    if(this.listData.shopIntroduction ==='<p><br></p>'){
256
+        this.$message.error('商铺介绍不能为空');
257
+        return
258
+      }
251 259
       this.$refs[formName].validate((valid) => {
252 260
         if (valid) {
253 261
           this.addShop()
@@ -267,6 +275,7 @@ export default {
267 275
       this.$refs[formName].resetFields()
268 276
     },
269 277
     addShop() {
278
+      console.log('this.listData.shopIntroduction',this.listData.shopIntroduction)
270 279
       if(this.listData.shopIntroduction ===''){
271 280
         this.$message.error('商铺介绍不能为空');
272 281
         return

+ 10
- 4
VUECODE/smart-property-manage/src/views/shop/shopEdit.vue 查看文件

@@ -4,7 +4,7 @@
4 4
       <!-- <el-form-item label="商铺名称" prop="shopName">
5 5
         <el-input v-model="listData.shopName"/>
6 6
       </el-form-item> -->
7
-      <el-form-item label="商铺说明" prop="remark">
7
+      <el-form-item label="商铺说明11" prop="remark">
8 8
         <el-input v-model="listData.remark"/>
9 9
       </el-form-item>
10 10
       <el-form-item label="app首页展示图" prop="appIndexImg">
@@ -84,8 +84,8 @@
84 84
           </el-amap>
85 85
         </div>
86 86
       </el-form-item>
87
-      <el-form-item label="商铺介绍">
88
-          <!-- <el-input v-model="addForm.bannerContent" placeholder="内容详情"/>  listData.shopIntroduction-->
87
+      <el-form-item label="* 商铺介绍">
88
+          <!-- <el-input v-model="listData.shopIntroductiont" placeholder="内容详情"/>   -->
89 89
           <div id="father">
90 90
             <wangeditor :content="listData.shopIntroduction" @wangeditorEvent="wangeditorValue"/>
91 91
           </div>
@@ -162,7 +162,7 @@ export default {
162 162
           { required: true, message: 'app列表展示图', trigger: 'blur' }
163 163
         ],
164 164
         appCarouselImg: [
165
-          { required: false, message: 'app商铺轮播图', trigger: 'blur' }
165
+          { required: true, message: 'app商铺轮播图', trigger: 'blur' }
166 166
         ],
167 167
         shopName: [
168 168
           { required: true, message: '商铺名称', trigger: 'blur' }
@@ -287,6 +287,12 @@ export default {
287 287
         loading.close()
288 288
         return
289 289
       }
290
+      console.log()
291
+      if(this.listData.shopIntroduction ==='<p><br></p>'){
292
+        this.$message.error('商铺介绍不能为空');
293
+        loading.close()
294
+        return
295
+      }
290 296
       this.$store.dispatch('shopType/UpdateShop', this.listData).then((res) => {
291 297
         if (res.code === '0') {
292 298
           this.$message({