index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <!-- -->
  2. <template>
  3. <div
  4. class="NPC-Book-Article Big-Book-Maxwidth"
  5. v-if="curQue"
  6. v-loading="loading"
  7. >
  8. <div class="adult-book-input-item">
  9. <span class="adult-book-lable">序号:</span>
  10. <el-input
  11. class="adult-book-input"
  12. placeholder="请输入序号"
  13. v-model="curQue.number"
  14. @blur="onBlur(curQue, 'number')"
  15. ></el-input>
  16. </div>
  17. <div class="Big-Book-mp3">
  18. <Upload
  19. :changeFillId="changeImage"
  20. :datafileList="fileCon.img_list"
  21. :filleNumber="imgNumber"
  22. :uploadType="'image'"
  23. />
  24. </div>
  25. <div class="Big-Book-mp3">
  26. <Upload
  27. type="mp3"
  28. :changeFillId="changeMp3"
  29. :datafileList="fileCon.mp3_list"
  30. :filleNumber="mp3Number"
  31. :uploadType="'mp3'"
  32. :handleMp3Base64="handleChange"
  33. />
  34. </div>
  35. <div class="adult-book-input-item">
  36. <span class="adult-book-lable">内容类型:</span>
  37. <el-radio-group v-model="curQue.font">
  38. <el-radio label="py">拼音</el-radio>
  39. <el-radio label="cn">汉字</el-radio>
  40. </el-radio-group>
  41. </div>
  42. <div class="adult-book-input-item" v-if="type != 'option'">
  43. <span class="adult-book-lable">功能设置:</span>
  44. <el-checkbox-group
  45. v-model="curQue.checkList"
  46. @change="handleCheckedFnChange"
  47. >
  48. <el-checkbox
  49. v-for="(fnItem, fnIndex) in fn_list"
  50. :key="'dis_fn_list' + fnIndex"
  51. :label="fnItem.type"
  52. >{{ fnItem.name }}</el-checkbox
  53. >
  54. </el-checkbox-group>
  55. </div>
  56. <div class="adult-book-input-item">
  57. <span class="adult-book-lable">文章提示:</span>
  58. <el-input
  59. class="adult-book-input"
  60. type="textarea"
  61. :autosize="{ minRows: 2 }"
  62. placeholder="请输入文章提示"
  63. v-model="curQue.notice"
  64. @blur="onBlur(curQue, 'notice')"
  65. ></el-input>
  66. </div>
  67. <div class="NPC-Book-role" v-if="curQue.roleList">
  68. <ul
  69. class="adult-book-input-role"
  70. v-if="curQue.roleList && curQue.roleList.length > 0"
  71. >
  72. <li
  73. v-for="(rItem, rIndex) in curQue.roleList"
  74. :key="'roleList' + rIndex"
  75. >
  76. <div class="rItem" @click="editRole(rItem)">
  77. <span v-if="rItem.role" class="adult-book-input-roleText">{{
  78. rItem.role
  79. }}</span>
  80. <img
  81. v-else
  82. :src="rItem.img_list[0] && rItem.img_list[0].url"
  83. class="adult-book-input-roleImg"
  84. />
  85. <template v-if="rItem.detail.wordsList.length > 0">
  86. <span class="pinyin">{{
  87. rItem.detail.wordsList | handlePinyin
  88. }}</span>
  89. <span class="chs">{{ rItem.detail.wordsList | handleChs }}</span>
  90. </template>
  91. </div>
  92. <i class="el-icon-circle-close" @click="delRole(rIndex)"></i>
  93. </li>
  94. </ul>
  95. <el-button type="primary" @click="addRole">添加角色</el-button>
  96. </div>
  97. <div class="NPC-Book-article">
  98. <ArticleChs
  99. :curQue="curQue"
  100. :isPara="isPara"
  101. :changeIsPara="changeIsPara"
  102. />
  103. </div>
  104. <div class="NPC-Book-Paragraph" v-if="isPara">
  105. <Paragraph :curQue="curQue" :isClause="isClause" :sureSeg="sureSeg" />
  106. </div>
  107. <!---上传rlc文件-->
  108. <!-- <div class="NPC-Book-Paragraph" v-if="isClause">
  109. <el-button
  110. type="warning"
  111. size="small"
  112. @click="uploadLRC"
  113. v-if="curQue.detail[0].timeList.length == 0"
  114. >上传lrc文件</el-button
  115. >
  116. <div v-else class="lrc-box">
  117. <span>已有字幕时间节点</span>
  118. <el-button type="text" @click="editTimeList">去编辑</el-button>
  119. </div>
  120. </div> -->
  121. <!---分句-->
  122. <div class="NPC-Book-Paragraph" v-if="isClause">
  123. <Clauseresult :curQue="curQue" :segByWord="segByWord" />
  124. </div>
  125. <template v-if="curQue.font !== 'py'">
  126. <div class="lrc-box">
  127. <div
  128. v-if="this.curQue.wordTime && this.curQue.wordTime.length > 0"
  129. class="lrc-box"
  130. >
  131. <span>已有字幕时间节点</span>
  132. <el-button type="text" @click="againWordTime">重新生成</el-button>
  133. </div>
  134. <template v-else>
  135. <el-button v-if="!isWordTime" size="medium" @click="createWordTime"
  136. >自动生成字幕节点</el-button
  137. >
  138. <p v-else>字幕节点生成中...请等待</p>
  139. </template>
  140. </div>
  141. <!---分词-->
  142. <div class="NPC-Book-Word" v-if="isByWord">
  143. <Segbyword :curQue="curQue" :paraIndex="paraIndex" :segList="segList" />
  144. </div>
  145. </template>
  146. <!---答案-->
  147. <div
  148. class="adult-book-input-item"
  149. v-if="curQue.checkList && curQue.checkList.indexOf('input') > -1"
  150. >
  151. <span class="adult-book-lable">答案:</span>
  152. <el-input
  153. class="adult-book-input"
  154. type="textarea"
  155. :autosize="{ minRows: 2 }"
  156. placeholder="请输入答案"
  157. v-model="curQue.answer"
  158. @blur="onBlur(curQue, 'answer')"
  159. ></el-input>
  160. </div>
  161. <el-dialog title="段落分句字幕打点" :visible.sync="cTVisible" width="30%">
  162. <Createtimelist ref="createtimelist" :curQue="curQue" />
  163. <span slot="footer" class="dialog-footer">
  164. <el-button @click="cTVisible = false">取 消</el-button>
  165. <el-button type="primary" @click="saveTimeList">保 存</el-button>
  166. </span>
  167. </el-dialog>
  168. <el-dialog
  169. :title="roleStatus == 1 ? '添加角色' : '编辑角色'"
  170. :visible.sync="roleVisible"
  171. :close-on-click-modal="false"
  172. :modal-append-to-body="false"
  173. append-to-body
  174. width="60%"
  175. >
  176. <template v-if="curQue.roleList">
  177. <template v-if="roleStatus == 1">
  178. <RoleChs
  179. ref="createRolelist"
  180. :curRole="curQue.roleList[curQue.roleList.length - 1]"
  181. />
  182. </template>
  183. <template v-else>
  184. <RoleChs ref="createRolelist" :curRole="curRole" />
  185. </template>
  186. </template>
  187. <span slot="footer" class="dialog-footer">
  188. <el-button @click="roleVisible = false">取 消</el-button>
  189. <el-button type="primary" @click="saveRoleList">保 存</el-button>
  190. </span>
  191. </el-dialog>
  192. </div>
  193. </template>
  194. <script>
  195. import {
  196. segSentences,
  197. BatchSegContent,
  198. prepareTranscribe,
  199. getWordTime,
  200. } from "@/api/ajax";
  201. const Base64 = require("js-base64").Base64;
  202. import Upload from "../../common/Upload.vue";
  203. import UploadArt from "../../common/UploadArt.vue";
  204. import ArticleChs from "./components/ArticleChs.vue";
  205. import Paragraph from "./components/ParagraphChs.vue";
  206. import Clauseresult from "./components/ClauseresultChs.vue";
  207. import Segbyword from "./components/SegbywordChs.vue";
  208. import Createtimelist from "./components/CreatetimelistChs.vue";
  209. import RoleChs from "./components/RoleChs.vue";
  210. export default {
  211. name: "ArticleTemChs",
  212. components: {
  213. Upload,
  214. UploadArt,
  215. ArticleChs,
  216. Paragraph,
  217. Clauseresult,
  218. Segbyword,
  219. Createtimelist,
  220. RoleChs,
  221. },
  222. props: ["curQue", "changeCurQue", "listIndex", "segModel", "type"],
  223. filters: {
  224. handlePinyin(wordsList) {
  225. let str = "";
  226. wordsList.forEach((item, index) => {
  227. if (index < wordsList.length - 1) {
  228. str += item.pinyin + " ";
  229. } else {
  230. str += item.pinyin;
  231. }
  232. });
  233. return str;
  234. },
  235. handleChs(wordsList) {
  236. let str = "";
  237. wordsList.forEach((item, index) => {
  238. if (index < wordsList.length - 1) {
  239. str += item.chs + " ";
  240. } else {
  241. str += item.chs;
  242. }
  243. });
  244. return str;
  245. },
  246. },
  247. data() {
  248. return {
  249. fn_list: [
  250. {
  251. type: "input",
  252. name: "填空题",
  253. isFn: false,
  254. isDisable: false,
  255. },
  256. {
  257. type: "judge",
  258. name: "判断题",
  259. isFn: false,
  260. isDisable: false,
  261. },
  262. {
  263. type: "record",
  264. name: "录音题",
  265. isFn: false,
  266. isDisable: false,
  267. },
  268. ],
  269. imgNumber: 1,
  270. mp3Number: 1,
  271. fileCon: {
  272. img_list: [],
  273. mp3_list: [],
  274. },
  275. isPara: false,
  276. isClause: false,
  277. isByWord: false,
  278. paraIndex: 0, //段落索引
  279. cTVisible: false,
  280. roleVisible: false,
  281. roleStatus: 1, //1添加;2是编辑
  282. curRole: null,
  283. loading: false,
  284. segList: null,
  285. isWordTime: false,
  286. };
  287. },
  288. computed: {},
  289. watch: {
  290. listIndex: {
  291. handler: function (newVal, oldVal) {
  292. if (newVal !== oldVal) {
  293. this.isPara = false;
  294. this.isClause = false;
  295. this.isByWord = false;
  296. this.paraIndex = 0; //段落索引
  297. this.roleStatus = 1; //1添加;2是编辑
  298. this.curRole = null;
  299. this.loading = false;
  300. this.segList = null;
  301. this.isWordTime = false;
  302. this.initData();
  303. }
  304. },
  305. deep: true,
  306. },
  307. },
  308. //方法集合
  309. methods: {
  310. onBlur(item, field) {
  311. item[field] = item[field] ? item[field].trim() : "";
  312. },
  313. onBlurIndex(index, field) {
  314. let res = this.curQueItem[field][index].trim();
  315. this.$set(this.curQueItem[field], index, res);
  316. },
  317. // 更多配置选择
  318. handleCheckedFnChange(value) {
  319. if (this.curQue.checkList.indexOf("input") < 0) {
  320. this.curQue.answer = "";
  321. }
  322. if (this.curQue.checkList.indexOf("judge") < 0) {
  323. this.curQue.judge = [];
  324. }
  325. },
  326. changeMp3(fileList) {
  327. const articleImgList = JSON.parse(JSON.stringify(fileList));
  328. const articleImgRes = [];
  329. articleImgList.forEach((item) => {
  330. if (item.response) {
  331. const obj = {
  332. name: item.name,
  333. duration: item.response.file_info_list[0].media_duration,
  334. url: item.response.file_info_list[0].file_url,
  335. id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
  336. media_duration: item.response.file_info_list[0].media_duration, //音频时长
  337. };
  338. articleImgRes.push(obj);
  339. }
  340. });
  341. this.curQue.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
  342. },
  343. changeImage(fileList) {
  344. const articleImgList = JSON.parse(JSON.stringify(fileList));
  345. const articleImgRes = [];
  346. articleImgList.forEach((item) => {
  347. if (item.response) {
  348. const obj = {
  349. name: item.name,
  350. url: item.response.file_info_list[0].file_url,
  351. id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
  352. };
  353. articleImgRes.push(obj);
  354. }
  355. });
  356. this.curQue.img_list = JSON.parse(JSON.stringify(articleImgRes));
  357. },
  358. changeImage2(file) {
  359. if (file.response) {
  360. const obj = {
  361. name: file.name,
  362. url: file.response.file_info_list[0].file_url,
  363. id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
  364. };
  365. this.curQue.img_list.push(obj);
  366. this.$forceUpdate();
  367. }
  368. },
  369. forceUpdate() {
  370. this.$forceUpdate();
  371. },
  372. delImage(index) {
  373. this.curQue.img_list.splice(index, 1);
  374. this.fileCon.img_list.splice(index, 1);
  375. },
  376. //添加角色
  377. addRole() {
  378. this.roleVisible = true;
  379. this.roleStatus = 1;
  380. let id = Math.random().toString(36).substr(2);
  381. let roleCon = {
  382. id: id,
  383. role: "",
  384. img_list: [],
  385. detail: {
  386. fullName: "",
  387. seg_words: "",
  388. wordsList: [],
  389. },
  390. };
  391. this.curQue.roleList.push(JSON.parse(JSON.stringify(roleCon)));
  392. },
  393. //保存角色
  394. saveRoleList() {
  395. this.roleVisible = false;
  396. this.$message.success("保存成功!");
  397. },
  398. //删除角色
  399. delRole(index) {
  400. this.curQue.roleList.splice(index, 1);
  401. },
  402. //点击角色
  403. editRole(item) {
  404. this.roleVisible = true;
  405. this.roleStatus = 2;
  406. this.curRole = item;
  407. },
  408. changeIsPara() {
  409. this.isPara = true;
  410. },
  411. //生成分句
  412. sureSeg() {
  413. let detail = JSON.parse(JSON.stringify(this.curQue.detail));
  414. let leg = detail.length;
  415. let flag = false;
  416. for (let i = 0; i < leg; i++) {
  417. if (!detail[i].para) {
  418. flag = true;
  419. break;
  420. }
  421. }
  422. if (!flag) {
  423. let textList = [];
  424. detail.forEach((item) => {
  425. let str = Base64.encode(item.para);
  426. textList.push(str);
  427. });
  428. this.loading = true;
  429. let data = {
  430. textList: textList,
  431. };
  432. segSentences(data).then((res) => {
  433. this.loading = false;
  434. let result = res.data.result;
  435. result.forEach((item, index) => {
  436. this.$set(this.curQue.detail[index], "sentences", item);
  437. for (let i = 0; i < item.length; i++) {
  438. this.curQue.detail[index].sentencesEn.push("");
  439. }
  440. });
  441. this.isClause = true;
  442. });
  443. } else {
  444. this.$message.warning("段落不能为空");
  445. }
  446. },
  447. changeIsClause(isClause) {
  448. this.isClause = isClause;
  449. },
  450. //生成分词
  451. segByWord(sentences, paraIndex) {
  452. if (!this.segModel || this.segModel == "words") {
  453. this.loading = true;
  454. let textList = [];
  455. sentences.forEach((item) => {
  456. let str = Base64.encode(item);
  457. textList.push(str);
  458. });
  459. let data = {
  460. textList: textList,
  461. };
  462. BatchSegContent(data).then((res) => {
  463. this.loading = false;
  464. let list = res.data.result.list;
  465. this.$set(this.curQue.detail[paraIndex], "segList", list);
  466. this.segList = list;
  467. this.isByWord = true;
  468. this.paraIndex = paraIndex;
  469. this.setWordsList(list, paraIndex);
  470. });
  471. } else {
  472. let list = [];
  473. let reg = /_{2,}/g;
  474. sentences.forEach((item) => {
  475. if (reg.test(item)) {
  476. item = item.replace(reg, "^");
  477. }
  478. let arr = item.split("");
  479. arr = arr.map((aItem) => {
  480. aItem = aItem == "^" ? "_______" : aItem;
  481. return aItem;
  482. });
  483. list.push(arr);
  484. });
  485. console.log(list);
  486. this.setWordsList(list, paraIndex);
  487. this.$set(this.curQue.detail[paraIndex], "segList", list);
  488. console.log(this.curQue);
  489. this.segList = list;
  490. this.isByWord = true;
  491. this.paraIndex = paraIndex;
  492. }
  493. },
  494. setWordsList(list, paraIndex) {
  495. let wordsList = [];
  496. list.forEach((item, index) => {
  497. let sentArr = [];
  498. item.map((sItem) => {
  499. let obj = {
  500. chs: sItem,
  501. pinyin: "",
  502. fontSize: "20px",
  503. fontColor: "#000",
  504. fontFamily: "FZJCGFKTK",
  505. wordPadding: [],
  506. underLine: false,
  507. };
  508. sentArr.push(obj);
  509. });
  510. wordsList.push(sentArr);
  511. });
  512. this.$set(this.curQue.detail[paraIndex], "wordsList", wordsList);
  513. },
  514. // 上传音频文件
  515. handleChange(file, fileList) {
  516. let _this = this;
  517. _this.getBase64(file.raw).then((res) => {
  518. let base_res = res.split("base64,");
  519. let data = {
  520. fileName: file.raw.name,
  521. speechBase64: base_res[1],
  522. language: "ch",
  523. };
  524. prepareTranscribe(data).then((reses) => {
  525. _this.$set(_this.curQue, "taskId", reses.data.taskId);
  526. });
  527. });
  528. },
  529. getBase64(file) {
  530. return new Promise(function (resolve, reject) {
  531. let reader = new FileReader();
  532. let imgResult = "";
  533. reader.readAsDataURL(file);
  534. reader.onload = function () {
  535. imgResult = reader.result;
  536. };
  537. reader.onerror = function (error) {
  538. reject(error);
  539. };
  540. reader.onloadend = function () {
  541. resolve(imgResult);
  542. };
  543. });
  544. },
  545. createWordTime() {
  546. if (this.curQue.taskId) {
  547. let verseList = [];
  548. this.curQue.detail.forEach((item) => {
  549. verseList = verseList.concat(item.sentences);
  550. });
  551. if (verseList.length > 0) {
  552. this.isWordTime = true;
  553. let data = {
  554. taskId: this.curQue.taskId,
  555. verseList: JSON.stringify(verseList),
  556. language: "ch",
  557. };
  558. getWordTime(data).then((res) => {
  559. this.curQue.wordTime = res.data.result;
  560. this.isWordTime = false;
  561. });
  562. }
  563. } else {
  564. this.$message.warning("请先上传音频");
  565. }
  566. },
  567. againWordTime() {
  568. this.isWordTime = false;
  569. this.$set(this.curQue, "wordTime", []);
  570. },
  571. uploadLRC() {
  572. this.cTVisible = true;
  573. },
  574. //保存字幕节点
  575. saveTimeList() {
  576. this.cTVisible = false;
  577. let detail = JSON.parse(JSON.stringify(this.$refs.createtimelist.detail));
  578. let detailRes = detail.map((item) => {
  579. let timeList = item.time_str.split("\n");
  580. item.timeList = this.handleTimeReg(timeList);
  581. return item;
  582. });
  583. this.curQue.detail = JSON.parse(JSON.stringify(detailRes));
  584. },
  585. handleTimeReg(list) {
  586. list = list.map((item) => {
  587. let regArr = item.split("]");
  588. let reg = regArr[0];
  589. item = reg.replace("[", "");
  590. return item;
  591. });
  592. return list;
  593. },
  594. //点击字幕节点
  595. editTimeList() {
  596. this.cTVisible = true;
  597. },
  598. initData() {
  599. if (this.curQue) {
  600. if (!this.curQue.number) {
  601. this.curQue.number = "";
  602. }
  603. if (this.curQue.detail && this.curQue.detail.length > 0) {
  604. if (this.curQue.detail[0].para) {
  605. this.isPara = true;
  606. }
  607. if (this.curQue.detail[0].sentences.length > 0) {
  608. this.isClause = true;
  609. }
  610. if (this.curQue.detail[0].seg_words.length > 0) {
  611. this.isByWord = true;
  612. }
  613. }
  614. if (!this.curQue.img_list) {
  615. this.curQue.img_list = [];
  616. }
  617. if (!this.curQue.mp3_list) {
  618. this.curQue.mp3_list = [];
  619. }
  620. this.fileCon.img_list = JSON.parse(
  621. JSON.stringify(this.curQue.img_list)
  622. );
  623. this.fileCon.mp3_list = JSON.parse(
  624. JSON.stringify(this.curQue.mp3_list)
  625. );
  626. }
  627. },
  628. },
  629. //生命周期 - 创建完成(可以访问当前this实例)
  630. created() {},
  631. //生命周期 - 挂载完成(可以访问DOM元素)
  632. mounted() {
  633. this.initData();
  634. },
  635. beforeCreate() {}, //生命周期 - 创建之前
  636. beforeMount() {}, //生命周期 - 挂载之前
  637. beforeUpdate() {}, //生命周期 - 更新之前
  638. updated() {}, //生命周期 - 更新之后
  639. beforeDestroy() {}, //生命周期 - 销毁之前
  640. destroyed() {}, //生命周期 - 销毁完成
  641. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  642. };
  643. </script>
  644. <style lang='scss' scoped>
  645. //@import url(); 引入公共css类
  646. p {
  647. margin: 0;
  648. padding: 0;
  649. }
  650. .adult-book-input-item {
  651. display: flex;
  652. justify-content: flex-start;
  653. align-items: center;
  654. > span {
  655. margin-right: 10px;
  656. width: 70px;
  657. }
  658. }
  659. .adult-book-input-role {
  660. clear: both;
  661. overflow: hidden;
  662. > li {
  663. float: left;
  664. display: flex;
  665. justify-content: flex-start;
  666. align-items: center;
  667. padding: 4px 8px;
  668. border: 1px #a7a7a7 solid;
  669. border-radius: 8px;
  670. margin: 0 10px 10px 0px;
  671. .rItem {
  672. display: flex;
  673. justify-content: flex-start;
  674. align-items: center;
  675. .adult-book-input {
  676. &-roleText {
  677. width: 40px;
  678. height: 40px;
  679. background: #a7a7a7;
  680. border-radius: 100%;
  681. text-align: center;
  682. line-height: 40px;
  683. }
  684. &-roleImg {
  685. width: 40px;
  686. height: 40px;
  687. }
  688. }
  689. .pinyin {
  690. font-family: "GB-PINYINOK-B";
  691. font-size: 14px;
  692. line-height: 22px;
  693. color: rgba(0, 0, 0, 0.85);
  694. margin-right: 8px;
  695. margin-left: 8px;
  696. }
  697. .chs {
  698. font-family: "FZJCGFKTK";
  699. font-size: 16px;
  700. line-height: 24px;
  701. color: #000000;
  702. margin-right: 16px;
  703. }
  704. }
  705. > i {
  706. cursor: pointer;
  707. }
  708. }
  709. }
  710. .uploadArt_list {
  711. border: 1px #ccc solid;
  712. border-bottom: 0;
  713. margin-top: 10px;
  714. > li {
  715. display: flex;
  716. justify-content: flex-start;
  717. align-items: center;
  718. border-bottom: 1px #ccc solid;
  719. > span {
  720. width: 320px;
  721. word-wrap: break-word;
  722. font-size: 14px;
  723. color: rgb(112, 110, 110);
  724. border-right: 1px #ccc solid;
  725. padding: 5px 10px;
  726. }
  727. > p {
  728. flex: 1;
  729. padding: 5px 10px;
  730. }
  731. .imgNumber {
  732. width: 80px;
  733. }
  734. .del-close {
  735. width: 24px;
  736. height: 24px;
  737. cursor: pointer;
  738. margin-right: 10px;
  739. }
  740. }
  741. }
  742. .NPC-Book-Article {
  743. > div {
  744. margin-bottom: 20px;
  745. }
  746. }
  747. .NPC-Book-model {
  748. display: flex;
  749. justify-content: flex-start;
  750. align-items: center;
  751. > span {
  752. margin: 0;
  753. }
  754. }
  755. .lrc-box {
  756. display: flex;
  757. justify-content: flex-start;
  758. align-items: center;
  759. > span {
  760. font-size: 14px;
  761. margin-right: 16px;
  762. }
  763. }
  764. </style>