AI销管
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.
 
 
 
 

1623 lines
39 KiB

  1. <template>
  2. <view class="translation">
  3. <!-- 暂时注释,暂缓使用 -->
  4. <!-- <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
  5. display: flex;align-items: center;" @tap="toKeywordsearch()">
  6. <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image>
  7. <text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text>
  8. </view> -->
  9. <view class="top" style="margin-top: 30rpx;">
  10. <view class="title">
  11. <view class="call_record_time">{{date}}</view>
  12. </view>
  13. <view class="call_record_time_one">接待时长 {{alltimeStr}}
  14. <u-icon name="list-dot" color="#333" size="48" @click="showFile"></u-icon>
  15. <view class="audoioyouxiao" @click="alllogo()" v-if="permissions.commonly2">
  16. {{userlistobj.validInvalidName||''}}
  17. </view>
  18. <view class="file-change" v-if="isshowFile">
  19. <view class="file-item" @click="filechange(item, index)"
  20. :class="csdFileindex == index ? 'fileactive' : ''" v-for="(item,index) in luyinList"
  21. :key="index">录音文件{{index+1}}</view>
  22. </view>
  23. <view class="diangweitupian" v-if="jiaoseshow">
  24. <image v-if="status==1" @click="tappick()" style="width: 100%;height: 100%;"
  25. src="../../static/images/pike.png" mode=""></image>
  26. <image v-if="status==0" @click="notappick()" style="width: 100%;height: 100%;"
  27. src="../../static/images/nopike.png" mode=""></image>
  28. </view>
  29. </view>
  30. <zaudio theme="theme4"></zaudio>
  31. </view>
  32. <scroll-view :scroll-top="scrollTop" lower-threshold='20px' @scrolltolower="ltolower()"
  33. :scroll-into-view="scrollId" scroll-y="true" class="text scroll-Y">
  34. <!-- tab 栏切换 -->
  35. <view class="tab-box" id="top">
  36. <view class="yinpinshibie" @click="changeTab(0)" :class="{active: tab==0}">
  37. 音频识别
  38. </view>
  39. <view class="rate" @click="changeTab(1)" :class="{active: tab==1}">
  40. 评分
  41. </view>
  42. </view>
  43. <!-- 音频识别模块 -->
  44. <view v-if="tab==0">
  45. <!-- 聊天记录-->
  46. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  47. <view :id="'dialog'+i" class="fileName">录音文件
  48. <!-- {{i+1}} -->
  49. </view>
  50. <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
  51. :class="{active: Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow && i==0}"
  52. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
  53. <view class="avatar">
  54. <text :style="[SPEAKERSTYLE(item.speaker)]">{{ item.speaker | toCapital }}</text>
  55. </view>
  56. <view class="content">
  57. <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view>
  58. <view class="tankuangcss" v-if="item.isshow">
  59. <view @click="clickcopy()"
  60. style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
  61. </view>
  62. <view @click="Oftenthewrongword()" v-if="permissions.commonly4"
  63. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
  64. </view>
  65. <view @click="Addtheessence()" v-if="permissions.commonly3"
  66. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
  67. </view>
  68. <view @click="clickbofang(dialog.backindex,item)"
  69. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 评分模块 -->
  77. <view v-if="tab==1" class="rate-box">
  78. <view class="title">总执行率 {{totalRate}}%</view>
  79. <view v-for="(item,index) in ratelist" :key="index" class="u-m-b-14">
  80. <view class="level1">
  81. <view class="level-name u-line-1">
  82. {{item.name}}
  83. </view>
  84. <view class="level-progress">
  85. <view class="color" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  86. </view>
  87. <view class="level-rate">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  88. <image v-if="!item.show" class="arrow rotatearrow" @click="changeshow(item,1)"
  89. src="/static/images/down.png" mode="" />
  90. <image v-else class="arrow" @click="changeshow(item,0)" src="/static/images/up.png" mode="" />
  91. </view>
  92. <view class="level1-subbox" v-if="item.show">
  93. <view class="sub-name" v-for="(subitem,i) in item.children" :key="i">
  94. <view class="subitem-name u-line-1">{{subitem.name}}</view>
  95. <image class="checkimg" v-if="!subitem.selected" src="/static/images/rate-checked.png"
  96. mode="" />
  97. <image class="checkimg" v-else src="/static/images/rate-nocheck.png" mode="" />
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </scroll-view>
  103. <!-- 回到顶部 -->
  104. <view class="backTop" @click="gotoTop">
  105. <image src="/static/images/backTop.png" mode=""></image>
  106. </view>
  107. <!-- 加入常错词 -->
  108. <view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view>
  109. <u-modal v-model="isshow2" title="添加常错词" :show-cancel-button="true" @cancel="Cancelout" @confirm="Confirmtheexit">
  110. <view class="tian-view">
  111. <viwe class="tian-view-t1"></viwe>
  112. <viwe class="tian-view-t2">常错词:</viwe>
  113. <viwe class="tian-view-t3">
  114. <textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
  115. </viwe>
  116. </view>
  117. <view class="tian-view" style="margin-bottom: 74rpx;">
  118. <viwe class="tian-view-t1"></viwe>
  119. <viwe class="tian-view-t2">正确词:</viwe>
  120. <viwe class="tian-view-t3">
  121. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  122. </viwe>
  123. </view>
  124. </u-modal>
  125. <!-- <view class="bounced" v-if="isshow2">
  126. <view class="tian-view">
  127. <viwe class="tian-view-t1"></viwe>
  128. <viwe class="tian-view-t2">常错词:</viwe>
  129. <viwe class="tian-view-t3">
  130. <input type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
  131. </viwe>
  132. </view>
  133. <view class="tian-view">
  134. <viwe class="tian-view-t1"></viwe>
  135. <viwe class="tian-view-t2">正确词:</viwe>
  136. <viwe class="tian-view-t3">
  137. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  138. </viwe>
  139. </view>
  140. <view class="bounced3">
  141. <view class="bounced3-1" @tap="Cancelout">取消</view>
  142. <view class="bounced3-2" @tap="Confirmtheexit">确认</view>
  143. </view>
  144. </view> -->
  145. <!-- 加精华 -->
  146. <view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view>
  147. <view class="bounced" v-if="isshow3">
  148. <view class="jiajinghuatit">加精华</view>
  149. <view style="width: 100%;text-indent: 20rpx;font-size: 28rpx;">选择标签</view>
  150. <view class="jiajinghuaview">
  151. <view class="jighuaview2" v-for="(item,index) in biaoqianlist" :key="index"
  152. :class="biaoqianindex == index ? 'biaoqiantom' : ''">
  153. <view class="view1-text" @click="tapbiaoqianclisck(index)">{{item.name}}</view>
  154. </view>
  155. </view>
  156. <view class="bounced3">
  157. <view class="bounced3-1" @tap="Cancelout2">取消</view>
  158. <view class="bounced3-2" @tap="Confirmtheexit2">确认</view>
  159. </view>
  160. </view>
  161. <view class="zhezhoa" v-if="effective"></view>
  162. <view class="bounced" v-if="effective">
  163. <view class="jiajinghuatit">选择</view>
  164. <view>
  165. <view class="uni-list">
  166. <radio-group @change="radioChange">
  167. <label style="display: flex;align-items: center;font-size: 30rpx;
  168. width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value">
  169. <view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view>
  170. <view style="width: 80rpx;">
  171. <radio :value="item.value" :checked="index == effectiveindex" />
  172. </view>
  173. </label>
  174. </radio-group>
  175. </view>
  176. <view v-if="effectiveindex==4">
  177. <textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" />
  178. </view>
  179. </view>
  180. <view class="bounced3">
  181. <view class="bounced3-1" @click="effective=false">取消</view>
  182. <view class="bounced3-2" @click="$noMultipleClicks(effectiveAdd)">确认</view>
  183. </view>
  184. </view>
  185. <u-toast ref="uToast" />
  186. </view>
  187. </template>
  188. <script>
  189. var util = require("../../utils/util.js");
  190. var config = require("../../config");
  191. import zaudio from '@/components/uniapp-zaudio/zaudio';
  192. export default {
  193. components: {
  194. zaudio
  195. },
  196. data() {
  197. return {
  198. noClick: true,
  199. recordPath: "",
  200. customerId: "",
  201. luyinList: [], //录音文件
  202. dialogList: [], //录音识别列表
  203. csdFileindex: 0,
  204. isshowFile: false, //录音列表隐藏
  205. date: "", //年月日
  206. tab: 0, // 默认是音频识别
  207. scrollTop: 0,
  208. scrollId: "",
  209. playNow: 0,
  210. alltimeStr: "00:00:00",
  211. ratelist: [], //评分列表
  212. totalRate: "",
  213. thewrongword: "", //错误词
  214. reswrongword: "", //正确词
  215. isshow2: false,
  216. messagelisy: [],
  217. isshow3: false,
  218. biaoqianlist: [],
  219. biaoqianindex: 0,
  220. changanitem: {},
  221. duihuawenjianid: "",
  222. biaoqianid: "",
  223. status: 0,
  224. num: 0, //上拉 转写文件下标
  225. Bnum: 0, //下拉 转写文件下标
  226. itemobj: {},
  227. buildingID: '',
  228. userlistobj: {},
  229. effective: false,
  230. effectiveindex: '0',
  231. effectiveitems: [{
  232. value: '1',
  233. name: '没电指派无录音',
  234. checked: true
  235. },
  236. {
  237. value: '2',
  238. name: '离线指派无录音',
  239. },
  240. {
  241. value: '3',
  242. name: '系统测试误操作'
  243. },
  244. {
  245. value: '4',
  246. name: '非接访场景录音'
  247. },
  248. {
  249. value: '5',
  250. name: '其他'
  251. }
  252. ],
  253. effectiveitext: '',
  254. textItself: '',
  255. argtextindex1: 0,
  256. argtextindex2: 0,
  257. permissions: {
  258. commonly2: false,
  259. commonly3: false,
  260. commonly4: false,
  261. },
  262. ACTION: Symbol('zaudios'), // 唯一值区分每个页面的方法
  263. isPageHide: false, // 是否息屏
  264. isNum:false
  265. };
  266. },
  267. onLoad(options) {
  268. this.status = options.status;
  269. this.customerId = options.customerId;
  270. this.itemobj = uni.getStorageSync('searchobj');
  271. this.stateisshow = options.stateisshow;
  272. this.$zaudio.autoPlay = true
  273. //注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响;
  274. this.$zaudio.on('stop', this.ACTION, () => {
  275. console.log('我是强制暂停或关闭小程序音频浮窗触发的')
  276. })
  277. this.$zaudio.on('seek', this.ACTION, (time) => {
  278. this.sliderChangeComplate(this.TIMEEVENT(time))
  279. })
  280. this.$zaudio.on('playing', this.ACTION, (obj) => {
  281. this.TimeUpdate(this.TIMEEVENT(obj.current))
  282. })
  283. this.$zaudio.on('ended', this.ACTION, e => {
  284. this.$nextTick(() => {
  285. this.scrollId = "";
  286. })
  287. this.qeihuanwenjian()
  288. })
  289. this.$zaudio.on('error', this.ACTION, e => {
  290. })
  291. uni.$on('DETAILSINIT', info => {
  292. this.init(info)
  293. })
  294. },
  295. onShow() {
  296. //实时渲染当前的播放状态
  297. this.$zaudio.syncRender()
  298. let newmenulist = uni.getStorageSync('weapp_session_Menu_data');
  299. this.permissions.commonly2 = newmenulist.jdwxbj; //1 接待无效标记 jdwxbj
  300. this.permissions.commonly3 = newmenulist.swyxal; //1 设为优秀案例 swyxal
  301. this.permissions.commonly4 = newmenulist.ccc; // 常错词 ccc
  302. this.buildingID = uni.getStorageSync('buildingID').id;
  303. if (this.stateisshow == 2) {
  304. var info = this.itemobj;
  305. }
  306. this.gituserlist()
  307. !this.isPageHide && this.init(info)
  308. },
  309. onHide() {
  310. this.isPageHide = true
  311. },
  312. onUnload() {
  313. //卸载不需要的业务和获取播放状态的业务,提高页面性能
  314. this.$zaudio.off('seek', this.ACTION);
  315. this.$zaudio.off('stop', this.ACTION);
  316. this.$zaudio.off('playing', this.ACTION);
  317. this.$zaudio.off('ended', this.ACTION);
  318. this.$zaudio.off('error', this.ACTION);
  319. },
  320. methods: {
  321. effectiveAdd() {
  322. if (this.effectiveindex == 4) {
  323. if (this.effectiveitext.length == 0) {
  324. uni.showToast({
  325. title: '备注不能为空',
  326. icon: "none",
  327. duration: 2000
  328. });
  329. return
  330. }
  331. }
  332. this.effective = false;
  333. let parames = {
  334. id: this.customerId,
  335. validInvalid: '',
  336. validInvalid: 1,
  337. invalidReason: Number(this.effectiveindex) + 1,
  338. invalidNote: this.effectiveitext
  339. }
  340. this.$u.post("/customer/updateValidInvalid", parames).then(res => {
  341. console.log(res)
  342. this.gituserlist()
  343. })
  344. },
  345. radioChange(evt) {
  346. this.effectiveitext = "";
  347. for (let i = 0; i < this.effectiveitems.length; i++) {
  348. if (this.effectiveitems[i].value === evt.detail.value) {
  349. this.effectiveindex = i;
  350. break;
  351. }
  352. }
  353. },
  354. //标记
  355. alllogo() {
  356. let msg = '';
  357. var that = this;
  358. if (this.userlistobj.validInvalid != 0) {
  359. msg = '是否标记为"有效录音"?';
  360. uni.showModal({
  361. title: '提示',
  362. content: msg,
  363. success: (res) => {
  364. if (that.noClick) {
  365. that.noClick= false;
  366. if (res.confirm) {
  367. let parames = {
  368. id: this.customerId,
  369. validInvalid: '',
  370. invalidReason: 0
  371. }
  372. if (this.userlistobj.validInvalid == 0) {
  373. parames.validInvalid = 1;
  374. } else {
  375. parames.validInvalid = 0;
  376. }
  377. this.$u.post("/customer/updateValidInvalid", parames).then(res => {
  378. console.log(res)
  379. this.gituserlist()
  380. })
  381. }
  382. setTimeout(()=> {
  383. that.noClick= true;
  384. }, 2000)
  385. }
  386. }
  387. });
  388. } else {
  389. this.effective = true;
  390. }
  391. },
  392. //获取用户信息
  393. gituserlist() {
  394. this.$u.get("/matchKeywords/personalReceptionRecord", {
  395. customerId: this.customerId
  396. }).then(res => {
  397. try {
  398. res.endTime1 = res.endTime.substring(0, 19);
  399. this.userlistobj = res;
  400. } catch(e) {
  401. console.log(e)
  402. }
  403. })
  404. },
  405. toKeywordsearch() {
  406. this.stateisshow = 1;
  407. uni.navigateTo({
  408. url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&status=" + this.status +
  409. "&skpl=" + "1" + '$UpDateEvent=DETAILSINIT'
  410. })
  411. },
  412. TimeUpdate(currentTime) {
  413. this.playNow = Number(currentTime)
  414. if (this.dialogList.length == 0) {
  415. return
  416. } else {
  417. const message = this.dialogList[0].message;
  418. if (!message) return
  419. for (let i = 0; i < message.length; i++) {
  420. if ((Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed / 1000))) {
  421. console.log(message[i])
  422. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  423. break;
  424. }
  425. if (i < message.length - 1 && Math.floor(message[i].ed / 1000) < this.playNow && this.playNow < Math.floor(message[i + 1].bg / 1000)) {
  426. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  427. break;
  428. }
  429. }
  430. }
  431. this.$forceUpdate()
  432. },
  433. init(info) {
  434. const parames = {
  435. pageNum: 1,
  436. pageSize: 100,
  437. query: {
  438. customerId: this.customerId
  439. }
  440. }
  441. this.$u.post("/corpus/findByPage", parames).then(res => {
  442. if (res && res.length) {
  443. let alltime = 1;
  444. res.forEach(item => {
  445. item.recordDuration = item.recordDuration / 1
  446. alltime += item.recordDuration
  447. })
  448. this.recordDuration = this.getTime(res[0].recordDuration)
  449. this.alltimeStr = this.getTime(alltime)
  450. if (info) {
  451. res.forEach((item, index) => {
  452. console.log(item, '打印音频列表内容')
  453. if (item.id == info.id) {
  454. this.luyinList = res;
  455. this.csdFileindex = index;
  456. this.recordPath = res[index].recordPath
  457. this.date = res[index].receptionTime;
  458. this.isshowFile = false;
  459. this.getCorpusAnalysis(info);
  460. var itc = info.bg / 1000
  461. this.adasdasdasd(itc)
  462. }
  463. })
  464. } else {
  465. this.recordPath = res[0].recordPath
  466. this.date = res[0].receptionTime
  467. this.luyinList = res;
  468. this.getCorpusAnalysis()
  469. }
  470. this.zyAudio()
  471. }
  472. })
  473. },
  474. //搜索跳转
  475. adasdasdasd(e) {
  476. this.stepPlay(e)
  477. },
  478. //下一页
  479. ltolower() {
  480. var lengthcz = this.luyinList.length - 1;
  481. if (this.num >= lengthcz) {
  482. uni.showToast({
  483. title: '到底了',
  484. duration: 2000
  485. });
  486. return
  487. } else {
  488. this.num = this.num + 1;
  489. let obj = {
  490. corpusId: this.luyinList[this.num].id,
  491. customerId: this.customerId,
  492. }
  493. this.$u.get(config.service.getCorpusAnalysis, obj).then(data => {
  494. console.log(data)
  495. if (!data.audioContent) {
  496. setTimeout(function() {}, 2000);
  497. } else {
  498. const jsonInfo = JSON.parse(data.audioContent);
  499. this.dialogList.push({
  500. message: jsonInfo,
  501. backindex: this.num
  502. });
  503. this.dialogList.forEach((asd, idx) => {
  504. asd.message.forEach((qwe, inde) => {
  505. qwe.isshow = false;
  506. })
  507. })
  508. }
  509. uni.hideLoading();
  510. }).catch(e => {
  511. uni.hideLoading();
  512. })
  513. }
  514. },
  515. // 取消全部加精
  516. notappick() {
  517. uni.showModal({
  518. title: '提示',
  519. content: '确认取消加精?',
  520. success: (res) => {
  521. if (res.confirm) {
  522. console.log('用户点击确定');
  523. let params = {
  524. carId: this.customerId,
  525. }
  526. this.$u.get(config.service.delATD, params).then(data => {
  527. console.log(data)
  528. this.status = 1
  529. uni.showToast({
  530. title: data.message,
  531. duration: 2000
  532. });
  533. })
  534. } else if (res.cancel) {
  535. console.log('用户点击取消');
  536. }
  537. }
  538. });
  539. },
  540. //全部加精
  541. tappick(i) {
  542. uni.showModal({
  543. title: '提示',
  544. content: '确认加精?',
  545. success: (res) => {
  546. if (res.confirm) {
  547. console.log('用户点击确定');
  548. let objdata = {
  549. "carId": that.customerId, //客户id
  550. "status": 0,
  551. "itemId": that.buildingID,
  552. }
  553. this.$u.post(config.service.addATD, objdata).then(data => {
  554. this.status = 0
  555. uni.showToast({
  556. title: data.message,
  557. duration: 2000
  558. });
  559. })
  560. } else if (res.cancel) {
  561. console.log('用户点击取消');
  562. }
  563. }
  564. });
  565. },
  566. //标签选择
  567. tapbiaoqianclisck(index) {
  568. this.biaoqianindex = index;
  569. this.biaoqianid = this.biaoqianlist[index].id
  570. },
  571. //复制
  572. clickcopy() {
  573. var that = this;
  574. uni.setClipboardData({
  575. data: that.thewrongword,
  576. success: function() {
  577. that.dialogList.forEach(res => {
  578. res.message.forEach(asd => {
  579. asd.isshow = false;
  580. })
  581. })
  582. that.$forceUpdate();
  583. console.log('success');
  584. }
  585. });
  586. },
  587. //确认加入常错词
  588. Confirmtheexit() {
  589. if(this.reswrongword.length>8 || this.thewrongword.length>8){
  590. this.$refs.uToast.show({
  591. title: '正确词错误词不能超过8个字',
  592. type: 'warning',
  593. })
  594. }else{
  595. let reg = /^[0-9]+$/
  596. if(reg.test(this.thewrongword)){
  597. this.$refs.uToast.show({
  598. title: '错误词不能为纯数字',
  599. type: 'warning',
  600. })
  601. }else{
  602. if (this.thewrongword) {
  603. if (this.reswrongword) {
  604. let parames = {
  605. customerId: this.customerId,
  606. cupid: this.luyinList[this.csdFileindex].id,
  607. wrongWord: this.thewrongword, //错误词
  608. correctWord: this.reswrongword, //正确词
  609. translateHtmlContent: this.messagelisy,
  610. }
  611. this.isshow2 = false;
  612. let sas = this.textItself.replace(this.thewrongword, this.reswrongword)
  613. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest = sas
  614. this.dialogList.forEach(res => {
  615. res.message.forEach(asd => {
  616. asd.isshow = false;
  617. })
  618. })
  619. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  620. this.thewrongword = "";
  621. this.reswrongword = "";
  622. })
  623. } else {
  624. uni.showToast({
  625. title: '正确值不能为空',
  626. duration: 2000
  627. });
  628. return
  629. }
  630. } else {
  631. uni.showToast({
  632. title: '错误词不能为空',
  633. duration: 2000
  634. });
  635. return
  636. }
  637. }
  638. }
  639. },
  640. //取消加入常错词
  641. Cancelout() {
  642. this.isshow2 = false;
  643. this.dialogList.forEach(res => {
  644. res.message.forEach(asd => {
  645. asd.isshow = false;
  646. })
  647. })
  648. },
  649. //加入长错词
  650. Oftenthewrongword() {
  651. this.isNum = false;
  652. this.reswrongword = "";
  653. this.isshow2 = true;
  654. let reg = /^[0-9]+$/
  655. if (reg.test(this.thewrongword)) {
  656. this.isNum = true
  657. }
  658. },
  659. //加精华
  660. Addtheessence() {
  661. this.isshow3 = true;
  662. this.biaoqianlist = []
  663. this.$u.post('/addtodigest/findAllYi', {}).then(data => {
  664. this.biaoqianlist = data
  665. this.biaoqianlist.unshift({
  666. name: "逼单话术",
  667. id: 0
  668. })
  669. })
  670. },
  671. // 取消加精
  672. Cancelout2() {
  673. this.isshow3 = false;
  674. this.dialogList.forEach(res => {
  675. res.message.forEach(asd => {
  676. asd.isshow = false;
  677. })
  678. })
  679. },
  680. // 确认加精
  681. Confirmtheexit2() {
  682. if (this.biaoqianid) {
  683. this.biaoqianid = this.biaoqianid
  684. } else {
  685. this.biaoqianid = 0
  686. }
  687. this.isshow3 = false;
  688. this.dialogList.forEach(res => {
  689. res.message.forEach(asd => {
  690. asd.isshow = false;
  691. })
  692. })
  693. let objdata = {
  694. "carId": this.customerId, //客户id
  695. "startTime": this.changanitem.bg, //开始时间
  696. "startFile": this.duihuawenjianid, //对话所在录音文件id
  697. "endTime": this.changanitem.ed, //结束时间
  698. "marketingId": this.biaoqianid, //对应一级父id
  699. "jjTransfer": this.changanitem.onebest, //选中对话
  700. "status": 1
  701. }
  702. this.$u.post(config.service.addATD, objdata).then(data => {
  703. uni.showToast({
  704. title: '加精成功',
  705. duration: 2000
  706. });
  707. }).catch(e => {
  708. uni.showToast({
  709. title: e.message,
  710. icon: 'none',
  711. duration: 2000
  712. });
  713. })
  714. },
  715. //长按对话
  716. changanxiaoguo(item, index, i) {
  717. this.messagelisy = [];
  718. this.changanitem = {};
  719. this.duihuawenjianid = "",
  720. this.dialogList.forEach(res => {
  721. res.message.forEach(asd => {
  722. asd.isshow = false;
  723. })
  724. })
  725. this.changanitem = item;
  726. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  727. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  728. this.textItself = item.onebest;
  729. let onebest = item.onebest;
  730. this.thewrongword = onebest.replace(/<.*?>/ig, "");
  731. this.thewrongword = item.onebest;
  732. this.messagelisy = this.dialogList[i].message
  733. this.argtextindex1 = i;
  734. this.argtextindex2 = index;
  735. },
  736. //回到顶部
  737. gotoTop() {
  738. this.scrollId = null;
  739. this.$nextTick(() => {
  740. this.scrollId = "top";
  741. })
  742. },
  743. //切换tab
  744. changeTab(type) {
  745. if (type == 0) {
  746. this.tab = 0
  747. } else {
  748. this.tab = 1;
  749. this.getRatelist();
  750. }
  751. },
  752. //录音列表显示隐藏
  753. showFile() {
  754. console.log("111111111111111111111111")
  755. this.isshowFile = !this.isshowFile;
  756. console.log("222222222222222222222")
  757. },
  758. //评分上下显隐
  759. changeshow(item, type) {
  760. if (type == 1) {
  761. item.show = true
  762. } else {
  763. item.show = false
  764. }
  765. },
  766. // 获取评分
  767. getRatelist() {
  768. if (this.ratelist.length == 0) {
  769. this.$u.get("/customer/findzkMByCusId", {
  770. cusId: this.customerId
  771. }).then(res => {
  772. if (res.length) {
  773. let level1 = []
  774. let level2rate = 0
  775. res.forEach(item => {
  776. if (item.pid == 0) {
  777. level1.push({
  778. id: item.marketingId,
  779. rate: item.fraction,
  780. name: item.name,
  781. sort: item.sort,
  782. show: false,
  783. ratepercent: 0,
  784. children: []
  785. })
  786. } else {
  787. if (item.selected == 0) {
  788. level2rate += item.fraction
  789. }
  790. }
  791. })
  792. this.totalRate = level2rate
  793. res.forEach(subitem => {
  794. let subitempid = subitem.pid
  795. level1.forEach(item => {
  796. if (subitempid == item.id) {
  797. if (subitem.selected == 0) {
  798. item.ratepercent += subitem.fraction
  799. }
  800. item.children.push({
  801. id: subitem.id,
  802. rate: subitem.fraction,
  803. selected: subitem.selected,
  804. name: subitem.name
  805. })
  806. }
  807. })
  808. })
  809. level1[0].show = true;
  810. this.ratelist = level1
  811. }
  812. setTimeout(function() {
  813. uni.hideLoading();
  814. }, 1000);
  815. })
  816. }
  817. },
  818. // 获取转义后的对话结果
  819. getCorpusAnalysis(info) {
  820. this.dialogList = [];
  821. let obj = {
  822. corpusId: this.luyinList[this.csdFileindex].id,
  823. customerId: this.customerId
  824. }
  825. this.$u.get(config.service.getCorpusAnalysis, obj).then(data => {
  826. console.log(data, 'jkdaslasaksklajdklasjdkljaskldjaskldjaslkdjsalk')
  827. try {
  828. const jsonInfo = JSON.parse(data.audioContent);
  829. console.log(jsonInfo)
  830. if (this.luyinList[this.csdFileindex].recordDuration > 360) {
  831. //拿到总条数
  832. var stusnum = jsonInfo.length;
  833. this.dialogList.push({
  834. message: jsonInfo.splice(0, 80),
  835. backindex: this.csdFileindex
  836. });
  837. var auth_timetimer = setInterval(() => {
  838. stusnum -= 100;
  839. console.log("还剩下" + stusnum)
  840. if (stusnum <= 0) {
  841. console.log("停止")
  842. clearInterval(auth_timetimer);
  843. } else {
  844. console.log("添加")
  845. var newlistwang = [];
  846. newlistwang = jsonInfo.splice(0, 100);
  847. console.log("新数组", newlistwang)
  848. newlistwang.forEach(item => {
  849. this.dialogList[0].message.push(item)
  850. })
  851. }
  852. }, 1000);
  853. } else {
  854. this.dialogList.push({
  855. message: jsonInfo,
  856. backindex: this.csdFileindex
  857. });
  858. }
  859. this.dialogList.forEach((asd, idx) => {
  860. asd.message.forEach((qwe, inde) => {
  861. qwe.isshow = false;
  862. })
  863. })
  864. } catch(e) {
  865. if (data.whetherFinishName == '转写中') {
  866. uni.showModal({
  867. title: '提示',
  868. content: '录音正在转写中,请稍后重试!',
  869. showCancel: false
  870. });
  871. }
  872. }
  873. }).catch(e => {
  874. console.log(e, '123二83二我哦晶澳科技大说快了快到加快了')
  875. // if (e.da)
  876. uni.showModal({
  877. title: '提示',
  878. content: '请求数据失败,请重新尝试',
  879. showCancel: false
  880. });
  881. })
  882. },
  883. getTime(time) {
  884. return util.formatSecond(time)
  885. },
  886. //音频前进回退
  887. sliderChangeComplate(currentTime) {
  888. // 暂时没有处理
  889. // this.$refs.zyAudio.seek(e.detail.value);
  890. // this.$refs.zyAudio.play();
  891. },
  892. //长按点击播放
  893. clickbofang(dialog, item) {
  894. this.dialogList.forEach(res => {
  895. res.message.forEach(asd => {
  896. asd.isshow = false;
  897. })
  898. })
  899. this.$forceUpdate()
  900. if (dialog == this.csdFileindex) {
  901. let time = item.bg / 1000
  902. this.stepPlay(time);
  903. return
  904. } else {
  905. let time = item.bg / 1000
  906. this.csdFileindex = dialog;
  907. this.recordPath = this.luyinList[dialog].recordPath;
  908. this.date = this.luyinList[dialog].receptionTime;
  909. this.getCorpusAnalysis()
  910. this.stepPlay(time);
  911. }
  912. },
  913. // 文件切换播放
  914. filechange(item, i) {
  915. this.num = i; //下拉起始位置
  916. this.Bnum = i;
  917. this.csdFileindex = i;
  918. this.recordPath = item.recordPath;
  919. this.date = item.receptionTime;
  920. this.isshowFile = false;
  921. setTimeout(() => {
  922. this.$zaudio.operate(i)
  923. }, 50)
  924. this.getCorpusAnalysis()
  925. },
  926. // 自动播放下一个文件
  927. qeihuanwenjian() {
  928. // this.$zaudio.paused()
  929. let index = this.csdFileindex + 1;
  930. if (index < this.luyinList.length) {
  931. this.csdFileindex = index;
  932. this.getCorpusAnalysis()
  933. let item = this.luyinList[this.csdFileindex];
  934. let i = this.csdFileindex;
  935. this.filechange(item, i)
  936. }
  937. },
  938. formatTime(num) {
  939. //格式化时间格式
  940. num = num.toFixed(0);
  941. let second = num % 60;
  942. if (second < 10) second = '0' + second;
  943. let min = Math.floor(num / 60);
  944. if (min < 10) min = '0' + min;
  945. return min + ":" + second;
  946. },
  947. changeEditing() {
  948. this.dialogList.forEach(res => {
  949. res.message.forEach(asd => {
  950. asd.isshow = false;
  951. })
  952. })
  953. },
  954. //录音实例
  955. zyAudio() {
  956. let data = this.luyinList.map((item, index) => {
  957. return {
  958. src: item.recordPath,
  959. title: `录音文件${index + 1}`,
  960. singer: '',
  961. coverImgUrl: ''
  962. }
  963. })
  964. console.log(this.luyinList, '123873892173812783218711111123873892173812783218711111123873892173812783218711111')
  965. console.log(data, '123873892173812783218711111')
  966. this.$zaudio.setAudio(data)
  967. //渲染第一首音频
  968. this.$zaudio.setRender(0)
  969. setTimeout(() => {
  970. this.$zaudio.operate()
  971. }, 150)
  972. this.$forceUpdate()
  973. },
  974. // 跳转指定位置播放
  975. stepPlay(t) {
  976. this.$zaudio.seek(t)
  977. if (this.$zaudio.paused) {
  978. this.$zaudio.operate()
  979. }
  980. },
  981. }
  982. }
  983. </script>
  984. <style lang="scss" scoped>
  985. .ffectivetext {
  986. width: 85%;
  987. margin: 10rpx auto;
  988. height: 100rpx;
  989. padding: 20rpx;
  990. border: 1rpx solid #E4F0FF;
  991. }
  992. .biaoqiantom {
  993. background-color: #008EF2;
  994. color: #FFFFFF;
  995. border: none;
  996. }
  997. // 表单
  998. .tian-view {
  999. width: 570upx;
  1000. background-color: #FFFFFF;
  1001. border-bottom: 1px solid #ededee;
  1002. display: flex;
  1003. min-height: 96rpx;
  1004. .tian-view-t1 {
  1005. width: 20rpx;
  1006. font-size: 34rpx;
  1007. height: 34rpx;
  1008. line-height: 110rpx;
  1009. letter-spacing: 0px;
  1010. color: red;
  1011. }
  1012. .tian-view-t2 {
  1013. width: 30%;
  1014. min-height: 96rpx;
  1015. line-height: 96rpx;
  1016. font-size: 34rpx;
  1017. color: #333;
  1018. }
  1019. .tian-view-t3 {
  1020. width: 61%;
  1021. padding-top: 31rpx;
  1022. padding-bottom: 31rpx;
  1023. display: flex;
  1024. .tian-input {
  1025. width: 98%;
  1026. font-size: 34rpx;
  1027. border: none;
  1028. }
  1029. }
  1030. }
  1031. .zhezhoa {
  1032. position: fixed;
  1033. top: 0;
  1034. left: 0;
  1035. z-index: 999;
  1036. width: 100%;
  1037. height: 100vh;
  1038. opacity: 0.5;
  1039. background-color: #666666;
  1040. }
  1041. .bounced {
  1042. width: 570upx;
  1043. background: #FFFFFF;
  1044. z-index: 1000;
  1045. border-radius: 10upx;
  1046. position: fixed;
  1047. left: 50%;
  1048. top: 50%;
  1049. transform: translate(-50%, -50%);
  1050. /* 50%为自身尺寸的一半 */
  1051. .jiajinghuatit {
  1052. width: 100%;
  1053. height: 68rpx;
  1054. font-size: 30rpx;
  1055. text-align: center;
  1056. line-height: 68rpx;
  1057. }
  1058. .jiajinghuaview {
  1059. padding: 18rpx 18rpx 18rpx 18rpx;
  1060. display: flex;
  1061. flex-wrap: wrap;
  1062. height: 50vh;
  1063. overflow-y: scroll;
  1064. .jiajinghuaview1 {
  1065. padding: 8rpx 8rpx 8rpx 8rpx;
  1066. font-size: 26rpx;
  1067. border-radius: 12rpx;
  1068. border: 1px solid #979797;
  1069. margin-left: 8rpx;
  1070. }
  1071. .jighuaview2 {
  1072. padding: 8rpx 18rpx 8rpx 18rpx;
  1073. font-size: 26rpx;
  1074. border-radius: 12rpx;
  1075. border: 1px solid #979797;
  1076. margin-left: 20rpx;
  1077. margin-top: 10rpx;
  1078. display: flex;
  1079. .view1-text {
  1080. text-align: center;
  1081. }
  1082. .view1-img {
  1083. width: 50rpx;
  1084. }
  1085. }
  1086. }
  1087. .bounced3 {
  1088. height: 100upx;
  1089. width: 100%;
  1090. margin-top: 40upx;
  1091. border-top: 1px solid #dddddd;
  1092. display: flex;
  1093. }
  1094. .bounced3-1 {
  1095. width: 50%;
  1096. height: 100%;
  1097. text-align: center;
  1098. line-height: 100upx;
  1099. border-right: 1px solid #dddddd;
  1100. font-size: 36upx;
  1101. color: #999999;
  1102. }
  1103. .bounced3-2 {
  1104. width: 50%;
  1105. height: 100%;
  1106. text-align: center;
  1107. line-height: 100upx;
  1108. font-size: 36upx;
  1109. color: #108ee9;
  1110. }
  1111. }
  1112. .translation {
  1113. padding-left: 30rpx;
  1114. padding-right: 30rpx;
  1115. background: #FFFFFF;
  1116. display: flex;
  1117. flex-direction: column;
  1118. height: 100vh;
  1119. }
  1120. .translation .top {
  1121. margin: 0 -30upx;
  1122. padding: 0 30upx;
  1123. background: #ffffff;
  1124. border-bottom: 1rpx solid #F2F2F2;
  1125. padding-bottom: 10rpx;
  1126. }
  1127. .translation .top .title {
  1128. display: flex;
  1129. justify-content: space-between;
  1130. .hash {
  1131. color: rgba(21, 144, 233, 1);
  1132. font-size: 24upx;
  1133. }
  1134. }
  1135. .call_record_time {
  1136. height: 44rpx;
  1137. font-size: 28rpx;
  1138. font-weight: 600;
  1139. color: #008EF2;
  1140. line-height: 44rpx;
  1141. }
  1142. .call_record_time_one {
  1143. height: 48rpx;
  1144. font-size: 24rpx;
  1145. font-weight: 500;
  1146. color: #70798d;
  1147. line-height: 48rpx;
  1148. display: flex;
  1149. justify-content: space-between;
  1150. position: relative;
  1151. .audoioyouxiao {
  1152. height: 46rpx;
  1153. position: absolute;
  1154. top: 0rpx;
  1155. right: 140rpx;
  1156. font-size: 30rpx;
  1157. }
  1158. .diangweitupian {
  1159. width: 46rpx;
  1160. height: 46rpx;
  1161. position: absolute;
  1162. top: 0rpx;
  1163. right: 75rpx;
  1164. }
  1165. .file-change {
  1166. position: absolute;
  1167. top: 50rpx;
  1168. right: 0rpx;
  1169. width: 184rpx;
  1170. background: #FFFFFF;
  1171. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1172. border-radius: 4rpx;
  1173. z-index: 99;
  1174. height: auto;
  1175. max-height: 600rpx;
  1176. overflow: auto;
  1177. }
  1178. .file-item {
  1179. width: 184rpx;
  1180. height: 60rpx;
  1181. line-height: 60rpx;
  1182. text-align: center;
  1183. font-size: 30rpx;
  1184. font-weight: 400;
  1185. color: #333333;
  1186. border-bottom: 1rpx solid #E2E2E2;
  1187. }
  1188. .file-item:last-child {
  1189. border: 0
  1190. }
  1191. .fileactive {
  1192. color: #008EF2
  1193. }
  1194. }
  1195. .audio-container {
  1196. width: 100%;
  1197. display: flex;
  1198. justify-content: space-between;
  1199. align-items: center;
  1200. .audio-head {
  1201. width: 60rpx;
  1202. height: 60rpx;
  1203. flex-shrink: 0;
  1204. }
  1205. .audio-head .image {
  1206. width: 100%;
  1207. height: 100%;
  1208. }
  1209. .audio-slider {
  1210. width: 96%;
  1211. position: relative;
  1212. padding: 2px 0rpx 0px 20px;
  1213. display: flex;
  1214. justify-content: space-between;
  1215. align-items: center;
  1216. }
  1217. .audio-slider .slider {
  1218. width: 100%;
  1219. padding: 0px 15rpx;
  1220. box-sizing: border-box;
  1221. }
  1222. .audio-time {
  1223. width: 110rpx;
  1224. text-align: right;
  1225. font-size: 24rpx;
  1226. line-height: 28rpx;
  1227. color: #70798D;
  1228. display: flex;
  1229. justify-content: space-between;
  1230. }
  1231. .audio-play {
  1232. width: 40rpx;
  1233. height: 40rpx;
  1234. flex-shrink: 0;
  1235. }
  1236. .audio-play .image {
  1237. width: 100%;
  1238. height: 100%;
  1239. }
  1240. }
  1241. .scroll-Y {
  1242. font-size: 36upx;
  1243. color: #999999;
  1244. background: #FFFFFF;
  1245. margin-top: 30upx;
  1246. flex: 1;
  1247. overflow-y: scroll;
  1248. width: 100%;
  1249. }
  1250. .scroll-Y .text {
  1251. margin: 50upx 30upx;
  1252. line-height: 80upx;
  1253. display: flex;
  1254. align-items: center;
  1255. }
  1256. .scroll-Y .text[data-speaker="2"],
  1257. .scroll-Y .text[data-speaker="4"],
  1258. .scroll-Y .text[data-speaker="6"] {
  1259. flex-direction: row-reverse;
  1260. text-align: right;
  1261. .content {
  1262. margin-left: 0;
  1263. margin-right: 30upx;
  1264. }
  1265. }
  1266. .scroll-Y .text .avatar {
  1267. width: 64upx;
  1268. height: 64upx;
  1269. line-height: 64upx;
  1270. text-align: center;
  1271. // border: 1rpx solid red;
  1272. font-size: 36rpx;
  1273. border-radius: 50%;
  1274. background: #F2F2F2;
  1275. color: #008EF2;
  1276. // display: flex;
  1277. // justify-content: center;
  1278. // align-items: center;
  1279. // image {
  1280. // width: 40upx;
  1281. // }
  1282. }
  1283. .scroll-Y .text .content {
  1284. margin-left: 30upx;
  1285. line-height: 60rpx;
  1286. text-align: left;
  1287. padding: 0 5px;
  1288. background: #F6F6F6;
  1289. border-radius: 8upx;
  1290. max-width: 442rpx;
  1291. color: #999;
  1292. position: relative;
  1293. .tankuangcss {
  1294. position: absolute;
  1295. top: -140rpx;
  1296. left: -120rpx;
  1297. width: 308rpx;
  1298. height: 130rpx;
  1299. background-color: #333333;
  1300. font-size: 24rpx;
  1301. color: #FFFFFF;
  1302. padding-top: 4rpx;
  1303. padding-bottom: 4rpx;
  1304. display: flex;
  1305. flex-wrap: wrap;
  1306. border-radius: 15rpx;
  1307. z-index: 1000;
  1308. }
  1309. }
  1310. .scroll-Y .text.active .content {
  1311. color: #FF7538 !important;
  1312. position: relative;
  1313. }
  1314. .scroll-Y .text.active[data-speaker="2"] .content,
  1315. .scroll-Y .text.active[data-speaker="4"] .content,
  1316. .scroll-Y .text.active[data-speaker="6"] .content {
  1317. color: #FF7538 !important;
  1318. position: relative;
  1319. }
  1320. .scroll-Y .isGreen .contentInfo .contentMain .content {
  1321. background: #2BC805 !important;
  1322. color: #FFFFFF;
  1323. }
  1324. .tab-box {
  1325. width: 100%;
  1326. display: flex;
  1327. justify-content: center;
  1328. align-items: center;
  1329. .yinpinshibie {
  1330. width: 156rpx;
  1331. height: 50rpx;
  1332. font-size: 36rpx;
  1333. font-weight: 400;
  1334. color: #333333;
  1335. text-align: center;
  1336. line-height: 50rpx;
  1337. letter-spacing: 2rpx;
  1338. margin-right: 188rpx;
  1339. &.active {
  1340. position: relative;
  1341. &::after {
  1342. position: absolute;
  1343. content: '';
  1344. width: 119rpx;
  1345. height: 8rpx;
  1346. background: #008EF2;
  1347. border-radius: 4rpx;
  1348. top: 50rpx;
  1349. right: 0;
  1350. left: 0;
  1351. margin: 0 auto;
  1352. }
  1353. }
  1354. }
  1355. .rate {
  1356. width: 156rpx;
  1357. height: 50rpx;
  1358. font-size: 36rpx;
  1359. font-weight: 400;
  1360. color: #333333;
  1361. line-height: 50rpx;
  1362. letter-spacing: 2rpx;
  1363. text-align: center;
  1364. &.active {
  1365. position: relative;
  1366. &::after {
  1367. position: absolute;
  1368. content: '';
  1369. width: 119rpx;
  1370. height: 8rpx;
  1371. background: #008EF2;
  1372. border-radius: 4rpx;
  1373. top: 50rpx;
  1374. right: 0;
  1375. left: 0;
  1376. margin: 0 auto;
  1377. }
  1378. }
  1379. }
  1380. }
  1381. .backTop {
  1382. width: 60upx;
  1383. height: 60upx;
  1384. background: rgba(211, 235, 253, 1);
  1385. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  1386. border-radius: 50%;
  1387. position: fixed;
  1388. bottom: 200upx;
  1389. right: 8upx;
  1390. display: flex;
  1391. justify-content: center;
  1392. align-items: center;
  1393. image {
  1394. width: 26upx;
  1395. height: 34upx;
  1396. }
  1397. }
  1398. // 评分
  1399. .rate-box {
  1400. padding: 10rpx 20rpx;
  1401. .date {
  1402. width: 300rpx;
  1403. height: 33rpx;
  1404. font-size: 24rpx;
  1405. font-weight: 400;
  1406. color: #333333;
  1407. line-height: 33rpx;
  1408. letter-spacing: 1rpx;
  1409. margin-bottom: 8rpx;
  1410. }
  1411. .title {
  1412. width: 100%;
  1413. height: 42rpx;
  1414. font-size: 30rpx;
  1415. font-weight: 500;
  1416. color: #333333;
  1417. line-height: 42rpx;
  1418. letter-spacing: 2rpx;
  1419. margin-bottom: 20rpx;
  1420. }
  1421. .level1 {
  1422. display: flex;
  1423. align-items: center;
  1424. .level-name {
  1425. width: 104rpx;
  1426. height: 33rpx;
  1427. font-size: 24rpx;
  1428. font-weight: 500;
  1429. color: #333333;
  1430. line-height: 33rpx;
  1431. letter-spacing: 1rpx;
  1432. margin-right: 10rpx;
  1433. }
  1434. .level-progress {
  1435. flex: 1;
  1436. border-radius: 11rpx;
  1437. height: 21rpx;
  1438. background-color: #BEE4FF;
  1439. position: relative;
  1440. .color {
  1441. width: 0;
  1442. position: absolute;
  1443. top: 0;
  1444. left: 0;
  1445. height: 21rpx;
  1446. border-radius: 11rpx 0 0 11rpx;
  1447. background-color: #008EF2;
  1448. }
  1449. }
  1450. .level-rate {
  1451. width: 65rpx;
  1452. height: 33rpx;
  1453. font-size: 24rpx;
  1454. font-weight: 500;
  1455. color: #333333;
  1456. line-height: 33rpx;
  1457. letter-spacing: 1rpx;
  1458. margin: 0 20rpx 0 15rpx;
  1459. }
  1460. .arrow {
  1461. width: 37rpx;
  1462. height: 21rpx;
  1463. padding: 5rpx 20rpx;
  1464. }
  1465. .rotatearrow {
  1466. transform: rotate(270deg);
  1467. }
  1468. }
  1469. .level1-subbox {
  1470. display: flex;
  1471. margin-top: 20rpx;
  1472. flex-wrap: wrap;
  1473. .sub-name {
  1474. width: 50%;
  1475. display: flex;
  1476. margin-bottom: 18rpx;
  1477. .subitem-name {
  1478. width: 104rpx;
  1479. height: 33rpx;
  1480. font-size: 24rpx;
  1481. font-weight: 400;
  1482. color: #999999;
  1483. line-height: 33rpx;
  1484. letter-spacing: 1rpx;
  1485. margin-right: 12rpx;
  1486. }
  1487. .checkimg {
  1488. width: 27rpx;
  1489. height: 27rpx;
  1490. }
  1491. }
  1492. }
  1493. }
  1494. .dialog-block {
  1495. margin: 20rpx 0;
  1496. border-bottom: 1px solid #ccc;
  1497. .fileName {
  1498. text-align: center;
  1499. margin: 10rpx auto;
  1500. width: 115rpx;
  1501. height: 42rpx;
  1502. line-height: 42rpx;
  1503. background: #EFEFEF;
  1504. border-radius: 4rpx;
  1505. font-size: 20rpx;
  1506. font-weight: 400;
  1507. color: #333333;
  1508. }
  1509. }
  1510. /deep/ .u-model-title{
  1511. padding: 34rpx 0 16rpx !important;
  1512. }
  1513. </style>