index.vue 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303
  1. <template>
  2. <div>
  3. <fullscreen
  4. :fullscreen.sync="fullscreen"
  5. class="container structure-l mc-style"
  6. style="margin: 0; width: calc(75% - 15px)"
  7. >
  8. <el-tabs v-model="activeName" @tab-click="handleClick">
  9. <el-tab-pane label="违规信息" name="first">
  10. <div class="container-box">
  11. <!-- <toolList @iconCli="iconCli" :tooltit="tooltit"></toolList> -->
  12. <div class="checknum">
  13. <span>全部({{ total }}) | 已选</span>
  14. <span class="c-188ACF">({{ totalcheck }})</span>
  15. </div>
  16. <div class="titbtn-box">
  17. <el-button
  18. size="medium"
  19. type="success"
  20. icon="el-icon-s-order"
  21. @click="outExe(1)"
  22. >汇总Excel报表</el-button
  23. >
  24. <el-button
  25. size="medium"
  26. type="primary"
  27. icon="el-icon-plus"
  28. @click="addinfo"
  29. >新建</el-button
  30. >
  31. </div>
  32. <div class="search">
  33. <mySearch
  34. :searchList="searchList"
  35. @searchInfo="searchInfo"
  36. ></mySearch>
  37. </div>
  38. <div class="tabbox">
  39. <el-table
  40. height="calc(50vh - 100px)"
  41. @select="checkNum"
  42. @select-all="checkNum"
  43. class="com-table"
  44. ref="multipleTable"
  45. :data="tableData"
  46. tooltip-effect="dark"
  47. size="small"
  48. border
  49. style="width: 100%"
  50. v-loading="loading"
  51. >
  52. <el-table-column type="selection" width="55"> </el-table-column>
  53. <el-table-column
  54. prop="violationCateName"
  55. label="违规类别"
  56. width="100"
  57. >
  58. </el-table-column>
  59. <el-table-column prop="provinceName" label="省份">
  60. </el-table-column>
  61. <el-table-column
  62. width="100"
  63. prop="recordRegionName"
  64. label="违规地市"
  65. >
  66. </el-table-column>
  67. <el-table-column prop="operatorName" label="运营商">
  68. </el-table-column>
  69. <el-table-column prop="violationItemName" label="违规项目">
  70. </el-table-column>
  71. <el-table-column width="120" label="违规内容">
  72. <template slot-scope="scope">
  73. <el-tooltip
  74. class="item"
  75. effect="light"
  76. :content="scope.row.violationContent"
  77. placement="bottom"
  78. >
  79. <span
  80. class="tab-long"
  81. v-show="scope.row.violationContent.length > 7"
  82. >{{ scope.row.violationContent }}</span
  83. >
  84. </el-tooltip>
  85. <span v-show="scope.row.violationContent.length <= 7">{{
  86. scope.row.violationContent
  87. }}</span>
  88. </template>
  89. </el-table-column>
  90. <el-table-column prop="tariffName" label="资费名称">
  91. </el-table-column>
  92. <el-table-column width="120" label="资费内容">
  93. <template slot-scope="scope">
  94. <el-tooltip
  95. class="item"
  96. effect="light"
  97. :content="scope.row.taffiffContent"
  98. placement="bottom"
  99. >
  100. <span
  101. class="tab-long"
  102. v-show="scope.row.taffiffContent.length > 7"
  103. >{{ scope.row.taffiffContent }}</span
  104. >
  105. </el-tooltip>
  106. <span v-show="scope.row.taffiffContent.length <= 7">{{
  107. scope.row.taffiffContent
  108. }}</span>
  109. </template>
  110. </el-table-column>
  111. <el-table-column
  112. prop="monthFee"
  113. sortable
  114. width="100"
  115. label="月费(元)"
  116. >
  117. </el-table-column>
  118. <el-table-column
  119. prop="preFee"
  120. width="110"
  121. sortable
  122. label="预存款(元)"
  123. >
  124. </el-table-column>
  125. <el-table-column prop="remFee" width="100" label="酬金">
  126. </el-table-column>
  127. <el-table-column prop="saleChnl" label="渠道">
  128. </el-table-column>
  129. <el-table-column prop="saleScope" label="范围">
  130. </el-table-column>
  131. <el-table-column prop="monthSale" label="月销量">
  132. </el-table-column>
  133. <el-table-column label="上报时间" width="140">
  134. <template slot-scope="scope" class="tab-btn">
  135. <span>{{ scope.row.opTime }}</span>
  136. </template>
  137. </el-table-column>
  138. <el-table-column prop="opName" label="上报人">
  139. <template slot-scope="scope">
  140. <span>{{ $desensitization(scope.row.opName, 1) }}</span>
  141. </template>
  142. </el-table-column>
  143. <el-table-column
  144. prop="contactPhone"
  145. width="100"
  146. label="联系电话"
  147. >
  148. </el-table-column>
  149. <el-table-column label="审核状态">
  150. <template slot-scope="scope" class="tab-btn">
  151. <span
  152. :class="
  153. scope.row.sts * 1 === 2
  154. ? 'pass'
  155. : scope.row.sts * 1 === 1
  156. ? 'nopass'
  157. : ''
  158. "
  159. >{{ scope.row.stsDesc }}</span
  160. >
  161. </template>
  162. </el-table-column>
  163. <el-table-column
  164. prop="evidenceType"
  165. label="证据类型"
  166. width="100"
  167. >
  168. </el-table-column>
  169. <el-table-column
  170. prop="fixFlagDesc"
  171. label="是否已解决"
  172. width="100"
  173. >
  174. </el-table-column>
  175. <el-table-column
  176. prop="groupFlagDesc"
  177. label="是否反馈总部"
  178. width="100"
  179. >
  180. </el-table-column>
  181. <el-table-column
  182. prop="wwFlagDesc"
  183. label="是否返回竞合"
  184. width="100"
  185. >
  186. </el-table-column>
  187. <el-table-column
  188. prop="admFlagDesc"
  189. label="是否反馈总局"
  190. width="100"
  191. >
  192. </el-table-column>
  193. <el-table-column
  194. label="操作"
  195. width="120"
  196. align="center"
  197. fixed="right"
  198. >
  199. <template slot-scope="scope" class="tab-btn">
  200. <el-dropdown @command="outlineinfo">
  201. <i class="el-icon-download"></i>
  202. <el-dropdown-menu slot="dropdown">
  203. <el-dropdown-item :command="scope"
  204. ><i class="el-icon-picture"></i
  205. >对外导出图片</el-dropdown-item
  206. >
  207. <el-dropdown-item :command="scope.row"
  208. ><i class="el-icon-folder-opened"></i
  209. >对内导出word</el-dropdown-item
  210. >
  211. </el-dropdown-menu>
  212. </el-dropdown>
  213. <el-tooltip
  214. class="item"
  215. effect="light"
  216. content="详情"
  217. placement="bottom-end"
  218. >
  219. <i
  220. class="el-icon-view"
  221. @click="checkInfo(scope.row.id)"
  222. ></i>
  223. </el-tooltip>
  224. <el-tooltip
  225. class="item"
  226. effect="light"
  227. content="删除"
  228. placement="bottom-end"
  229. >
  230. <i class="el-icon-delete" @click="delLine(scope.row)"></i>
  231. </el-tooltip>
  232. <el-tooltip
  233. class="item"
  234. effect="light"
  235. content="修改"
  236. placement="bottom-end"
  237. >
  238. <i
  239. class="el-icon-edit"
  240. @click="changeInfo(scope.row)"
  241. v-if="scope.row.sts !== 1"
  242. ></i>
  243. </el-tooltip>
  244. </template>
  245. </el-table-column>
  246. </el-table>
  247. <el-pagination
  248. class="pageBox"
  249. @current-change="currchange"
  250. layout="prev, pager, next"
  251. background
  252. :total="total"
  253. >
  254. </el-pagination>
  255. </div></div
  256. ></el-tab-pane>
  257. <el-tab-pane label="正常信息" name="second">
  258. <div class="container-box">
  259. <!-- <toolList @iconCli="iconCli" :tooltit="tooltit"></toolList> -->
  260. <div class="checknum">
  261. <span>全部({{ total1 }}) | 已选</span>
  262. <span class="c-188ACF">({{ totalcheck1 }})</span>
  263. </div>
  264. <div class="titbtn-box">
  265. <el-button
  266. size="medium"
  267. type="success"
  268. icon="el-icon-s-order"
  269. @click="outExe(2)"
  270. >汇总Excel报表</el-button
  271. >
  272. <el-button
  273. size="medium"
  274. type="primary"
  275. icon="el-icon-plus"
  276. @click="addinfo1"
  277. >新建</el-button
  278. >
  279. </div>
  280. <div class="search">
  281. <mySearch
  282. :searchList="searchList1"
  283. @searchInfo="searchInfo1"
  284. ></mySearch>
  285. </div>
  286. <div class="tabbox">
  287. <el-table
  288. @select="checkNum1"
  289. @select-all="checkNum1"
  290. class="com-table"
  291. ref="multipleTable"
  292. :data="tableData1"
  293. tooltip-effect="dark"
  294. size="small"
  295. border
  296. style="width: 100%"
  297. v-loading="loading"
  298. >
  299. <el-table-column type="selection" width="55"> </el-table-column>
  300. <el-table-column
  301. prop="violationCateName"
  302. label="类别"
  303. width="100"
  304. >
  305. </el-table-column>
  306. <el-table-column prop="provinceName" label="省份">
  307. </el-table-column>
  308. <el-table-column
  309. width="100"
  310. prop="recordRegionName"
  311. label="地市"
  312. >
  313. </el-table-column>
  314. <el-table-column prop="packageGear" label="套餐档位">
  315. </el-table-column>
  316. <el-table-column prop="tariffName" label="套餐名称">
  317. </el-table-column>
  318. <el-table-column prop="operatorName" label="运营商">
  319. </el-table-column>
  320. <el-table-column width="120" label="套餐内容">
  321. <template slot-scope="scope">
  322. <el-tooltip
  323. class="item"
  324. effect="light"
  325. :content="scope.row.taffiffContent"
  326. placement="bottom"
  327. >
  328. <span
  329. class="tab-long"
  330. v-show="scope.row.taffiffContent.length > 7"
  331. >{{ scope.row.taffiffContent }}</span
  332. >
  333. </el-tooltip>
  334. <span v-show="scope.row.taffiffContent.length <= 7">{{
  335. scope.row.taffiffContent
  336. }}</span>
  337. </template>
  338. </el-table-column>
  339. <el-table-column
  340. prop="monthFee"
  341. sortable
  342. width="100"
  343. label="月费(元)"
  344. >
  345. </el-table-column>
  346. <el-table-column
  347. prop="concessionalRate"
  348. sortable
  349. width="100"
  350. label="优惠价"
  351. >
  352. </el-table-column>
  353. <el-table-column
  354. prop="preFee"
  355. width="110"
  356. sortable
  357. label="预存款(元)"
  358. >
  359. </el-table-column>
  360. <el-table-column prop="remFee" width="100" label="酬金">
  361. </el-table-column>
  362. <el-table-column prop="saleChnl" label="渠道">
  363. </el-table-column>
  364. <el-table-column prop="saleScope" label="范围">
  365. </el-table-column>
  366. <el-table-column prop="monthSale" label="月销量">
  367. </el-table-column>
  368. <el-table-column prop="isDb" label="是否包含宽带">
  369. </el-table-column>
  370. <el-table-column prop="dbContent" label="宽带具体内容">
  371. </el-table-column>
  372. <el-table-column label="上报时间" width="140">
  373. <template slot-scope="scope" class="tab-btn">
  374. <span>{{ scope.row.opTime }}</span>
  375. </template>
  376. </el-table-column>
  377. <el-table-column prop="opName" label="上报人">
  378. <template slot-scope="scope">
  379. <span>{{ $desensitization(scope.row.opName, 1) }}</span>
  380. </template>
  381. </el-table-column>
  382. <el-table-column
  383. prop="contactPhone"
  384. width="100"
  385. label="联系电话"
  386. >
  387. </el-table-column>
  388. <el-table-column label="审核状态">
  389. <template slot-scope="scope" class="tab-btn">
  390. <span
  391. :class="
  392. scope.row.sts * 1 === 2
  393. ? 'pass'
  394. : scope.row.sts * 1 === 1
  395. ? 'nopass'
  396. : ''
  397. "
  398. >{{ scope.row.stsDesc }}</span
  399. >
  400. </template>
  401. </el-table-column>
  402. <el-table-column
  403. prop="fixFlagDesc"
  404. label="是否已解决"
  405. width="100"
  406. >
  407. </el-table-column>
  408. <el-table-column
  409. prop="groupFlagDesc"
  410. label="是否反馈总部"
  411. width="100"
  412. >
  413. </el-table-column>
  414. <el-table-column
  415. prop="wwFlagDesc"
  416. label="是否返回竞合"
  417. width="100"
  418. >
  419. </el-table-column>
  420. <el-table-column
  421. prop="admFlagDesc"
  422. label="是否反馈总局"
  423. width="100"
  424. >
  425. </el-table-column>
  426. <el-table-column
  427. label="操作"
  428. width="120"
  429. align="center"
  430. fixed="right"
  431. >
  432. <template slot-scope="scope" class="tab-btn">
  433. <el-dropdown @command="outlineinfo1">
  434. <i class="el-icon-download"></i>
  435. <el-dropdown-menu slot="dropdown">
  436. <el-dropdown-item :command="scope"
  437. ><i class="el-icon-picture"></i
  438. >对外导出图片</el-dropdown-item
  439. >
  440. <el-dropdown-item :command="scope.row"
  441. ><i class="el-icon-folder-opened"></i
  442. >对内导出word</el-dropdown-item
  443. >
  444. </el-dropdown-menu>
  445. </el-dropdown>
  446. <el-tooltip
  447. class="item"
  448. effect="light"
  449. content="详情"
  450. placement="bottom-end"
  451. >
  452. <i
  453. class="el-icon-view"
  454. @click="checkInfo1(scope.row.id)"
  455. ></i>
  456. </el-tooltip>
  457. <el-tooltip
  458. class="item"
  459. effect="light"
  460. content="删除"
  461. placement="bottom-end"
  462. >
  463. <i class="el-icon-delete" @click="delLine(scope.row)"></i>
  464. </el-tooltip>
  465. <el-tooltip
  466. class="item"
  467. effect="light"
  468. content="修改"
  469. placement="bottom-end"
  470. >
  471. <i
  472. class="el-icon-edit"
  473. @click="changeInfo1(scope.row)"
  474. v-if="scope.row.sts !== 1"
  475. ></i>
  476. </el-tooltip>
  477. </template>
  478. </el-table-column>
  479. </el-table>
  480. <el-pagination
  481. class="pageBox"
  482. @current-change="currchange1"
  483. layout="prev, pager, next"
  484. background
  485. :total="total1"
  486. >
  487. </el-pagination>
  488. </div></div
  489. ></el-tab-pane>
  490. </el-tabs>
  491. <myMessage
  492. :messTit="messTit"
  493. @closeMessage="closeMessage"
  494. :centerDialogVisible="centerDialogVisible"
  495. v-if="centerDialogVisible"
  496. ></myMessage>
  497. <myMessage
  498. :messTit="messTit"
  499. @closeMessage="closeMessagedel"
  500. :centerDialogVisible="centerDialogVisibledel"
  501. v-if="centerDialogVisibledel"
  502. ></myMessage>
  503. </fullscreen>
  504. <competeRight></competeRight>
  505. </div>
  506. </template>
  507. <script>
  508. import competeRight from "../../../components/competeRight";
  509. import mySearch from "../../../components/search";
  510. import toolList from "../../../components/toolList.vue";
  511. import myMessage from "../../../components/myMessage.vue";
  512. export default {
  513. components: {
  514. competeRight,
  515. mySearch,
  516. toolList,
  517. myMessage,
  518. },
  519. data() {
  520. return {
  521. exportType: "1", // 1是违规 2是正常
  522. activeName: "first",
  523. tooltit: "",
  524. fullscreen: false,
  525. total: 0,
  526. total1: 0,
  527. totalcheck: 0,
  528. totalcheck1: 0,
  529. pageSize: 1,
  530. pageSize1: 1,
  531. tableData: [],
  532. tableData1: [],
  533. outList: [],
  534. outList1: [],
  535. searchList: [
  536. {
  537. type: "sel",
  538. tit: "类别",
  539. value: "",
  540. width: "19%",
  541. options: [],
  542. },
  543. {
  544. type: "sel",
  545. tit: "运营商",
  546. value: "",
  547. width: "19%",
  548. options: [],
  549. },
  550. {
  551. type: "date",
  552. tit: "开始时间",
  553. value: "",
  554. width: "19%",
  555. },
  556. {
  557. type: "date",
  558. tit: "结束时间",
  559. value: "",
  560. width: "19%",
  561. },
  562. {
  563. type: "input",
  564. tit: "请输入违规内容",
  565. value: "",
  566. width: "19%",
  567. },
  568. ],
  569. searchList1: [
  570. {
  571. type: "sel",
  572. tit: "类别",
  573. value: "",
  574. width: "19%",
  575. options: [],
  576. },
  577. {
  578. type: "sel",
  579. tit: "运营商",
  580. value: "",
  581. width: "19%",
  582. options: [],
  583. },
  584. {
  585. type: "date",
  586. tit: "开始时间",
  587. value: "",
  588. width: "19%",
  589. },
  590. {
  591. type: "date",
  592. tit: "结束时间",
  593. value: "",
  594. width: "19%",
  595. },
  596. ],
  597. params: {},
  598. centerDialogVisible: false,
  599. centerDialogVisibledel: false,
  600. messTit: "",
  601. delid: "",
  602. loading: false,
  603. };
  604. },
  605. methods: {
  606. // 接口调用
  607. getSecondList(v, n) {
  608. this.pageSize = n;
  609. this.loading = true;
  610. this.totalcheck = 0;
  611. v.type = "正规";
  612. this.tableData1 = [];
  613. this.$http({
  614. url: "/market/swcompetitor/queryPage",
  615. method: "post",
  616. headers: {
  617. "Content-Type": "application/json",
  618. page: '{"pageNo":"' + n + '","pageSize":"10"}',
  619. },
  620. data: v,
  621. }).then((res) => {
  622. this.tableData1 = res.data.data;
  623. this.total1 = res.data.totalRecord;
  624. this.loading = false;
  625. });
  626. },
  627. handleClick() {
  628. if (this.activeName == "first") {
  629. this.getList(this.params, this.pageSize);
  630. } else {
  631. this.getSecondList(this.params, this.pageSize);
  632. }
  633. },
  634. //查询处理
  635. searchInfo(v) {
  636. this.params = {};
  637. v[0] ? (this.params.violationCate = v[0]) : "";
  638. v[1] ? (this.params.operatorCode = v[1]) : "";
  639. v[2] ? (this.params.opTimeFrom = v[2]) : "";
  640. v[3] ? (this.params.opTimeTo = v[3]) : "";
  641. v[4] ? (this.params.violationContent = v[4]) : "";
  642. this.getList(this.params, this.pageSize);
  643. },
  644. //查询处理
  645. searchInfo1(v) {
  646. this.params = {};
  647. v[0] ? (this.params.violationCate = v[0]) : "";
  648. v[1] ? (this.params.operatorCode = v[1]) : "";
  649. v[2] ? (this.params.opTimeFrom = v[2]) : "";
  650. v[3] ? (this.params.opTimeTo = v[3]) : "";
  651. v[4] ? (this.params.violationContent = v[4]) : "";
  652. this.getSecondList(this.params, this.pageSize);
  653. },
  654. //获取列表
  655. getList(v, n) {
  656. let _this = this;
  657. this.pageSize = n;
  658. this.loading = true;
  659. this.tableData = [];
  660. this.totalcheck = 0;
  661. v.type = "违规";
  662. this.$http({
  663. url: "/market/swcompetitor/queryPage",
  664. method: "post",
  665. headers: {
  666. "Content-Type": "application/json",
  667. page: '{"pageNo":"' + n + '","pageSize":"10"}',
  668. },
  669. data: v,
  670. }).then((res) => {
  671. this.tableData = res.data.data;
  672. this.total = res.data.totalRecord;
  673. for (let i = 0; i < this.tableData.length; i++) {
  674. _this.tableData[i].preFee = _this.tableData[i].preFee * 1;
  675. _this.tableData[i].monthFee = _this.tableData[i].monthFee * 1;
  676. if (_this.tableData[i].contactPhone) {
  677. _this.tableData[i].contactPhone =
  678. _this.tableData[i].contactPhone.split("");
  679. _this.tableData[i].contactPhone[3] = "*";
  680. _this.tableData[i].contactPhone[4] = "*";
  681. _this.tableData[i].contactPhone[5] = "*";
  682. _this.tableData[i].contactPhone[6] = "*";
  683. let phone = "";
  684. for (let j = 0; j < _this.tableData[i].contactPhone.length; j++) {
  685. phone += _this.tableData[i].contactPhone[j];
  686. }
  687. _this.tableData[i].contactPhone = phone;
  688. }
  689. }
  690. this.loading = false;
  691. });
  692. },
  693. //获取字典
  694. getListwglb() {
  695. this.$http({
  696. url: "/market/cfgDataDict/queryList",
  697. method: "post",
  698. headers: {
  699. "Content-Type": "application/json",
  700. },
  701. data: {
  702. dictCode: "wglb",
  703. },
  704. }).then((res) => {
  705. this.searchList[0].options = res.data;
  706. });
  707. },
  708. //获取字典
  709. getListsf() {
  710. this.$http({
  711. url: "/market/cfgDataDict/queryList",
  712. method: "post",
  713. headers: {
  714. "Content-Type": "application/json",
  715. },
  716. data: {
  717. dictCode: "yys",
  718. },
  719. }).then((res) => {
  720. this.searchList[1].options = res.data;
  721. });
  722. },
  723. // 分页
  724. currchange(v) {
  725. this.pageSize = v;
  726. this.getList(this.params, this.pageSize);
  727. },
  728. // 分页
  729. currchange1(v) {
  730. this.pageSize1 = v;
  731. this.getSecondList(this.params, this.pageSize);
  732. },
  733. closeMessagedel(v) {
  734. let _this = this;
  735. this.centerDialogVisibledel = false;
  736. if (v === 1) {
  737. this.$http({
  738. url: "/market/swcompetitor/del",
  739. method: "post",
  740. headers: {
  741. "Content-Type": "application/json",
  742. },
  743. data: {
  744. id: this.delid,
  745. },
  746. }).then((res) => {
  747. if (res.data.result === 1) {
  748. _this.$message({
  749. message: res.data.desc,
  750. type: "error",
  751. });
  752. } else {
  753. _this.$message({
  754. message: "删除成功",
  755. type: "success",
  756. });
  757. _this.getList(this.params, this.pageSize);
  758. }
  759. });
  760. }
  761. },
  762. //删除
  763. delLine(v) {
  764. this.delid = v.id;
  765. this.centerDialogVisibledel = true;
  766. this.messTit = "即将删除此条数据, 是否删除?";
  767. },
  768. //跳添加页
  769. addinfo() {
  770. this.$router.push("/addCompetitor");
  771. this.setabList("新增竞争对手信息", "/addCompetitor");
  772. },
  773. //跳添加页
  774. addinfo1() {
  775. this.$router.push("/addCompetitorNew");
  776. this.setabList("新增竞争对手信息", "/addCompetitorNew");
  777. },
  778. //详情页
  779. checkInfo(v) {
  780. this.$router.push({
  781. path: "/competitorInfo",
  782. query: {
  783. id: v,
  784. type: 1,
  785. },
  786. });
  787. this.setabList("竞争对手信息详情", "/competitorInfo?id=" + v + "&type=1");
  788. },
  789. //详情页
  790. checkInfo1(v) {
  791. this.$router.push({
  792. path: "/competitorInfoNew",
  793. query: {
  794. id: v,
  795. type: 1,
  796. },
  797. });
  798. this.setabList("竞争对手信息详情", "/competitorInfoNew?id=" + v + "&type=1");
  799. },
  800. changeInfo(v) {
  801. this.$router.push({
  802. path: "/changeCompet",
  803. query: {
  804. id: v.id,
  805. },
  806. });
  807. this.setabList("竞争对手信息修改", "/changeCompet?id=" + v.id);
  808. },
  809. changeInfo1(v) {
  810. this.$router.push({
  811. path: "/changeCompetNew",
  812. query: {
  813. id: v.id,
  814. },
  815. });
  816. this.setabList("竞争对手信息修改", "/changeCompetNew?id=" + v.id);
  817. },
  818. setabList(n, p) {
  819. let params = {
  820. children: "",
  821. name: n,
  822. rountPath: p,
  823. target: "_self",
  824. };
  825. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  826. if (this.$store.state.tabList[i].name === params.name) {
  827. this.$store.state.tabList[i] = params;
  828. }
  829. }
  830. let set = new Set([...this.$store.state.tabList, params]);
  831. set.add(params);
  832. this.$store.commit("setDefaultActive", params.rountPath);
  833. this.$store.commit("setTabList", Array.from(set));
  834. },
  835. //功能栏
  836. iconCli(v) {
  837. if (v === 1) {
  838. this.getList(this.params, this.pageSize);
  839. }
  840. if (v === 2) {
  841. this.fullscreen = !this.fullscreen;
  842. }
  843. },
  844. //列表选择
  845. checkNum1(v) {
  846. this.totalcheck1 = v.length;
  847. this.outList1 = v;
  848. },
  849. //列表选择
  850. checkNum(v) {
  851. this.totalcheck = v.length;
  852. this.outList = v;
  853. },
  854. //导出
  855. outlineinfo(v) {
  856. if (v.row) {
  857. let data = {
  858. provinceName: v.row.provinceName,
  859. operatorName: v.row.operatorName,
  860. violationCateName: v.row.violationCateName,
  861. violationItemName: v.row.violationItemName,
  862. violationItem: v.row.violationItemName,
  863. monthFee: v.row.monthFee,
  864. tariffName: v.row.tariffName,
  865. taffiffContent: v.row.taffiffContent,
  866. remFee: v.row.remFee,
  867. preFee: v.row.preFee,
  868. saleScope: v.row.saleScope,
  869. saleChnl: v.row.saleChnl,
  870. monthSale: v.row.monthSale,
  871. violationContent: v.row.violationContent,
  872. recordRegionName: v.row.recordRegionName,
  873. };
  874. this.$http({
  875. url: "/market/cwcompetitor/writeImg",
  876. method: "post",
  877. headers: {
  878. "Content-Type": "application/json",
  879. },
  880. responseType: "blob",
  881. data: data,
  882. }).then((response) => {
  883. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  884. let blob = new Blob([response.data], {
  885. type: "application/vnd.ms-excel",
  886. });
  887. window.navigator.msSaveOrOpenBlob(
  888. blob,
  889. new Date().getTime() + ".png"
  890. );
  891. } else {
  892. /* 火狐谷歌的文件下载方式 */
  893. var blob = new Blob([response.data]);
  894. var downloadElement = document.createElement("a");
  895. var href = window.URL.createObjectURL(blob);
  896. downloadElement.href = href;
  897. downloadElement.download = new Date().getTime() + ".png";
  898. document.body.appendChild(downloadElement);
  899. downloadElement.click();
  900. document.body.removeChild(downloadElement);
  901. window.URL.revokeObjectURL(href);
  902. }
  903. });
  904. } else {
  905. let data = {
  906. provinceName: v.provinceName,
  907. operatorName: v.operatorName,
  908. violationCateName: v.violationCateName,
  909. violationItemName: v.violationItemName,
  910. violationItem: v.violationItemName,
  911. monthFee: v.monthFee,
  912. tariffName: v.tariffName,
  913. taffiffContent: v.taffiffContent,
  914. remFee: v.remFee,
  915. preFee: v.preFee,
  916. saleScope: v.saleScope,
  917. saleChnl: v.saleChnl,
  918. monthSale: v.monthSale,
  919. violationContent: v.violationContent,
  920. recordRegionName: v.recordRegionName,
  921. id: v.id,
  922. };
  923. this.$http({
  924. url: "/market/cwcompetitor/write2Doc",
  925. method: "post",
  926. headers: {
  927. "Content-Type": "application/json",
  928. },
  929. responseType: "blob",
  930. data: data,
  931. }).then((response) => {
  932. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  933. let blob = new Blob([response.data], {
  934. type: "application/vnd.ms-excel",
  935. });
  936. window.navigator.msSaveOrOpenBlob(
  937. blob,
  938. new Date().getTime() + ".docx"
  939. );
  940. } else {
  941. /* 火狐谷歌的文件下载方式 */
  942. var blob = new Blob([response.data]);
  943. var downloadElement = document.createElement("a");
  944. var href = window.URL.createObjectURL(blob);
  945. downloadElement.href = href;
  946. downloadElement.download = new Date().getTime() + ".docx";
  947. document.body.appendChild(downloadElement);
  948. downloadElement.click();
  949. document.body.removeChild(downloadElement);
  950. window.URL.revokeObjectURL(href);
  951. }
  952. });
  953. }
  954. },
  955. //导出
  956. outlineinfo1(v) {
  957. if (v.row) {
  958. let data = {
  959. provinceName: v.row.provinceName,
  960. operatorName: v.row.operatorName,
  961. violationCateName: v.row.violationCateName,
  962. violationItemName: v.row.violationItemName,
  963. violationItem: v.row.violationItemName,
  964. monthFee: v.row.monthFee,
  965. tariffName: v.row.tariffName,
  966. taffiffContent: v.row.taffiffContent,
  967. remFee: v.row.remFee,
  968. preFee: v.row.preFee,
  969. saleScope: v.row.saleScope,
  970. saleChnl: v.row.saleChnl,
  971. monthSale: v.row.monthSale,
  972. violationContent: v.row.violationContent,
  973. recordRegionName: v.row.recordRegionName,
  974. };
  975. this.$http({
  976. url: "/market/cwcompetitor/writeImg1",
  977. method: "post",
  978. headers: {
  979. "Content-Type": "application/json",
  980. },
  981. responseType: "blob",
  982. data: data,
  983. }).then((response) => {
  984. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  985. let blob = new Blob([response.data], {
  986. type: "application/vnd.ms-excel",
  987. });
  988. window.navigator.msSaveOrOpenBlob(
  989. blob,
  990. new Date().getTime() + ".png"
  991. );
  992. } else {
  993. /* 火狐谷歌的文件下载方式 */
  994. var blob = new Blob([response.data]);
  995. var downloadElement = document.createElement("a");
  996. var href = window.URL.createObjectURL(blob);
  997. downloadElement.href = href;
  998. downloadElement.download = new Date().getTime() + ".png";
  999. document.body.appendChild(downloadElement);
  1000. downloadElement.click();
  1001. document.body.removeChild(downloadElement);
  1002. window.URL.revokeObjectURL(href);
  1003. }
  1004. });
  1005. } else {
  1006. let data = {
  1007. provinceName: v.provinceName,
  1008. operatorName: v.operatorName,
  1009. violationCateName: v.violationCateName,
  1010. violationItemName: v.violationItemName,
  1011. violationItem: v.violationItemName,
  1012. monthFee: v.monthFee,
  1013. tariffName: v.tariffName,
  1014. taffiffContent: v.taffiffContent,
  1015. remFee: v.remFee,
  1016. preFee: v.preFee,
  1017. saleScope: v.saleScope,
  1018. saleChnl: v.saleChnl,
  1019. monthSale: v.monthSale,
  1020. violationContent: v.violationContent,
  1021. recordRegionName: v.recordRegionName,
  1022. id: v.id,
  1023. };
  1024. this.$http({
  1025. url: "/market/cwcompetitor/write2Doc1",
  1026. method: "post",
  1027. headers: {
  1028. "Content-Type": "application/json",
  1029. },
  1030. responseType: "blob",
  1031. data: data,
  1032. }).then((response) => {
  1033. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  1034. let blob = new Blob([response.data], {
  1035. type: "application/vnd.ms-excel",
  1036. });
  1037. window.navigator.msSaveOrOpenBlob(
  1038. blob,
  1039. new Date().getTime() + ".docx"
  1040. );
  1041. } else {
  1042. /* 火狐谷歌的文件下载方式 */
  1043. var blob = new Blob([response.data]);
  1044. var downloadElement = document.createElement("a");
  1045. var href = window.URL.createObjectURL(blob);
  1046. downloadElement.href = href;
  1047. downloadElement.download = new Date().getTime() + ".docx";
  1048. document.body.appendChild(downloadElement);
  1049. downloadElement.click();
  1050. document.body.removeChild(downloadElement);
  1051. window.URL.revokeObjectURL(href);
  1052. }
  1053. });
  1054. }
  1055. },
  1056. //导出表格---------------------------------------------------------------------------------------------------
  1057. closeMessage(v) {
  1058. this.centerDialogVisible = false;
  1059. if (v===1){
  1060. this.export2Excel(v);
  1061. }
  1062. },
  1063. outExe(val) {
  1064. // 1违规 2正常
  1065. if (val == 1) {
  1066. if (this.outList.length > 0) {
  1067. this.centerDialogVisible = true;
  1068. this.messTit = "此操作将导出excel文件, 是否继续?";
  1069. this.exportType = val;
  1070. }
  1071. } else {
  1072. if (this.outList1.length > 0) {
  1073. this.centerDialogVisible = true;
  1074. this.messTit = "此操作将导出excel文件, 是否继续?";
  1075. this.exportType = val;
  1076. }
  1077. }
  1078. },
  1079. export2Excel() {
  1080. var that = this;
  1081. console.log("=============================================");
  1082. console.log("violationContent");
  1083. if (this.exportType === 1) {
  1084. require.ensure([], () => {
  1085. const { export_json_to_excel } = require("../vendor/Export2Excel");
  1086. console.log("violationContent");
  1087. const tHeader = [
  1088. "违规类别",
  1089. "省份",
  1090. "违规地市",
  1091. "运营商",
  1092. "违规项目",
  1093. "违规内容",
  1094. "资费名称",
  1095. "资费内容",
  1096. "月费",
  1097. "预存款",
  1098. "酬金",
  1099. "渠道",
  1100. "范围",
  1101. "月销量",
  1102. "上报时间",
  1103. "上报人",
  1104. "联系电话",
  1105. "审核状态",
  1106. "证据类型",
  1107. "是否已解决",
  1108. "是否反馈总部",
  1109. "是否返回竞合",
  1110. "是否反馈总局",
  1111. ]; // 导出的表头名
  1112. const filterVal = [
  1113. "violationCateName",
  1114. "provinceName",
  1115. "recordRegionName",
  1116. "operatorName",
  1117. "violationItemName",
  1118. "violationContent",
  1119. "tariffName",
  1120. "taffiffContent",
  1121. "monthFee",
  1122. "preFee",
  1123. "remFee",
  1124. "saleChnl",
  1125. "saleScope",
  1126. "monthSale",
  1127. "opTime",
  1128. "opName",
  1129. "contactPhone",
  1130. "stsDesc",
  1131. "evidenceType",
  1132. "fixFlagDesc",
  1133. "groupFlagDesc",
  1134. "wwFlagDesc",
  1135. "admFlagDesc",
  1136. ]; // 导出的表头字段名
  1137. const list = that.outList;
  1138. const data = that.formatJson(filterVal, list);
  1139. export_json_to_excel(tHeader, data, `竞争对手excel`); // 导出的表格名称,根据需要自己命名
  1140. });
  1141. return;
  1142. }
  1143. if (this.exportType === 2) {
  1144. require.ensure([], () => {
  1145. const { export_json_to_excel } = require("../vendor/Export2Excel");
  1146. const tHeader = [
  1147. "类别",
  1148. "省份",
  1149. "地市",
  1150. "套餐档位",
  1151. "套餐名称",
  1152. "运营商",
  1153. "套餐内容",
  1154. "月费(元)",
  1155. "优惠价",
  1156. "预存款(元)",
  1157. "酬金",
  1158. "渠道",
  1159. "范围",
  1160. "月销量",
  1161. "是否包含宽带",
  1162. "宽带具体内容",
  1163. "上报时间",
  1164. "上报人",
  1165. "联系电话",
  1166. "审核状态",
  1167. "是否已解决",
  1168. "是否反馈总部",
  1169. "是否返回竞合",
  1170. "是否反馈总局",
  1171. ]; // 导出的表头名
  1172. const filterVal = [
  1173. "violationCateName",
  1174. "provinceName",
  1175. "recordRegionName",
  1176. "packageGear",
  1177. "tariffName",
  1178. "operatorName",
  1179. "taffiffContent",
  1180. "monthFee",
  1181. "concessionalRate",
  1182. "preFee",
  1183. "remFee",
  1184. "saleChnl",
  1185. "saleScope",
  1186. "monthSale",
  1187. "isDb",
  1188. "dbContent",
  1189. "opTime",
  1190. "opName",
  1191. "contactPhone",
  1192. "stsDesc",
  1193. "fixFlagDesc",
  1194. "groupFlagDesc",
  1195. "wwFlagDesc",
  1196. "admFlagDesc",
  1197. ]; // 导出的表头字段名
  1198. const list = that.outList1;
  1199. const data = that.formatJson(filterVal, list);
  1200. export_json_to_excel(tHeader, data, `竞争对手excel`); // 导出的表格名称,根据需要自己命名
  1201. });
  1202. return;
  1203. }
  1204. },
  1205. formatJson(filterVal, jsonData) {
  1206. return jsonData.map((v) => filterVal.map((j) => v[j]));
  1207. },
  1208. },
  1209. mounted() {
  1210. let type = this.$route.query.type
  1211. if(type == '1'){
  1212. this.activeName = 'second';
  1213. this.getSecondList(this.params, this.pageSize);
  1214. }else{
  1215. this.getList(this.params, this.pageSize);
  1216. }
  1217. },
  1218. created() {
  1219. this.getListwglb();
  1220. this.getListsf();
  1221. },
  1222. };
  1223. </script>
  1224. <style lang="css">
  1225. .mc-style .el-tabs__content {
  1226. display: block !important;
  1227. }
  1228. </style>
  1229. <style scoped lang="scss">
  1230. .el-dropdown-link {
  1231. cursor: pointer;
  1232. color: #409eff;
  1233. }
  1234. .el-icon-arrow-down {
  1235. font-size: 12px;
  1236. }
  1237. .tabbox {
  1238. /*float: left;*/
  1239. /*max-width: 900px;*/
  1240. .pass {
  1241. color: #e4393c;
  1242. }
  1243. .nopass {
  1244. color: #00b83f;
  1245. }
  1246. }
  1247. .tab-long {
  1248. height: 22px;
  1249. float: left;
  1250. overflow: hidden;
  1251. text-overflow: ellipsis;
  1252. display: -webkit-box;
  1253. /* 将对象作为弹性伸缩盒子模型显示 */
  1254. -webkit-line-clamp: 1;
  1255. /* 控制最多显示几行 */
  1256. -webkit-box-orient: vertical;
  1257. /* 设置或检索伸缩盒对象的子元素的排列方式 */
  1258. }
  1259. .checknum {
  1260. font-size: 13px;
  1261. margin-top: 10px;
  1262. color: #b2b2b2;
  1263. .c-188ACF {
  1264. color: #188acf;
  1265. }
  1266. }
  1267. .titbtn-box {
  1268. text-align: right;
  1269. }
  1270. .com-table {
  1271. margin-top: 16px;
  1272. }
  1273. .cell {
  1274. i {
  1275. padding: 0 5px;
  1276. display: inline-block;
  1277. cursor: pointer;
  1278. }
  1279. }
  1280. .pageBox {
  1281. text-align: right;
  1282. margin-top: 10px;
  1283. }
  1284. </style>