zongjie.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <template>
  2. <div id="zongjie">
  3. <el-row>
  4. <div class="w_1200">
  5. <el-col :span="24" class="main">
  6. <el-col :span="24" class="top"> {{ zjinfo.top }}展会总结 </el-col>
  7. <el-col :span="24" class="info">
  8. <el-col :span="24" class="one">
  9. <p>
  10. <span>{{ zjinfo.top }}</span
  11. >展会由<span>{{ zjinfo.name }}</span
  12. >主办,<span>{{ zjinfo.juban }}</span
  13. >承办,<span>{{ zjinfo.xieban }}</span
  14. >协办,<span>{{ zjinfo.fr }}</span
  15. >提供技术支持,展会已经圆满结束。
  16. </p>
  17. <p>
  18. 本次展会到会人数:<span>{{ zjinfo.person }}</span
  19. >人,其中特邀嘉宾<span>{{ zjinfo.jiabin }}</span
  20. >人。同时还邀请了<span>{{ zjinfo.school }}</span
  21. >所高校、研究机构的<span>{{ zjinfo.zhuanjia }}</span
  22. >位专家到参与在线对接。
  23. </p>
  24. <p>
  25. 参加本次展会的项目共<span>{{ zjinfo.xiang }}</span
  26. >项。其中,有自于高校院所的项目成果共<span>{{ zjinfo.shcoolxiang }}</span
  27. >项;专利共<span>{{ zjinfo.zhuanli }}</span
  28. >项成熟度处于中试及产业化阶段的项目成果共<span>{{ zjinfo.chengguo }}</span
  29. >项。
  30. </p>
  31. <p>
  32. 本次展会共征集到技术需求<span>{{ zjinfo.xuqiu }}</span
  33. >项,其中<span>{{ zjinfo.jishu }}</span
  34. >项技术需求来自展会主办地区。
  35. </p>
  36. <p>
  37. 本次在线展会共实现技术对接<span>{{ zjinfo.duijie }}</span
  38. >次,达成意向<span>{{ zjinfo.yixiang }}</span
  39. >次,实现合作<span>{{ zjinfo.hezuo }}</span
  40. >次。此次展会还吸引了<span>{{ zjinfo.fangke }}</span
  41. >访客在线观摩,产生了强烈的反响。共收到鲜花<span>{{ zjinfo.hua }}</span
  42. >束,掌声<span>{{ zjinfo.sheng }}</span
  43. >次。
  44. </p>
  45. </el-col>
  46. <el-col :span="24" class="two">
  47. <el-col :span="24" class="tables">
  48. <span>到会人数</span>
  49. <span>{{ zjinfo.renshu }}人</span>
  50. <span> 参展项目</span>
  51. <span>{{ zjinfo.xiangmu }}项</span>
  52. <span>技术需求</span>
  53. <span>{{ zjinfo.xuqiu }}项</span>
  54. </el-col>
  55. <el-col :span="24" class="tables">
  56. <span>洽谈对接</span>
  57. <span>{{ zjinfo.renshu }}次</span>
  58. <span>产生意向</span>
  59. <span>{{ zjinfo.xiangmu }}次</span>
  60. <span>达成意向</span>
  61. <span>{{ zjinfo.xuqiu }}次</span>
  62. </el-col>
  63. </el-col>
  64. <el-col :span="24" class="three">
  65. <el-tabs v-model="act">
  66. <el-tab-pane name="0" label="产品发布统计">
  67. <pie :data="productList" :axis="proAxis" gid="pie0" v-if="act == 0"></pie>
  68. </el-tab-pane>
  69. <el-tab-pane name="1" label="人员参会统计">
  70. <donut :data="personList" :axis="perAxis" gid="donut1" v-if="act == 1"></donut>
  71. </el-tab-pane>
  72. <el-tab-pane name="2" label="交易统计">
  73. <bar :data="transList" :axis="transAxis" gid="bar2" v-if="act == 2"></bar>
  74. </el-tab-pane>
  75. </el-tabs>
  76. </el-col>
  77. </el-col>
  78. </el-col>
  79. </div>
  80. </el-row>
  81. </div>
  82. </template>
  83. <script>
  84. import _ from 'lodash';
  85. import { mapState, createNamespacedHelpers } from 'vuex';
  86. import pie from '@c/statistics/pie.vue';
  87. import bar from '@c/statistics/bar.vue';
  88. import donut from '@c/statistics/donut.vue';
  89. const { mapActions: dock } = createNamespacedHelpers('dock');
  90. const { mapActions: transaction } = createNamespacedHelpers('transaction');
  91. const { mapActions: marketproduct } = createNamespacedHelpers('marketproduct');
  92. export default {
  93. name: 'zongjie',
  94. props: {},
  95. components: { pie, donut, bar }, //
  96. data: () => ({
  97. act: '0',
  98. productList: [],
  99. proTitle: ['技术', '产品', '服务'],
  100. proAxis: { x: 'name', xAlias: '产品类型', y: 'value', yAlias: '数量' },
  101. personList: [],
  102. perAxis: { x: 'name', xAlias: '用户类型', y: 'value', yAlias: '人数' },
  103. transList: [],
  104. transAxis: { x: 'name', xAlias: '交易动态', y: 'value', yAlias: '数量' },
  105. zjinfo: {
  106. top: '计算中心',
  107. title: '测试直播',
  108. name: '吉林省计算中心',
  109. juban: '中科院长春分院',
  110. xieban: '中科院计算机网络信息中心和吉林省计算中心',
  111. fr: '长春福瑞科技有限公司',
  112. person: '300',
  113. jiabin: '20',
  114. school: '5',
  115. zhuanjia: '12',
  116. xiang: '12',
  117. shcoolxiang: '10',
  118. zhuanli: '20',
  119. chengguo: '46',
  120. xuqiu: '12',
  121. jishu: '23',
  122. duijie: '33',
  123. yixiang: '33',
  124. hezuo: '23',
  125. fangke: '1',
  126. hua: '1',
  127. sheng: '23',
  128. renshu: '234',
  129. xiangmu: '233',
  130. xuqiu: '123',
  131. },
  132. }),
  133. created() {
  134. this.searchInfo();
  135. },
  136. computed: {
  137. id() {
  138. return this.$route.query.id;
  139. },
  140. },
  141. methods: {
  142. ...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
  143. ...marketproduct({ productQuery: 'query' }),
  144. ...transaction({ transQuery: 'query' }),
  145. async searchInfo() {
  146. let res = await this.dockFetch(this.id);
  147. let resPro = await this.productQuery();
  148. let resTran = await this.transQuery({ dockid: this.id });
  149. if (this.$checkRes(res)) this.proPerson(res.data);
  150. if (this.$checkRes(resPro)) this.proProduct(resPro.data);
  151. if (this.$checkRes(resTran)) this.proTrans(resTran.data);
  152. this.zjinfo.top = res.data.title;
  153. },
  154. proProduct(data) {
  155. let garr = _.groupBy(data, 'totaltype');
  156. let keys = Object.keys(garr);
  157. let res = keys.map(i => {
  158. let obj = { value: garr[i].length, type: i };
  159. if (i == 0) obj.name = '技术';
  160. if (i == 1) obj.name = '产品';
  161. if (i == 2) obj.name = '服务';
  162. return obj;
  163. });
  164. let r = res.some(f => f.type == 0);
  165. if (!r) res.push({ value: 0, name: '技术', type: 0 });
  166. r = res.some(f => f.type == 1);
  167. if (!r) res.push({ value: 0, name: '产品', type: 1 });
  168. r = res.some(f => f.type == 2);
  169. if (!r) res.push({ value: 0, name: '服务', type: 2 });
  170. this.$set(this, `productList`, res);
  171. },
  172. proPerson(data) {
  173. let garr = _.groupBy(_.get(data, 'apply', []), 'role');
  174. let keys = Object.keys(garr);
  175. let res = keys.map(i => {
  176. let obj = { value: garr[i].length, type: i };
  177. if (i == 2) obj.name = '个人';
  178. if (i == 3) obj.name = '机构';
  179. if (i == 6) obj.name = '专家';
  180. return obj;
  181. });
  182. //查类型,个人,机构,专家,没有的填0
  183. let r = res.some(f => f.type == 2);
  184. if (!r) res.push({ value: 0, name: '个人', type: 2 });
  185. r = res.some(f => f.type == 3);
  186. if (!r) res.push({ value: 0, name: '机构', type: 3 });
  187. r = res.some(f => f.type == 6);
  188. if (!r) res.push({ value: 0, name: '专家', type: 6 });
  189. this.$set(this, `personList`, res);
  190. },
  191. proTrans(data) {
  192. let garr = _.groupBy(data, 'status');
  193. let keys = Object.keys(garr);
  194. let res = keys.map(i => {
  195. let obj = { value: garr[i].length, type: i };
  196. if (i == 0) obj.name = '正在洽谈';
  197. if (i == 1) obj.name = '达成意向';
  198. if (i == 2) obj.name = '对接完成';
  199. return obj;
  200. });
  201. //查类型,个人,机构,专家,没有的填0
  202. let r = res.some(f => f.type == 0);
  203. if (!r) res.push({ value: 0, name: '正在洽谈', type: 0 });
  204. r = res.some(f => f.type == 1);
  205. if (!r) res.push({ value: 0, name: '达成意向', type: 1 });
  206. r = res.some(f => f.type == 2);
  207. if (!r) res.push({ value: 0, name: '对接完成', type: 2 });
  208. this.$set(this, `transList`, res);
  209. },
  210. },
  211. };
  212. </script>
  213. <style lang="less" scoped>
  214. .w_1200 {
  215. width: 80%;
  216. margin: 0 auto;
  217. }
  218. .main {
  219. min-height: 600px;
  220. margin: 30px 0;
  221. }
  222. p {
  223. padding: 0;
  224. margin: 0;
  225. }
  226. .textOver {
  227. overflow: hidden;
  228. text-overflow: ellipsis;
  229. white-space: nowrap;
  230. }
  231. .main .top {
  232. text-align: center;
  233. font-size: 30px;
  234. padding: 30px 0;
  235. }
  236. .main .info {
  237. font-size: 20px;
  238. padding: 0 200px;
  239. }
  240. // .main .info .one {
  241. // }
  242. .main .info .one p {
  243. line-height: 50px;
  244. font-size: 20px;
  245. }
  246. .main .info .one p span {
  247. text-decoration: underline;
  248. padding: 0 10px;
  249. color: red;
  250. }
  251. .main .info .two {
  252. text-align: center;
  253. margin: 20px 0 0 0;
  254. }
  255. .main .info .two .tables span:nth-child(1n) {
  256. background: #ffdc6d;
  257. text-align: center;
  258. width: 100px;
  259. display: inline-block;
  260. padding: 10px 0;
  261. margin: 0 10px 5px 0;
  262. }
  263. .main .info .two .tables span:nth-child(2n) {
  264. padding: 10px 0;
  265. text-align: center;
  266. background: #ffe0ba;
  267. display: inline-block;
  268. width: 100px;
  269. }
  270. // .main .info .two .tables span:nth-child(2){
  271. // background: red;
  272. // text-align: center;
  273. // width: 100px;
  274. // display: inline-block;
  275. // padding: 10px 0;
  276. // }
  277. // .main .info .two .tables span:nth-child(2) {
  278. // padding: 10px 0;
  279. // text-align: center;
  280. // background: #ccc;
  281. // display: inline-block;
  282. // width: 100px;
  283. // }
  284. // .main .info .two .tables span:nth-child(2) {
  285. // background: red;
  286. // text-align: center;
  287. // width: 100px;
  288. // display: inline-block;
  289. // padding: 10px 0;
  290. // }
  291. // .main .info .two .tables span:nth-child(2) {
  292. // padding: 10px 0;
  293. // text-align: center;
  294. // background: #ccc;
  295. // display: inline-block;
  296. // width: 100px;
  297. // }
  298. // .main .top p:last-child {
  299. // font-size: 30px;
  300. // color: #fff;
  301. // position: absolute;
  302. // width: 100%;
  303. // top: 135px;
  304. // }
  305. // .main .info {
  306. // min-height: 600px;
  307. // border: 1px solid red;
  308. // background: #fff;
  309. // padding: 30px 20px;
  310. // }
  311. // .main .info .context p {
  312. // font-size: 16px;
  313. // padding: 20px 0 20px 0;
  314. // }
  315. // .main .info .tables {
  316. // font-size: 16px;
  317. // }
  318. // .main .info .tables span::nth-child(n) {
  319. // background-color: red;
  320. // }
  321. // .main .info .tables span::nth-child(2n) {
  322. // background-color: blue;
  323. // }
  324. </style>