You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

preference.html 29 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <!DOCTYPE html>
  2. <html dir="ltr" lang="en" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <link rel="icon" type="image/png" sizes="16x16" th:href="@{/assets/images/favicon.png}">
  10. <title>偏好设置·网络情报分析系统</title>
  11. <script th:src="@{/common/analyze-cloud.js}"></script>
  12. <link th:href="@{/dist/css/style.min.css}" rel="stylesheet">
  13. <link th:href="@{/dist/css/custom.css}" rel="stylesheet">
  14. <link th:href="@{/assets/libs/sweetalert2/dist/sweetalert2.min.css}" rel="stylesheet">
  15. <link rel="stylesheet" type="text/css"
  16. th:href="@{/assets/libs/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css}">
  17. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  18. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  19. <!--[if lt IE 9]>
  20. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  21. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  22. <![endif]-->
  23. <style>
  24. .badge-info {
  25. color: #fff !important;
  26. background-color: #6184e6 !important;
  27. }
  28. .preference-time {
  29. display: inline-block;
  30. width: 300px;
  31. }
  32. .preference-time-list{
  33. display: flex;
  34. align-items: center;
  35. }
  36. .preference-time-list>span{
  37. display: inline-block;
  38. }
  39. .icon4{
  40. margin-left: auto;
  41. line-height: 15px;
  42. }
  43. .icon4 i{
  44. margin-left: 25px;
  45. cursor: pointer;
  46. }
  47. </style>
  48. </head>
  49. <body style="background: #eef5f9;">
  50. <div id="main-wrapper">
  51. <div th:replace="common/header::header"></div>
  52. <div th:replace="common/setting_left::setting_left"></div>
  53. <div class="page-wrapper">
  54. <div class="right-part right-content">
  55. <!-- nav start-->
  56. <div class="page-breadcrumb">
  57. <div class="row">
  58. <div class="col-lg-5 align-self-center">
  59. <div class="d-flex align-items-center">
  60. <nav aria-label="breadcrumb">
  61. <ol class="breadcrumb">
  62. <li class="breadcrumb-item">系统设置</li>
  63. <li class="breadcrumb-item">偏好设置</li>
  64. <li class="breadcrumb-item" id="groupName">涉及国家</li>
  65. <li class="breadcrumb-item" id="projectName">国家高层</li>
  66. </ol>
  67. </nav>
  68. </div>
  69. </div>
  70. <div class="col-lg-7 align-self-center "></div>
  71. </div>
  72. </div>
  73. <!-- nav end-->
  74. <div class="p-20">
  75. <div class="card">
  76. <div class="card-body" style="min-height: 250px;">
  77. <div class="d-flex no-block justify-content-start align-items-center m-b-20">
  78. <span>选择方案组&方案</span>
  79. <select id="groupSelect" class="form-control m-l-10 custom-select" style="width: 120px;">
  80. </select>
  81. <select id="projectSelect" class="form-control m-l-10 custom-select" style="width: 120px;">
  82. </select>
  83. <div style="display:flex;" class="icon4" id="iconall">
  84. <i id="icon1" data-type="analysis" class="fa fa-chart-bar" title="监测分析"></i>
  85. <i id="icon2" data-type="monitor" class="mdi mdi-eye-outline" title="数据监测"></i>
  86. <i id="icon3" data-type="project" class="fas fa-pencil-alt" title="监测管理"></i>
  87. <i id="icon4" data-type="volume" class="fa fa-rss" title="声量监测"></i>
  88. </div>
  89. </div>
  90. <div id="nodata"></div>
  91. <div id="loading"></div>
  92. <!-- content start -->
  93. <div class="p-t-10" id="conditionGroup">
  94. <!-- double line start-->
  95. <div class="warning-edit-third ">
  96. <div class="warning-left">
  97. <div>情感属性</div>
  98. <div class=" m-l-0">
  99. <span data-emotion=1 class="badge badge-pill badge-light">正面</span>
  100. <span data-emotion=2 class="badge badge-pill badge-light">中性</span>
  101. <span data-emotion=3 class="badge badge-pill badge-light">负面</span>
  102. </div>
  103. </div>
  104. <div class="warning-center">
  105. <div>相似文章</div>
  106. <div class=" m-l-0">
  107. <span data-similar=1 class="badge badge-pill badge-light">合并文章</span>
  108. <span data-similar=0 class="badge badge-pill badge-light">取消合并</span>
  109. </div>
  110. </div>
  111. <div class="warning-right">
  112. <div>精准筛选</div>
  113. <div class=" m-l-0">
  114. <span data-precise=1 class="badge badge-pill badge-light">打开精准</span>
  115. <span data-precise=0 class="badge badge-pill badge-light">关闭精准</span>
  116. </div>
  117. </div>
  118. </div>
  119. <!-- double line end-->
  120. <!-- double line start-->
  121. <div class="warning-edit-double">
  122. <div class="warning-left">
  123. <div>信息排序</div>
  124. <div class=" m-l-0">
  125. <span data-sort=1 class="badge badge-pill badge-light">时间降序</span>
  126. <span data-sort=2 class="badge badge-pill badge-light">时间升序</span>
  127. <span data-sort=3 class="badge badge-pill badge-light">相似数量</span>
  128. </div>
  129. </div>
  130. <div class="warning-right">
  131. <div>匹配方式</div>
  132. <div>
  133. <span data-matchs=1 class="badge badge-pill badge-light">全文匹配</span>
  134. <span data-matchs=2 class="badge badge-pill badge-light">标题匹配</span>
  135. <span data-matchs=3 class="badge badge-pill badge-light">正文匹配</span>
  136. </div>
  137. </div>
  138. </div>
  139. <!-- double line end-->
  140. <!-- double line start-->
  141. <div class="warning-edit-double">
  142. <div class="warning-left w-100">
  143. <div class="preference-left">时间范围</div>
  144. <div class=" m-l-0 preference-time-list">
  145. <span data-time=1 class="badge badge-pill badge-light">24小时</span>
  146. <span data-time=2 class="badge badge-pill badge-light">昨天</span>
  147. <span data-time=3 class="badge badge-pill badge-light">今天</span>
  148. <span data-time=4 class="badge badge-pill badge-light">3天</span>
  149. <span data-time=5 class="badge badge-pill badge-light">7天</span>
  150. <span data-time=6 class="badge badge-pill badge-light">15天</span>
  151. <span data-time=7 class="badge badge-pill badge-light">30天</span>
  152. <span data-time=8 class="badge badge-pill badge-light">自定义</span>
  153. <div class="input-daterange monitor-date preference-time" style="display:none"
  154. id="date-range">
  155. <input type="text" class="form-control" name="start" placeholder="开始日期"/>
  156. <input type="text" class="form-control" name="end" placeholder="结束日期"/>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <!--<div class="card-body m-t-20" id="btnGroup" style="margin-top: 0;">-->
  164. <!--<div style="width: 140px; display: flex; justify-content: space-between;margin: 0 auto;">-->
  165. <!--<button class="btn btn-info" id="saveBtn">保存</button>-->
  166. <!--<button class="btn btn-secondary">取消保存</button>-->
  167. <!--</div>-->
  168. <!--</div>-->
  169. </div>
  170. </div>
  171. <div class="page-footer">
  172. © 2014-<span id="currentyear"></span> 南京涌亿思信息技术有限公司 苏ICP备17066984号-1
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <script th:src="@{/assets/libs/jquery/dist/jquery.min.js}"></script>
  178. <script th:src="@{/assets/libs/popper.js/dist/umd/popper.min.js}"></script>
  179. <script th:src="@{/assets/libs/bootstrap/dist/js/bootstrap.min.js}"></script>
  180. <script th:src="@{/dist/js/app.min.js}"></script>
  181. <script th:src="@{/dist/js/app.init.light-sidebar.js}"></script>
  182. <script th:src="@{/dist/js/app-style-switcher.js}"></script>
  183. <script th:src="@{/assets/libs/perfect-scrollbar/dist/perfect-scrollbar.jquery.min.js}"></script>
  184. <script th:src="@{/assets/libs/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js}"></script>
  185. <script th:src="@{/assets/libs/bootstrap-datepicker/dist/locales/bootstrap-datepicker.zh-CN.min.js}"></script>
  186. <script th:src="@{/assets/extra-libs/sparkline/sparkline.js}"></script>
  187. <script th:src="@{/dist/js/waves.js}"></script>
  188. <script th:src="@{/dist/js/sidebarmenu.js}"></script>
  189. <script th:src="@{/dist/js/custom.min.js}"></script>
  190. <script th:src="@{/dist/js/projectlist.js}"></script>
  191. <script th:src="@{/dist/js/pages.js}"></script>
  192. <script th:src="@{/common/common.js}"></script>
  193. <script th:src="@{/assets/libs/block-ui/jquery.blockUI.js}"></script>
  194. <script th:src="@{/dist/baidu/baidu_statistics.js}"></script>
  195. <script type="text/javascript" th:inline="javascript">
  196. $("#currentyear").text((new Date()).getFullYear());
  197. var groupIdParam = [[${groupId}]];
  198. var projectIdParam = [[${projectId}]];
  199. var opinion_condition_id = null;
  200. listSolutionGroupByUserId();
  201. listProjectByGroupId();
  202. getOpinionConditionByProjectId();
  203. // 方案组列表
  204. function listSolutionGroupByUserId() {
  205. $.ajax({
  206. url: ctxPath + 'system/listSolutionGroupByUserId',
  207. type: 'post',
  208. dataType: 'json',
  209. data: {},
  210. async: false,
  211. success: function (res) {
  212. var list = res;
  213. $('#groupSelect').html('');
  214. for (var i = 0; i < list.length; i++) {
  215. var html = '';
  216. if (list[i].groupId == groupIdParam) {
  217. html = '<option value="' + list[i].groupId + '" selected>' + list[i].groupName + '</option>';
  218. } else {
  219. html = '<option value="' + list[i].groupId + '">' + list[i].groupName + '</option>';
  220. }
  221. $('#groupSelect').append(html);
  222. }
  223. if (list.length == 0) {
  224. var html = '<option value="">暂无方案组!</option>';
  225. $('#groupSelect').html(html);
  226. }
  227. },
  228. error: function (res) {
  229. console.log(res);
  230. }
  231. });
  232. }
  233. // 方案列表
  234. function listProjectByGroupId() {
  235. var groupId = $('#groupSelect').val();
  236. $.ajax({
  237. url: ctxPath + 'system/listProjectByGroupId',
  238. type: 'post',
  239. dataType: 'json',
  240. data: {
  241. groupId: groupId
  242. },
  243. async: false,
  244. success: function (res) {
  245. var list = res;
  246. $('#projectSelect').html('');
  247. $('#iconall i').show();
  248. for (var i = 0; i < list.length; i++) {
  249. var html = '';
  250. if (list[i].projectId == projectIdParam) {
  251. html = '<option value="' + list[i].projectId + '" selected>' + list[i].projectName + '</option>';
  252. } else {
  253. html = '<option value="' + list[i].projectId + '">' + list[i].projectName + '</option>';
  254. }
  255. $('#projectSelect').append(html);
  256. }
  257. if (list.length == 0) {
  258. var html = '<option value="">暂无方案!</option>';
  259. $('#projectSelect').html(html);
  260. $('#iconall i').hide();
  261. }
  262. },
  263. error: function (res) {
  264. console.log(res);
  265. }
  266. });
  267. }
  268. $('#groupSelect').change(function () {
  269. listProjectByGroupId();
  270. getOpinionConditionByProjectId();
  271. });
  272. $('#projectSelect').change(function () {
  273. getOpinionConditionByProjectId();
  274. });
  275. // 偏好设置信息
  276. function getOpinionConditionByProjectId() {
  277. let projectId = $('#projectSelect').val();
  278. $.ajax({
  279. url: ctxPath + 'system/getOpinionConditionByProjectId',
  280. type: 'post',
  281. dataType: 'json',
  282. data: {
  283. projectId: projectId
  284. },
  285. beforeSend: function () {
  286. loading('#loading');
  287. },
  288. complete: function () {
  289. $('#loading').html('');
  290. },
  291. success: function (res) {
  292. if (!$.isEmptyObject(res) && res) {
  293. $('#conditionGroup').show();
  294. $('#btnGroup').show();
  295. $('#nodata').html('');
  296. opinion_condition_id = res.opinion_condition_id;
  297. let times = res.times;
  298. let timee = res.timee;
  299. if (res.time == 8) {
  300. $("#date-range").css("display","block");
  301. $('span[data-time=' + res.time + ']').addClass('badge-info');
  302. $('span[data-time=' + res.time + ']').siblings().removeClass('badge-info');
  303. $("#date-range input[name=start]").val(times.substring(0, 10));
  304. $("#date-range input[name=end]").val(timee.substring(0, 10));
  305. } else {
  306. $('span[data-time=' + res.time + ']').addClass('badge-info');
  307. $('span[data-time=' + res.time + ']').siblings().removeClass('badge-info');
  308. }
  309. $('span[data-precise=' + res.precise + ']').addClass('badge-info');
  310. $('span[data-precise=' + res.precise + ']').siblings().removeClass('badge-info');
  311. $('span[data-similar=' + res.similar + ']').addClass('badge-info');
  312. $('span[data-similar=' + res.similar + ']').siblings().removeClass('badge-info');
  313. $('span[data-sort=' + res.sort + ']').addClass('badge-info');
  314. $('span[data-sort=' + res.sort + ']').siblings().removeClass('badge-info');
  315. $('span[data-matchs=' + res.matchs + ']').addClass('badge-info');
  316. $('span[data-matchs=' + res.matchs + ']').siblings().removeClass('badge-info');
  317. $('span[data-emotion]').removeClass('badge-info');
  318. if (res.emotion) {
  319. var emotion = JSON.parse(res.emotion);
  320. for (var i = 0; i < emotion.length; i++) {
  321. $('span[data-emotion=' + emotion[i] + ']').addClass('badge-info');
  322. }
  323. }
  324. } else {
  325. $('#conditionGroup').hide();
  326. $('#btnGroup').hide();
  327. nodata('#nodata', '暂无方案!去创建>', ctxPath + 'project');
  328. }
  329. },
  330. error: function (res) {
  331. console.log(res);
  332. }
  333. });
  334. }
  335. $('span[data-time]').click(function () {
  336. $(this).addClass('badge-info');
  337. $(this).siblings().removeClass('badge-info');
  338. let time = $(this).attr("data-time");
  339. if (time == 8) {
  340. $("#date-range").css("display", "block");
  341. let times = getnow();
  342. let timed = getnow();
  343. $("#date-range input[name=start]").val(times);
  344. $("#date-range input[name=end]").val(timed);
  345. changeCondition();
  346. } else {
  347. $("#date-range").css("display", "none");
  348. changeCondition();
  349. }
  350. });
  351. $('span[data-precise]').click(function () {
  352. $(this).addClass('badge-info');
  353. $(this).siblings().removeClass('badge-info');
  354. changeCondition();
  355. });
  356. $('span[data-similar]').click(function () {
  357. $(this).addClass('badge-info');
  358. $(this).siblings().removeClass('badge-info');
  359. changeCondition();
  360. });
  361. $('span[data-sort]').click(function () {
  362. $(this).addClass('badge-info');
  363. $(this).siblings().removeClass('badge-info');
  364. changeCondition();
  365. });
  366. $('span[data-matchs]').click(function () {
  367. $(this).addClass('badge-info');
  368. $(this).siblings().removeClass('badge-info');
  369. changeCondition();
  370. });
  371. $('span[data-emotion]').click(function () {
  372. if ($(this).hasClass('badge-info')) {
  373. $(this).removeClass('badge-info');
  374. } else {
  375. $(this).addClass('badge-info');
  376. }
  377. changeCondition();
  378. });
  379. // 保存按钮点击事件
  380. // $('#saveBtn').click(function () {
  381. // var time = 1;
  382. // var precise = 0;
  383. // var emotion = [];
  384. // var similar = 0;
  385. // var sort = 1;
  386. // var matchs = 1;
  387. // let times = '';
  388. // let timee = '';
  389. //
  390. // $('span[data-time]').each(function () {
  391. // if ($(this).hasClass('badge-info')) {
  392. // time = $(this).data('time');
  393. // }
  394. // });
  395. //
  396. // if (time == 8) {
  397. // times = '';
  398. // timee = '';
  399. // }
  400. //
  401. // $('span[data-emotion]').each(function () {
  402. // if ($(this).hasClass('badge-info')) {
  403. // emotion.push($(this).data('emotion'));
  404. // }
  405. // })
  406. // $('span[data-precise]').each(function () {
  407. // if ($(this).hasClass('badge-info')) {
  408. // precise = $(this).data('precise');
  409. // }
  410. // })
  411. // $('span[data-similar]').each(function () {
  412. // if ($(this).hasClass('badge-info')) {
  413. // similar = $(this).data('similar');
  414. // }
  415. // })
  416. // $('span[data-sort]').each(function () {
  417. // if ($(this).hasClass('badge-info')) {
  418. // sort = $(this).data('sort');
  419. // }
  420. // })
  421. // $('span[data-matchs]').each(function () {
  422. // if ($(this).hasClass('badge-info')) {
  423. // matchs = $(this).data('matchs');
  424. // }
  425. // })
  426. // if (opinion_condition_id) {
  427. // $.ajax({
  428. // url: ctxPath + 'system/updateOpinionCondition',
  429. // type: 'post',
  430. // dataType: 'json',
  431. // data: {
  432. // opinion_condition_id: opinion_condition_id,
  433. // time: time,
  434. // emotion: JSON.stringify(emotion),
  435. // precise: precise,
  436. // similar: similar,
  437. // sort: sort,
  438. // matchs: matchs,
  439. // times: timee,
  440. // timee: timee
  441. // },
  442. // success: function (res) {
  443. // if (res.status) {
  444. // showtips("保存成功!");
  445. // } else {
  446. // showtips("保存失败!");
  447. // }
  448. // },
  449. // error: function (xhr, ajaxOptions, thrownError) {
  450. // if (xhr.status == 403) {
  451. // window.location.href = ctxPath + "login";
  452. // }
  453. // }
  454. // });
  455. // }
  456. // });
  457. $("#date-range input").change(function () {
  458. let times = $("#date-range input[name=start]").val();
  459. let timed = $("#date-range input[name=end]").val();
  460. if (times > timed) {
  461. showtips("开始时间不能迟于结束时间");
  462. } else {
  463. if (times != "" && timed != "") {
  464. let project_id = $('#projectSelect').val();
  465. let condition = getCondition();
  466. condition.project_id = project_id;
  467. condition.timee = timed;
  468. condition.times = times;
  469. let parambasic = new Object(); // ajax基本的参数
  470. parambasic.type = "POST";
  471. parambasic.url = ctxPath + 'system/updateOpinionCondition';
  472. parambasic.contentType = 'application/json;charset=utf-8';
  473. sendCondition(parambasic, JSON.stringify(condition), conditionTip);
  474. } else {
  475. showtips("开始时间或结束时间不能为空");
  476. }
  477. }
  478. });
  479. /**
  480. * @author liyoulin
  481. * @date 2020/04/16
  482. * @description Date Picker 时间控件
  483. */
  484. $('#date-range').datepicker({
  485. language: 'zh-CN',
  486. format: "yyyy-mm-dd",
  487. orientation: "bottom auto",
  488. toggleActive: true,
  489. keyboardNavigation: true,
  490. enableOnReadonly: false,
  491. todayHighlight: true,
  492. endDate: getnow(),
  493. autoclose: true
  494. });
  495. function getnow() {
  496. var now = new Date();
  497. var month = now.getMonth() + 1;
  498. if(month < 10) month = '0' + month;
  499. var day = now.getDate();
  500. if(day < 10) day = '0' + day;
  501. var nowday = now.getFullYear() + "-" + month + "-" + day;
  502. return nowday
  503. }
  504. /**
  505. * @author hujiancheng
  506. * @date 2020/04/22
  507. * @description 改变更新偏好设置
  508. */
  509. function changeCondition() {
  510. let project_id = $('#projectSelect').val();
  511. let condition = getCondition();
  512. condition.project_id = project_id;
  513. let parambasic = new Object(); // ajax基本的参数
  514. parambasic.type = "POST";
  515. parambasic.url = ctxPath + 'system/updateOpinionCondition';
  516. parambasic.contentType = 'application/json;charset=utf-8';
  517. console.log(condition)
  518. sendCondition(parambasic, JSON.stringify(condition), conditionTip);
  519. }
  520. /**
  521. * @author hujiancheng
  522. * @date 2020/04/22
  523. * @description 请求偏好设置数据
  524. */
  525. function sendCondition(param, data, funcname) {
  526. $.ajax({
  527. type: param.type,
  528. url: param.url,
  529. dataType: 'json',
  530. data: data,
  531. contentType: param.contentType,
  532. success: function (res) {
  533. funcname(res);
  534. },
  535. error: function (xhr, ajaxOptions, thrownError) {
  536. if (xhr.status == 403) {
  537. window.location.href = ctxPath + "login";
  538. }
  539. }
  540. });
  541. }
  542. /**
  543. * @author hujiancheng
  544. * @date 2020/04/22
  545. * @description 提示
  546. */
  547. function conditionTip(res) {
  548. console.log(res);
  549. let message = res.message;
  550. showtips(message)
  551. }
  552. /**
  553. * @author hujiancheng
  554. * @date 2020/04/22
  555. * @description 获取编号设置条件
  556. */
  557. function getCondition() {
  558. let time = 1;
  559. let precise = 0;
  560. let emotion = [];
  561. let similar = 0;
  562. let sort = 1;
  563. let matchs = 1;
  564. let times = '';
  565. let timee = '';
  566. $('span[data-time]').each(function () {
  567. if ($(this).hasClass('badge-info')) {
  568. time = $(this).data('time');
  569. }
  570. });
  571. if (time == 8) {
  572. times = $("#date-range input[name=start]").val();
  573. timee = $("#date-range input[name=end]").val();
  574. }
  575. $('span[data-emotion]').each(function () {
  576. if ($(this).hasClass('badge-info')) {
  577. emotion.push($(this).data('emotion'));
  578. }
  579. });
  580. $('span[data-precise]').each(function () {
  581. if ($(this).hasClass('badge-info')) {
  582. precise = $(this).data('precise');
  583. }
  584. });
  585. $('span[data-similar]').each(function () {
  586. if ($(this).hasClass('badge-info')) {
  587. similar = $(this).data('similar');
  588. }
  589. });
  590. $('span[data-sort]').each(function () {
  591. if ($(this).hasClass('badge-info')) {
  592. sort = $(this).data('sort');
  593. }
  594. });
  595. $('span[data-matchs]').each(function () {
  596. if ($(this).hasClass('badge-info')) {
  597. matchs = $(this).data('matchs');
  598. }
  599. });
  600. let condition = new Object();
  601. condition.time = time;
  602. condition.precise = precise;
  603. condition.emotion = emotion;
  604. condition.similar = similar;
  605. condition.sort = sort;
  606. condition.matchs = matchs;
  607. condition.times = times;
  608. condition.timee = timee;
  609. condition.opinion_condition_id = opinion_condition_id;
  610. return condition;
  611. }
  612. $('.navLi').click(function(){
  613. jumpNavLocation($(this).data('type'), null, null);
  614. })
  615. $('#iconall i').click(function(){
  616. var type = $(this).data('type');
  617. var groupId = $('#groupSelect').val();
  618. var projectId = $('#projectSelect').val();
  619. var param = '';
  620. if(groupId){
  621. param = '?groupid='+groupId;
  622. if(projectId){
  623. if(type == 'project'){
  624. param = '/editproject' + param + '&projectid='+projectId;
  625. }else{
  626. param += '&projectid='+projectId;
  627. }
  628. }
  629. }
  630. window.location.href = ctxPath + type + param;
  631. })
  632. </script>
  633. </body>
  634. </html>

一款开源免费的舆情系统。 支持本地化部署,支持在线体验。 支持对海量舆情数据分析和挖掘。