gaoluyang
21 小时以前 e40a608ef9bf51db294d8eefada6a8e2e80cebca
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
542
543
544
545
546
547
548
 
 
 
 
 
 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>食品安全国家标准数据检索平台</title>
    <script src="/website/js/vue.js"></script>
    <link rel="stylesheet" href="/website/css/style.css">
    
    <script type="text/javascript" src="/component_v1.0/component/jquery/jquery-1.8.2.min.js"></script>
</head>
<body>
<!-- 新增的通知弹框 -->
<div id="notificationModal" class="notification-modal">
    <div class="notification-content">
        <div class="notification-title">系统通知</div>
        <div class="notification-message">
            <span style="color:red;">系统维护中,暂时无法使用标准预览和下载功能。</span>
        </div>
        <button class="notification-close" onclick="closeNotification()">我知道了</button>
    </div>
</div>
 
<div id="mask" class="full-screen-mask" style="">
    <div class="loading-content">
        <div class="css-loader"></div>
        <div class="loading-text">当前访问人数过多请耐心等待......</div>
    </div>
</div>
<div class="pages" id="app">
    <div class="header" id="headerid" style="height: 88px;">
        <div class="layout headerContent">
            <div class="headerTitle">
                <img src="/website/img/index_icon_03.png" alt="">
                <span>食品安全国家标准数据检索平台</span>
            </div>
            <form name="form1" id="form1" method="post">
                <input type="hidden" name="task" value="" action="">
                <input type="hidden" name="accessData" id="accessData" value="gj">
                <input type="hidden" name="bzlb" id="bzlb" value="">
                <input type="hidden" name="fact_name" id="fact_name" value="">
                <input type="hidden" name="file_guid" id="file_guid" value="">
                <div class="search">
                    <input id="keyword" name="keyword" type="text">
                    <button type="button" class="button1" @click="listIndexKeyword(1)"
                            @keyup.enter="listIndexKeyword(1)">
                        搜索
                    </button>
                    <button  type="button" class="button2" @click="toIndexGJ()">高级搜索</button>
                </div>
            </form>
        </div>
    </div>
    <div class="content" :style="'min-height:'+contentHeight+'px'"
         style="overflow-y: auto;background: none;padding: 0;">
        <div class="tabs">
            <ul class="layout tabsContent">
                <li @click="headerTabs(1)" :class="headerTabsActive==1?' headerActiveTabs':''">最新公告</li>
                <li @click="headerTabs(2)" :class="headerTabsActive==2?' headerActiveTabs':''">标准文本</li>
                <li @click="headerTabs(4)" :class="headerTabsActive==4?' headerActiveTabs':''">标准勘误</li>
                <li @click="headerTabs(3)" :class="headerTabsActive==3?' headerActiveTabs':''">标准解读</li>
                <li @click="headerTabs(5)" :class="headerTabsActive==5?' headerActiveTabs':''">全部标准</li>
 
            </ul>
        </div>
        <div>
            <div class="layout" style="color: rgb(27,130,184);margin-top: 10px;margin-bottom: 10px;">
                您的位置: {{position}}
            </div>
 
 
        </div>
        <div class="layout infoContent">
            <ul v-if="hideTabs==0">
                <li @click="changeTabs(item.code)" :class="activeTabs==item.code?' activeTabs':''"
                    v-for="(item,index) in lsTab" :key="index">
                    {{item.name}}
                </li>
            </ul>
            <div class="infoList" id="mainDiv">
                <div v-if="headerTabsActive==4">
                    <center>
                        <div class="contentMc">
                            <div class="tab_table">
                                <table class="table_list" style="table-layout:fixed;">
                                    <tr>
                                        <th width="5%" nowrap>序号</th>
                                        <th width="10%" nowrap>标准号</th>
                                        <th width="20%" nowrap>标准名称</th>
                                        <th width="10%" nowrap>修改章节</th>
                                        <th width="20%" nowrap>修改前</th>
                                        <th width="20%" nowrap>修改后</th>
                                        <th width="10%" nowrap>勘误时间</th>
                                    </tr>
                                    <tr v-for="(item,index) in this.list" :key="index">
                                        <td>{{index+1}}</td>
                                        <td align="center" style="padding:0 3px;">
                                            <a href="javascript:void(0)" style="color: rgb(19,148,34);" @click="goto(item.STANDARD_GUID,'4')">
                                                {{item.STANDARD_CODE}}
                                            </a>
                                        </td>
                                        <td align="left" style="margin-left:10px;WORD-WRAP: break-word">
                                            <a href="javascript:void(0)" style="color: rgb(19,148,34);" @click="goto(item.STANDARD_GUID,'4')">
                                                {{item.STANDARD_NAME}}
                                            </a>
                                        </td>
                                        <td align="left" style="margin-left:10px;WORD-WRAP: break-word">
                                            {{item.CONTENT}}
                                        </td>
                                        <td align="left" style="margin-left:10px;WORD-WRAP: break-word">
                                            <div v-html="item.CONTENT_BEFORE"></div>
                                        </td>
                                        <td align="left" style="margin-left:10px;WORD-WRAP: break-word">
                                            <div v-html="item.CONTENT_AFTER"></div>
                                        </td>
                                        <td align="left" style="margin-left:10px;WORD-WRAP: break-word">
                                            {{item.KWSJ}}
                                        </td>
                                    <tr/>
                                </table>
                            </div>
                        </div>
                    </center>
                </div>
                <div class="infoItem" v-if="headerTabsActive!=4" v-for="(item,index) in this.list" :key="index">
 
 
 
                    <div class="infoItemLeft">
                        <button>
                            {{ getItemStatusText(item.TABLENAME) }}
                        </button>
                    </div>
                    <div class="infoItemCenter">
                        <a href="javascript:void(0)" style="color: rgb(19,148,34);" @click="goto(item.ID,item.TABLENAME)">{{item.TITLE}}</a>
                        <div style="color: rgb(121, 121, 121);font-size: 14px;margin-top: 5px;">
                            <span>发布日期: {{item.PDATE}}</span>
                            <span v-if="ssrq==1">实施日期:{{item.SSRQ}}</span>
                        </div>
                    </div>
                    <div class="infoItemRight" style="flex-wrap: wrap" v-if="isXZ==1" >
                        <div style="display: flex;align-items: center;margin: 5px 0" v-for="(item,index) in item.FJ" :key="index">
                            <button style="border: rgb(27, 130, 184) 1px solid;color:  rgb(27, 130, 184);" @click="preview(item.FACT_NAME)">预览</button>
                            <button @click="load(item.ID_F)">下载</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <a style="margin-left: 50%;margin-top:50%;color: rgb(27,130,184);text-decoration:none;" href="javascript:void(0);" v-if="isGD==1" @click="listIndexKeyword(2)">
            展开全部>>
        </a>
    </div>
    <div style="margin: 20px auto 20px auto;width: 1260px;height: 50px;background-color:#EFEFEF">
        <div style="height: 100%;width: 15%;color:#FFFFFF;background: #096799;display: flex;justify-content: center;align-items: center;">
             相关链接
        </div>
    </div>
    <div style="margin: 20px auto 0px auto;width: 1260px;height: 50px; ">
       <a href="http://gb2760.cfsa.net.cn" target="_blank" style="color:#096799">食品添加剂使用标准(GB 2760-2024)查询系统</a>&nbsp;&nbsp;&nbsp;
       <a href="https://sppt.cfsa.net.cn:8087/db?task=dfpubIndex" target="_blank" style="color:#096799">食品安全地方标准数据库检索平台</a>
    </div>
    <div class="footer">
        <div class="footerContent layout">
            <div class="footerFwl">访问量:52270426</div>
            <div class="footerInfo">
                <span>Copyright© 国家食品安全风险评估中心版权所有京ICP备20024162号</span>
                <span>联系地址:北京市朝阳区广渠路37号院2号楼电话:52165518传真:52165519</span>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    let isLength = 10;//默认多少个
    var app = new Vue({
        el: '#app',
        data: {
            activeTabs: [{"code":"","name":"全部标准"},{"code":"1022","name":"污染物"},{"code":"1023","name":"微生物"},{"code":"1024","name":"食品添加剂"},{"code":"1025","name":"食品产品"},{"code":"1026","name":"生产经营规范"},{"code":"1027","name":"食品相关产品"},{"code":"1028","name":"营养与特殊膳食食品"},{"code":"1029","name":"理化检验方法与规程"},{"code":"1030","name":"微生物检验方法与规程"},{"code":"1031","name":"毒理学评价方法与程序"},{"code":"2031","name":"食品中放射性物质"},{"code":"1574","name":"食品营养强化剂"},{"code":"2032","name":"标签"},{"code":"1077","name":"农药残留"},{"code":"2030","name":"兽药残留"},{"code":"2033","name":"修改单"}][0].code,
            contentHeight: 0,
            divHeight: window.innerHeight,
            headerTabsActive: 1,//菜单
            hideTabs: 1,//1隐藏0显示
            isGD: 1,//更多
            isXZ: 0,//下载
            indexType: 1,//查看类型公告1文本2解读3
            list: [{"CODE":null,"FJ":[],"TABLENAME":"1","PDATE":"2026-08-18","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 牛乳蛋白》(GB 31668-2026)等50项食品安全国家标准和修改单的公告(2026年 第6号)","ID":"B58D6BED-BCEE-4513-ADAB-B7B07D7F09D7"},{"CODE":null,"FJ":[],"TABLENAME":"1","PDATE":"2025-09-02","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 食品中污染物限量》(GB 2762-2025)等32项食品安全国家标准和2项修改单的公告(2025年 第6号)","ID":"E7A8AF2A-6FA1-4DF4-A80F-E47FC2952D13"},{"CODE":null,"FJ":[],"TABLENAME":"1","PDATE":"2025-03-16","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 预包装食品标签通则》(GB 7718-2025)等50项食品安全国家标准和9项修改单的公告(2025年 第2号)","ID":"0E99F438-65C1-4622-B720-C5F8309ABE5E"},{"CODE":null,"FJ":[],"TABLENAME":"1","PDATE":"2024-02-08","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 食品添加剂使用标准》(GB 2760-2024)等47项食品安全国家标准和6项修改单的公告(2024年 第1号)","ID":"3D0601E8-A77C-4EC5-B148-30E2E7020822"},{"CODE":null,"FJ":[],"TABLENAME":"1","PDATE":"2023-09-06","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 茶叶》(GB 31608-2023)等85项食品安全国家标准和3项修改单的公告(2023年 第6号)","ID":"0F213C36-6619-4416-8678-6B0067CFB828"},{"CODE":null,"FJ":[],"TABLENAME":"1","PDATE":"2022-06-30","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 食品添加剂 丁香酚》(GB 1886.129-2022)等36项食品安全国家标准和3项修改单的公告(2022年 第3号)","ID":"B9873DE4-C406-4A99-BE57-EE607F77B685"},{"CODE":null,"FJ":[{"ID_F":"22FC4DC0-D167-4E80-A0F4-BE976A8CCE26","FACT_NAME":"1645593912511.pdf"}],"TABLENAME":"1","PDATE":"2021-09-16","SSRQ":null,"TITLE":"中华人民共和国农业农村部公告 第388号","ID":"922BAFCE-AF2B-4BA7-8715-5F6B68921D08"},{"CODE":null,"FJ":[{"ID_F":"7939088D-8543-46A2-B61D-5857D3468258","FACT_NAME":"1631838401016.pdf"},{"ID_F":"4BBD9CD4-8F79-4F07-BBEB-B0495DDF1EAC","FACT_NAME":"1631791610049.pdf"},{"ID_F":"96EF4FE5-6024-4CA4-94AD-920DC1D2F828","FACT_NAME":"1631791603177.pdf"},{"ID_F":"DA5BC318-149A-46DF-9EA4-FD747D512AD9","FACT_NAME":"1631791596255.pdf"},{"ID_F":"EFC8EF0A-78B5-4B69-894F-4F51F2D80DE8","FACT_NAME":"1631791588606.pdf"},{"ID_F":"0C81EB66-8418-4CA0-A0FF-FB76895741F8","FACT_NAME":"1631791580635.pdf"},{"ID_F":"4643C8B1-9644-4450-8896-D61B0D914CCF","FACT_NAME":"1631791574494.pdf"},{"ID_F":"5EEFDE56-E62F-4347-A8DE-FFF756574D44","FACT_NAME":"1631791565909.pdf"},{"ID_F":"646365C0-459E-44BC-90CE-2D667E15472C","FACT_NAME":"1631791559922.pdf"},{"ID_F":"C9E79E57-B4EB-40CA-B562-FC5B3C9CCADE","FACT_NAME":"1631791548399.pdf"},{"ID_F":"BDA03885-4F42-4FC5-B23A-F2D5254461C0","FACT_NAME":"1631791544430.pdf"},{"ID_F":"A89C053F-3212-488E-85AE-57C195272AA1","FACT_NAME":"1631791539742.pdf"},{"ID_F":"A782B854-BEA8-4B82-86B2-9B5560318D85","FACT_NAME":"1631791533238.pdf"},{"ID_F":"DACDC489-613D-44B0-B745-EE6462FB6482","FACT_NAME":"1631791527645.pdf"},{"ID_F":"99213076-CBB4-4F51-8238-8E9F3F864F92","FACT_NAME":"1631791518681.pdf"},{"ID_F":"C820073A-B5D1-4057-B6E4-A91FACCBA96D","FACT_NAME":"1631791512423.pdf"},{"ID_F":"B42FD4BD-66BB-49F1-A4AF-8F016B60BF0D","FACT_NAME":"1631791507691.pdf"},{"ID_F":"58EF52FA-1C61-4E2F-974C-2F90999BFEA9","FACT_NAME":"1631791484045.pdf"}],"TABLENAME":"1","PDATE":"2021-09-07","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 预包装食品中致病菌限量》(GB 29921-2021)等17项食品安全国家标准和1项修改单的公告(2021年 第8号)","ID":"B2CDB561-52B4-4A09-8E58-95596958CF04"},{"CODE":null,"FJ":[{"ID_F":"45675185-BFB4-4CA5-BC3A-C27606FCE378","FACT_NAME":"1616069194007.pdf"}],"TABLENAME":"1","PDATE":"2021-02-22","SSRQ":null,"TITLE":"关于发布《食品安全国家标准 干酪》(GB 5420-2021)等50项食品安全国家标准和4项修改单的公告","ID":"9D350D1F-E59B-4A08-9A3C-D111DB951743"},{"CODE":null,"FJ":[{"ID_F":"6AA270E8-D0AE-443A-8376-83484703AD94","FACT_NAME":"1602665117022.pdf"},{"ID_F":"91169B1E-CD05-45FF-9BA4-2F268AEC48C4","FACT_NAME":"1602583561058.pdf"},{"ID_F":"188362BB-C288-48D3-9201-1827FCEA4FFF","FACT_NAME":"1602583557326.pdf"},{"ID_F":"7A2EEF2D-FD81-4F0D-8DFD-A09A6EB61EB3","FACT_NAME":"1602583554215.pdf"},{"ID_F":"2FA75579-C523-45BD-8215-09F24D6133A1","FACT_NAME":"1602583548292.pdf"},{"ID_F":"DA75CDF5-3D31-4D57-99EC-A2661375082C","FACT_NAME":"1602583541527.pdf"},{"ID_F":"F9026ED7-74A9-4BBD-95DC-4F8D88FB607F","FACT_NAME":"1602583537300.pdf"},{"ID_F":"EF606ABB-B964-4DD7-A1D4-1413922779C0","FACT_NAME":"1602583496245.pdf"},{"ID_F":"8809FCBB-A5C7-4485-99CF-7DC30CBFF682","FACT_NAME":"1602583491863.pdf"},{"ID_F":"A5EDEE4C-7D94-4C50-A178-9D67345F61FB","FACT_NAME":"1602583488297.pdf"},{"ID_F":"B2F9E06B-E9C5-471C-A62A-F5C530CAE9D5","FACT_NAME":"1602583484500.pdf"},{"ID_F":"C1A63EB2-57F4-4DA2-9E56-4E08996B6FBE","FACT_NAME":"1602583477342.pdf"},{"ID_F":"3EDE365D-ED01-4032-8376-9DDF2C752AC2","FACT_NAME":"1602583472365.pdf"},{"ID_F":"AA7F78EE-0A82-4A45-99DE-C0D165890A7B","FACT_NAME":"1602583466358.pdf"},{"ID_F":"6BA2773C-F597-4A8F-BF77-C6D49566D8A8","FACT_NAME":"1602583461700.pdf"},{"ID_F":"3AE21FB9-DC15-445C-9DE8-78403F80D7FD","FACT_NAME":"1602583453697.pdf"},{"ID_F":"30682B38-A268-4FC3-9F39-790587AC8037","FACT_NAME":"1602583446863.pdf"},{"ID_F":"66DC3C02-AD70-4B57-B2CB-BFD3E53CB23A","FACT_NAME":"1602583440457.pdf"},{"ID_F":"DF71ACD0-92AE-4EF9-8721-AAEECEE6AEC5","FACT_NAME":"1602583428027.pdf"},{"ID_F":"3E30DD5C-E544-45A5-8137-CCB704DE0809","FACT_NAME":"1602583420479.pdf"},{"ID_F":"7DB30A0F-8AC5-4A4B-A7AA-B23227C3E5FB","FACT_NAME":"1602583414364.pdf"},{"ID_F":"FDF2D0E5-E41B-40EB-B8B5-E7449C1ACB74","FACT_NAME":"1602583410312.pdf"},{"ID_F":"5D54C695-F674-431C-9232-85C1F1313164","FACT_NAME":"1602583405302.pdf"},{"ID_F":"B5A80DA5-A11B-4CE0-87F0-DDB8166BEDA7","FACT_NAME":"1602583399838.pdf"},{"ID_F":"1881118E-6A57-4DA9-928A-F192DDFB609E","FACT_NAME":"1602583394806.pdf"},{"ID_F":"E6A86AC9-A39E-4CCF-8EA7-5631C9CC17B9","FACT_NAME":"1602583388489.pdf"},{"ID_F":"2C17A8C8-86F8-4147-844B-0A1F22ABBCFF","FACT_NAME":"1602583383768.pdf"},{"ID_F":"6C09AFCB-40B3-4726-B3C8-E9BB9DDBC269","FACT_NAME":"1602583378438.pdf"},{"ID_F":"272D59B0-19E3-4DC2-8313-8ED51416BE34","FACT_NAME":"1602583374054.pdf"},{"ID_F":"00F7373C-A7F6-4C8B-B0B1-6D65DC7BA55F","FACT_NAME":"1602583367217.pdf"},{"ID_F":"4F282CBA-7CF8-4D9B-B09D-775625E868A8","FACT_NAME":"1602583362536.pdf"},{"ID_F":"AF5BDB6F-11D3-4AD0-8052-A3B4528017EC","FACT_NAME":"1602583358892.pdf"},{"ID_F":"CCB33F95-F3C9-48EE-BFE1-9F560837BBF7","FACT_NAME":"1602583354020.pdf"},{"ID_F":"09D2FAAB-6166-4940-83F9-5EC517981A0B","FACT_NAME":"1602583349175.pdf"},{"ID_F":"75962CD0-020E-4464-9635-1E4FB062FB73","FACT_NAME":"1602583343740.pdf"},{"ID_F":"F3DF89A8-3F1A-4545-AAAD-248469ED106D","FACT_NAME":"1602583340138.pdf"},{"ID_F":"AC736D7E-2D17-4617-BECE-1AF027ADE41B","FACT_NAME":"1602583336867.pdf"},{"ID_F":"95E92FB5-78FF-4028-A5FE-B1B6B5E1C0A5","FACT_NAME":"1602583332849.pdf"},{"ID_F":"E09F473F-B419-4901-B510-4A9261C5C9CF","FACT_NAME":"1602583326497.pdf"},{"ID_F":"71B67738-41C1-4E33-A6B5-A7D6CC0F0549","FACT_NAME":"1602583317891.pdf"},{"ID_F":"F16662D8-0BCA-4AC9-9604-95E4237249D5","FACT_NAME":"1602583313709.pdf"},{"ID_F":"606804EB-09AD-465E-8C02-A07CB79E0F4C","FACT_NAME":"1602583308934.pdf"}],"TABLENAME":"1","PDATE":"2020-09-11","SSRQ":null,"TITLE":"国家卫生健康委员会 国家市场监督管理总局关于发布《食品安全国家标准 食品用香精》(GB 30616-2020)等38项食品安全国家标准和4项修改单的公告","ID":"7FDFC20A-33B5-4F54-A47B-2DE8F0093F45"}],
            position: "最新公告",
            ssrq: 0,//实施日期
            titleType: "公告",
            lsTab:[{"code":"","name":"全部标准"},{"code":"1022","name":"污染物"},{"code":"1023","name":"微生物"},{"code":"1024","name":"食品添加剂"},{"code":"1025","name":"食品产品"},{"code":"1026","name":"生产经营规范"},{"code":"1027","name":"食品相关产品"},{"code":"1028","name":"营养与特殊膳食食品"},{"code":"1029","name":"理化检验方法与规程"},{"code":"1030","name":"微生物检验方法与规程"},{"code":"1031","name":"毒理学评价方法与程序"},{"code":"2031","name":"食品中放射性物质"},{"code":"1574","name":"食品营养强化剂"},{"code":"2032","name":"标签"},{"code":"1077","name":"农药残留"},{"code":"2030","name":"兽药残留"},{"code":"2033","name":"修改单"}],
 
            //外部访问关键字
            
        },
        mounted() {
            this.getHeaderHeight()
            window.addEventListener('resize', this.handleResize)
 
            // if (''!==this.extKeyword){
            //     this.externalAcc();
            // }
        },
        watch: {
            divHeight(newValue) {
                this.getHeaderHeight()
            }
        },
        methods: {
            // externalAcc(){//外部访问
            //     this.headerTabs(1)//通过第一个页面进行访问(公告)加载必要参数
            //      $("#keyword").val(this.extKeyword)//给keyword进行赋值
            //     this.listIndexKeyword(1)//进行全部搜索
            // },
            handleResize() {
                this.divHeight = window.innerHeight
            },
            changeTabs(e) {
                this.activeTabs = e
                this.listIndexKeyword()
                this.getHeaderHeight(e)
            },
            headerTabs(e) {
                $('#keyword').val('')
                this.headerTabsActive = e
                this.isWhole=false
                if (e === 1) {
                    this.hideTabs = 1
                    this.position = "最新公告"
                    this.isGD = 1
                    this.ssrq = 0
                    this.isXZ = 0
                    this.indexType = 1
                    this.titleType = "公告"
                    this.listIndexKeyword()
                } else if (e === 2) {
                    this.hideTabs = 0
                    this.position = "标准文本"
                    this.isGD = 1
                    this.ssrq = 1
                    this.isXZ = 1
                    this.indexType = 2
                    this.titleType = "标准文本"
                    this.listIndexKeyword()
                } else if (e === 4) {
                    this.hideTabs = 1
                    this.position = "标准勘误"
                    this.isGD = 1
                    this.ssrq = 0
                    this.isXZ = 0
                    this.indexType = 2
                    this.titleType = "标准勘误"
                    this.listIndexKeyword()
                } else if (e === 3) {
                    this.hideTabs = 1
                    this.position = "标准解读"
                    this.isGD = 1
                    this.ssrq = 0
                    this.isXZ = 0
                    this.indexType = 3
                    this.titleType = "标准解读"
                    this.listIndexKeyword()
                }else if (e === 5) {
                    this.hideTabs = 1
                    this.position = "全部标准"
                    this.isGD = 1
                    this.ssrq = 1
                    this.isXZ = 1
                    this.indexType = 2
                    this.titleType = "全部标准"
                    this.listIndexKeyword()
                }
            },
            listIndexKeyword(isS) {
                $('#mask').show()
                this.isGD =1//显示更多
 
                let keyword = $('#keyword').val()
                let number = isLength;
                let num_tn=this.headerTabsActive;
 
                if (isS === 1 || isS === 2) {
                    if (isS === 1 && keyword === "") {//判断为空
                        alert("请输入要查询的关键字")
                        $('#mask').hide()
                        return
                    }
                    if (num_tn===1&&isS !== 2){//当现在页面是公告并且点击搜索的时候搜索全部
                        num_tn=99
                        this.position = "全部"
                    }
                    number = 9999;
                    this.isGD = 0//隐藏更多
                }
                if (keyword !== ""){
                    number = 9999;
                }
 
                let _this = this
                // console.log(this.activeTabs)
                $.ajax({
                    url: "/db?task=indexSearch",
                    type: "POST",
                    data: {
                        "isLength": number,
                        "num_tn": num_tn,
                        "standard_type": this.activeTabs || '',
                        "keyword": keyword,
                    },
                    success: function (data) {
                        _this.list = jQuery.parseJSON(data)
                        $('#mask').hide()
                        console.log( _this.list)
                        //清空数据
                        _this.activeTabs=null;
                    }
                });
            },
            goto(guid, type) {
                if (type==='4'){//标准勘误用标准文本的
                    type=2
                }
                form1.task.value = 'goto';
                form1.action = '/db?type=' + type + '&guid=' + guid;
                form1.submit();
            },
            toIndexGJ(){
                form1.task.value = 'toIndexGJ';
                form1.action = '/db';
                form1.submit();
            },
            preview(fact_name) {
                form1.fact_name.value = fact_name;
                form1.target = '';
                form1.task.value = "view_Document";
                form1.action = '/db';
                form1.submit();
            },
            load(guid) {
                form1.target = '';
                form1.file_guid.value = guid;
                form1.task.value = 'd_p';
                form1.action = '/cfsa_aiguo';
                form1.submit();
            },
            getHeaderHeight(e) {
                // setTimeout(() => {
                var box = document.getElementById("headerid")
                var contentHeight = window.getComputedStyle(box).height.split('px')[0]
                var appBox = document.getElementById("app")
                var appContentHeight = window.getComputedStyle(appBox).height.split('px')[0]
                this.contentHeight = Number(appContentHeight) - 88 - 100
            },
            getItemStatusText(tablename) {
                switch (tablename) {
                    case '1':
                        return '公告';
                    case '2':
                        return '标准文本';
                    case '3':
                        return '标准解读';
                    case '4':
                        return '标准勘误';
                    default:
                        return '未知';
                }
            },
            // 定义一个方法来检查 CONTENT 是否是图片 URL
            isImage(url) {
                if (url!=null){
                    if (url.indexOf("jpg")==-1||url.indexOf("jpeg")==-1||url.indexOf("png")==-1||url.indexOf("gif")==-1){
                        return false
                    }else {
                        return true
                    }
                }
            }
        }
    })
 
    function listGJ() {
        form1.task.value = "listStandardGJ";
        form1.action = '/db';
        form1.submit();
    }
 
    function listSY(d) {
        form1.task.value = "index";
        form1.action = '/db';
        form1.submit();
    }
 
    //监听回车事件
    $(document).ready(function () {
        document.onkeydown = function (event) {
            if (event.keyCode == 13) { //回车键的键值为13
                app.listIndexKeyword(1)
                return false
            }
        };
    });
    $(function () {
        $('#mask').hide()
    })
 
    // 新增函数:显示通知弹框
    function showNotification() {
        // 检查是否已经显示过(可以使用cookie或localStorage来记录)
        // 这里简单实现,每次刷新都会显示
        document.getElementById('notificationModal').style.display = 'flex';
    }
 
    // 新增函数:关闭通知弹框
    function closeNotification() {
        document.getElementById('notificationModal').style.display = 'none';
        // 这里可以添加记录用户已关闭的通知的逻辑
    }
 
    // 页面加载完成后显示通知
    $(document).ready(function() {
        // 延迟一点显示,避免与页面其他加载效果冲突
        // setTimeout(showNotification, 500);
    });
</script>
<style>
    .full-screen-mask {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.1);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
    }
 
    .loading-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
 
    .css-loader {
        width: 100px;
        height: 100px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        animation:
                spin 1s linear infinite,
                fadeIn 0.5s ease-in 2s forwards;
        opacity: 0;
        margin-bottom: 20px; /* 增加与文字的距离 */
    }
 
    .loading-text {
        opacity: 0;
        font-size: 16px;
        color: #333;
        font-weight: bold;    /* 新增:加粗文字 */
        animation: fadeIn 0.5s ease-in 2s forwards;
    }
 
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
 
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
 
    a {
        text-decoration: none;
    }
    a:hover{
        background-color: rgba(0, 0, 0, 0.1);
    }
    #mainDiv img{
        width:100%;
        heigth:100%
    }
 
 
    /* 新增弹框样式 */
    .notification-modal {
        display: none; /* 默认隐藏 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        justify-content: center;
        align-items: center;
    }
 
    .notification-content {
        background-color: #fff;
        padding: 30px;
        border-radius: 8px;
        width: 400px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        text-align: center;
        position: relative;
    }
 
    .notification-title {
        font-size: 18px;
        font-weight: bold;
        color: #d9534f;
        margin-bottom: 15px;
    }
 
    .notification-message {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 25px;
        color: #333;
    }
 
    .notification-close {
        background-color: #d9534f;
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s;
    }
 
    .notification-close:hover {
        background-color: #c9302c;
    }
</style>
</body>
</html>