hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<template>
  <div class="member_information">
    <v-header title="报到单位详情"></v-header>
    <div class="user">
      <!-- <div class="line">
        <section>
          <p class="label">照片:</p>
          <article>
            <img
              :src="user.photoPath || '/static/image/dh.jpg'"
              @click="onScaleImage"
              alt=""
            />
          </article>
        </section>
      </div> -->
      <div class="title1"></div>
      <div></div>
      <div class="flex">
        <div class="list-box">
          <p class="label">单位归属:</p>
          <article>{{ infoDetails.belongTo }}</article>
        </div>
        <div class="list-box">
          <p class="label">单位名称:</p>
          <article>{{ infoDetails.name }}</article>
        </div>
        <div class="list-box">
          <p class="label">单位性质:</p>
          <article>{{ infoDetails.natureName }}</article>
        </div>
        <div class="list-box">
          <p class="label">党组织负责人:</p>
          <article>{{ infoDetails.contacts }}</article>
        </div>
        <div class="list-box">
          <p class="label">党组织负责人电话:</p>
          <article>{{ infoDetails.phone }}</article>
        </div>
        <div class="list-box">
          <p class="label">职能特长及服务意愿:</p>
          <article>{{ infoDetails.specialtyName }}</article>
        </div>
        <div class="list-box">
          <p class="label">其他职能特长及服务意愿:</p>
          <article>{{ infoDetails.otherRemark }}</article>
        </div>
        <div class="list-box">
          <p class="label">单位管理员:</p>
          <article>{{ infoDetails.adminName }}</article>
        </div>
        <div class="list-box">
          <p class="label">管理员手机号:</p>
          <article>{{ infoDetails.adminPhone }}</article>
        </div>
        <div class="list-box">
          <p class="label">服务社区:</p>
          <article>{{ infoDetails.helpCommunityName }}</article>
        </div>
        <div class="list-box">
          <p class="label">社区联系人:</p>
          <article>{{ infoDetails.helpCommunityContactsName }}</article>
        </div>
        <div class="list-box">
          <p class="label">社区联系人电话:</p>
          <article>{{ infoDetails.helpCommunityContacts }}</article>
        </div>
        <div class="list-box" style="width:600px">
          <p>下沉服务小区(网格)院落:</p>
          <article>{{ infoDetails.villageName }}</article>
        </div>
        <div class="list-box">
          <p class="label">单位标识:</p>
          <article>
            <el-image
              v-if="infoDetails.logo"
              style="width: 100px; height: 100px"
              :src="infoDetails.logo"
              :preview-src-list="[infoDetails.logo]"
            >
            </el-image>
          </article>
        </div>
      </div>
    </div>
    <div>
      <el-button @click="$router.back()">返回</el-button>
    </div>
    <!--    <v-header-->
    <!--      title="党员活动"-->
    <!--      search-->
    <!--      :bar="bar"-->
    <!--      @on-search="onSearch"-->
    <!--    ></v-header>-->
    <!-- <v-header
      title="党员活动参与情况"
      search
      :bar="bar"
      @on-search="onSearch"
    ></v-header>
    <div class="tab">
      <div class="mr-b-10">
        <el-button @click="importClick">导出</el-button>
      </div>
      <v-tool-table :trs="trs" :tds="tds">
        <template v-slot:btn="item">
          <div class="table_flex">
            <span class="col_primary" @click="list(item.scope)">报名名单</span>
            <span class="col_primary" @click="detail(item.scope)">查看</span>
          </div>
        </template>
        <template v-slot:status="item">
          {{ item.scope.status }}
        </template>
        <template v-slot:time="item">
          <b
            >{{ setTime(item.scope.activityTimeBegin) }} ~
            {{ setTime(item.scope.activityTimeEnd) }}</b
          >
        </template>
        <template v-slot:times="item">
          <b
            >{{ setTime(item.scope.enrollTimeBegin) }} ~
            {{ setTime(item.scope.enrollTimeEnd) }}</b
          >
        </template>
      </v-tool-table>
    </div> -->
  </div>
</template>
 
<script>
import { dateMonth } from "../../../utils/common";
export default {
  props: {},
  components: {},
  data() {
    return {
      bar: [
        {
          title: "参与日期",
          name: "times",
          type: "times",
          types: "daterange",
          // format:'yyyy-MM-dd'
        },
      ],
      trs: [
        { text: "序号", val: "index", width: "80px" },
        { text: "活动名称", val: "activityName" },
        { text: "活动地点", val: "activityAddr" },
        { text: "参与日期", val: "beginAt" },
        { text: "签到地点", val: "position" },
        { text: "签到时间", val: "startTime" },
        { text: "签退时间", val: "endTime" },
        { text: "活动时长(小时)", val: "duration" },
        { text: "获得积分", val: "rewardIntegral" },
      ],
      tds: [],
      id: -1,
      user: {},
      search: {},
      infoDetails: {},
      beginTime: "",
      endTime: "",
    };
  },
  watch: {},
  methods: {
    importClick() {
      this.$api.get(
        "communityactivity/activity/exportPartyMemberDetail",
        {
          userId: this.id == "null" ? null : this.id,
          page: 1,
          size: 999999,
          beginTime: this.beginTime,
          endTime: this.endTime,
        },
        (e) => {
          window.location.href = e;
        }
      );
    },
    setTime(e) {
      // 去掉时分秒
      return e.slice(0, 10);
    },
    // 查看大图
    onScaleImage() {
      let v = this.user;
      this.$store.dispatch("setImage", {
        time: Date.now(),
        title: v.name,
        pic: v.photoPath,
      });
    },
    onSearch(val) {
      let v = demo.copy(val);
      this.search = {};
      this.search.name = v.name;
      if (v.times) {
        this.beginTime = v.times[0];
        this.endTime = v.times[1];
      } else {
        this.beginTime = "";
        this.endTime = "";
      }
      // if (v.time && v.time.length) {
      //   this.search.releaseTimeBegin = v.time[0];
      //   this.search.releaseTimeEnd = v.time[1];
      // } else {
      //   this.search.releaseTimeBegin = this.search.releaseTimeEnd = "";
      // }
      // if (v.times && v.times.length) {
      //   this.search.activityTimeBegin = v.times[0];
      //   this.search.activityTimeEnd = v.times[1];
      // } else {
      //   this.search.activityTimeBegin = this.search.activityTimeEnd = "";
      // }
      // this.paged.page = 1;
      this.init();
    },
    init() {
      this.$api.get(
        "checkUnit/detail",
        Object.assign(
          {
            id: this.id,
            // page: 1,
            // size: 999999,
            // beginTime: this.beginTime,
            // endTime: this.endTime,
            // releaseTimeBegin: "",
            // releaseTimeEnd: "",
            // activityTimeBegin: "",
            // activityTimeEnd: "",
            // name: "",
          },
          this.search
        ),
        (e) => {
          this.infoDetails = e;
        }
      );
      // if (this.id > 0) {
      //   this.$api.post(
      //     "communityactivity/activity/partyMemberDetail",
      //     Object.assign(
      //       {
      //         userId: this.id,
      //         page: 1,
      //         size: 999999,
      //         startTime: this.beginTime,
      //         endTime: this.endTime,
      //         // releaseTimeBegin: "",
      //         // releaseTimeEnd: "",
      //         // activityTimeBegin: "",
      //         // activityTimeEnd: "",
      //         // name: "",
      //       },
      //       this.search
      //     ),
      //     (e) => {
      //       this.tds = e;
      //     }
      //   );
      // }
    },
    // 报名名单
    list(v) {
      if (v.id) {
        this.$router.push(this.$nav.url("/com_activity_list/" + v.id));
      } else {
        demo.toast("失效活动");
      }
    },
    // 查看
    detail(v) {
      if (v.id) {
        this.$router.push(this.$nav.url("/com_activity_detail/" + v.id));
      } else {
        demo.toast("失效活动");
      }
    },
  },
  mounted() {
    this.id = this.$route.params.id;
    // this.user = demo.$session.get("member-detail") || {};
    this.init();
    // if (+this.user.userId !== +this.id) {
    //   demo.toast("错误访问");
    // } else {
    //   this.init();
    // }
  },
};
</script>
<style lang="less">
.member_information h1 {
  font-weight: 400 !important;
}
</style>
<style lang='less' scoped>
.member_information {
  overflow-y: auto;
  .user {
    margin-bottom: 15px;
    section {
      display: flex;
      font-size: 14px;
      line-height: 35px;
      img {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        overflow: hidden;
        background-color: #eee;
        margin-left: 20px;
      }
    }
    .flex {
      width: 500px;
      display: flex;
      flex-wrap: wrap;
      section {
        min-width: 25%;
        height: 35px;
      }
    }
  }
  .tab {
    margin-top: 10px;
  }
}
.list-box {
  padding: 20px 0;
  width: 250px;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.title1 {
  /*wid*/
  flex-wrap: wrap;
  display: flex;
}
</style>