CommitteeWorkSpace.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476
  1. <!-- 委员会工作空间 -->
  2. <template>
  3. <div class="autoBox box1" style="position: relative; background: #f5f5f5">
  4. <div class="topImg" style="margin-top: -20px">
  5. <div class="spaceImg">
  6. <h1 class="topTitle">
  7. {{ $t("common.clean") }}&nbsp;&nbsp;{{ $t("common.green") }}
  8. </h1>
  9. <span class="topContent1">{{ $t("common.structure") }}</span>
  10. <span class="topContent2">{{ $t("common.promote") }}</span>
  11. <img
  12. style="
  13. width: 600px;
  14. height: 302px;
  15. display: inline-block;
  16. position: absolute;
  17. right: 0;
  18. bottom: 0;
  19. "
  20. :src="require('@/assets/img/committeeWorkSpace/Group 186.png')"
  21. alt=""
  22. />
  23. </div>
  24. </div>
  25. <div class="center">
  26. <div class="left">
  27. <div class="centerLeft1">
  28. <div class="top">
  29. <div class="top1"></div>
  30. <div class="top2"></div>
  31. <div class="allApplication">
  32. <span>{{ $t("common.allApplication") }}</span>
  33. </div>
  34. <div @click="moreApplication" class="more mouse">
  35. <span>{{ $t("common.more") }}</span>
  36. </div>
  37. </div>
  38. <div class="content mouse">
  39. <div @click="toCreate" class="content1">
  40. <el-button icon="el-icon-plus" type="text">{{
  41. $t("common.createApplication")
  42. }}
  43. </el-button>
  44. </div>
  45. <div
  46. class="content2"
  47. v-for="(item, index) in allApplicationList"
  48. :key="item.id"
  49. >
  50. <span class="title" :title="item.title" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.title }}</span>
  51. <span class="time">{{ item.applyTime }}</span>
  52. <!--<span class="type">{{ defineType }}</span>-->
  53. <span
  54. v-if="item.applyTypeName === '公文'"
  55. class="type"
  56. >{{ $i18n.locale == "zh" ? "公文" : "Document" }}</span
  57. >
  58. <span
  59. v-if="item.applyTypeName === '活动方案'"
  60. class="type"
  61. >{{ $i18n.locale == "zh" ? "活动方案" : "Activity Plan" }}</span
  62. >
  63. <span
  64. v-if="item.applyTypeName === '意见与建议'"
  65. class="type"
  66. >{{ $i18n.locale == "zh" ? "意见与建议" : "Comments And Suggestions" }}</span
  67. >
  68. <span
  69. v-if="item.applyTypeName === '活动方案'"
  70. class="type"
  71. >{{ $i18n.locale == "zh" ? "活动方案" : "Activity、 release" }}</span
  72. >
  73. <span
  74. v-if="item.applyTypeName === '工作计划/总结'"
  75. class="type"
  76. >{{ $i18n.locale == "zh" ? "工作计划/总结" : "Work Plan/ Conclusion" }}</span
  77. >
  78. <span
  79. v-if="item.applyTypeName === '委员会资料发布'"
  80. class="type"
  81. >{{ $i18n.locale == "zh" ? "委员会资料发布" : "Committee Information Releases" }}</span
  82. >
  83. <!-- <span class="finish">{{ item.reserveThree }}</span> -->
  84. <!--<span
  85. v-if="item.reserveThree === '驳回'"
  86. style="color: #f01834"
  87. class="finish"
  88. >{{ $i18n.locale == "zh" ? "驳回" : "Reject" }}</span
  89. >
  90. <span
  91. v-if="item.reserveThree === '通过'"
  92. style="color: #58c52a"
  93. class="finish"
  94. >{{ $i18n.locale == "zh" ? "通过" : "Pass" }}</span
  95. >
  96. <span
  97. v-if="item.reserveThree === '审批中'"
  98. style="color: #ef992a"
  99. class="finish"
  100. >{{ $i18n.locale == "zh" ? "审批中" : "Auditing" }}</span
  101. >
  102. <span
  103. v-if="item.reserveThree === '撤回'"
  104. style="color: #f01834"
  105. class="finish"
  106. >{{ $i18n.locale == "zh" ? "撤回" : "Recall" }}</span
  107. >-->
  108. <div>
  109. <img
  110. class="audit"
  111. v-if="item.reserveThree === '驳回'"
  112. :src="require($i18n.locale == 'zh' ? '@/assets/img/committeeWorkSpace/驳回.png' :'@/assets/img/committeeWorkSpace/_Reject.png' )"
  113. alt=""
  114. />
  115. <img
  116. class="audit"
  117. v-if="item.reserveThree === '通过'"
  118. :src="require($i18n.locale == 'zh' ? '@/assets/img/committeeWorkSpace/已完成.png' :'@/assets/img/committeeWorkSpace/_Pass.png' )"
  119. alt=""
  120. />
  121. <img
  122. class="audit"
  123. v-if="item.reserveThree === '审批中'"
  124. :src="require($i18n.locale == 'zh' ? '@/assets/img/committeeWorkSpace/待审批.png' :'@/assets/img/committeeWorkSpace/_Auditing.png' )"
  125. alt=""
  126. />
  127. <img
  128. class="audit"
  129. v-if="item.reserveThree === '撤回'"
  130. :src="require($i18n.locale == 'zh' ? '@/assets/img/committeeWorkSpace/撤回.png' :'@/assets/img/committeeWorkSpace/_Recall.png' )"
  131. alt=""
  132. />
  133. </div>
  134. <div class="detail">
  135. <span class="toView" @click="detail(item)">{{
  136. $t("common.checkDetails")
  137. }}</span>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="centerLeft2 mouse">
  143. <div class="top">
  144. <div class="top1"></div>
  145. <div class="top2"></div>
  146. <div class="allApplication">
  147. <i
  148. :class="titleIndex == 1 ? 'title1' : 'title2'"
  149. @click="changeTitle(1)"
  150. style="
  151. font-size: 16px;
  152. line-height: 22px;
  153. font-weight: 700;
  154. font-family: 'PingFang SC';
  155. font-style: normal;
  156. "
  157. >{{ $t("common.committeeOfficial") }}</i
  158. >
  159. </div>
  160. <div :class="{lineVertical:isZh,lineVertical1:!isZh}"></div>
  161. <!-- <div :class="isZh ? 'lineVertical' : 'lineVertical1'"></div>-->
  162. <div :class="isZh ? 'notice' : 'notice1'">
  163. <i
  164. :class="titleIndex == 2 ? 'title1' : 'title2'"
  165. @click="changeTitle(2)"
  166. style="
  167. font-size: 16px;
  168. line-height: 22px;
  169. font-weight: 700;
  170. font-family: 'PingFang SC';
  171. font-style: normal;
  172. "
  173. >{{ $t("common.Notice") }}</i
  174. >
  175. </div>
  176. <div @click="moreNotice" class="more">
  177. <span>{{ $t("common.more") }}</span>
  178. </div>
  179. </div>
  180. <div>
  181. <div v-show="titleIndex == 1" class="center">
  182. <span v-if="isShowOfficialDocument">
  183. <span class="leftCheck3"></span>
  184. <span class="leftCheck4"></span>
  185. <span class="leftCheck5"></span>
  186. </span>
  187. <div
  188. v-for="(item, index) in commissionDocumentsList"
  189. :key="index"
  190. class="list"
  191. @click="officialDocumentDetail(item)"
  192. >
  193. <span
  194. class="leftTitle"
  195. style="
  196. height: 20px;
  197. overflow: hidden;
  198. text-overflow: ellipsis;
  199. white-space: nowrap;
  200. "
  201. >
  202. {{ item.title }}</span
  203. >
  204. <span class="rightTime1"> {{ item.releaseTime }}</span>
  205. </div>
  206. </div>
  207. <div v-show="titleIndex == 2" class="center">
  208. <span v-if="isShowNotice">
  209. <span class="leftCheck3"></span>
  210. <span class="leftCheck4"></span>
  211. <span class="leftCheck5"></span>
  212. </span>
  213. <div
  214. @click="noticeDetails(item)"
  215. v-for="(item, index) in announcementsList"
  216. :key="index"
  217. class="list"
  218. >
  219. <span
  220. class="leftTitle"
  221. style="
  222. height: 20px;
  223. overflow: hidden;
  224. text-overflow: ellipsis;
  225. white-space: nowrap;
  226. "
  227. >
  228. {{ item.title }}</span
  229. >
  230. <span class="rightTime1"> {{ item.releaseTime }}</span>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <div class="centerLeft3 mouse">
  236. <div class="top">
  237. <div class="top1"></div>
  238. <div class="top2"></div>
  239. <div class="allApplication">
  240. <span>{{ $t("common.opinionsSuggestions") }}</span>
  241. </div>
  242. <div @click="moreComments" class="more">
  243. <span>{{ $t("common.more") }}</span>
  244. </div>
  245. </div>
  246. <div class="center">
  247. <span v-if="isShowSuggest">
  248. <span class="leftCheck"></span>
  249. <span class="leftCheck1"></span>
  250. <span class="leftCheck2"></span>
  251. </span>
  252. <!-- <span style="position:absolute;top: 0;left: 0;right: 0;bottom: 0;margin: auto; ">暂无数据</span>-->
  253. <div
  254. v-for="(item, index) in opinionsSuggestionsList"
  255. :key="index"
  256. class="list"
  257. >
  258. <span @click="comments(item)" class="leftTitle1">
  259. {{ item.title }}</span
  260. >
  261. <span
  262. v-if="item.sendBySelf === '0'"
  263. style="margin-left: 10px"
  264. class="myRecieve"
  265. >{{ $i18n.locale == "zh" ? "我接收" : "Receive" }}</span
  266. >
  267. <span
  268. v-if="item.sendBySelf === '1'"
  269. style="margin-left: 10px"
  270. class="mySubmit"
  271. >{{ $i18n.locale == "zh" ? "我提交" : "Submit" }}</span
  272. >
  273. <span class="rightTime"> {{ item.createDate }}</span>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. <div class="right">
  279. <div class="centerRight1 mouse">
  280. <div class="top">
  281. <div class="top1"></div>
  282. <div class="top2"></div>
  283. <div class="allApplication">
  284. <span>{{ $t("common.convenientNavigation") }}</span>
  285. </div>
  286. </div>
  287. <div class="content">
  288. <div @click="myApplication" class="top1">
  289. <img src="@/assets/img/committeeWorkSpace/申请@2x.png" alt=""/>
  290. <span style="margin-top: 3px">{{
  291. $t("common.myApplication")
  292. }}</span>
  293. </div>
  294. <div @click="allInformation" class="top2">
  295. <img
  296. src="@/assets/img/committeeWorkSpace/全部资料@2x.png"
  297. alt=""
  298. />
  299. <span>{{ $t("common.allInformation") }}</span>
  300. </div>
  301. <div @click="interactiveMessage" class="bottom1">
  302. <img src="@/assets/img/committeeWorkSpace/组 51@2x.png" alt=""/>
  303. <span>{{ $t("common.interactiveMessage") }}</span>
  304. </div>
  305. <div @click="interactiveMessage" v-if="flag" class="bottom1" style="top: 100px;left: 120px;font-size: 90px;color: red;">
  306. <span>.</span>
  307. </div>
  308. <div @click="onlineMeet" class="bottom2">
  309. <img
  310. src="@/assets/img/committeeWorkSpace/在线会议@2x.png"
  311. alt=""
  312. />
  313. <span>{{ $t("common.onlineMeeting") }}</span>
  314. </div>
  315. </div>
  316. </div>
  317. <div class="centerRight2 mouse">
  318. <div class="top">
  319. <div class="top1"></div>
  320. <div class="top2"></div>
  321. <div class="allApplication">
  322. <span>{{ $t("common.organizationalStructure") }}</span>
  323. </div>
  324. </div>
  325. <div class="rightContent">
  326. <el-card>
  327. <el-tree
  328. style="font-size: 18px"
  329. :default-expand-all="true"
  330. :data="treeList"
  331. :props="defaultProps"
  332. @node-click="handleNodeClick"
  333. >
  334. <span class="custom-tree-node" slot-scope="{ node, data }">
  335. <span
  336. style="margin-right: 3px"
  337. v-if="data.types"
  338. class="group"
  339. ></span>
  340. <!-- 父级icon -->
  341. <span style="margin-right: 3px" v-if="data.param"></span>
  342. <!-- 子集icon -->
  343. <span v-else class="renwu"></span>
  344. <span>{{ node.label }}</span>
  345. <span v-if="data.type === '3'">
  346. <span v-show="data.dropdownShow">
  347. <i
  348. style="margin-left: 10px; font-size: 22px"
  349. class="el-icon-s-home"
  350. ></i>
  351. <i
  352. style="margin: 0 3px; font-size: 22px"
  353. class="el-icon-user"
  354. ></i>
  355. <i
  356. style="margin: 0 3px; font-size: 22px"
  357. class="el-icon-edit-outline"
  358. ></i>
  359. <i style="font-size: 22px" class="el-icon-delete"></i>
  360. </span>
  361. </span>
  362. </span>
  363. </el-tree>
  364. </el-card>
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. </template>
  371. <script>
  372. import {
  373. getCommitteeAllApplication,
  374. getNotificationList,
  375. getOpinionTheSuggestionList,
  376. getOrganize,
  377. } from "@/api/committee/committeeWorkSpace";
  378. import {getAccept} from '@/api/committee/interactive';
  379. // import { getOrganize } from "@/api/committee/interactive";
  380. import _ from "lodash";
  381. export default {
  382. name: "CommitteeWorkSpace",
  383. data() {
  384. return {
  385. timer:null,//定时器
  386. titleIndex: "1",
  387. islogin: true,
  388. flag:undefined,
  389. allApplicationList: [],
  390. defineType: "",
  391. commissionDocumentsList: [],
  392. announcementsList: [],
  393. opinionsSuggestionsList: [],
  394. treeList: [],
  395. treeListEn: [],
  396. defaultProps: {
  397. children: "param",
  398. label: "name",
  399. },
  400. isZh: null,
  401. isShowSuggest: null,
  402. isShowOfficialDocument: null,
  403. isShowNotice: null
  404. };
  405. },
  406. watch: {
  407. // "$i18n.locale": {
  408. // handler: function () {
  409. // debugger;
  410. // this.isZh = !this.isZh;
  411. // },
  412. // deep: true,
  413. //
  414. // },
  415. "$i18n.locale"() {
  416. this.getTree();
  417. this.isZh = !this.isZh;
  418. },
  419. },
  420. mounted() {
  421. this.refreshmessage();
  422. let language = window.localStorage.getItem("locale");
  423. if (language == "zh") {
  424. this.isZh = true;
  425. } else {
  426. this.isZh = false;
  427. }
  428. window.scrollTo(0, 0);
  429. this.accessToAllApplications();
  430. this.timer = setInterval(()=>{
  431. // 这里调用调用需要执行的方法,1为自定义的参数,由于特殊的需求它将用来区分,定时器调用和手工调用,然后执行不同的业务逻辑
  432. this.refreshmessage();
  433. }, 5000) // 每五秒执行1次
  434. },
  435. destroyed() {
  436. //清除多次执行定时器
  437. clearInterval(this.timer)
  438. },
  439. methods: {
  440. refreshmessage(){
  441. let params={
  442. frontOrBack:2
  443. }
  444. getAccept(params).then(res=>{
  445. res.data.page.forEach((item,index)=>{
  446. if(item.unReadCount!=0){
  447. this.flag=true;
  448. return;
  449. }
  450. })
  451. })
  452. },
  453. detail(param) {
  454. console.log(param);
  455. if (param.reserveTwo == 2) {
  456. var params = {
  457. name: "approvalfinish",
  458. type: false,
  459. detailids: param.id,
  460. flag: 1,
  461. };
  462. this.$emit("applicationType", params);
  463. }
  464. if (param.reserveTwo == 5) {
  465. var params = {
  466. name: "withdrawdetail",
  467. type: false,
  468. detailids: param.id,
  469. flag: 1,
  470. };
  471. this.$emit("applicationType", params);
  472. }
  473. if (
  474. param.reserveTwo == 6 ||
  475. param.reserveTwo == 7 ||
  476. param.reserveTwo == 10 ||
  477. param.reserveTwo == 11
  478. ) {
  479. var params = {
  480. name: "approvaldetail",
  481. type: false,
  482. detailids: param.id,
  483. flag: 1,
  484. };
  485. this.$emit("applicationType", params);
  486. }
  487. if (param.reserveTwo == 8 || param.reserveTwo == 9) {
  488. var params = {
  489. name: "nopassdetail",
  490. type: false,
  491. detailids: param.id,
  492. flag: 1,
  493. };
  494. this.$emit("applicationType", params);
  495. }
  496. },
  497. changeTitle(i) {
  498. this.titleIndex = i;
  499. console.log(i);
  500. // this.toObtainListDocumentNotification();
  501. },
  502. // changeTitle: _.debounce(function (i) {
  503. // this.titleIndex = i;
  504. // this.toObtainListDocumentNotification();
  505. // }, 2000),
  506. toCreate() {
  507. /* this.$router.push("Submitapplication");*/
  508. var params = {
  509. name: "submitapplication",
  510. type: false,
  511. flag: 1,
  512. /* category: "3",*/
  513. };
  514. this.$emit("applicationType", params);
  515. },
  516. initData() {
  517. // this.accessToAllApplications();
  518. this.getTree();
  519. this.toObtainListDocumentNotification();
  520. this.toObtainListViewsSuggestions();
  521. },
  522. // 获取全部申请
  523. accessToAllApplications() {
  524. getCommitteeAllApplication(1, 5, "", "").then((res) => {
  525. this.allApplicationList = res.data.nrcApplyQuerys;
  526. if(this.allApplicationList.length > 0){
  527. this.allApplicationList.forEach((item) => {
  528. switch (item.applyType) {
  529. case "1":
  530. this.defineType = "活动方案";
  531. item.applyTypeName = "活动方案";
  532. break;
  533. case "2":
  534. this.defineType = "意见与建议";
  535. item.applyTypeName = "意见与建议";
  536. break;
  537. case "3":
  538. this.defineType = "活动方案";
  539. item.applyTypeName = "活动方案";
  540. break;
  541. case "4":
  542. this.defineType = "工作计划/总结";
  543. item.applyTypeName = "工作计划/总结";
  544. break;
  545. case "5":
  546. this.defineType = "公文";
  547. item.applyTypeName = "公文";
  548. break;
  549. case "6":
  550. this.defineType = "委员会资料发布";
  551. item.applyTypeName = "委员会资料发布";
  552. break;
  553. }
  554. });
  555. }
  556. this.initData();
  557. });
  558. },
  559. // 获取公文通知列表
  560. toObtainListDocumentNotification() {
  561. // var params = this.titleIndex;
  562. // if (params === "1") {
  563. // getNotificationList(params, "1", "").then((res) => {
  564. // if (JSON.stringify(res.data) != "{}") {
  565. // this.commissionDocumentsList =
  566. // res.data.nrcCommitteeDocumentAnnouncements.slice(0, 3);
  567. // this.isShowOfficialDocument = true
  568. // } else {
  569. // this.isShowOfficialDocument = false
  570. // }
  571. // });
  572. // } else {
  573. // getNotificationList(params, "1", "").then((res) => {
  574. // if (JSON.stringify(res.data) != "{}") {
  575. // this.announcementsList =
  576. // res.data.nrcCommitteeDocumentAnnouncements.slice(0, 3);
  577. // this.isShowNotice = true
  578. // } else {
  579. // this.isShowNotice = false
  580. // }
  581. //
  582. // });
  583. // }
  584. getNotificationList("1", "1", "").then((res) => {
  585. if (JSON.stringify(res.data) != "{}") {
  586. this.commissionDocumentsList =
  587. res.data.nrcCommitteeDocumentAnnouncements.slice(0, 3);
  588. this.isShowOfficialDocument = true
  589. } else {
  590. this.isShowOfficialDocument = false
  591. }
  592. });
  593. getNotificationList("2", "1", "").then((res) => {
  594. if (JSON.stringify(res.data) != "{}") {
  595. this.announcementsList =
  596. res.data.nrcCommitteeDocumentAnnouncements.slice(0, 3);
  597. this.isShowNotice = true
  598. } else {
  599. this.isShowNotice = false
  600. }
  601. });
  602. },
  603. // 获取意见与建议列表
  604. toObtainListViewsSuggestions() {
  605. var params = "1";
  606. getOpinionTheSuggestionList(params, "", "").then((res) => {
  607. if (JSON.stringify(res.data) != "{}") {
  608. this.opinionsSuggestionsList = res.data.nrcApplyQuerys.slice(0, 3);
  609. this.isShowSuggest = true
  610. console.log(res);
  611. } else {
  612. this.isShowSuggest = false
  613. }
  614. });
  615. },
  616. // 公文详情
  617. officialDocumentDetail(item) {
  618. var params = {
  619. name: "noticeDetail",
  620. type: false,
  621. id: item.id,
  622. };
  623. this.$emit("applicationType", params);
  624. },
  625. // 通告详情
  626. noticeDetails(item) {
  627. var params = {
  628. name: "noticeDetail",
  629. type: false,
  630. id: item.id,
  631. };
  632. this.$emit("applicationType", params);
  633. },
  634. // 右侧树
  635. getTree() {
  636. let params = {
  637. frontOrBack: 2,
  638. };
  639. getOrganize(params).then((res) => {
  640. let treelist = res.data.page;
  641. if(treelist.length > 0){
  642. treelist.forEach((item, index) => {
  643. item.id = item.id;
  644. if(this.$i18n.locale == 'en'){
  645. item.name = item.committeeNameEn;
  646. }else {
  647. item.name = item.committeeName;
  648. }
  649. if (item.committeeType) {
  650. item.committeeType = item.committeeType;
  651. }
  652. /*if (item.nrcCommitteeUserList) {
  653. item.nrcCommitteeUserList = item.nrcCommitteeUserList;
  654. item.nameid = item.id;
  655. }*/
  656. let obj = {};
  657. obj.param=[]
  658. if(item.nrcCommitteeUserList){
  659. item.nrcCommitteeUserList.forEach(item4=>{
  660. let param1={}
  661. param1.id=item4.id
  662. if(this.$i18n.locale == 'en'){
  663. param1.committeeName=item.committeeNameEn;
  664. }else {
  665. param1.committeeName=item.committeeName;
  666. }
  667. param1.type=1
  668. if(this.$i18n.locale == 'en'){
  669. param1.name=item4.nameEn
  670. }else {
  671. param1.name=item4.name
  672. }
  673. param1.isInOffice=item4.isInOffice
  674. param1.duty=item4.duty
  675. if(item4.committeeType){
  676. param1.committeeType=item4.committeeType
  677. }
  678. (obj.param).push(param1)
  679. })
  680. }
  681. item.type = 0;
  682. item.types = 0;
  683. item.param = [];
  684. item.param = (obj.param)
  685. if (item.sonList.length > 0) {
  686. item.sonList.forEach((item2) => {
  687. let param = {};
  688. param.id = item2.id;
  689. param.type = 0;
  690. if (item2.committeeName) {
  691. if(this.$i18n.locale == 'en'){
  692. param.name = item2.committeeNameEn;
  693. }else {
  694. param.name = item2.committeeName;
  695. }
  696. }
  697. if (item2.committeeType) {
  698. param.committeeType = item2.committeeType;
  699. }
  700. param.param = [];
  701. if (item2.nrcCommitteeUserList) {
  702. item2.nrcCommitteeUserList.forEach((item3) => {
  703. let param1 = {};
  704. param1.id = item3.id;
  705. param1.type = 1;
  706. param1.types = 0;
  707. if(this.$i18n.locale == 'en'){
  708. param1.name=item3.nameEn
  709. }else {
  710. param1.name=item3.name
  711. }
  712. param1.isInOffice = item3.isInOffice;
  713. if(this.$i18n.locale == 'en'){
  714. param1.committeeName = item2.committeeNameEn;
  715. }else {
  716. param1.committeeName = item2.committeeName;
  717. }
  718. param1.duty = item3.duty;
  719. if (item3.committeeType) {
  720. param1.committeeType = item3.committeeType;
  721. }
  722. param.param.push(param1);
  723. });
  724. } else {
  725. param.types = 1;
  726. }
  727. item.param.push(param);
  728. });
  729. }
  730. });
  731. }
  732. this.treeList = treelist;
  733. });
  734. },
  735. // 提交申请
  736. myApplication() {
  737. var params = {
  738. name: "application",
  739. type: true,
  740. };
  741. this.$emit("applicationType", params);
  742. },
  743. // 全部资料
  744. allInformation() {
  745. var params = {
  746. name: "allInformation",
  747. type: true,
  748. };
  749. this.$emit("applicationType", params);
  750. },
  751. // 互动留言
  752. interactiveMessage() {
  753. var params = {
  754. name: "interactive",
  755. type: true,
  756. };
  757. this.$emit("applicationType", params);
  758. },
  759. // 更多申请
  760. moreApplication() {
  761. var params = {
  762. name: "application",
  763. type: false,
  764. };
  765. this.$emit("applicationType", params);
  766. },
  767. // 更多建议
  768. moreComments() {
  769. var params = {
  770. name: "comments",
  771. type: false,
  772. };
  773. this.$emit("applicationType", params);
  774. },
  775. // 建议
  776. comments(item) {
  777. console.log(item);
  778. if (item.sendBySelf === "0") {
  779. var params = {
  780. name: "receiveComment",
  781. type: false,
  782. id: item.id,
  783. };
  784. this.$emit("applicationType", params);
  785. } else {
  786. var params = {
  787. name: "submitComment",
  788. type: false,
  789. id: item.id,
  790. };
  791. this.$emit("applicationType", params);
  792. }
  793. },
  794. // 更多通告
  795. moreNotice() {
  796. if (this.titleIndex == "2") {
  797. var params = {
  798. name: "noticeList",
  799. type: false,
  800. };
  801. this.$emit("applicationType", params);
  802. } else {
  803. var params = {
  804. name: "documentList",
  805. type: false,
  806. };
  807. this.$emit("applicationType", params);
  808. }
  809. },
  810. // 在线会议
  811. onlineMeet() {
  812. // this.$router.push("onlineMeeting");
  813. let routerUrl = this.$router.resolve({
  814. path: "/onlineMeeting",
  815. });
  816. window.open(routerUrl.href, "_blank");
  817. },
  818. handleNodeClick() {
  819. },
  820. },
  821. computed: {},
  822. };
  823. </script>
  824. <style scoped>
  825. .spaceImg {
  826. width: 1200px;
  827. height: 324px;
  828. background: #6a9ce7;
  829. position: relative;
  830. }
  831. .topTitle {
  832. position: absolute;
  833. /* width: 356px;
  834. height: 70px; */
  835. left: 102px;
  836. top: 21px;
  837. font-family: "Roboto";
  838. font-style: normal;
  839. font-weight: 400;
  840. font-size: 60px;
  841. line-height: 70px;
  842. color: #ffffff;
  843. }
  844. .topContent1 {
  845. position: absolute;
  846. width: 450px;
  847. height: 78px;
  848. left: 102px;
  849. top: 162px;
  850. font-family: "Roboto";
  851. font-style: normal;
  852. font-weight: 400;
  853. font-size: 25px;
  854. line-height: 29px;
  855. color: #ffffff;
  856. }
  857. .topContent2 {
  858. position: absolute;
  859. width: 450px;
  860. height: 78px;
  861. left: 102px;
  862. top: 212px;
  863. font-family: "Roboto";
  864. font-style: normal;
  865. font-weight: 400;
  866. font-size: 25px;
  867. line-height: 29px;
  868. color: #ffffff;
  869. }
  870. .colorGreen {
  871. color: #58c52a;
  872. }
  873. .mouse {
  874. cursor: pointer;
  875. }
  876. .rightContent {
  877. position: absolute;
  878. left: 10px;
  879. top: 90px;
  880. width: 300px;
  881. height: 540px;
  882. overflow-y: auto;
  883. }
  884. .mySubmit {
  885. background: #f6ffed;
  886. border: 0.5px solid #b7eb8f;
  887. border-radius: 1px;
  888. font-family: "PingFang SC";
  889. font-style: normal;
  890. font-weight: 400;
  891. font-size: 8px;
  892. line-height: 11px;
  893. color: #94db5d;
  894. }
  895. .myRecieve {
  896. background: #e6f7ff;
  897. border: 0.5px solid #91d5ff;
  898. border-radius: 1px;
  899. font-family: "PingFang SC";
  900. font-style: normal;
  901. font-weight: 400;
  902. font-size: 8px;
  903. line-height: 11px;
  904. color: #64bef7;
  905. }
  906. .box1 {
  907. padding: 0 0 20px 0;
  908. position: absolute;
  909. }
  910. .center {
  911. display: flex;
  912. }
  913. .topImg img {
  914. display: inline-block;
  915. width: 1200px;
  916. height: 324px;
  917. }
  918. .centerLeft1 {
  919. height: 419px;
  920. width: 850px;
  921. border-radius: 0px;
  922. background: #fff;
  923. }
  924. .left {
  925. position: relative;
  926. }
  927. .top .top1 {
  928. position: absolute;
  929. width: 5.5px;
  930. height: 10.5px;
  931. left: 20px;
  932. top: 35px;
  933. background: #376ac7;
  934. z-index: 1;
  935. }
  936. .top .top2 {
  937. position: absolute;
  938. width: 5.5px;
  939. height: 15px;
  940. left: 20px;
  941. top: 35px;
  942. background: #83bd50;
  943. }
  944. .top .allApplication {
  945. position: absolute;
  946. height: 22px;
  947. left: 34px;
  948. top: 31px;
  949. }
  950. .top .allApplication span {
  951. font-family: "PingFang SC";
  952. font-style: normal;
  953. font-weight: 600;
  954. font-size: 16px;
  955. line-height: 22px;
  956. color: #375586;
  957. }
  958. .top .notice {
  959. position: absolute;
  960. height: 22px;
  961. left: 160px;
  962. top: 32px;
  963. }
  964. .top .notice1 {
  965. position: absolute;
  966. height: 22px;
  967. left: 360px;
  968. top: 32px;
  969. }
  970. .top .notice span {
  971. font-family: "PingFang SC";
  972. font-style: normal;
  973. font-weight: 600;
  974. font-size: 16px;
  975. line-height: 22px;
  976. color: rgba(10, 10, 10, 0.85);
  977. }
  978. .top .more {
  979. position: absolute;
  980. height: 16px;
  981. right: 21px;
  982. top: 31px;
  983. }
  984. .top .more span {
  985. font-family: "Roboto";
  986. font-style: normal;
  987. font-weight: 500;
  988. font-size: 14px;
  989. line-height: 16px;
  990. color: #4790f7;
  991. }
  992. .content .content1 {
  993. box-sizing: border-box;
  994. position: absolute;
  995. width: 247px;
  996. height: 149px;
  997. left: 28px;
  998. top: 70px;
  999. border: 1px dashed rgba(0, 0, 0, 0.15);
  1000. display: flex;
  1001. justify-content: center;
  1002. align-items: center;
  1003. }
  1004. .content .content2:nth-of-type(2) {
  1005. box-sizing: border-box;
  1006. width: 247px;
  1007. height: 149px;
  1008. position: absolute;
  1009. left: 302px;
  1010. top: 70px;
  1011. border: 1px solid rgba(0, 0, 0, 0.15);
  1012. }
  1013. .content .content2:nth-of-type(3) {
  1014. box-sizing: border-box;
  1015. width: 247px;
  1016. height: 149px;
  1017. position: absolute;
  1018. right: 27px;
  1019. top: 70px;
  1020. border: 1px solid rgba(0, 0, 0, 0.15);
  1021. }
  1022. .content .content2:nth-of-type(4) {
  1023. box-sizing: border-box;
  1024. width: 247px;
  1025. height: 149px;
  1026. position: absolute;
  1027. left: 28px;
  1028. top: 239px;
  1029. border: 1px solid rgba(0, 0, 0, 0.15);
  1030. }
  1031. .content .content2:nth-of-type(5) {
  1032. box-sizing: border-box;
  1033. width: 247px;
  1034. height: 149px;
  1035. position: absolute;
  1036. left: 302px;
  1037. top: 239px;
  1038. border: 1px solid rgba(0, 0, 0, 0.15);
  1039. }
  1040. .content .content2:nth-of-type(6) {
  1041. box-sizing: border-box;
  1042. width: 247px;
  1043. height: 149px;
  1044. position: absolute;
  1045. right: 27px;
  1046. top: 239px;
  1047. border: 1px solid rgba(0, 0, 0, 0.15);
  1048. }
  1049. .content .title {
  1050. font-family: "PingFang SC";
  1051. font-style: normal;
  1052. font-weight: 600;
  1053. font-size: 14px;
  1054. line-height: 20px;
  1055. color: rgba(0, 0, 0, 0.85);
  1056. position: absolute;
  1057. left: 16px;
  1058. top: 16px;
  1059. right: 14px;
  1060. bottom: 113px;
  1061. }
  1062. .content .time {
  1063. font-family: "Roboto";
  1064. font-style: normal;
  1065. font-weight: 400;
  1066. font-size: 12px;
  1067. line-height: 14px;
  1068. color: rgba(0, 0, 0, 0.65);
  1069. position: absolute;
  1070. left: 16px;
  1071. top: 61px;
  1072. }
  1073. .content .type {
  1074. font-family: "PingFang SC";
  1075. font-style: normal;
  1076. font-weight: 400;
  1077. font-size: 14px;
  1078. line-height: 20px;
  1079. color: rgba(0, 0, 0, 0.85);
  1080. position: absolute;
  1081. left: 16px;
  1082. top: 89px;
  1083. }
  1084. .content .finish {
  1085. font-family: "PingFang SC";
  1086. font-style: normal;
  1087. font-weight: 400;
  1088. font-size: 14px;
  1089. line-height: 20px;
  1090. color: rgba(0, 0, 0, 0.85);
  1091. position: absolute;
  1092. right: 16px;
  1093. top: 59px;
  1094. }
  1095. .content .audit {
  1096. position: absolute;
  1097. right: 5%;
  1098. }
  1099. .detail {
  1100. position: absolute;
  1101. bottom: 0;
  1102. height: 34px;
  1103. width: 246px;
  1104. border-radius: 0px;
  1105. background: rgba(217, 217, 217, 0.2);
  1106. display: flex;
  1107. justify-content: center;
  1108. align-items: center;
  1109. }
  1110. .content .toView {
  1111. font-family: "Roboto";
  1112. font-style: normal;
  1113. font-weight: 400;
  1114. font-size: 14px;
  1115. line-height: 16px;
  1116. color: #274e92;
  1117. }
  1118. .centerLeft2 {
  1119. position: relative;
  1120. margin-top: 20px;
  1121. height: 177px;
  1122. width: 850px;
  1123. border-radius: 0px;
  1124. background: #fff;
  1125. }
  1126. .leftCheck3 {
  1127. position: absolute;
  1128. width: 8px;
  1129. height: 8px;
  1130. left: 34px;
  1131. top: 75px;
  1132. background: #055bdb;
  1133. }
  1134. .leftCheck4 {
  1135. position: absolute;
  1136. width: 8px;
  1137. height: 8px;
  1138. left: 34px;
  1139. top: 105px;
  1140. background: #055bdb;
  1141. }
  1142. .leftCheck5 {
  1143. position: absolute;
  1144. width: 8px;
  1145. height: 8px;
  1146. left: 34px;
  1147. top: 135px;
  1148. background: #055bdb;
  1149. }
  1150. .list2 {
  1151. position: absolute;
  1152. left: 52px;
  1153. top: 70px;
  1154. }
  1155. .lineVertical {
  1156. position: absolute;
  1157. width: 15px;
  1158. height: 0px;
  1159. left: 130px;
  1160. top: 42px;
  1161. border: 1px solid #000000;
  1162. transform: rotate(90deg);
  1163. }
  1164. .lineVertical1 {
  1165. position: absolute;
  1166. width: 15px;
  1167. height: 0px;
  1168. left: 338px;
  1169. top: 42px;
  1170. border: 1px solid #000000;
  1171. transform: rotate(90deg);
  1172. }
  1173. .centerLeft3 {
  1174. position: relative;
  1175. margin-top: 20px;
  1176. height: 177px;
  1177. width: 849px;
  1178. border-radius: 0px;
  1179. background: #fff;
  1180. }
  1181. .list:nth-of-type(1) {
  1182. position: absolute;
  1183. left: 52px;
  1184. top: 70px;
  1185. }
  1186. .list:nth-of-type(2) {
  1187. position: absolute;
  1188. left: 52px;
  1189. top: 100px;
  1190. }
  1191. .list:nth-of-type(3) {
  1192. position: absolute;
  1193. left: 52px;
  1194. top: 130px;
  1195. }
  1196. .leftCheck {
  1197. position: absolute;
  1198. width: 8px;
  1199. height: 8px;
  1200. left: 34px;
  1201. top: 76px;
  1202. background: #055bdb;
  1203. }
  1204. .leftCheck1 {
  1205. position: absolute;
  1206. width: 8px;
  1207. height: 8px;
  1208. left: 34px;
  1209. top: 106px;
  1210. background: #055bdb;
  1211. }
  1212. .leftCheck2 {
  1213. position: absolute;
  1214. width: 8px;
  1215. height: 8px;
  1216. left: 34px;
  1217. top: 136px;
  1218. background: #055bdb;
  1219. }
  1220. .list .leftTitle {
  1221. /* height: 177px; */
  1222. display: inline-block;
  1223. width: 500px;
  1224. font-family: "PingFang SC";
  1225. font-style: normal;
  1226. font-weight: 400;
  1227. font-size: 14px;
  1228. line-height: 20px;
  1229. color: rgba(5, 5, 5, 0.85);
  1230. }
  1231. .list .leftTitle1 {
  1232. /* height: 177px; */
  1233. display: inline-block;
  1234. /* width: 500px; */
  1235. font-family: "PingFang SC";
  1236. font-style: normal;
  1237. font-weight: 400;
  1238. font-size: 14px;
  1239. line-height: 20px;
  1240. color: rgba(5, 5, 5, 0.85);
  1241. }
  1242. .list .rightTime {
  1243. width: 200px;
  1244. height: 20px;
  1245. font-family: "PingFang SC";
  1246. font-style: normal;
  1247. font-weight: 400;
  1248. font-size: 14px;
  1249. line-height: 20px;
  1250. color: rgba(0, 0, 0, 0.85);
  1251. position: absolute;
  1252. left: 630px;
  1253. }
  1254. .list .rightTime1 {
  1255. width: 200px;
  1256. height: 20px;
  1257. font-family: "PingFang SC";
  1258. font-style: normal;
  1259. font-weight: 400;
  1260. font-size: 14px;
  1261. line-height: 20px;
  1262. color: rgba(0, 0, 0, 0.85);
  1263. position: absolute;
  1264. left: 630px;
  1265. }
  1266. .centerRight1 {
  1267. position: relative;
  1268. height: 182px;
  1269. width: 329px;
  1270. border-radius: 0px;
  1271. background: #fff;
  1272. margin-left: 20px;
  1273. }
  1274. .centerRight1 .content .top1 {
  1275. position: absolute;
  1276. height: 20px;
  1277. left: 36px;
  1278. top: 87px;
  1279. font-family: "PingFang SC";
  1280. font-style: normal;
  1281. font-weight: 400;
  1282. font-size: 14px;
  1283. line-height: 20px;
  1284. color: #4790f7;
  1285. display: flex;
  1286. }
  1287. .centerRight1 .content img {
  1288. display: block;
  1289. width: 30px;
  1290. height: 30px;
  1291. }
  1292. .centerRight1 .content .top2 {
  1293. position: absolute;
  1294. height: 20px;
  1295. left: 194px;
  1296. top: 88px;
  1297. font-family: "PingFang SC";
  1298. font-style: normal;
  1299. font-weight: 400;
  1300. font-size: 14px;
  1301. line-height: 20px;
  1302. color: #4790f7;
  1303. display: flex;
  1304. }
  1305. .centerRight1 .content .bottom1 {
  1306. position: absolute;
  1307. height: 20px;
  1308. left: 34px;
  1309. top: 138px;
  1310. font-family: "PingFang SC";
  1311. font-style: normal;
  1312. font-weight: 400;
  1313. font-size: 14px;
  1314. line-height: 20px;
  1315. color: #4790f7;
  1316. display: flex;
  1317. }
  1318. .centerRight1 .content .bottom2 {
  1319. position: absolute;
  1320. height: 20px;
  1321. left: 194px;
  1322. top: 136px;
  1323. font-family: "PingFang SC";
  1324. font-style: normal;
  1325. font-weight: 400;
  1326. font-size: 14px;
  1327. line-height: 20px;
  1328. color: #4790f7;
  1329. display: flex;
  1330. }
  1331. /* */
  1332. .centerRight2 {
  1333. position: relative;
  1334. height: 608px;
  1335. width: 329px;
  1336. border-radius: 0px;
  1337. background: #fff;
  1338. margin-left: 20px;
  1339. margin-top: 20px;
  1340. }
  1341. .title1 {
  1342. color: #375586;
  1343. }
  1344. .title2 {
  1345. color: rgba(0, 0, 0, 0.85);
  1346. }
  1347. ::v-deep .el-tree .el-icon-caret-right:before {
  1348. background: url("../../assets/img/nationaIntorduction/zhankai.png") no-repeat 0 3px;
  1349. content: "";
  1350. display: block;
  1351. width: 18px;
  1352. height: 23px;
  1353. font-size: 18px;
  1354. background-size: 18px;
  1355. }
  1356. ::v-deep
  1357. .el-tree
  1358. .el-tree-node__expand-icon.expanded.el-icon-caret-right:before {
  1359. background: url("../../assets/img/nationaIntorduction/shousuo.png") no-repeat 0 3px;
  1360. /*content: '';*/
  1361. display: block;
  1362. width: 18px;
  1363. height: 23px;
  1364. font-size: 18px;
  1365. background-size: 18px;
  1366. }
  1367. ::v-deep .el-tree-node__expand-icon.is-leaf::before {
  1368. display: none;
  1369. }
  1370. .renwu {
  1371. background: url("../../assets/img/nationaIntorduction/renwu.png") no-repeat 0 3px;
  1372. content: "";
  1373. display: inline-block;
  1374. width: 18px;
  1375. height: 20px;
  1376. font-size: 18px;
  1377. background-size: 18px;
  1378. }
  1379. .group {
  1380. background: url("../../assets/img/nationaIntorduction/group.png") no-repeat 0 3px;
  1381. content: "";
  1382. display: inline-block;
  1383. width: 18px;
  1384. height: 20px;
  1385. font-size: 18px;
  1386. background-size: 18px;
  1387. }
  1388. img{
  1389. width: 103px;
  1390. }
  1391. </style>