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.
 
 
 
 

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