DetailForm.vue
21 KB
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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
<template>
<el-dialog
title="详情"
:close-on-click-modal="false"
:visible.sync="visible"
class="NCC-dialog NCC-dialog_center systemInfoDialog"
lock-scroll
width="70%"
>
<el-row :gutter="15" style="height: 65vh;" class="NCC-dialog-content" v-loading="loading">
<el-tabs class="system-info-tabs" type="border-card" tab-position='top' v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="应用信息" name="1">
<div class="system-info" style="overflow:auto;height: calc(65vh - 65px); margin-bottom: -10px;">
<el-col :span="24">
<div class="form-item">
<div class="label w-100">运营主体:</div>
<p class="text">{{ dataForm.companyName || '--' }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">应用类型:</div>
<p class="text">{{ dataForm.systemType | dynamicTextUP(systemTypeOptions) }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">应用名称:</div>
<p class="text">{{ dataForm.systemName || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">应用分类:</div>
<p class="text">{{ dataForm.systemClass | dynamicTextClassName(systemClassOptions) }}</p>
</div>
</el-col>
<template
v-if="
dataForm.systemType &&
dataForm.systemType != '580634746028033285'
"
>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">特殊备案类型:</div>
<p class="text">{{ dataForm.specialRecordType || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">特殊备案内容:</div>
<p class="text">{{ dataForm.specialRecordContent || "--" }}</p>
</div>
</el-col>
<el-col :span="24" v-if="dataForm.systemType == '576280043370579205'">
<div class="form-item">
<div class="label w-100">域名:</div>
<p class="text">{{ dataForm.domain || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">特殊备案号:</div>
<p class="text">{{ dataForm.specialRecordNumber || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">特殊备案时间:</div>
<p class="text">{{ ncc.dateFormat(dataForm.specialRecordTime, 'YYYY-MM-DD HH:mm:ss') || "--" }}</p>
</div>
</el-col>
</template>
<el-col :span="24" v-if="dataForm.systemType == '576280004254500101'">
<div class="form-item">
<div class="label w-100">安装次数:</div>
<p class="text">{{ dataForm.systemDownloadVolume || "--" }}<span class="start-span">更新时间:{{ ncc.dateFormat(dataForm.lastModifyTime) || ncc.dateFormat(dataForm.creatorTime) }}</span></p>
</div>
</el-col>
<el-col :span="24" v-if="dataForm.systemType == '576280043370579205' || dataForm.systemType == '576280085330396421'">
<div class="form-item">
<div class="label w-100">月活:</div>
<p class="text">{{ dataForm.MAU || "--" }}<span class="start-span">更新时间:{{ ncc.dateFormat(dataForm.lastModifyTime) || ncc.dateFormat(dataForm.creatorTime) }}</span></p>
</div>
</el-col>
<el-col :span="24" v-if="dataForm.systemType == '580634746028033285'">
<div class="form-item">
<div class="label w-100">粉丝量:</div>
<p class="text">{{ dataForm.followerCount || "--" }}<span class="start-span">更新时间:{{ ncc.dateFormat(dataForm.lastModifyTime) || ncc.dateFormat(dataForm.creatorTime) }}</span></p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">备案许可证:</div>
<p class="text">{{ dataForm.recordLicense || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">归属平台:</div>
<p class="text">{{ dataForm.platform || "--" }}</p>
</div>
</el-col>
<!-- <el-col :span="24">
<div class="form-item">
<div class="label w-100">下载量:</div>
<p class="text">{{ dataForm.systemDownloadVolume || "--" }}</p>
</div>
</el-col> -->
<el-col :span="24">
<div class="form-item">
<div class="label w-100">版本:</div>
<p class="text">{{ dataForm.version || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">负责人姓名:</div>
{{ dataForm.principalName || "--" }}
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">负责人电话:</div>
{{ dataForm.principalPhone || "--" }}
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">办公地址:</div>
<p class="text">{{ dataForm.officeAddress || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">应用图标:</div>
<img v-if="dataForm.systemIconModel" class="avatar" :src="define.comUrl + dataForm.systemIconModel.url">
<span v-else>无</span>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">所属区域:</div>
<p class="text">{{ dataForm.areaId | dynamicText(areaOptions) }}</p>
</div>
</el-col>
<!-- <el-col :span="24">
<div class="form-item">
<div class="label w-100">所属外协:</div>
<p class="text">{{ dataForm.externalAssistanceId ? '外协一' : "--" }}</p>
</div>
</el-col> -->
</div>
</el-tab-pane>
<el-tab-pane label="运营主体信息" name="2">
<div class="company-info">
<el-col :span="24">
<div class="form-item">
<div class="label w-100">运营主体名称:</div>
<p class="text">{{ companyForm.companyName || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">社会信用代码:</div>
<p class="text">{{ companyForm.socialCreditAgency || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">运营主体法人:</div>
<p class="text">{{ companyForm.legalPerson || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">运营主体地址:</div>
<p class="text">{{ companyForm.address || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">资质证明:</div>
<NCC-UploadFz v-model="companyForm.qualificationCertificate" :fileSize="5" sizeUnit="MB" :limit="9" buttonText="点击上传" disabled/>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">联系人:</div>
<p class="text">{{ companyForm.contactUser || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">联系电话:</div>
<p class="text">{{ companyForm.contactPhone || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">所属区县:</div>
<p class="text">{{ companyForm.areaName || "--" }}</p>
</div>
</el-col>
<el-col :span="24">
<div class="form-item">
<div class="label w-100">其他信息:</div>
<div v-html="companyForm.otherInfo"></div>
</div>
</el-col>
</div>
</el-tab-pane>
<el-tab-pane label="核查处置记录" name="3">
<el-table :data="inspectionList" height="500" border style="width: 100%">
<el-table-column show-overflow-tooltip prop="platformNameStr" label="应用名称"></el-table-column>
<el-table-column show-overflow-tooltip prop="companyStr" label="运营主体"></el-table-column>
<el-table-column show-overflow-tooltip label="问题类型" prop="questionType" align="left" />
<el-table-column show-overflow-tooltip prop="questionClass" label="关键词"></el-table-column>
<el-table-column label="操作" fixed="right" width="100">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row, true)">详情</el-button>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="网信执法记录" name="4">
<el-table :data="handingList" height="500" border style="width: 100%">
<el-table-column show-overflow-tooltip prop="number" label="档案号"></el-table-column>
<el-table-column show-overflow-tooltip prop="registrationTime" label="登记时间" :formatter="ncc.tableDateFormat"></el-table-column>
<el-table-column show-overflow-tooltip prop="systemNameStr" label="应用名称"></el-table-column>
<el-table-column show-overflow-tooltip prop="registeredEntityStr" label="运营主体"></el-table-column>
<el-table-column show-overflow-tooltip prop="illegalReasons" label="违法原因"></el-table-column>
<el-table-column show-overflow-tooltip prop="punishmentRequirements" label="处罚要求"></el-table-column>
<el-table-column show-overflow-tooltip prop="punishmentContent" label="处罚内容"></el-table-column>
<el-table-column label="状态" prop="state" align="left" >
<template slot-scope="scope">
<el-tag v-if="scope.row.state" :type="ncc.getStateTagType(scope.row.state, stateOptions)">{{ scope.row.state | dynamicTextUP(stateOptions) }}</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="100">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row, true)">详情</el-button>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="数据日志" name="5">
<div class="infinite-list-wrapper" style="overflow:auto;height: calc(65vh - 65px); margin-bottom: -10px;">
<el-timeline class="list" v-infinite-scroll="initInfoRecord" :infinite-scroll-disabled="record_disabled">
<el-timeline-item
placement="top"
v-for="(v, i) in updataRecordList"
:key="i"
>
<el-card>
<h4 v-if="v.content">
<!-- <p v-for="(item, index) in v.updataList" :key="index">
将“{{ item.PropertyName }}”从“{{
item.OldValue
}}”改为“{{ item.NewValue }}”
</p> -->
<p v-for="(item, index) in v.changeRecord" :key="index">{{ item }}</p>
</h4>
<h4 v-else>
<p>{{ v.describe }}</p>
</h4>
<p>{{ v.creatorUserId }} 提交于 {{ v.updataTime }}</p>
</el-card>
</el-timeline-item>
</el-timeline>
<p v-if="record_loading">加载中...</p>
<p v-if="updataRecordList.length && record_noMore">没有更多了</p>
<el-empty v-if="!updataRecordList.length && !record_loading" description="暂无数据"></el-empty>
</div>
</el-tab-pane>
</el-tabs>
</el-row>
<!-- 案件处理 -->
<HandForm v-if="HandFormVisible" ref="HandForm" @refresh="(val) => {taskRefresh('HandFormVisible', val)}" />
<ReportForm v-if="ReportFormVisible" ref="ReportForm" @refresh="(val) => {taskRefresh('ReportFormVisible', val)}" />
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取 消</el-button>
</span>
</el-dialog>
</template>
<script>
import request from "@/utils/request";
import { getSystemDetail, getUpdataRecord } from "@/api/baseData/info";
import { getCompanyInfoById } from "@/api/baseData/company";
import HandForm from '@/views/baseCaseHandling/Form.vue' // 案件处理
import ReportForm from '@/views/baseInspectionReport/Form.vue' // 案件处理
export default {
components: {HandForm, ReportForm},
props: ['areaOptions'],
data() {
return {
loading: false,
visible: false,
activeName: "1",
// 应用信息
dataForm: {
id: undefined,
questionFrom: undefined,
platformName: undefined,
platformType: undefined,
questionType: undefined,
questionClass: undefined,
questionContent: undefined,
link: undefined,
obtainEvidence: [],
annex: [],
systemIconModel: '',
},
systemTypeOptions: [],
systemClassOptions: [],
// 公司信息
companyForm: {},
// 网信执法记录
handingList: [],
// 核查处置记录
inspectionList: [],
// 数据日志
record_loading: false,
queryList: {
pageIndex: 1,
pageSize: 10,
},
updataRecordList: [],
record_total: '',
questionTypeOptions : [],
stateOptions: [],
HandFormVisible: false,
ReportFormVisible: false,
};
},
computed: {
record_noMore() {
return this.updataRecordList.length >= this.record_total;
},
record_disabled () {
return this.record_loading || this.record_noMore;
}
},
watch: {},
created() {
this.initStateTypeOption();
this.initSystemTypeList();
},
mounted() {},
methods: {
async initStateTypeOption() {
let list = this.$store.state.meta.stateTypeList;
!list && (list = await this.$store.dispatch('getTypeListByCode', 'stateType'));
this.stateOptions = list;
},
init(row) {
this.visible = true;
this.dataForm.id = row.id;
this.activeName = '1'
this.$nextTick(() => {
this.initSystemForm(this.dataForm.id, row.companyName)
});
},
handleClick(e) {
switch (e.index) {
case '1':
// 公司信息
this.initCompanyForm();
break;
case '2':
// 核查处置记录
this.initInspectionList(this.dataForm.id);
break;
case '3':
// 网信执法记录
this.initHandingList(this.dataForm.id);
break;
case '4':
// 数据日志
this.updataRecordList = [];
this.queryList = {
pageIndex: 1,
pageSize: 10,
};
this.initInfoRecord();
break;
default:
break;
}
},
// 初始化应用信息-----------------------------------------------------------------------------0
async initSystemForm(id, companyName) {
this.loading = true;
let { data } = await getSystemDetail(id);
await this.initSystemClassList(data.systemType);
this.dataForm = data;
this.dataForm.companyName = companyName;
this.loading = false;
},
async initSystemTypeList() {
let list = this.$store.state.meta.system;
!list &&
(list = await this.$store.dispatch("getTypeListByCode", "system"));
this.systemTypeOptions = list;
},
async initSystemClassList(val) {
let list = this.$store.state.meta.systemClass[val];
!list && (list = await this.$store.dispatch('getSystemType', val));
this.systemClassOptions = list;
},
// 初始化公司信息------------------------------------------------------------------------------1
async initCompanyForm() {
this.loading = true;
let res = await getCompanyInfoById(this.dataForm.companyId);
this.companyForm = res.data;
this.loading = false;
},
// 核查处置记录------------------------------------------------------------------------------2
initHandingList(id) {
this.loading = true;
request({
url: `/Extend/basesysteminfo/GetHandlingList/${id}`,
method: "get",
}).then((res) => {
this.loading = false;
this.handingList = res.data;
}).catch(() => this.loading = false);
},
// 网信执法记录--------------------------------------------------------------------------------3
initInspectionList(id) {
this.loading = true;
request({
url: `/Extend/basesysteminfo/GetInspectionList/${id}`,
method: "get",
}).then((res) => {
this.loading = false;
this.inspectionList = res.data;
}).catch(() => this.loading = false);
},
// 数据日志-----------------------------------------------------------------------------------4
async initInfoRecord() {
this.record_loading = true;
await getUpdataRecord({
id: this.dataForm.id,
...this.queryList,
}).then(({ data }) => {
data.list.forEach((item) => {
let date = new Date(item.creatorTime * 1000);
item.updataTime = this.$m(date).format("YYYY-MM-DD HH:mm:ss");
item.updataList = JSON.parse(item.content);
item.changeRecord = item.content ? JSON.parse(item.describe) : item.describe;
});
this.record_total = data.pagination.total
this.updataRecordList = [...this.updataRecordList, ...data.list];
this.record_loading = false;
this.queryList.pageIndex += 1;
});
},
addOrUpdateHandle(row) {
switch (this.activeName) {
case "3":
this.ReportFormVisible = true;
this.$nextTick(() => {
this.$refs.ReportForm.init(row.id, true);
});
break;
case "4":
this.HandFormVisible = true;
this.$nextTick(() => {
this.$refs.HandForm.init(row.id, true);
});
break;
default:
break;
}
},
taskRefresh(key ,isrRefresh) {
this[`${key}`] = false;
if (isrRefresh) this.reset();
},
goBack() {
this.$emit("refresh");
},
},
};
</script>
<style lang="scss" scoped>
.system-info-tabs {
width: 100%;
height: 100%;
border-radius: 15px;
}
.el-dialog__wrapper.NCC-dialog.NCC-dialog_center.systemInfoDialog {
:deep(.el-tabs__content) {
//background: #f5f5f5;
//border-radius: 10px;
padding: 10px;
margin: 10px;
}
}
// .NCC-dialog.systemInfoDialog {
// :deep(.el-dialog__body) {
// overflow: unset !important;
// :deep(.el-tabs__content) {
// height: calc(65vh - 45px);
// }
// }
// }
.avatar {
width: 100px;
height: 100px;
display: block;
border: 1px dashed #d9d9d9;
border-radius: 6px;
margin-left: 10px;
}
.start-span {
margin-left: 10px;
color: red;
font-size: 12px;
line-height: 30px;
}
</style>