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

3003 lines
89 KiB

  1. <template>
  2. <div class="box-center" style="cursor: pointer">
  3. <div class="biaotibox">
  4. <div>客户接待详情</div>
  5. <div><i @click="gojianyi()" class="el-icon-close"></i></div>
  6. </div>
  7. <div class="topbox">
  8. <div class="topzuo">
  9. <div class="title" style="display: flex">
  10. <div style="flex: 1">
  11. <span class="span1"
  12. >{{
  13. userinformationlist.visitRecord == 1
  14. ? "首"
  15. : userinformationlist.visitRecord || ""
  16. }}次到访</span
  17. >
  18. <span class="span2">
  19. {{ yibiaoji || "" }}&nbsp;&nbsp;{{
  20. userinformationlist.validInvalidName || ""
  21. }}
  22. </span>
  23. </div>
  24. <div style="width: 120px; display: flex; color: #2671e2">
  25. <div v-if="rec_index_addJ" @click="Addtodigest()">加精</div>
  26. <div
  27. v-if="rec_index_receflag"
  28. style="margin-left: 20px"
  29. @click="alllogo()"
  30. >
  31. {{ userinformationlist.validInvalidName }}
  32. </div>
  33. </div>
  34. </div>
  35. <div class="title" style="margin-top: 6px">
  36. <span class="span3">{{ userinformationlist.name || "" }}</span>
  37. <span class="span2">{{ userinformationlist.createTime || "" }}</span>
  38. </div>
  39. <div style="display: flex; width: 100%">
  40. <div class="aplayer" id="aplayer"></div>
  41. <div style="margin-left: -5px; margin-top: 21px" @click="download()">
  42. <img
  43. style="width: 12px; height: 12px"
  44. src="/img/xiaza1.png"
  45. alt=""
  46. />
  47. </div>
  48. </div>
  49. <div class="aplayerSpeed">
  50. <div
  51. style="display: flex; justify-content: space-around; width: 130px"
  52. >
  53. <div @click="aplayerChange('del')" style="cursor: pointer">
  54. 上一首
  55. </div>
  56. <div style="cursor: pointer">
  57. {{ aplayerId / 1 + 1 + "/" + aplayerLength }}
  58. </div>
  59. <div @click="aplayerChange('add')" style="cursor: pointer">
  60. 下一首
  61. </div>
  62. </div>
  63. <div
  64. @click="aplayerSpeed(0.5)"
  65. :class="aplayerSpeedNum == 0.5 ? 'aplayerSpeedFont' : ''"
  66. style="cursor: pointer"
  67. >
  68. 0.5x
  69. </div>
  70. <div
  71. @click="aplayerSpeed(1)"
  72. :class="aplayerSpeedNum == 1 ? 'aplayerSpeedFont' : ''"
  73. style="cursor: pointer"
  74. >
  75. 1.0x
  76. </div>
  77. <div
  78. @click="aplayerSpeed(1.5)"
  79. :class="aplayerSpeedNum == 1.5 ? 'aplayerSpeedFont' : ''"
  80. style="cursor: pointer"
  81. >
  82. 1.5x
  83. </div>
  84. <div
  85. @click="aplayerSpeed(2)"
  86. :class="aplayerSpeedNum == 2 ? 'aplayerSpeedFont' : ''"
  87. style="cursor: pointer"
  88. >
  89. 2.0x
  90. </div>
  91. </div>
  92. </div>
  93. <div class="topyou">
  94. <div style="font-size: 16px">
  95. 客户:<span style="color: #2671e2">{{
  96. userinformationlist.name || ""
  97. }}</span>
  98. </div>
  99. <div style="display: flex; font-size: 15px; margin-top: 8px">
  100. <div style="width: 50%">
  101. <div>负责顾问:{{ userinformationlist.agentName || "" }}</div>
  102. <div style="margin-top: 8px">
  103. 客户等级:
  104. <span v-if="userinformationlist.level"></span>
  105. <span v-if="userinformationlist.level == 1">A</span>
  106. <span v-if="userinformationlist.level == 2">B</span>
  107. <span v-if="userinformationlist.level == 3">C</span>
  108. <span v-if="userinformationlist.level == 4">D</span>
  109. </div>
  110. </div>
  111. <div style="width: 50%">
  112. <div>到访次数:{{ userinformationlist.visitRecord || "" }}次</div>
  113. <div style="margin-top: 8px">客户阶段:</div>
  114. </div>
  115. </div>
  116. <div style="font-size: 15px; margin-top: 8px">
  117. 最近到访时间:{{ userinformationlist.createTime || "" }}
  118. </div>
  119. </div>
  120. </div>
  121. <div class="topbox1">
  122. <div class="topzuo">
  123. <div class="topzuo-zuo">
  124. <div class="zuo-titbox">
  125. <div class="searchbox">
  126. <div style="flex: 1">
  127. <div
  128. style="width: 96%; display: flex; margin: 0 auto"
  129. @click="searchtab()"
  130. >
  131. <div class="input">请输入关键词</div>
  132. <div class="input2">搜索</div>
  133. </div>
  134. </div>
  135. <div
  136. v-if="rec_index_textyh"
  137. style="
  138. width: 100px;
  139. display: flex;
  140. justify-content: center;
  141. align-items: center;
  142. "
  143. >
  144. <div class="searchbutt" @click="texttap()">文本优化</div>
  145. </div>
  146. </div>
  147. <div class="headboxbott">
  148. <div class="headovfu">
  149. <div style="width: 100%; display: flex" class="inner-container">
  150. <div
  151. @click="tapspagek(index)"
  152. :class="{ roleindexclass: roleindex == index }"
  153. class="biaoji1"
  154. v-for="(item, index) in tablist"
  155. :key="index"
  156. >
  157. {{ item.name }}
  158. </div>
  159. </div>
  160. </div>
  161. <div v-if="rec_index_flag" class="headpade">
  162. <div class="biaoji" @click="biaoji()">标记</div>
  163. </div>
  164. </div>
  165. <div style="width: 100%">
  166. <!-- v-bind:style="{ height: condivhe + 'px' }" -->
  167. <div class="center2" id="center2">
  168. <div
  169. class="text"
  170. :data-bg="item.bg"
  171. :data-ed="item.ed"
  172. v-if="roleindex == 0"
  173. v-for="(item, index) in transcriptionlist"
  174. :key="index"
  175. :data-speaker="item.speaker"
  176. >
  177. <div class="avatar">
  178. <div v-if="item.speaker == 1">
  179. <img
  180. style="margin: 0 auto"
  181. v-if="item.isShow == 1"
  182. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  183. alt=""
  184. />
  185. <div v-else>A</div>
  186. </div>
  187. <div v-if="item.speaker == 2">
  188. <img
  189. style="margin: 0 auto"
  190. v-if="item.isShow == 1"
  191. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  192. alt=""
  193. />
  194. <div v-else>B</div>
  195. </div>
  196. <div v-if="item.speaker == 3">
  197. <img
  198. style="margin: 0 auto"
  199. v-if="item.isShow == 1"
  200. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  201. alt=""
  202. />
  203. <div v-else>C</div>
  204. </div>
  205. <div v-if="item.speaker == 4">
  206. <img
  207. style="margin: 0 auto"
  208. v-if="item.isShow == 1"
  209. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  210. alt=""
  211. />
  212. <div v-else>D</div>
  213. </div>
  214. <div v-if="item.speaker == 5">
  215. <img
  216. style="margin: 0 auto"
  217. v-if="item.isShow == 1"
  218. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  219. alt=""
  220. />
  221. <div v-else>E</div>
  222. </div>
  223. <div v-if="item.speaker == 6">
  224. <img
  225. style="margin: 0 auto"
  226. v-if="item.isShow == 1"
  227. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  228. alt=""
  229. />
  230. <div v-else>F</div>
  231. </div>
  232. <div v-if="item.speaker == 7">
  233. <img
  234. style="margin: 0 auto"
  235. v-if="item.isShow == 1"
  236. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  237. alt=""
  238. />
  239. <div v-else>G</div>
  240. </div>
  241. <div v-if="item.speaker == 8">
  242. <img
  243. style="margin: 0 auto"
  244. v-if="item.isShow == 1"
  245. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  246. alt=""
  247. />
  248. <div v-else>H</div>
  249. </div>
  250. <div v-if="item.speaker == 9">
  251. <img
  252. style="margin: 0 auto"
  253. v-if="item.isShow == 1"
  254. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  255. alt=""
  256. />
  257. <div v-else>I</div>
  258. </div>
  259. <div v-if="item.speaker == 10">
  260. <img
  261. style="margin: 0 auto"
  262. v-if="item.isShow == 1"
  263. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  264. alt=""
  265. />
  266. <div v-else>J</div>
  267. </div>
  268. <div v-if="item.speaker == 11">
  269. <img
  270. style="margin: 0 auto"
  271. v-if="item.isShow == 1"
  272. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  273. alt=""
  274. />
  275. <div v-else>K</div>
  276. </div>
  277. <div v-if="item.speaker == 12">
  278. <img
  279. style="margin: 0 auto"
  280. v-if="item.isShow == 1"
  281. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  282. alt=""
  283. />
  284. <div v-else>L</div>
  285. </div>
  286. <div v-if="item.speaker == 13">
  287. <img
  288. style="margin: 0 auto"
  289. v-if="item.isShow == 1"
  290. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  291. alt=""
  292. />
  293. <div v-else>M</div>
  294. </div>
  295. <div v-if="item.speaker == 14">
  296. <img
  297. style="margin: 0 auto"
  298. v-if="item.isShow == 1"
  299. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  300. alt=""
  301. />
  302. <div v-else>N</div>
  303. </div>
  304. <div v-if="item.speaker == 15">
  305. <img
  306. style="margin: 0 auto"
  307. v-if="item.isShow == 1"
  308. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  309. alt=""
  310. />
  311. <div v-else>O</div>
  312. </div>
  313. <div v-if="item.speaker == 16">
  314. <img
  315. style="margin: 0 auto"
  316. v-if="item.isShow == 1"
  317. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  318. alt=""
  319. />
  320. <div v-else>P</div>
  321. </div>
  322. </div>
  323. <div
  324. class="content123"
  325. @click="checkMsg(item, index)"
  326. style="cursor: pointer"
  327. >
  328. <div
  329. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  330. v-html="item.onebest"
  331. ></div>
  332. </div>
  333. </div>
  334. <div
  335. class="text"
  336. :data-bg="item.bg"
  337. :data-ed="item.ed"
  338. v-if="roleindex == 1 && item.speaker == 1"
  339. v-for="(item, index) in transcriptionlist"
  340. :key="index"
  341. :data-speaker="item.speaker"
  342. >
  343. <div class="avatar">
  344. <img
  345. v-if="item.isShow == 1"
  346. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  347. alt=""
  348. />
  349. <div v-else>A</div>
  350. </div>
  351. <div
  352. class="content123"
  353. @click="checkMsg(item, index)"
  354. style="cursor: pointer"
  355. >
  356. <div
  357. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  358. v-html="item.onebest"
  359. ></div>
  360. </div>
  361. </div>
  362. <div
  363. class="text"
  364. :data-bg="item.bg"
  365. :data-ed="item.ed"
  366. v-if="roleindex == 2 && item.speaker == 2"
  367. v-for="(item, index) in transcriptionlist"
  368. :key="index"
  369. :data-speaker="item.speaker"
  370. >
  371. <div class="avatar">
  372. <img
  373. v-if="item.isShow == 1"
  374. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  375. alt=""
  376. />
  377. <div v-else>B</div>
  378. </div>
  379. <div
  380. class="content123"
  381. @click="checkMsg(item, index)"
  382. style="cursor: pointer"
  383. >
  384. <div
  385. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  386. v-html="item.onebest"
  387. ></div>
  388. </div>
  389. </div>
  390. <div
  391. class="text"
  392. :data-bg="item.bg"
  393. :data-ed="item.ed"
  394. v-if="roleindex == 3 && item.speaker == 3"
  395. v-for="(item, index) in transcriptionlist"
  396. :key="index"
  397. :data-speaker="item.speaker"
  398. >
  399. <div class="avatar">
  400. <img
  401. v-if="item.isShow == 1"
  402. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  403. alt=""
  404. />
  405. <div v-else>C</div>
  406. </div>
  407. <div
  408. class="content123"
  409. @click="checkMsg(item, index)"
  410. style="cursor: pointer"
  411. >
  412. <div
  413. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  414. v-html="item.onebest"
  415. ></div>
  416. </div>
  417. </div>
  418. <div
  419. class="text"
  420. :data-bg="item.bg"
  421. :data-ed="item.ed"
  422. v-if="roleindex == 4 && item.speaker == 4"
  423. v-for="(item, index) in transcriptionlist"
  424. :key="index"
  425. :data-speaker="item.speaker"
  426. >
  427. <div class="avatar">
  428. <img
  429. v-if="item.isShow == 1"
  430. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  431. alt=""
  432. />
  433. <div v-else>D</div>
  434. </div>
  435. <div
  436. class="content123"
  437. @click="checkMsg(item, index)"
  438. style="cursor: pointer"
  439. >
  440. <div
  441. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  442. v-html="item.onebest"
  443. ></div>
  444. </div>
  445. </div>
  446. <div
  447. class="text"
  448. :data-bg="item.bg"
  449. :data-ed="item.ed"
  450. v-if="roleindex == 5 && item.speaker == 5"
  451. v-for="(item, index) in transcriptionlist"
  452. :key="index"
  453. :data-speaker="item.speaker"
  454. >
  455. <div class="avatar">
  456. <img
  457. v-if="item.isShow == 1"
  458. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  459. alt=""
  460. />
  461. <div v-else>E</div>
  462. </div>
  463. <div
  464. class="content123"
  465. @click="checkMsg(item, index)"
  466. style="cursor: pointer"
  467. >
  468. <div
  469. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  470. v-html="item.onebest"
  471. ></div>
  472. </div>
  473. </div>
  474. <div
  475. class="text"
  476. :data-bg="item.bg"
  477. :data-ed="item.ed"
  478. v-if="roleindex == 6 && item.speaker == 6"
  479. v-for="(item, index) in transcriptionlist"
  480. :key="index"
  481. :data-speaker="item.speaker"
  482. >
  483. <div class="avatar">
  484. <img
  485. v-if="item.isShow == 1"
  486. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  487. alt=""
  488. />
  489. <div v-else>F</div>
  490. </div>
  491. <div
  492. class="content123"
  493. @click="checkMsg(item, index)"
  494. style="cursor: pointer"
  495. >
  496. <div
  497. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  498. v-html="item.onebest"
  499. ></div>
  500. </div>
  501. </div>
  502. <div
  503. class="text"
  504. :data-bg="item.bg"
  505. :data-ed="item.ed"
  506. v-if="roleindex == 7 && item.speaker == 7"
  507. v-for="(item, index) in transcriptionlist"
  508. :key="index"
  509. :data-speaker="item.speaker"
  510. >
  511. <div class="avatar">
  512. <img
  513. v-if="item.isShow == 1"
  514. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  515. alt=""
  516. />
  517. <div v-else>G</div>
  518. </div>
  519. <div
  520. class="content123"
  521. @click="checkMsg(item, index)"
  522. style="cursor: pointer"
  523. >
  524. <div
  525. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  526. v-html="item.onebest"
  527. ></div>
  528. </div>
  529. </div>
  530. <div
  531. class="text"
  532. :data-bg="item.bg"
  533. :data-ed="item.ed"
  534. v-if="roleindex == 8 && item.speaker == 8"
  535. v-for="(item, index) in transcriptionlist"
  536. :key="index"
  537. :data-speaker="item.speaker"
  538. >
  539. <div class="avatar">
  540. <img
  541. v-if="item.isShow == 1"
  542. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  543. alt=""
  544. />
  545. <div v-else>H</div>
  546. </div>
  547. <div
  548. class="content123"
  549. @click="checkMsg(item, index)"
  550. style="cursor: pointer"
  551. >
  552. <div
  553. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  554. v-html="item.onebest"
  555. ></div>
  556. </div>
  557. </div>
  558. <div
  559. class="text"
  560. :data-bg="item.bg"
  561. :data-ed="item.ed"
  562. v-if="roleindex == 9 && item.speaker == 9"
  563. v-for="(item, index) in transcriptionlist"
  564. :key="index"
  565. :data-speaker="item.speaker"
  566. >
  567. <div class="avatar">
  568. <img
  569. v-if="item.isShow == 1"
  570. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  571. alt=""
  572. />
  573. <div v-else>I</div>
  574. </div>
  575. <div
  576. class="content123"
  577. @click="checkMsg(item, index)"
  578. style="cursor: pointer"
  579. >
  580. <div
  581. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  582. v-html="item.onebest"
  583. ></div>
  584. </div>
  585. </div>
  586. <div
  587. class="text"
  588. :data-bg="item.bg"
  589. :data-ed="item.ed"
  590. v-if="roleindex == 10 && item.speaker == 10"
  591. v-for="(item, index) in transcriptionlist"
  592. :key="index"
  593. :data-speaker="item.speaker"
  594. >
  595. <div class="avatar">
  596. <img
  597. v-if="item.isShow == 1"
  598. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  599. alt=""
  600. />
  601. <div v-else>J</div>
  602. </div>
  603. <div
  604. class="content123"
  605. @click="checkMsg(item, index)"
  606. style="cursor: pointer"
  607. >
  608. <div
  609. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  610. v-html="item.onebest"
  611. ></div>
  612. </div>
  613. </div>
  614. <div
  615. class="text"
  616. :data-bg="item.bg"
  617. :data-ed="item.ed"
  618. v-if="roleindex == 11 && item.speaker == 11"
  619. v-for="(item, index) in transcriptionlist"
  620. :key="index"
  621. :data-speaker="item.speaker"
  622. >
  623. <div class="avatar">
  624. <img
  625. v-if="item.isShow == 1"
  626. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  627. alt=""
  628. />
  629. <div v-else>K</div>
  630. </div>
  631. <div
  632. class="content123"
  633. @click="checkMsg(item, index)"
  634. style="cursor: pointer"
  635. >
  636. <div
  637. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  638. v-html="item.onebest"
  639. ></div>
  640. </div>
  641. </div>
  642. <div
  643. class="text"
  644. :data-bg="item.bg"
  645. :data-ed="item.ed"
  646. v-if="roleindex == 12 && item.speaker == 12"
  647. v-for="(item, index) in transcriptionlist"
  648. :key="index"
  649. :data-speaker="item.speaker"
  650. >
  651. <div class="avatar">
  652. <img
  653. v-if="item.isShow == 1"
  654. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  655. alt=""
  656. />
  657. <div v-else>L</div>
  658. </div>
  659. <div
  660. class="content123"
  661. @click="checkMsg(item, index)"
  662. style="cursor: pointer"
  663. >
  664. <div
  665. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  666. v-html="item.onebest"
  667. ></div>
  668. </div>
  669. </div>
  670. <div
  671. class="text"
  672. :data-bg="item.bg"
  673. :data-ed="item.ed"
  674. v-if="roleindex == 13 && item.speaker == 13"
  675. v-for="(item, index) in transcriptionlist"
  676. :key="index"
  677. :data-speaker="item.speaker"
  678. >
  679. <div class="avatar">
  680. <img
  681. v-if="item.isShow == 1"
  682. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  683. alt=""
  684. />
  685. <div v-else>M</div>
  686. </div>
  687. <div
  688. class="content123"
  689. @click="checkMsg(item, index)"
  690. style="cursor: pointer"
  691. >
  692. <div
  693. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  694. v-html="item.onebest"
  695. ></div>
  696. </div>
  697. </div>
  698. <div
  699. class="text"
  700. :data-bg="item.bg"
  701. :data-ed="item.ed"
  702. v-if="roleindex == 14 && item.speaker == 14"
  703. v-for="(item, index) in transcriptionlist"
  704. :key="index"
  705. :data-speaker="item.speaker"
  706. >
  707. <div class="avatar">
  708. <img
  709. v-if="item.isShow == 1"
  710. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  711. alt=""
  712. />
  713. <div v-else>N</div>
  714. </div>
  715. <div
  716. class="content123"
  717. @click="checkMsg(item, index)"
  718. style="cursor: pointer"
  719. >
  720. <div
  721. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  722. v-html="item.onebest"
  723. ></div>
  724. </div>
  725. </div>
  726. <div
  727. class="text"
  728. :data-bg="item.bg"
  729. :data-ed="item.ed"
  730. v-if="roleindex == 15 && item.speaker == 15"
  731. v-for="(item, index) in transcriptionlist"
  732. :key="index"
  733. :data-speaker="item.speaker"
  734. >
  735. <div class="avatar">
  736. <img
  737. v-if="item.isShow == 1"
  738. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  739. alt=""
  740. />
  741. <div v-else>O</div>
  742. </div>
  743. <div
  744. class="content123"
  745. @click="checkMsg(item, index)"
  746. style="cursor: pointer"
  747. >
  748. <div
  749. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  750. v-html="item.onebest"
  751. ></div>
  752. </div>
  753. </div>
  754. <div
  755. class="text"
  756. :data-bg="item.bg"
  757. :data-ed="item.ed"
  758. v-if="roleindex == 16 && item.speaker == 16"
  759. v-for="(item, index) in transcriptionlist"
  760. :key="index"
  761. :data-speaker="item.speaker"
  762. >
  763. <div class="avatar">
  764. <img
  765. v-if="item.isShow == 1"
  766. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  767. alt=""
  768. />
  769. <div v-else>P</div>
  770. </div>
  771. <div
  772. class="content123"
  773. @click="checkMsg(item, index)"
  774. style="cursor: pointer"
  775. >
  776. <div
  777. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  778. v-html="item.onebest"
  779. ></div>
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. <div class="topzuo-you" style="overflow-y: auto">
  787. <div
  788. style="
  789. width: 100%;
  790. height: 44px;
  791. border-bottom: 1rpx solid #e0e0e0;
  792. display: flex;
  793. align-items: center;
  794. border-bottom: 1px solid #e0e0e0;
  795. "
  796. >
  797. <div
  798. style="flex: 1; font-size: 16px; color: #333333; text-indent: 5%"
  799. >
  800. 客户意向
  801. </div>
  802. <div
  803. v-if="rec_index_makesure"
  804. style="flex: 1; font-size: 16px; color: #2671e2; text-indent: 70%"
  805. @click="Acqtap()"
  806. >
  807. 校准
  808. </div>
  809. </div>
  810. <div class="pingfenbox">
  811. <div
  812. :class="{ activecllasscet: kehuyixiangcenterindex == 0 }"
  813. @click="customerofintention(0)"
  814. >
  815. 系统分析
  816. </div>
  817. <div
  818. :class="{ activecllasscet: kehuyixiangcenterindex == 1 }"
  819. @click="customerofintention(1)"
  820. >
  821. 人工校准
  822. </div>
  823. </div>
  824. <div
  825. v-if="Getintentionlist && Getintentionlist.length == 0"
  826. style="width: 100%; text-align: center; line-height: 100px"
  827. >
  828. 暂无数据
  829. </div>
  830. <div v-else>
  831. <div
  832. class="intentionBox"
  833. v-for="(item, index) in Getintentionlist"
  834. :key="index"
  835. >
  836. <div class="intentionName">{{ item.name }}</div>
  837. <div class="intentionChe" v-if="kehuyixiangcenterindex == 0">
  838. <div
  839. v-for="(funche, i) in item.newchildren"
  840. :key="i"
  841. v-if="funche.showType == 0"
  842. >
  843. {{ funche.name }}
  844. </div>
  845. <div
  846. class="intentionview"
  847. v-for="(funche, i) in item.newchildren"
  848. :key="i"
  849. v-if="funche.showType == 1"
  850. >
  851. {{ funche.name }}
  852. </div>
  853. </div>
  854. <div class="intentionChe" v-if="kehuyixiangcenterindex == 1">
  855. <div
  856. v-for="(funche, i) in item.newchildren"
  857. :key="i"
  858. v-if="funche.showType == 0"
  859. >
  860. {{ funche.name }}
  861. </div>
  862. <div v-for="(funche, i) in item.newchildren" :key="i">
  863. {{ funche.name }}
  864. </div>
  865. </div>
  866. </div>
  867. </div>
  868. </div>
  869. </div>
  870. <div class="topyou">
  871. <div class="pingfenbox">
  872. <div
  873. :class="{ activecllasscet: zhixingcenterindex == 0 }"
  874. @click="recordclick(0)"
  875. >
  876. 销讲总执行率{{ userinformationlist.fraction || 0 }}%
  877. </div>
  878. <div
  879. v-if="rec_index_todo"
  880. :class="{ activecllasscet: zhixingcenterindex == 1 }"
  881. @click="recordclick(1)"
  882. >
  883. 禁忌执行
  884. </div>
  885. </div>
  886. <div v-if="zhixingcenterindex == 0">
  887. <div
  888. style="
  889. width: 100%;
  890. height: 44px;
  891. border-bottom: 1rpx solid #e0e0e0;
  892. display: flex;
  893. align-items: center;
  894. "
  895. >
  896. <div
  897. style="
  898. width: 60%;
  899. font-size: 16px;
  900. color: #333333;
  901. text-indent: 20px;
  902. "
  903. >
  904. 指标
  905. </div>
  906. <div style="width: 40%; flex: 1; font-size: 16px; color: #333333">
  907. <div style="width: 60px; text-align: center">执行</div>
  908. </div>
  909. </div>
  910. </div>
  911. <!-- v-bind:style="{ height: zxldivhe + 'px' }" -->
  912. <div id="zxldiv" v-if="zhixingcenterindex == 0">
  913. <div class="zxlBox" v-for="(item, index) in ratelist" :key="index">
  914. <div class="zxlLev1" @click="changeshow(index)">
  915. <div style="width: 60%" class="zxlLev1box">
  916. {{ item.name }}
  917. {{
  918. ((item.ratepercent / item.rate).toFixed(2) * 100).toFixed()
  919. }}%
  920. </div>
  921. <div style="width: 40%">
  922. <div style="width: 60px; text-align: center">
  923. <i
  924. v-if="item.show == true"
  925. style="font-size: 18px"
  926. class="el-icon-arrow-up"
  927. ></i>
  928. <i
  929. v-if="item.show == false"
  930. style="font-size: 18px"
  931. class="el-icon-arrow-right"
  932. ></i>
  933. </div>
  934. </div>
  935. </div>
  936. <div
  937. class="zxlLev2"
  938. v-if="item.show"
  939. v-for="(subitem, i) in item.children"
  940. :key="i"
  941. >
  942. <div style="width: 60%" class="zxlLev2tit">
  943. {{ subitem.name }}
  944. </div>
  945. <div style="width: 40%; display: flex; align-items: center">
  946. <div class="zxlzx" v-if="!subitem.selected">执行</div>
  947. <div v-else class="zxlzx2">未执行</div>
  948. </div>
  949. </div>
  950. </div>
  951. </div>
  952. <div
  953. id="zxldiv"
  954. v-if="zhixingcenterindex == 1"
  955. style="padding: 0px 10px 10px 10px"
  956. >
  957. <div
  958. style="margin-top: 10px"
  959. v-for="(item, index) in prohibitedlist"
  960. :key="index"
  961. >
  962. {{ index + 1 }}、{{ item }}
  963. </div>
  964. </div>
  965. </div>
  966. </div>
  967. <el-dialog
  968. title="加入常错词"
  969. :visible.sync="dialogFormVisible"
  970. width="500px"
  971. center
  972. :close-on-click-modal="false"
  973. @close="$refs.form.resetFields()"
  974. >
  975. <el-form :model="form" ref="form" label-width="80px" :rules="rules">
  976. <el-form-item label="常错词" prop="wrongWord">
  977. <el-input v-model="form.wrongWord" autocomplete="off"></el-input>
  978. </el-form-item>
  979. <el-form-item label="正确词" prop="correctWord">
  980. <el-input v-model="form.correctWord" autocomplete="off"></el-input>
  981. </el-form-item>
  982. </el-form>
  983. <div slot="footer" class="dialog-footer">
  984. <el-button @click="dialogFormVisible = false">取 消</el-button>
  985. <el-button type="primary" @click="subMsg">确 定</el-button>
  986. </div>
  987. </el-dialog>
  988. <el-dialog
  989. title="标记顾问"
  990. :visible.sync="dialogFormVisible11"
  991. center
  992. width="500px"
  993. :close-on-click-modal="false"
  994. >
  995. <div
  996. style="
  997. width: 95%;
  998. display: flex;
  999. flex-wrap: wrap;
  1000. margin: 0 auto;
  1001. padding-top: 30px;
  1002. padding-bottom: 30px;
  1003. "
  1004. >
  1005. <div
  1006. class="viewclace"
  1007. :class="roleindexbiaoji == index ? 'bosdttom' : ''"
  1008. @click="biaojixuanze(index)"
  1009. v-for="(item, index) in tablist.slice(1, tablist.length)"
  1010. :key="index"
  1011. >
  1012. <div>{{ item.name }}</div>
  1013. </div>
  1014. </div>
  1015. <div slot="footer" class="dialog-footer">
  1016. <el-button @click="unmarktap()">取 消</el-button>
  1017. <el-button type="primary" @click="subMsg11">确 定</el-button>
  1018. </div>
  1019. </el-dialog>
  1020. <el-dialog
  1021. title="校准"
  1022. :visible.sync="dialogFormVisible12"
  1023. center
  1024. width="500px"
  1025. :close-on-click-modal="false"
  1026. >
  1027. <div style="height: 400px; width: 100%; overflow: auto">
  1028. <div
  1029. class="intentionBox"
  1030. v-for="(item, index) in Acquirecustomerintentlist2"
  1031. :key="index"
  1032. >
  1033. <div class="intentionName">{{ item.name }}</div>
  1034. <div class="intentionChe2">
  1035. <div
  1036. v-for="(item1, i) in item.children"
  1037. :key="i"
  1038. @click="Edittag(item, item1, index, i)"
  1039. :style="{
  1040. border:
  1041. item1.selected == 0
  1042. ? '1px solid #0A6EE9'
  1043. : '1px solid #E0E0E0',
  1044. }"
  1045. >
  1046. {{ item1.label }}
  1047. </div>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. <div slot="footer" class="dialog-footer">
  1052. <el-button @click="dialogFormVisible12 = false">取 消</el-button>
  1053. <el-button type="primary" @click="intentlist2click()">确 定</el-button>
  1054. </div>
  1055. </el-dialog>
  1056. <el-dialog
  1057. title="接待标记"
  1058. :visible.sync="dialogFormVisible13"
  1059. center
  1060. width="500px"
  1061. :close-on-click-modal="false"
  1062. >
  1063. <div style="width: 80%; margin: 0 auto; font-size: 30px">
  1064. <div>
  1065. <el-radio v-model="effectiveindex" label="1">没电指派无录音</el-radio>
  1066. <el-radio v-model="effectiveindex" label="2">离线指派无录音</el-radio>
  1067. </div>
  1068. <div>
  1069. <el-radio v-model="effectiveindex" label="3">系统测试误操作</el-radio>
  1070. <el-radio v-model="effectiveindex" label="4">非接访场景录音</el-radio>
  1071. </div>
  1072. <div>
  1073. <el-radio v-model="effectiveindex" label="5">其他</el-radio>
  1074. </div>
  1075. <div v-if="effectiveindex == 5">
  1076. <textarea
  1077. v-model="effectiveitext"
  1078. style="
  1079. width: 100%;
  1080. margin-top: 6px;
  1081. border: 1px solid #e0e0e0;
  1082. height: 100px;
  1083. padding: 10px;
  1084. font-size: 16px;
  1085. "
  1086. name=""
  1087. placeholder="备注"
  1088. cols="30"
  1089. rows="10"
  1090. ></textarea>
  1091. </div>
  1092. </div>
  1093. <div slot="footer" class="dialog-footer">
  1094. <el-button @click="dialogFormVisible13 = false">取 消</el-button>
  1095. <el-button type="primary" @click="effectiveAdd()">确 定</el-button>
  1096. </div>
  1097. </el-dialog>
  1098. <div
  1099. v-if="dialogFormtext"
  1100. @click="dialogFormtext = false"
  1101. id="zhezhao"
  1102. ></div>
  1103. <div v-if="dialogFormtext" class="auDivhhh">
  1104. <div
  1105. style="
  1106. width: 100%;
  1107. height: 50px;
  1108. line-height: 50px;
  1109. text-align: center;
  1110. font-size: 20px;
  1111. font-weight: 400;
  1112. "
  1113. >
  1114. 文本优化
  1115. </div>
  1116. <div
  1117. class="center3"
  1118. style="
  1119. width: 95%;
  1120. margin: 0 auto;
  1121. border: 1px solid #e3e3e3;
  1122. height: 430px;
  1123. overflow-y: scroll;
  1124. "
  1125. >
  1126. <div
  1127. class="text"
  1128. :data-bg="item.bg"
  1129. :data-ed="item.ed"
  1130. v-for="(item, index) in optimizetext"
  1131. :key="index"
  1132. :data-speaker="item.speaker"
  1133. >
  1134. <div class="buttonzu">
  1135. <span style="cursor: pointer" @click="texteditor(item, index)"
  1136. >纠正</span
  1137. >
  1138. &nbsp; &nbsp;
  1139. <span style="cursor: pointer" @click="optimdel(index)">删除</span>
  1140. <span
  1141. style="cursor: pointer; margin-left: 10px"
  1142. @click="editRole(item, index)"
  1143. >修改角色</span
  1144. >
  1145. </div>
  1146. <div class="avatar">
  1147. <div v-if="item.speaker == 1">
  1148. <img
  1149. style="margin: 0 auto"
  1150. v-if="item.isShow == 1"
  1151. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1152. alt=""
  1153. />
  1154. <div v-else>A</div>
  1155. </div>
  1156. <div v-if="item.speaker == 2">
  1157. <img
  1158. style="margin: 0 auto"
  1159. v-if="item.isShow == 1"
  1160. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1161. alt=""
  1162. />
  1163. <div v-else>B</div>
  1164. </div>
  1165. <div v-if="item.speaker == 3">
  1166. <img
  1167. style="margin: 0 auto"
  1168. v-if="item.isShow == 1"
  1169. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1170. alt=""
  1171. />
  1172. <div v-else>C</div>
  1173. </div>
  1174. <div v-if="item.speaker == 4">
  1175. <img
  1176. style="margin: 0 auto"
  1177. v-if="item.isShow == 1"
  1178. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1179. alt=""
  1180. />
  1181. <div v-else>D</div>
  1182. </div>
  1183. <div v-if="item.speaker == 5">
  1184. <img
  1185. style="margin: 0 auto"
  1186. v-if="item.isShow == 1"
  1187. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1188. alt=""
  1189. />
  1190. <div v-else>E</div>
  1191. </div>
  1192. <div v-if="item.speaker == 6">
  1193. <img
  1194. style="margin: 0 auto"
  1195. v-if="item.isShow == 1"
  1196. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1197. alt=""
  1198. />
  1199. <div v-else>F</div>
  1200. </div>
  1201. <div v-if="item.speaker == 7">
  1202. <img
  1203. style="margin: 0 auto"
  1204. v-if="item.isShow == 1"
  1205. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1206. alt=""
  1207. />
  1208. <div v-else>G</div>
  1209. </div>
  1210. <div v-if="item.speaker == 8">
  1211. <img
  1212. style="margin: 0 auto"
  1213. v-if="item.isShow == 1"
  1214. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1215. alt=""
  1216. />
  1217. <div v-else>H</div>
  1218. </div>
  1219. <div v-if="item.speaker == 9">
  1220. <img
  1221. style="margin: 0 auto"
  1222. v-if="item.isShow == 1"
  1223. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1224. alt=""
  1225. />
  1226. <div v-else>I</div>
  1227. </div>
  1228. <div v-if="item.speaker == 10">
  1229. <img
  1230. style="margin: 0 auto"
  1231. v-if="item.isShow == 1"
  1232. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1233. alt=""
  1234. />
  1235. <div v-else>J</div>
  1236. </div>
  1237. <div v-if="item.speaker == 11">
  1238. <img
  1239. style="margin: 0 auto"
  1240. v-if="item.isShow == 1"
  1241. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1242. alt=""
  1243. />
  1244. <div v-else>K</div>
  1245. </div>
  1246. <div v-if="item.speaker == 12">
  1247. <img
  1248. style="margin: 0 auto"
  1249. v-if="item.isShow == 1"
  1250. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1251. alt=""
  1252. />
  1253. <div v-else>L</div>
  1254. </div>
  1255. <div v-if="item.speaker == 13">
  1256. <img
  1257. style="margin: 0 auto"
  1258. v-if="item.isShow == 1"
  1259. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1260. alt=""
  1261. />
  1262. <div v-else>M</div>
  1263. </div>
  1264. <div v-if="item.speaker == 14">
  1265. <img
  1266. style="margin: 0 auto"
  1267. v-if="item.isShow == 1"
  1268. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1269. alt=""
  1270. />
  1271. <div v-else>N</div>
  1272. </div>
  1273. <div v-if="item.speaker == 15">
  1274. <img
  1275. style="margin: 0 auto"
  1276. v-if="item.isShow == 1"
  1277. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1278. alt=""
  1279. />
  1280. <div v-else>O</div>
  1281. </div>
  1282. <div v-if="item.speaker == 16">
  1283. <img
  1284. style="margin: 0 auto"
  1285. v-if="item.isShow == 1"
  1286. src="http://121.42.63.138:9091/autoSR/static/plugins/audio/images/A.png"
  1287. alt=""
  1288. />
  1289. <div v-else>P</div>
  1290. </div>
  1291. </div>
  1292. <div class="content123" style="cursor: pointer">
  1293. <div
  1294. :class="{ adjskdjroleindexclass: item.isShow == 1 }"
  1295. v-html="item.onebest"
  1296. ></div>
  1297. </div>
  1298. </div>
  1299. </div>
  1300. <div
  1301. style="
  1302. display: flex;
  1303. margin-top: 12px;
  1304. height: 35px;
  1305. align-items: center;
  1306. justify-content: center;
  1307. "
  1308. >
  1309. <el-button size="small" @click="savedraft(1)">保存并更新文本</el-button>
  1310. <el-button size="small" type="primary" @click="savedraft(0)"
  1311. >保存草稿</el-button
  1312. >
  1313. <el-button size="small" type="primary" @click="textrestore()"
  1314. >恢复当前文本</el-button
  1315. >
  1316. <el-button size="small" @click="dialogFormtext = false">取消</el-button>
  1317. </div>
  1318. </div>
  1319. <el-dialog
  1320. title="纠正文本"
  1321. :visible.sync="texteditorishow"
  1322. center
  1323. width="600px"
  1324. :close-on-click-modal="false"
  1325. >
  1326. <div>
  1327. <span>错误内容:</span>
  1328. <span v-html="textareacuowu"></span>
  1329. </div>
  1330. <div style="margin-top: 10px">
  1331. <div>纠正内容:</div>
  1332. <div style="margin-top: 6px">
  1333. <el-input
  1334. type="textarea"
  1335. :rows="2"
  1336. placeholder="请输入内容"
  1337. v-model="textarea"
  1338. >
  1339. </el-input>
  1340. </div>
  1341. </div>
  1342. <div slot="footer" class="dialog-footer">
  1343. <el-button @click="texteditorishow = false">取消</el-button>
  1344. <el-button type="primary" @click="summunct()">确认</el-button>
  1345. </div>
  1346. </el-dialog>
  1347. <el-dialog
  1348. title="搜索"
  1349. :visible.sync="searchisshow"
  1350. center
  1351. width="500px"
  1352. :close-on-click-modal="false"
  1353. >
  1354. <div style="width: 100%; display: flex; height: 32px">
  1355. <div style="width: 75%; height: 100%">
  1356. <input
  1357. @input="tabinput()"
  1358. v-model="inputtest"
  1359. class="inputclass"
  1360. type="text"
  1361. placeholder="请输入搜索内容"
  1362. />
  1363. </div>
  1364. <div style="width: 25%; height: 100%">
  1365. <div class="inputclass2" style="margin: 0 auto">搜索</div>
  1366. </div>
  1367. </div>
  1368. <div style="height: 400px; width: 100%; overflow: auto; padding: 15px">
  1369. <div
  1370. class="searchbox54"
  1371. v-for="(item, index) in Searchcontent"
  1372. @click="tabseek(item)"
  1373. :key="index"
  1374. style="cursor: pointer"
  1375. >
  1376. <div>
  1377. <div class="avatar">
  1378. <div v-if="item.speaker == 1" style="color: #4f861e">A</div>
  1379. <div v-if="item.speaker == 2" style="color: #4f861e">B</div>
  1380. <div v-if="item.speaker == 3" style="color: #4f861e">C</div>
  1381. <div v-if="item.speaker == 4" style="color: #60cbec">D</div>
  1382. <div v-if="item.speaker == 5" style="color: #ec8b47">E</div>
  1383. <div v-if="item.speaker == 6" style="color: #9f61c8">F</div>
  1384. <div v-if="item.speaker == 7" style="color: #4980c8">G</div>
  1385. </div>
  1386. </div>
  1387. <div>
  1388. <div style="font-size: 14px">
  1389. {{ formatTime(item.transferContent.bg) }}
  1390. </div>
  1391. <div
  1392. style="padding-top: 4px; font-size: 14px"
  1393. v-html="item.text"
  1394. ></div>
  1395. </div>
  1396. </div>
  1397. </div>
  1398. <div slot="footer" class="dialog-footer">
  1399. <el-button @click="searchisshow = false">取 消</el-button>
  1400. </div>
  1401. </el-dialog>
  1402. <el-dialog
  1403. title="角色纠正"
  1404. :visible.sync="roleVisible"
  1405. center
  1406. width="600px"
  1407. :close-on-click-modal="false"
  1408. >
  1409. <div style="margin-top: 10px; display: flex; align-items: center">
  1410. <div style="line-height: 38px">角色纠正:</div>
  1411. <el-select
  1412. v-model="roleFlag"
  1413. class="rolediv"
  1414. placeholder="请选择"
  1415. style="height: 38px; display: flex; align-items: center"
  1416. filterable
  1417. >
  1418. <el-option
  1419. v-for="(item, index) in roleList"
  1420. :key="index"
  1421. :label="item.name"
  1422. :value="index"
  1423. >
  1424. </el-option>
  1425. </el-select>
  1426. <el-button type="primary" @click="addRole">新增角色</el-button>
  1427. </div>
  1428. <div slot="footer" class="dialog-footer">
  1429. <el-button @click="roleVisible = false">取消</el-button>
  1430. <el-button type="primary" @click="editSure()">确认</el-button>
  1431. </div>
  1432. </el-dialog>
  1433. </div>
  1434. </template>
  1435. <script>
  1436. import "aplayer/dist/APlayer.min.css";
  1437. import APlayer from "aplayer";
  1438. import { mapGetters } from "vuex";
  1439. import { getStore, setStore } from "@/util/store";
  1440. export default {
  1441. data() {
  1442. return {
  1443. roleVisible: false,
  1444. roleFlag: "0",
  1445. roleidx: "",
  1446. roleList: [],
  1447. dialogFormVisible: false,
  1448. dialogFormVisible11: false,
  1449. dialogFormVisible12: false,
  1450. dialogFormVisible13: false,
  1451. texteditorishow: false,
  1452. searchisshow: false,
  1453. effectiveindex: 1,
  1454. effectiveitext: "",
  1455. form: {
  1456. correctWord: "", //正确词
  1457. cupid: "",
  1458. wrongWord: "", // 错词
  1459. customerId: "",
  1460. },
  1461. rules: {
  1462. correctWord: [
  1463. { required: true, message: "请输入正确词", trigger: "blur" },
  1464. ],
  1465. wrongWord: [{ required: true, message: "请输入错词", trigger: "blur" }],
  1466. },
  1467. aplayer: null,
  1468. aplayerSpeedNum: "1", //点击字体更换
  1469. arr: [], //录音文件列表
  1470. aplayerId: 0,
  1471. aplayerLength: 0, //文件个数
  1472. tablist: [
  1473. { name: "全部" },
  1474. { name: "A" },
  1475. { name: "b" },
  1476. { name: "c" },
  1477. { name: "c" },
  1478. { name: "c" },
  1479. { name: "c" },
  1480. ],
  1481. roleindex: 0,
  1482. zhixingcenterindex: 0,
  1483. corpusId: 0, //录音文件id
  1484. fileId: "", //客户id
  1485. recordPath: "", //播放src
  1486. transcriptionlist: [], //转写内容
  1487. playNow: 0,
  1488. userinformationlist: {}, //客户信息
  1489. kehuyixiangcenterindex: 0,
  1490. AudioIdx: 0, //录音文件顺序
  1491. isd: "",
  1492. dshfkjsdkksodofydwfkhwdfkjh: "",
  1493. roleindexbiaoji: 0,
  1494. aplayerSpeedNum: "1", //倍速字体更换
  1495. Getintentionlist: [], //客户意向
  1496. argtextindex: "", //常错词下标
  1497. ratelist: [], //评分集合
  1498. prohibitedlist: [], //违禁集合
  1499. textItself: "", //原词内容
  1500. Acquirecustomerintentlist2: [], //校准列表
  1501. dialogFormtext: false,
  1502. optimizetext: [], //文本优化list
  1503. optimizeobj: {}, //文本优化obj
  1504. textarea: "",
  1505. textareacuowu: "",
  1506. textareaindex: 0,
  1507. Searchcontent: [],
  1508. inputtest: "",
  1509. info: {},
  1510. yibiaoji: "",
  1511. rec_index_flag: false,
  1512. rec_index_addJ: false,
  1513. rec_index_wrongword: false,
  1514. rec_index_makesure: false,
  1515. rec_index_todo: false,
  1516. rec_index_receflag: false,
  1517. rec_index_textyh: false,
  1518. };
  1519. },
  1520. created() {
  1521. this.rec_index_flag = this.permissions["rec_index_flag"]; //标记顾问
  1522. this.rec_index_addJ = this.permissions["rec_index_addJ"]; //加精
  1523. this.rec_index_wrongword = this.permissions["rec_index_wrongword"]; //常错词
  1524. this.rec_index_makesure = this.permissions["rec_index_makesure"]; //校准
  1525. this.rec_index_todo = this.permissions["rec_index_todo"]; //禁忌
  1526. this.rec_index_receflag = this.permissions["rec_index_receflag"]; //接待标记
  1527. this.rec_index_textyh = this.permissions["rec_index_textyh"]; //文本优化
  1528. },
  1529. mounted() {
  1530. this.fileId = this.$route.query.flag;
  1531. this.AudioIdx = this.$route.query.AudioIdx;
  1532. this.info = getStore({ name: "userInfo" });
  1533. this.init();
  1534. },
  1535. computed: {
  1536. ...mapGetters(["permissions"]),
  1537. },
  1538. destroyed() {
  1539. this.aplayer.destroy();
  1540. },
  1541. methods: {
  1542. editSure() {
  1543. // console.log(this.roleFlag)
  1544. // this.optimizetext
  1545. // console.log(this.optimizetext[this.roleidx])
  1546. // this.optimizetext[this.roleidx].speaker=this.roleFlag/1+1
  1547. // this.optimizetext[this.roleidx].speaker=2
  1548. // console.log(this.optimizetext[this.roleidx])
  1549. // this.roleVisible=false
  1550. let speaker = this.roleFlag / 1 + 1;
  1551. // return
  1552. let obj = {};
  1553. obj = Object.assign({}, this.optimizetext[this.roleidx]);
  1554. obj.onebest = obj.onebest.replace(/<.*?>/gi, "");
  1555. let arr = [];
  1556. arr.push(obj);
  1557. // console.log(arr)
  1558. axios({
  1559. url: `autoSR/zk/file/updateRole`,
  1560. method: "post",
  1561. data: {
  1562. speaker: speaker,
  1563. corpusId: this.corpusId,
  1564. transferContent: JSON.stringify(arr),
  1565. customerId: this.fileId,
  1566. },
  1567. }).then((res) => {
  1568. this.optimizetext[this.roleidx].speaker = this.roleFlag / 1 + 1;
  1569. this.roleVisible = false;
  1570. });
  1571. },
  1572. //修改角色
  1573. editRole(item, idx) {
  1574. // console.log(item,idx)
  1575. // console.log(this.roleList)
  1576. this.roleFlag = item.speaker - 1;
  1577. // console.log(this.roleFlag)
  1578. this.roleidx = idx;
  1579. this.roleVisible = true;
  1580. },
  1581. gojianyi() {
  1582. // console.log(this.$route);
  1583. let tag = {
  1584. group: [],
  1585. label: "接待详情",
  1586. params: {},
  1587. query: this.$route.query,
  1588. value: this.$route.fullPath,
  1589. };
  1590. // console.log(tag);
  1591. this.$store.commit("DEL_TAG", tag);
  1592. this.$router.go(-1); //返回上一层
  1593. },
  1594. //上一首
  1595. aplayerChange(str) {
  1596. this.aplayer.destroy();
  1597. document.querySelector(".center2").scrollTop = 0;
  1598. if (str == "add") {
  1599. this.aplayerId++;
  1600. if (this.aplayerId >= this.aplayerLength) {
  1601. this.$message("没有下一首啦");
  1602. this.aplayerId--;
  1603. this.bofangchushihua();
  1604. return;
  1605. } else {
  1606. this.arr[this.aplayerId].audioContent != ""
  1607. ? (this.transcriptionlist = JSON.parse(
  1608. this.arr[this.aplayerId].audioContent
  1609. ))
  1610. : (this.transcriptionlist = []);
  1611. this.recordPath = this.arr[this.aplayerId].recordPath;
  1612. }
  1613. } else {
  1614. this.aplayerId--;
  1615. if (this.aplayerId < 0) {
  1616. this.$message("没有上一首啦");
  1617. this.aplayerId++;
  1618. this.bofangchushihua();
  1619. return;
  1620. } else {
  1621. this.arr[this.aplayerId].audioContent != ""
  1622. ? (this.transcriptionlist = JSON.parse(
  1623. this.arr[this.aplayerId].audioContent
  1624. ))
  1625. : (this.transcriptionlist = []);
  1626. this.recordPath = this.arr[this.aplayerId].recordPath;
  1627. }
  1628. }
  1629. this.bofangchushihua();
  1630. this.aplayer.play();
  1631. },
  1632. //点击播放
  1633. tabseek(item) {
  1634. this.centerindex = 0;
  1635. let num = parseInt(item.transferContent.bg / 1000);
  1636. if (item.corpusId == this.arr[this.aplayerId].id) {
  1637. this.aplayer.seek(num);
  1638. } else {
  1639. let idx = this.arr.findIndex((item1) => item1.id == item.corpusId);
  1640. if (idx == -1) {
  1641. this.$message("没有此条录音信息");
  1642. } else {
  1643. this.aplayerId = idx;
  1644. this.aplayer.destroy();
  1645. console.log(idx);
  1646. this.transcriptionlist = JSON.parse(this.arr[idx].audioContent);
  1647. this.recordPath = this.arr[idx].recordPath;
  1648. this.bofangchushihua();
  1649. this.$nextTick(() => {
  1650. this.aplayer.audio.currentTime = num;
  1651. });
  1652. }
  1653. }
  1654. this.searchisshow = false;
  1655. this.aplayer.play();
  1656. },
  1657. //点击搜索
  1658. searchtab() {
  1659. this.inputtest = "";
  1660. this.Searchcontent = [];
  1661. this.searchisshow = true;
  1662. },
  1663. tabinput() {
  1664. if (this.inputtest == "") {
  1665. return;
  1666. } else {
  1667. this.Searchcontent = [];
  1668. this.$api.http
  1669. .keyWordsMatching({
  1670. keyword: this.inputtest,
  1671. customerId: this.fileId,
  1672. })
  1673. .then((res) => {
  1674. let list = res.data;
  1675. // JSON.parse();
  1676. list.map((item) => {
  1677. item.transferContent = JSON.parse(item.transferContent);
  1678. item.text = this.brightKeyword(item.transferContent.onebest);
  1679. });
  1680. this.Searchcontent = list;
  1681. });
  1682. }
  1683. },
  1684. //替换方法
  1685. brightKeyword(val) {
  1686. if (val.indexOf(this.inputtest) !== -1) {
  1687. return val.replace(
  1688. this.inputtest,
  1689. "<text style='color: red'>" + this.inputtest + "</text>"
  1690. );
  1691. } else {
  1692. return val;
  1693. }
  1694. },
  1695. //文本恢复
  1696. textrestore() {
  1697. this.optimizeobj = {};
  1698. this.optimizetext = [];
  1699. this.$api.http
  1700. .findText({ corpusId: this.arr[this.aplayerId].id })
  1701. .then((res) => {
  1702. console.log(res, "文本恢复");
  1703. // return
  1704. this.optimizeobj = res.data;
  1705. this.optimizetext = JSON.parse(res.data.textContent);
  1706. });
  1707. },
  1708. //保存并更新文本 保存草稿
  1709. savedraft(i) {
  1710. this.$api.http
  1711. .saveText({
  1712. saveType: i,
  1713. corpusId: this.arr[this.aplayerId].id,
  1714. id: this.optimizeobj.id,
  1715. textContent: JSON.stringify(this.optimizetext),
  1716. })
  1717. .then((res) => {
  1718. this.dialogFormtext = false;
  1719. this.$message.success("优化完成");
  1720. if (i == 1) {
  1721. this.init();
  1722. }
  1723. });
  1724. },
  1725. //文本编辑确认
  1726. summunct() {
  1727. this.optimizetext[this.textareaindex].onebest = this.textarea;
  1728. this.texteditorishow = false;
  1729. },
  1730. //文本编辑
  1731. texteditor(item, index) {
  1732. this.textarea = "";
  1733. this.textareaindex = index;
  1734. this.textareacuowu = item.onebest;
  1735. this.texteditorishow = true;
  1736. },
  1737. //文本优化删除
  1738. optimdel(i) {
  1739. console.log(i);
  1740. var that = this;
  1741. this.$confirm("此操作将删除该条, 是否继续?", "提示", {
  1742. confirmButtonText: "确定",
  1743. cancelButtonText: "取消",
  1744. type: "warning",
  1745. })
  1746. .then(() => {
  1747. that.optimizetext.splice(i, 1);
  1748. this.$message({
  1749. type: "success",
  1750. message: "删除成功!",
  1751. });
  1752. })
  1753. .catch(() => {
  1754. // this.$message({
  1755. // type: 'info',
  1756. // message: '已取消删除'
  1757. // });
  1758. });
  1759. },
  1760. //获取文本
  1761. texttap() {
  1762. this.optimizeobj = {};
  1763. this.optimizetext = [];
  1764. this.$api.http
  1765. .findText({ corpusId: this.arr[this.aplayerId].id })
  1766. .then((res) => {
  1767. console.log(res, "获取文本");
  1768. this.optimizeobj = res.data;
  1769. this.optimizetext = JSON.parse(res.data.textContent);
  1770. this.dialogFormtext = true;
  1771. });
  1772. },
  1773. // 接待标记
  1774. alllogo() {
  1775. if (this.userinformationlist.validInvalid != 0) {
  1776. this.$confirm('是否标记为"有效录音"?', "提示", {
  1777. confirmButtonText: "确定",
  1778. cancelButtonText: "取消",
  1779. type: "warning",
  1780. })
  1781. .then(() => {
  1782. this.$api.http
  1783. .updateValidInvalid({
  1784. id: this.fileId,
  1785. validInvalid: 0,
  1786. invalidReason: "",
  1787. houseId: localStorage.getItem("houseId"),
  1788. })
  1789. .then((res) => {
  1790. this.$message({
  1791. type: "success",
  1792. message: "操作成功!",
  1793. });
  1794. this.init();
  1795. });
  1796. })
  1797. .catch(() => {
  1798. // this.$message({
  1799. // type: "info",
  1800. // message: "已取消操作",
  1801. // });
  1802. });
  1803. } else {
  1804. this.dialogFormVisible13 = true;
  1805. }
  1806. },
  1807. //无效标记
  1808. effectiveAdd() {
  1809. if (this.effectiveindex == 5) {
  1810. if (this.effectiveitext.length == 0) {
  1811. this.$message({
  1812. type: "error",
  1813. message: "备注不能为空!",
  1814. });
  1815. return;
  1816. }
  1817. }
  1818. this.$api.http
  1819. .updateValidInvalid({
  1820. id: this.fileId,
  1821. validInvalid: "",
  1822. validInvalid: 1,
  1823. invalidReason: Number(this.effectiveindex),
  1824. invalidNote: this.effectiveitext,
  1825. houseId: localStorage.getItem("houseId"),
  1826. })
  1827. .then((res) => {
  1828. this.dialogFormVisible13 = false;
  1829. this.$message({
  1830. type: "success",
  1831. message: "操作成功!",
  1832. });
  1833. this.init();
  1834. });
  1835. },
  1836. //加精華
  1837. Addtodigest() {
  1838. var that = this;
  1839. if (that.arr[that.aplayerId].status == 0) {
  1840. that
  1841. .$confirm("取消加精,是否继续?", "提示", {
  1842. confirmButtonText: "确定",
  1843. cancelButtonText: "取消",
  1844. type: "warning",
  1845. })
  1846. .then(() => {
  1847. that.$api.http.delATD({ carId: that.fileId }).then((res) => {
  1848. that.$message({
  1849. type: "success",
  1850. message: "操作成功!",
  1851. });
  1852. this.init();
  1853. });
  1854. })
  1855. .catch(() => {
  1856. // that.$message({
  1857. // type: "info",
  1858. // message: "已取消操作",
  1859. // });
  1860. });
  1861. } else {
  1862. that
  1863. .$confirm("加精,是否继续?", "提示", {
  1864. confirmButtonText: "确定",
  1865. cancelButtonText: "取消",
  1866. type: "warning",
  1867. })
  1868. .then(() => {
  1869. that.$api.http
  1870. .addATD({ carId: that.fileId, status: 0 })
  1871. .then((res) => {
  1872. that.$message({
  1873. type: "success",
  1874. message: "加精成功!",
  1875. });
  1876. this.init();
  1877. });
  1878. })
  1879. .catch(() => {
  1880. // that.$message({
  1881. // type: "info",
  1882. // message: "已取消加精",
  1883. // });
  1884. });
  1885. }
  1886. },
  1887. //确认校准
  1888. intentlist2click() {
  1889. let param = {
  1890. keywordIds: "",
  1891. id: this.fileId,
  1892. };
  1893. let str = [];
  1894. this.Acquirecustomerintentlist2.map((item) => {
  1895. item.children.map((item1) => {
  1896. if (item1.selected == 0) {
  1897. str.push(item1.keywordsId);
  1898. }
  1899. });
  1900. });
  1901. str = str.join(",");
  1902. param.keywordIds = str;
  1903. this.$api.http.updateManualCalibration(param).then((res) => {
  1904. this.dialogFormVisible12 = false;
  1905. this.findCARKeywords();
  1906. });
  1907. },
  1908. // 选择校准
  1909. Edittag(item, item1, index, i) {
  1910. if (this.Acquirecustomerintentlist2[index].children[i].selected == 0) {
  1911. this.Acquirecustomerintentlist2[index].children[i].selected = 1;
  1912. } else {
  1913. this.Acquirecustomerintentlist2[index].children[i].selected = 0;
  1914. }
  1915. this.$forceUpdate();
  1916. },
  1917. //获取校准列表
  1918. Acqtap() {
  1919. this.dialogFormVisible12 = true;
  1920. this.$api.http
  1921. .findSystemAnalysis({ customerId: this.fileId, type: 2 })
  1922. .then((res) => {
  1923. let newlist = res.data || [];
  1924. if (newlist.length == 0) {
  1925. this.$message.success("暂无数据");
  1926. } else {
  1927. newlist.forEach((item1) => {
  1928. item1.children.map((item) => {
  1929. if (item.isInterval == 0) {
  1930. item.label =
  1931. item.name + item.unit + "-" + item.endName + item.unit;
  1932. } else {
  1933. item.label = item.name;
  1934. }
  1935. item.value = item.id;
  1936. });
  1937. });
  1938. this.Acquirecustomerintentlist2 = newlist;
  1939. }
  1940. });
  1941. },
  1942. addRole() {
  1943. console.log("添加角色");
  1944. this.tablist.push({
  1945. name: String.fromCharCode(this.tablist.length + 64),
  1946. });
  1947. this.roleList.push({
  1948. name: String.fromCharCode(this.roleList.length + 65),
  1949. });
  1950. },
  1951. //标记
  1952. biaoji() {
  1953. this.dialogFormVisible11 = true;
  1954. },
  1955. //取消标记
  1956. unmarktap() {
  1957. this.dialogFormVisible11 = false;
  1958. this.roleindexbiaoji = this.dshfkjsdkksodofydwfkhwdfkjh;
  1959. },
  1960. // 标记选择
  1961. biaojixuanze(index) {
  1962. this.roleindexbiaoji = index;
  1963. },
  1964. //确认标记
  1965. subMsg11() {
  1966. var num = this.roleindexbiaoji + 1;
  1967. this.$api.http
  1968. .markConsultant({
  1969. speaker: num,
  1970. id: this.isd,
  1971. customerId: this.fileId,
  1972. houseId: localStorage.getItem("houseId"),
  1973. })
  1974. .then((res) => {
  1975. this.dialogFormVisible11 = false;
  1976. this.init();
  1977. this.biaojiall();
  1978. this.$message.success("保存成功");
  1979. });
  1980. },
  1981. biaojiall() {
  1982. this.$api.http
  1983. .toMatchKeywords({
  1984. carId: this.fileId,
  1985. })
  1986. .then((res) => {});
  1987. },
  1988. // 获取用户信息
  1989. init() {
  1990. this.$api.http
  1991. .personalReceptionRecord({ customerId: this.fileId })
  1992. .then((res) => {
  1993. this.userinformationlist = res.data;
  1994. this.userinformationlist.endTime =
  1995. this.userinformationlist.endTime.substring(0, 19);
  1996. if (this.userinformationlist.calibration == 0) {
  1997. this.kehuyixiangcenterindex = 0;
  1998. } else {
  1999. this.kehuyixiangcenterindex = 1;
  2000. }
  2001. this.findCARKeywords();
  2002. this.findBannedWordsByCusId();
  2003. this.Getsthetransliteratecontent();
  2004. });
  2005. },
  2006. //常错词确认
  2007. subMsg() {
  2008. this.$refs.form.validate((valid) => {
  2009. if (valid) {
  2010. this.dialogFormVisible = false;
  2011. let sas = this.textItself.replace(
  2012. this.form.wrongWord,
  2013. this.form.correctWord
  2014. );
  2015. this.transcriptionlist[this.argtextindex].onebest = sas;
  2016. this.subWrongMsg();
  2017. }
  2018. });
  2019. },
  2020. //常错词提交
  2021. subWrongMsg() {
  2022. this.$api.http
  2023. .addCorrectWord({
  2024. correctWord: this.form.correctWord,
  2025. cupid: this.form.cupid,
  2026. wrongWord: this.form.wrongWord,
  2027. customerId: this.fileId,
  2028. houseId: localStorage.getItem("houseId"),
  2029. })
  2030. .then((res) => {
  2031. this.$message.success("保存成功");
  2032. });
  2033. },
  2034. //常错词点击
  2035. checkMsg(row, index) {
  2036. if (this.rec_index_wrongword == false) {
  2037. return;
  2038. }
  2039. this.aplayer.pause();
  2040. this.form.cupid = this.arr[this.aplayerId].id;
  2041. this.textItself = row.onebest;
  2042. let onebest = row.onebest;
  2043. this.form.wrongWord = onebest.replace(/<.*?>/gi, "");
  2044. this.dialogFormVisible = true;
  2045. this.argtextindex = index;
  2046. },
  2047. // 销讲词禁忌tab
  2048. recordclick(i) {
  2049. this.zhixingcenterindex = i;
  2050. },
  2051. // 销讲词折叠
  2052. changeshow(index) {
  2053. this.ratelist[index].show = !this.ratelist[index].show;
  2054. },
  2055. //获取销讲词违禁词
  2056. findBannedWordsByCusId() {
  2057. this.$api.http
  2058. .findBannedWordsByCusId({ cusId: this.fileId })
  2059. .then((res) => {
  2060. let list1 = res.data.SalesTalk || [];
  2061. let list2 = res.data.ProhibitedWords || [];
  2062. let level1 = []; // 一级
  2063. list1.forEach((item) => {
  2064. if (item.pid == 0) {
  2065. level1.push({
  2066. id: item.marketingId,
  2067. rate: item.fraction,
  2068. name: item.name,
  2069. percent: 0,
  2070. ratepercent: 0,
  2071. show: false,
  2072. children: [],
  2073. });
  2074. }
  2075. });
  2076. list1.forEach((item) => {
  2077. level1.forEach((el) => {
  2078. if (item.pid == el.id) {
  2079. if (item.selected == 0) {
  2080. el.ratepercent += item.fraction;
  2081. }
  2082. el.children.push({
  2083. id: item.id,
  2084. rate: item.fraction,
  2085. selected: item.selected,
  2086. name: item.name,
  2087. });
  2088. }
  2089. });
  2090. });
  2091. if (level1.length != 0) {
  2092. level1[0].show = true;
  2093. }
  2094. this.ratelist = level1;
  2095. this.prohibitedlist = list2;
  2096. });
  2097. },
  2098. //系统分析切换人工校准
  2099. customerofintention(i) {
  2100. this.kehuyixiangcenterindex = i;
  2101. this.findCARKeywords();
  2102. },
  2103. //获去系统分析,人工校准
  2104. findCARKeywords() {
  2105. this.Getintentionlist = [];
  2106. if (this.kehuyixiangcenterindex == 0) {
  2107. this.$api.http
  2108. .findCARKeywords({ customerId: this.fileId })
  2109. .then((res) => {
  2110. let newlist = res.data || [];
  2111. if (newlist.length == 0) {
  2112. this.Getintentionlist = [];
  2113. return;
  2114. } else {
  2115. newlist.forEach((item) => {
  2116. item.newchildren = [];
  2117. item.children.forEach((fut) => {
  2118. if (fut.selected == 0) {
  2119. item.newchildren.push(fut);
  2120. }
  2121. });
  2122. });
  2123. newlist.forEach((item) => {
  2124. item.children.forEach((chen) => {
  2125. if (chen.isInterval == 0) {
  2126. chen.name =
  2127. chen.name + chen.unit + "-" + chen.endName + chen.unit;
  2128. } else {
  2129. chen.name = chen.name;
  2130. }
  2131. });
  2132. });
  2133. this.Getintentionlist = newlist;
  2134. }
  2135. });
  2136. } else {
  2137. this.$api.http
  2138. .findSystemAnalysis({ customerId: this.fileId, type: 1 })
  2139. .then((res) => {
  2140. if (res.data == null) {
  2141. this.Getintentionlist = [];
  2142. return;
  2143. }
  2144. res.data.forEach((item) => {
  2145. item.newchildren = [];
  2146. item.children.forEach((fut) => {
  2147. if (fut.selected == 0) {
  2148. item.newchildren.push(fut);
  2149. }
  2150. });
  2151. });
  2152. res.data.forEach((item) => {
  2153. item.children.forEach((chen) => {
  2154. if (chen.isInterval == 0) {
  2155. chen.name =
  2156. chen.name + chen.unit + "-" + chen.endName + chen.unit;
  2157. } else {
  2158. chen.name = chen.name;
  2159. }
  2160. });
  2161. });
  2162. this.Getintentionlist = res.data;
  2163. });
  2164. }
  2165. },
  2166. //获取转写内容和播放列表
  2167. Getsthetransliteratecontent() {
  2168. this.$api.http.findByCusIdcusId({ cusId: this.fileId }).then((res) => {
  2169. let audopbj = res.data;
  2170. this.recordPath = audopbj[this.AudioIdx].recordPath;
  2171. audopbj[this.AudioIdx].audioContent != ""
  2172. ? (this.transcriptionlist = JSON.parse(
  2173. audopbj[this.AudioIdx].audioContent
  2174. ))
  2175. : (this.transcriptionlist = []);
  2176. // this.transcriptionlist=JSON.parse(audopbj[this.AudioIdx].audioContent)
  2177. this.tablist = [];
  2178. if (this.userinformationlist.yon == 0) {
  2179. this.isd = audopbj[this.AudioIdx].id;
  2180. console.log(audopbj[this.AudioIdx].speakerNum, "speakerNum");
  2181. for (var i = 0; i <= audopbj[this.AudioIdx].speakerNum; i++) {
  2182. if (i == 0) {
  2183. this.tablist.push({
  2184. name: "全部",
  2185. });
  2186. } else if (i == 1) {
  2187. this.tablist.push({
  2188. name: "A",
  2189. });
  2190. } else if (i == 2) {
  2191. this.tablist.push({
  2192. name: "B",
  2193. });
  2194. } else if (i == 3) {
  2195. this.tablist.push({
  2196. name: "C",
  2197. });
  2198. } else if (i == 4) {
  2199. this.tablist.push({
  2200. name: "D",
  2201. });
  2202. } else if (i == 5) {
  2203. this.tablist.push({
  2204. name: "E",
  2205. });
  2206. } else if (i == 6) {
  2207. this.tablist.push({
  2208. name: "F",
  2209. });
  2210. } else if (i == 7) {
  2211. this.tablist.push({
  2212. name: "G",
  2213. });
  2214. } else if (i == 8) {
  2215. this.tablist.push({
  2216. name: "H",
  2217. });
  2218. } else if (i == 9) {
  2219. this.tablist.push({
  2220. name: "I",
  2221. });
  2222. } else if (i == 10) {
  2223. this.tablist.push({
  2224. name: "J",
  2225. });
  2226. } else if (i == 11) {
  2227. this.tablist.push({
  2228. name: "K",
  2229. });
  2230. } else if (i == 12) {
  2231. this.tablist.push({
  2232. name: "L",
  2233. });
  2234. } else if (i == 13) {
  2235. this.tablist.push({
  2236. name: "M",
  2237. });
  2238. } else if (i == 14) {
  2239. this.tablist.push({
  2240. name: "N",
  2241. });
  2242. } else if (i == 15) {
  2243. this.tablist.push({
  2244. name: "O",
  2245. });
  2246. } else {
  2247. this.tablist.push({
  2248. name: "P",
  2249. });
  2250. }
  2251. }
  2252. this.roleList = this.tablist.slice(1);
  2253. if (audopbj[this.AudioIdx].speaker == null) {
  2254. this.yibiaoji = "未标记";
  2255. this.roleindexbiaoji = 0;
  2256. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  2257. } else {
  2258. this.yibiaoji = "已标记";
  2259. this.tablist[audopbj[this.AudioIdx].speaker].name =
  2260. this.tablist[audopbj[this.AudioIdx].speaker].name + "顾问";
  2261. this.roleindexbiaoji = audopbj[this.AudioIdx].speaker - 1;
  2262. this.dshfkjsdkksodofydwfkhwdfkjh =
  2263. audopbj[this.AudioIdx].speaker - 1;
  2264. }
  2265. }
  2266. this.corpusId = audopbj[this.AudioIdx].id;
  2267. this.aplayerId = this.AudioIdx;
  2268. this.aplayerLength = audopbj.length;
  2269. this.arr = res.data;
  2270. this.bofangchushihua();
  2271. });
  2272. },
  2273. tapspagek(i) {
  2274. this.roleindex = i;
  2275. },
  2276. //播放实例
  2277. bofangchushihua() {
  2278. var that = this;
  2279. this.$nextTick(() => {
  2280. this.aplayer = new APlayer({
  2281. container: document.getElementById("aplayer"),
  2282. theme: "#2671E2",
  2283. audio: [
  2284. {
  2285. url: this.recordPath,
  2286. cover:
  2287. "https://qufang.oss-cn-beijing.aliyuncs.com/recording/1626251359408.png",
  2288. },
  2289. ],
  2290. });
  2291. //结束的回调
  2292. this.aplayer.on("ended", function () {
  2293. console.log("player ended");
  2294. });
  2295. this.aplayer.on("timeupdate", function () {
  2296. that.drawActive(that.aplayer.audio.currentTime * 1000);
  2297. });
  2298. });
  2299. },
  2300. //音频播放中
  2301. drawActive(playTime) {
  2302. var that = this;
  2303. that.playNow = playTime;
  2304. $(".center2 .text").each(function (index) {
  2305. if (this.dataset.bg < playTime && playTime < this.dataset.ed) {
  2306. $(this).addClass("activecoloc");
  2307. that.$nextTick(() => {
  2308. document.querySelector(".center2").scrollTop =
  2309. $(".center2 .activecoloc")[0].offsetTop - 380;
  2310. });
  2311. } else {
  2312. $(this).removeClass("activecoloc");
  2313. }
  2314. });
  2315. },
  2316. //倍速更改
  2317. aplayerSpeed(num) {
  2318. this.aplayer.audio.playbackRate = num;
  2319. this.aplayerSpeedNum = num;
  2320. },
  2321. //格式化时间
  2322. formatTime(num) {
  2323. num = parseInt(num / 1000);
  2324. //格式化时间格式
  2325. num = num.toFixed(0);
  2326. let second = num % 60;
  2327. if (second < 10) second = "0" + second;
  2328. let min = Math.floor(num / 60);
  2329. if (min < 10) min = "0" + min;
  2330. return min + ":" + second;
  2331. },
  2332. //下载
  2333. download() {
  2334. console.log(this.recordPath);
  2335. // this.$api.api.filedownload({videoSrc:this.recordPath}).then((res) => {
  2336. // console.log(res);
  2337. // })
  2338. // window.location.href =this.recordPath
  2339. this.exportMethodPost("/autoSR/zk/file/filedownload", "接待详情", {
  2340. videoSrc: this.recordPath,
  2341. });
  2342. },
  2343. exportMethodPost(url, name, data = {}) {
  2344. axios({
  2345. method: "get",
  2346. url: url,
  2347. params: data,
  2348. responseType: "blob",
  2349. })
  2350. .then((res) => {
  2351. let blob = new Blob([res], { type: "audio/*" });
  2352. let date = new Date();
  2353. let time = date.toLocaleDateString();
  2354. // console.log(time, "时间");
  2355. if ("download" in document.createElement("a")) {
  2356. const link = document.createElement("a");
  2357. link.style.display = "none";
  2358. link.href = URL.createObjectURL(blob);
  2359. // link.download = res.headers['content-disposition'] //下载后文件名
  2360. link.download = (name || "导出文件") + time + ".mp3"; //下载的文件名
  2361. document.body.appendChild(link);
  2362. link.click();
  2363. document.body.removeChild(link);
  2364. } else {
  2365. // console.log("--------------------jingla")
  2366. let fileName = (name || "导出文件") + time + ".mp3"; //下载的文件名
  2367. navigator.msSaveBlob(blob, fileName);
  2368. }
  2369. })
  2370. .catch((error) => {
  2371. // Message.error({
  2372. // message: '网络连接错误'
  2373. // })
  2374. console.log(error);
  2375. });
  2376. },
  2377. },
  2378. };
  2379. </script>
  2380. <style scoped lang="scss" >
  2381. #avue-view {
  2382. overflow: hidden;
  2383. }
  2384. #zxldiv {
  2385. overflow-y: scroll;
  2386. // height: 100%;
  2387. height: calc(80vh - 248px);
  2388. }
  2389. .biaotibox {
  2390. width: 100%;
  2391. height: 30px;
  2392. display: flex;
  2393. font-size: 20px;
  2394. font-weight: 600;
  2395. line-height: 20px;
  2396. }
  2397. .biaotibox > div:nth-of-type(1) {
  2398. width: 50%;
  2399. }
  2400. .biaotibox > div:nth-of-type(2) {
  2401. width: 50%;
  2402. font-size: 30px;
  2403. text-align: right;
  2404. }
  2405. .center2 {
  2406. padding-left: 10px;
  2407. padding-right: 10px;
  2408. width: 100%;
  2409. // height: 100%;
  2410. height: calc(80vh - 265px);
  2411. overflow-y: scroll;
  2412. }
  2413. .box-center {
  2414. width: 100%;
  2415. height: 100%;
  2416. padding: 15px;
  2417. min-width: 1000px;
  2418. padding-bottom: 100px;
  2419. background: #ffffff;
  2420. }
  2421. .inputclass {
  2422. width: 100%;
  2423. height: 32px;
  2424. line-height: 32px;
  2425. background: #ffffff;
  2426. border-radius: 2px 0px 0px 2px;
  2427. text-indent: 6px;
  2428. border: 1px solid #e0e0e0;
  2429. }
  2430. .inputclass2 {
  2431. width: 70px;
  2432. height: 32px;
  2433. line-height: 32px;
  2434. background: #2671e2;
  2435. border-radius: 4px 4px 4px 4px;
  2436. color: #ffffff;
  2437. text-align: center;
  2438. }
  2439. // 播放
  2440. .text {
  2441. width: 100%;
  2442. font-size: 12px;
  2443. line-height: 20px;
  2444. display: flex;
  2445. align-items: center;
  2446. margin: 18px 0px;
  2447. position: relative;
  2448. }
  2449. .text[data-speaker="2"],
  2450. .text[data-speaker="4"],
  2451. .text[data-speaker="6"] {
  2452. flex-direction: row-reverse;
  2453. text-align: left;
  2454. }
  2455. .content123 div {
  2456. // color:#ffffff;
  2457. color: #32363d;
  2458. background: #f4f5f7;
  2459. font-size: 14px;
  2460. padding: 5px 14px;
  2461. // background:#3ca953;
  2462. border-radius: 8px;
  2463. margin: 0 12px;
  2464. line-height: 1.5;
  2465. max-width: 365px;
  2466. }
  2467. .text[data-speaker="2"].activecoloc .content123 div,
  2468. .text[data-speaker="4"].activecoloc .content123 div,
  2469. .text[data-speaker="6"].activecoloc .content123 div {
  2470. color: #ff7538;
  2471. }
  2472. .activecoloc .content123 div {
  2473. color: #38fff1;
  2474. // color:#FF7538;
  2475. }
  2476. .center2 .text .avatar {
  2477. width: 34px;
  2478. height: 34px;
  2479. background-color: #ccc;
  2480. border-radius: 50%;
  2481. // margin-left: 15px;
  2482. display: flex;
  2483. justify-content: center;
  2484. align-items: center;
  2485. }
  2486. .center2 .text .avatar img {
  2487. width: 28px;
  2488. height: 28px;
  2489. display: block;
  2490. }
  2491. .center2 .text .avatar div {
  2492. width: 100%;
  2493. height: 100%;
  2494. text-align: center;
  2495. line-height: 38px;
  2496. color: #ffffff;
  2497. font-size: 24px;
  2498. }
  2499. .aplayerSpeedFont {
  2500. color: #2671e2;
  2501. }
  2502. .center3 {
  2503. padding-left: 10px;
  2504. padding-right: 10px;
  2505. padding-top: 10px;
  2506. }
  2507. .center3 .text {
  2508. width: 100%;
  2509. font-size: 12px;
  2510. line-height: 20px;
  2511. display: flex;
  2512. align-items: center;
  2513. margin: 26px 0px;
  2514. position: relative;
  2515. }
  2516. .center3 .text .avatar {
  2517. width: 38px;
  2518. height: 38px;
  2519. /*background-color: #f2f2f2;*/
  2520. background-color: #ccc;
  2521. border-radius: 50%;
  2522. margin-left: 15px;
  2523. display: flex;
  2524. justify-content: center;
  2525. align-items: center;
  2526. }
  2527. .center3 .text .avatar img {
  2528. width: 28px;
  2529. height: 28px;
  2530. display: block;
  2531. }
  2532. .center3 .text .avatar div {
  2533. width: 100%;
  2534. height: 100%;
  2535. text-align: center;
  2536. line-height: 38px;
  2537. color: #ffffff;
  2538. font-size: 24px;
  2539. }
  2540. .buttonzu {
  2541. position: absolute;
  2542. left: 70px;
  2543. top: -20px;
  2544. }
  2545. .text[data-speaker="2"] .buttonzu,
  2546. .text[data-speaker="4"] .buttonzu,
  2547. .text[data-speaker="6"] .buttonzu {
  2548. position: absolute;
  2549. right: 70px;
  2550. top: -20px;
  2551. text-align: right;
  2552. }
  2553. //指标执行率
  2554. .zxlBox {
  2555. width: 100%;
  2556. .zxlLev1 {
  2557. width: 100%;
  2558. height: 40px;
  2559. line-height: 40px;
  2560. display: flex;
  2561. align-items: center;
  2562. background: #f8f8f8;
  2563. font-size: 15px;
  2564. }
  2565. .zxlLev1box {
  2566. text-indent: 20px;
  2567. }
  2568. .zxlLev2 {
  2569. width: 100%;
  2570. height: 40px;
  2571. line-height: 40px;
  2572. display: flex;
  2573. border-bottom: 1px solid #f8f8f8;
  2574. font-size: 14px;
  2575. .zxlzx {
  2576. width: 60px;
  2577. height: 24px;
  2578. line-height: 24px;
  2579. background: #2671e2;
  2580. text-align: center;
  2581. color: #ffffff;
  2582. border-radius: 4px;
  2583. }
  2584. .zxlzx2 {
  2585. width: 60px;
  2586. height: 24px;
  2587. line-height: 24px;
  2588. background: #f2f2f2;
  2589. text-align: center;
  2590. color: #999999;
  2591. border-radius: 4px;
  2592. }
  2593. }
  2594. .zxlLev2tit {
  2595. line-height: 40px;
  2596. text-indent: 20px;
  2597. }
  2598. }
  2599. //客户意向
  2600. .intentionBox {
  2601. width: 94%;
  2602. margin: 0 auto;
  2603. padding-bottom: 12px;
  2604. border-bottom: 1px solid #e0e0e0;
  2605. }
  2606. .intentionChe {
  2607. width: 100%;
  2608. display: flex;
  2609. flex-wrap: wrap;
  2610. .intentionview {
  2611. padding: 4px 10px;
  2612. border: 1px solid #e0e0e0;
  2613. background: #e0e0e0;
  2614. margin-left: 6px;
  2615. border-radius: 6px;
  2616. font-size: 14px;
  2617. margin-top: 10px;
  2618. }
  2619. }
  2620. .intentionName {
  2621. font-size: 16px;
  2622. margin-top: 10px;
  2623. }
  2624. .intentionChe div {
  2625. padding: 4px 10px;
  2626. background: #f4f8fd;
  2627. margin-left: 6px;
  2628. border-radius: 6px;
  2629. color: #2671e2;
  2630. font-size: 14px;
  2631. margin-top: 10px;
  2632. }
  2633. .intentionChe2 {
  2634. width: 100%;
  2635. display: flex;
  2636. flex-wrap: wrap;
  2637. }
  2638. .intentionChe2 div {
  2639. padding: 4px 10px;
  2640. border: 1px solid #e0e0e0;
  2641. margin-left: 6px;
  2642. border-radius: 6px;
  2643. font-size: 14px;
  2644. margin-top: 10px;
  2645. }
  2646. .topbox {
  2647. width: 100%;
  2648. height: 140px;
  2649. display: flex;
  2650. .topzuo {
  2651. width: 75%;
  2652. min-width: 700px;
  2653. height: 140px;
  2654. background: #ffffff;
  2655. border: 1px solid #e0e0e0;
  2656. padding: 10px;
  2657. position: relative;
  2658. .title {
  2659. color: #32363d;
  2660. .span1 {
  2661. font-size: 16px;
  2662. font-weight: 600;
  2663. margin-left: 2px;
  2664. }
  2665. .span2 {
  2666. font-size: 14px;
  2667. margin-left: 10px;
  2668. }
  2669. .span3 {
  2670. font-size: 16px;
  2671. margin-left: 2px;
  2672. }
  2673. }
  2674. }
  2675. .topyou {
  2676. width: 24%;
  2677. min-width: 300px;
  2678. height: 140px;
  2679. padding: 10px;
  2680. background: #ffffff;
  2681. border: 1px solid #e0e0e0;
  2682. margin-left: 20px;
  2683. }
  2684. }
  2685. .input {
  2686. width: 94%;
  2687. height: 32px;
  2688. line-height: 32px;
  2689. background: #ffffff;
  2690. border-radius: 2px 0px 0px 2px;
  2691. text-indent: 6px;
  2692. border: 1px solid #e0e0e0;
  2693. }
  2694. .input2 {
  2695. width: 70px;
  2696. height: 32px;
  2697. line-height: 32px;
  2698. background: #2671e2;
  2699. border-radius: 0px 2px 2px 0px;
  2700. color: #ffffff;
  2701. text-align: center;
  2702. }
  2703. .topbox1 {
  2704. width: 100%;
  2705. display: flex;
  2706. margin-top: 12px;
  2707. height: calc(80vh - 156px);
  2708. .topzuo {
  2709. width: 75%;
  2710. min-width: 700px;
  2711. height: 100%;
  2712. display: flex;
  2713. .topzuo-zuo {
  2714. width: 60%;
  2715. height: 100%;
  2716. background: #ffffff;
  2717. border: 1px solid #e0e0e0;
  2718. .zuo-titbox {
  2719. width: 100%;
  2720. height: 100px;
  2721. border-bottom: 1px solid #e0e0e0;
  2722. .searchbox {
  2723. width: 100%;
  2724. height: 50px;
  2725. display: flex;
  2726. margin-top: 6px;
  2727. justify-content: center;
  2728. align-items: center;
  2729. .searchbutt {
  2730. width: 80px;
  2731. height: 32px;
  2732. line-height: 32px;
  2733. background: #2671e2;
  2734. border-radius: 2px;
  2735. color: #ffffff;
  2736. // margin-left: 20px;
  2737. text-align: center;
  2738. }
  2739. }
  2740. }
  2741. }
  2742. .topzuo-you {
  2743. width: 39%;
  2744. height: 100%;
  2745. margin-left: 18px;
  2746. background: #ffffff;
  2747. border: 1px solid #e0e0e0;
  2748. }
  2749. }
  2750. .topyou {
  2751. width: 24%;
  2752. min-width: 300px;
  2753. height: 100%;
  2754. background: #ffffff;
  2755. border: 1px solid #e0e0e0;
  2756. margin-left: 20px;
  2757. }
  2758. }
  2759. .roleindexclass {
  2760. background: #2671e2;
  2761. color: #ffffff;
  2762. }
  2763. .headboxbott {
  2764. width: 100%;
  2765. height: 50px;
  2766. display: flex;
  2767. align-items: center;
  2768. }
  2769. .headovfu {
  2770. flex: 1;
  2771. height: 40px;
  2772. overflow: hidden;
  2773. margin-top: 10px;
  2774. }
  2775. .headpade {
  2776. width: 100px;
  2777. height: 40px;
  2778. display: flex;
  2779. justify-content: center;
  2780. align-items: center;
  2781. }
  2782. .biaoji {
  2783. min-width: 70px;
  2784. height: 30px;
  2785. background: #e6625b;
  2786. border-radius: 24px;
  2787. text-align: center;
  2788. line-height: 30px;
  2789. color: #ffffff;
  2790. }
  2791. .biaoji1 {
  2792. width: 70px;
  2793. height: 30px;
  2794. text-align: center;
  2795. line-height: 30px;
  2796. margin-left: 10px;
  2797. flex-shrink: 0;
  2798. border-radius: 4px;
  2799. }
  2800. .inner-container {
  2801. overflow-x: scroll;
  2802. height: 40px;
  2803. }
  2804. /*滚动条样式*/
  2805. .inner-container::-webkit-scrollbar {
  2806. height: 4px;
  2807. }
  2808. .inner-container::-webkit-scrollbar-thumb {
  2809. border-radius: 10px;
  2810. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  2811. background: rgba(0, 0, 0, 0.2);
  2812. }
  2813. .inner-container::-webkit-scrollbar-track {
  2814. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  2815. border-radius: 0;
  2816. background: rgba(0, 0, 0, 0.1);
  2817. }
  2818. .aplayer {
  2819. box-shadow: none;
  2820. /*width: 80%;*/
  2821. width: 95.3%;
  2822. }
  2823. .aplayer-author {
  2824. display: none;
  2825. }
  2826. .aplayerSpeed {
  2827. display: flex;
  2828. /*justify-content: space-around;*/
  2829. justify-content: space-between;
  2830. padding: 0 10px;
  2831. font-size: 14px;
  2832. color: #999;
  2833. /*width: 616px;*/
  2834. width: 86.5%;
  2835. margin: 0 auto;
  2836. position: absolute;
  2837. left: 78px;
  2838. bottom: 12px;
  2839. }
  2840. /deep/.aplayer-pic {
  2841. width: 60px !important;
  2842. height: 60px !important;
  2843. }
  2844. /deep/.aplayer-music {
  2845. display: none !important;
  2846. }
  2847. .aplayer-controller {
  2848. margin-top: 15px;
  2849. }
  2850. .aplayerSpeedFont {
  2851. color: #2671e2;
  2852. }
  2853. /deep/.aplayer-info {
  2854. padding: 22px 7px 0px 10px;
  2855. }
  2856. .pingfenbox {
  2857. width: 100%;
  2858. height: 46px;
  2859. line-height: 46px;
  2860. border-bottom: 1px solid #e0e0e0;
  2861. display: flex;
  2862. }
  2863. .pingfenbox div {
  2864. flex: 1;
  2865. text-align: center;
  2866. font-size: 16px;
  2867. }
  2868. .activecllasscet {
  2869. color: #2671e2;
  2870. border-bottom: 2px solid #2671e2;
  2871. }
  2872. .viewclace {
  2873. height: 30px;
  2874. text-align: center;
  2875. line-height: 30px;
  2876. border-radius: 14px;
  2877. margin-right: 34px;
  2878. margin-top: 16px;
  2879. font-size: 16px;
  2880. border: 1px solid;
  2881. padding-left: 18px;
  2882. padding-right: 18px;
  2883. }
  2884. .bosdttom {
  2885. color: #ffffff;
  2886. background-color: #2671e2;
  2887. }
  2888. #zhezhao {
  2889. width: 100%;
  2890. height: 100vh;
  2891. position: fixed;
  2892. top: 0;
  2893. left: 0;
  2894. z-index: 1000;
  2895. opacity: 0.5;
  2896. background-color: #666666;
  2897. }
  2898. .auDivhhh {
  2899. width: 600px;
  2900. height: 540px;
  2901. border-radius: 4px;
  2902. z-index: 1003;
  2903. position: fixed;
  2904. left: 50%;
  2905. top: 50%;
  2906. transform: translate(-50%, -50%);
  2907. background: #ffffff;
  2908. }
  2909. .searchbox54 .avatar img {
  2910. /*width: 53px;*/
  2911. /*height: 53px;*/
  2912. width: 32px;
  2913. height: 32px;
  2914. display: block;
  2915. }
  2916. .searchbox54 .avatar {
  2917. width: 40px;
  2918. height: 40px;
  2919. /*background-color: #f2f2f2;*/
  2920. background-color: #ccc;
  2921. border-radius: 50%;
  2922. margin-left: 5px;
  2923. display: flex;
  2924. justify-content: center;
  2925. align-items: center;
  2926. }
  2927. .searchbox54 {
  2928. width: 100%;
  2929. min-height: 72px;
  2930. border-bottom: 1px solid #e0e0e0;
  2931. display: flex;
  2932. font-size: 16px;
  2933. color: #666666;
  2934. padding-bottom: 20px;
  2935. }
  2936. .searchbox54 > div:nth-of-type(1) {
  2937. width: 17%;
  2938. height: 100%;
  2939. text-align: center;
  2940. margin-top: 18px;
  2941. }
  2942. .searchbox54 > div:nth-of-type(2) {
  2943. width: 83%;
  2944. margin-top: 20px;
  2945. }
  2946. .adjskdjroleindexclass {
  2947. background: #3ca953 !important;
  2948. color: #ffffff !important;
  2949. }
  2950. </style>