dingxin il y a 6 ans
Parent
révision
70e4d55667

+ 2
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpAnnouncementServiceImpl.java Voir le fichier

@@ -74,9 +74,9 @@ private  TpAnnouncementMapper tpAnnouncementMapper;
74 74
             AnnouncementTable announcementTable = new AnnouncementTable();
75 75
             BeanUtils.copyProperties(e, announcementTable);
76 76
             //创建人
77
-            String createUserName = userMapper.selectByIdUserName(e.getUpdateUser());
77
+            String createUserName = userMapper.selectByIdCreateUserName(e.getUpdateUser());
78 78
             //修改人
79
-            String updateDateName = userMapper.selectByIdUserName(e.getCreateUser());
79
+            String updateDateName = userMapper.selectByIdCreateUserName(e.getCreateUser());
80 80
             announcementTable.setCreateUserName(createUserName);
81 81
             announcementTable.setUpdateDateName(updateDateName);
82 82
             return announcementTable;

+ 4
- 4
VUECODE/smart-property-manage/src/views/owner/index.vue Voir le fichier

@@ -41,9 +41,9 @@
41 41
       <el-table-column label="所在户" align="center">
42 42
         <template slot-scope="scope">
43 43
           <span v-if="scope.row.building!==null&&scope.row.unit!==null&&scope.row.level!==null&&scope.row.roomNo!==null&&scope.row.phase!==null">
44
-          {{ scope.row.phase+scope.row.building + scope.row.unit + scope.row.level + scope.row.roomNo }}
44
+            {{ scope.row.phase+scope.row.building + scope.row.unit + scope.row.level + scope.row.roomNo }}
45 45
           </span>
46
-          </template>
46
+        </template>
47 47
       </el-table-column>
48 48
       <!-- <el-table-column prop="createDate" label="创建时间" width="540" align="center" /> -->
49 49
       <el-table-column label="创建时间" align="center">
@@ -159,8 +159,8 @@ export default {
159 159
       this.listQuery.pageNum = 1
160 160
       this.listQuery.pageSize = 10
161 161
       this.listQuery.ownerName = ''
162
-      this.listQuery.ownerTel =''
163
-	  this.listQuery.verifyStatus=''
162
+      this.listQuery.ownerTel = ''
163
+	    this.listQuery.verifyStatus = ''
164 164
       this.dataQuery()
165 165
     },
166 166
     open3(ownerTel, verifyStatus) {

+ 12
- 31
VUECODE/smart-property-manage/src/views/social/announcement/details.vue Voir le fichier

@@ -6,23 +6,10 @@
6 6
       {{ ruleForm.announcementContent }}
7 7
     </div>
8 8
     <div>
9
-        <template v-for="site in ruleForm.contentImg">
10
-               <img :src="site.url" width="500" height="500" > 
11
-        </template>
12
-     
13
-        <!-- <img :src="item" width="500" height="500" > -->
9
+      <template v-for="site in ruleForm.contentImg">
10
+        <img :src="site.url" width="500" height="500" >
11
+      </template>
14 12
     </div>
15
-    <!-- <div class="progress">
16
-      <div class="text-progress">
17
-        <span class="people-number">已报名人数 {{ ruleForm.signUpCount }}</span>
18
-        <div class="outer-layer"/>
19
-        <div class="inner-layer"/>
20
-      </div>
21
-      <div class="circular"/>
22
-      <div class="people-limit">限制{{ ruleForm.signUpMax }}人</div>
23
-      <el-button type="primary" style="float: left;">查看报名名单</el-button>
24
-    </div> -->
25
-    <!-- <span>报名截止时间:{{ formatDate(ruleForm.registrationEndTime) }}</span> -->
26 13
     <div class="bom-button">
27 14
       <el-button type="primary" style="width: 150px;" @click="edi">修改</el-button>
28 15
     </div>
@@ -50,21 +37,18 @@ export default {
50 37
   },
51 38
   mounted() {
52 39
     this.getById(this.$route.params.id)
53
-    console.log("id",this.id)
54 40
   },
55 41
   methods: {
56 42
     getById(id) { // 根据ID获取活动信息
57
-    console.log(123)
58
-    console.log(id)
59
-       this.ruleForm.id=this.$route.params.id
43
+      this.ruleForm.id = this.$route.params.id
60 44
       this.$store.dispatch('AnnouncementById', this.ruleForm).then((res) => {
61
-      const resData = res.data
62
-      this.ruleForm.announcementTitle=resData.tpAnnouncement.announcementTitle// 标题
63
-      this.ruleForm.announcementContent=resData.tpAnnouncement.announcementContent// 内容
64
-      this.ruleForm.announcementCarouselImg=resData.tpAnnouncement.announcementCarouselImg // 轮播图
65
-      this.sort=resData.tpAnnouncement.sort// 权重
66
-        //多张图片进行遍历
67
-        for (let i = 0; i <resData.studentList.length; i++) {
45
+        const resData = res.data
46
+        this.ruleForm.announcementTitle = resData.tpAnnouncement.announcementTitle // 标题
47
+        this.ruleForm.announcementContent = resData.tpAnnouncement.announcementContent // 内容
48
+        this.ruleForm.announcementCarouselImg = resData.tpAnnouncement.announcementCarouselImg // 轮播图
49
+        this.sort = resData.tpAnnouncement.sort
50
+        // 多张图片进行遍历
51
+        for (let i = 0; i < resData.studentList.length; i++) {
68 52
           this.ruleForm.contentImg.push({ url: resData.studentList[i].imageUrl })
69 53
         }
70 54
       })
@@ -81,10 +65,7 @@ export default {
81 65
       return year + '-' + month + '-' + day
82 66
     },
83 67
     edi() { // 修改活动
84
-        this.$router.push({ name: 'announcement-edit' , params: { id: this.ruleForm.id }})
85
-        console.log("123")
86
-        //   this.$router.push({ name: 'announcement-edit', params: { id: this.ruleForm.id }})
87
-      
68
+      this.$router.push({ name: 'announcement-edit', params: { id: this.ruleForm.id }})
88 69
     }
89 70
   }
90 71
 }

+ 1
- 1
VUECODE/smart-property-manage/src/views/social/announcement/edit.vue Voir le fichier

@@ -145,7 +145,7 @@ export default {
145 145
       }
146 146
       console.log(file, fileList)
147 147
     },
148
-    handlePictureCardPreview(file) { // 点击活动配图文件列表中已上传的文件时的钩子
148
+    handlePictureCardPreview(file) { // 点击公告配图文件列表中已上传的文件时的钩子
149 149
       this.dialogImageUrl = file.url
150 150
       this.dialogVisible = true
151 151
     },

+ 15
- 15
VUECODE/smart-property-manage/src/views/social/announcement/index.vue Voir le fichier

@@ -31,7 +31,7 @@
31 31
         width="55"/>
32 32
       <el-table-column prop="id" label="编号" align="center"/>
33 33
       <el-table-column prop="announcementTitle" label="标题" align="center" >
34
-        <template slot-scope="scope"><a><span @click="clickTitle(scope.row.id)" style="text-decoration: underline; color: blue ">{{ scope.row.announcementTitle }}</span></a></template>
34
+        <template slot-scope="scope"><a><span style="text-decoration: underline; color: blue" @click="clickTitle(scope.row.id)">{{ scope.row.announcementTitle }}</span></a></template>
35 35
       </el-table-column>
36 36
       <el-table-column prop="viewCount" label="查看数量" align="center"/>
37 37
       <el-table-column prop="sort" label="权重" align="center"/>
@@ -40,9 +40,9 @@
40 40
           <span v-if="scope.row.status==0">{{ '已作废' }}</span>
41 41
           <span v-if="scope.row.status==1">{{ '已发布' }}</span>
42 42
           <span v-if="scope.row.status==2">{{ '草稿' }}</span>
43
-          <span v-if="scope.row.status==3">{{ '已修改' }}</span>
43
+          <span v-if="scope.row.createDate < scope.row.updateDate">{{ '已修改' }}</span>
44 44
         </template>
45
-      </el-table-column>   
45
+      </el-table-column>
46 46
       <el-table-column prop="createDate" label="发布时间" align="center"><template slot-scope="scope">{{ formatDate(scope.row.createDate) }}</template></el-table-column>
47 47
       <el-table-column prop="createUserName" label="发布人" align="center"/>
48 48
       <el-table-column prop="updateDate" label="修改时间" align="center" ><template slot-scope="scope">{{ formatDate(scope.row.updateDate) }}</template></el-table-column>
@@ -127,7 +127,7 @@ export default {
127 127
       })
128 128
     },
129 129
     handleSelectionChange(data) {
130
-       // 设置为 空
130
+      // 设置为 空
131 131
       this.deleteIds = []
132 132
       for (let i = 0; i < data.length; i++) {
133 133
         this.deleteIds.push(data[i].id)
@@ -140,12 +140,13 @@ export default {
140 140
     handleFilter() {
141 141
       this.listQuery.pageNum = 1
142 142
       this.listQuery.pageSize = 10
143
-      this.listQuery.ownerName = ''
144
-      this.listQuery.announcementNumber= ''
145
-      this.listQuery.announcementTitle= ''
143
+      this.listQuery.ownerName =''
144
+      this.listQuery.announcementNumber=''
145
+      this.listQuery.announcementTitle=''
146 146
       this.dataQuery()
147 147
     },
148
-    add() { // 添加公告
148
+    // 添加公告
149
+    add() {
149 150
       this.$router.push({ name: 'announcement-add' })
150 151
     },
151 152
     edit(){// 编辑公告
@@ -159,22 +160,21 @@ export default {
159 160
         return
160 161
       }
161 162
       this.$router.push({ name: 'announcement-edit', params: { id: ids[0] }})
162
-     },
163
-     deleteAnnouncement(){
163
+      },
164
+    deleteAnnouncement(){
164 165
       const ids = this.deleteIds
165 166
       this.listLoading = true
166 167
       console.log(ids)
167
-      this.$store.dispatch('DeleteAnnouncement',ids).then((res) => {
168
+      this.$store.dispatch('DeleteAnnouncement', ids).then((res) => {
168 169
         this.listLoading = false
169 170
         this.dataQuery()
170 171
       }).catch(() => {
171 172
         this.listLoading = false
172 173
         console.log('error DeleteAnnouncement')
173 174
       })
174
-     },
175
-    clickTitle(id){
176
-      console.log("id:",id)
177
-      this.$router.push({ name: 'contentParticulars-details' , params: { id: id }})
175
+    },
176
+    clickTitle(id) {
177
+      this.$router.push({ name: 'contentParticulars-details' ,params: { id: id }})
178 178
     },
179 179
     formatDate(val) {
180 180
       var value = new Date(val)