adultInput.vue 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  1. <!-- -->
  2. <template>
  3. <div class="Big-Book-container adult-book-input-sty">
  4. <Header />
  5. <div class="Big-Book-content">
  6. <div class="content-tree">
  7. <Catelog
  8. :book-id="bookId"
  9. :book-level="bookLevel"
  10. :book-node-index="bookIndex"
  11. :change-id="changeId"
  12. />
  13. </div>
  14. <div v-if="currentTreeID" class="Book-content">
  15. <div class="Big-Book-save">
  16. <el-button type="primary" @click="onSave">保 存</el-button>
  17. <el-button type="danger" plain @click="onPreview">预 览</el-button>
  18. </div>
  19. <el-tabs
  20. v-model="editableTabsValue"
  21. type="card"
  22. editable
  23. @edit="handleTabsEdit"
  24. @tab-click="tabClick"
  25. >
  26. <el-tab-pane
  27. v-for="(item, index) in question_list"
  28. :key="item.name"
  29. :label="item.title"
  30. :name="item.name"
  31. >
  32. <div
  33. style="position: relative"
  34. v-for="(fc, fcIndex) in item.detailList"
  35. :key="'fc' + fcIndex"
  36. >
  37. <SentenceSegwordChs :curQue="fc" />
  38. <img
  39. style="position: absolute; right: 699px; top: 2px"
  40. @click="deleteDetail(index, fcIndex)"
  41. class="close"
  42. src="../assets/adult/del-close.png"
  43. alt=""
  44. />
  45. </div>
  46. <div class="addoption" @click="addDetail(index)">添加分句</div>
  47. <div v-for="(kt, ktIndex) in item.classTopic" :key="'kt' + ktIndex">
  48. <div class="Big-Book-top" style="margin: 10px 0">
  49. <span>课题</span>
  50. <el-input
  51. v-model="kt.con"
  52. style="width: 80%"
  53. type="textarea"
  54. autosize
  55. placeholder="请输入课题"
  56. @blur="onBlur(kt, 'con')"
  57. />
  58. <img
  59. @click="deleteClassTopic(index, ktIndex)"
  60. class="close"
  61. src="../assets/adult/del-close.png"
  62. alt=""
  63. />
  64. </div>
  65. <div class="Big-Book-top" style="margin: 10px 0">
  66. <span>字体</span>
  67. <el-radio-group v-model="kt.font">
  68. <el-radio label="cn">中文字体</el-radio>
  69. <el-radio label="en">英文字体</el-radio>
  70. <el-radio label="pinyin">拼音字体</el-radio>
  71. </el-radio-group>
  72. </div>
  73. </div>
  74. <div class="addoption" @click="addClassTopic(index)">添加课题</div>
  75. <div class="createTable">
  76. <el-input
  77. v-model="row"
  78. maxlength="1"
  79. style="width: 50px"
  80. type="text"
  81. @input="rowLine('row')"
  82. />*<el-input
  83. v-model="line"
  84. style="width: 50px"
  85. type="text"
  86. maxlength="1"
  87. @input="rowLine('line')"
  88. />
  89. <el-button
  90. style="margin-left: 10px"
  91. type="primary"
  92. @click="createTable"
  93. >增加题</el-button
  94. >
  95. </div>
  96. <div
  97. v-for="(topic, toindex) in item.cur_fn_data"
  98. :key="'topic' + toindex + index"
  99. >
  100. <p>第{{ toindex + 1 }}题</p>
  101. <div class="adult-book-input-item">
  102. <span class="adult-book-lable">正标题:</span>
  103. <el-input
  104. v-model="topic.z_title"
  105. type="textarea"
  106. :autosize="{ minRows: 2 }"
  107. placeholder="请输入正标题"
  108. @blur="onBlur(topic, 'z_title')"
  109. />
  110. </div>
  111. <div class="adult-book-input-item">
  112. <span class="adult-book-lable">副标题:</span>
  113. <el-input
  114. v-model="topic.f_title"
  115. :autosize="{ minRows: 2 }"
  116. type="textarea"
  117. placeholder="请输入副标题"
  118. @blur="onBlur(topic, 'f_title')"
  119. />
  120. </div>
  121. <div class="adult-book-input-item">
  122. <span class="adult-book-lable">序号:</span>
  123. <el-input
  124. v-model="topic.number"
  125. type="textarea"
  126. :autosize="{ minRows: 2 }"
  127. placeholder="请输入序号"
  128. @blur="onBlur(topic, 'number')"
  129. />
  130. </div>
  131. <div class="Big-Book-top">
  132. <span>是否有背景色</span>
  133. <el-radio v-model="topic.is_bg" :label="true">有</el-radio>
  134. <el-radio v-model="topic.is_bg" :label="false">无</el-radio>
  135. </div>
  136. <div class="Big-Book-top">
  137. <span>是否有背景图</span>
  138. <el-radio v-model="topic.is_layout" :label="true">有</el-radio>
  139. <el-radio v-model="topic.is_layout" :label="false">无</el-radio>
  140. </div>
  141. <div
  142. v-for="(rowItem, rowIndex) in topic.table_list"
  143. :key="'row' + rowIndex + index"
  144. >
  145. <div
  146. v-for="(topicIitem, lineIndex) in rowItem"
  147. :key="lineIndex"
  148. >
  149. <p>{{ topicIitem.text }}</p>
  150. <div>
  151. <template
  152. v-if="
  153. topicIitem.type == 'article_chs' ||
  154. (topicIitem.data &&
  155. topicIitem.data.type == 'article_chs')
  156. "
  157. >
  158. <template v-if="topicIitem.is_edit">
  159. <ArticleTemChs
  160. :cur-que="topicIitem.data"
  161. :change-cur-que="changeCurQue"
  162. />
  163. </template>
  164. <template v-else>
  165. <ArticleView :cur-que="topicIitem.data" />
  166. </template>
  167. </template>
  168. <template v-if="topicIitem.type == 'sentence_segword_chs'">
  169. <template v-if="topicIitem.is_edit">
  170. <SentenceSegwordChs
  171. :cur-que="topicIitem.data"
  172. :change-cur-que="changeCurQue"
  173. />
  174. </template>
  175. <template v-else>
  176. <ArticleView :cur-que="topicIitem.data" />
  177. </template>
  178. </template>
  179. <template v-if="topicIitem.type == 'dialogue_article_chs'">
  180. <template v-if="topicIitem.is_edit">
  181. <DialogueArticleChs
  182. :cur-que="topicIitem.data"
  183. :change-cur-que="changeCurQue"
  184. />
  185. </template>
  186. <template v-else>
  187. <!-- <ArticleView :curQue="topicIitem.que" /> -->
  188. </template>
  189. </template>
  190. <template v-if="topicIitem.type == 'dialogue_answer_chs'">
  191. <template v-if="topicIitem.is_edit">
  192. <DialogueAnswerChs
  193. :cur-que="topicIitem.data"
  194. :change-cur-que="changeCurQue"
  195. />
  196. </template>
  197. <template v-else>
  198. <!-- <ArticleView :curQue="topicIitem.que" /> -->
  199. </template>
  200. </template>
  201. <template v-if="topicIitem.type == 'NewWord_chs'">
  202. <template v-if="topicIitem.is_edit">
  203. <Neword
  204. :cur-que="topicIitem.data"
  205. :change-cur-que="changeCurQue"
  206. />
  207. </template>
  208. <template v-else>
  209. <NewordPhraseview :cur-que="topicIitem.data" />
  210. </template>
  211. </template>
  212. <template v-if="topicIitem.type == 'notes_chs'">
  213. <template v-if="topicIitem.is_edit">
  214. <Notes
  215. :cur-que="topicIitem.data"
  216. :change-cur-que="changeCurQue"
  217. />
  218. </template>
  219. <template v-else>
  220. <NewordPhraseview :cur-que="topicIitem.data" />
  221. </template>
  222. </template>
  223. <template v-if="topicIitem.type == 'input_record_chs'">
  224. <template v-if="topicIitem.is_edit">
  225. <InputRecord
  226. :cur-que="topicIitem.data"
  227. :fn_data="fn_data"
  228. :change-cur-que="changeCurQue"
  229. />
  230. </template>
  231. <template v-else />
  232. </template>
  233. <template
  234. v-if="
  235. topicIitem.type == 'recordHZ_inputPY_chs' ||
  236. topicIitem.type == 'inputItem_chs' ||
  237. topicIitem.type == 'sentence_input_chs' ||
  238. topicIitem.type == 'sentence_judge_chs' ||
  239. topicIitem.type == 'sentence_record_chs' ||
  240. topicIitem.type == 'sentence_input_record_chs'
  241. "
  242. >
  243. <template v-if="topicIitem.is_edit">
  244. <Sentence
  245. :cur-que="topicIitem.data"
  246. :type="topicIitem.type"
  247. :fn_data="fn_data"
  248. :change-cur-que="changeCurQue"
  249. />
  250. </template>
  251. <template v-else />
  252. </template>
  253. <template v-if="topicIitem.type == 'upload_control_chs'">
  254. <template v-if="topicIitem.is_edit">
  255. <UploadControl
  256. :cur-que="topicIitem.data"
  257. :type="topicIitem.type"
  258. :fn_data="fn_data"
  259. :change-cur-que="changeCurQue"
  260. />
  261. </template>
  262. <template v-else>
  263. <UploadControlView
  264. :cur-que="topicIitem.data"
  265. :fn_data="fn_data"
  266. />
  267. </template>
  268. </template>
  269. <template v-if="topicIitem.type == 'sudoku_chs'">
  270. <template v-if="topicIitem.is_edit">
  271. <Sudoku
  272. :cur-que="topicIitem.data"
  273. :type="topicIitem.type"
  274. :fn_data="fn_data"
  275. :change-cur-que="changeCurQue"
  276. />
  277. </template>
  278. <template v-else />
  279. </template>
  280. <template v-if="topicIitem.type == 'NumberCombination_chs'">
  281. <template v-if="topicIitem.is_edit">
  282. <NumberCombination
  283. :cur-que="topicIitem.data"
  284. :type="topicIitem.type"
  285. :fn_data="fn_data"
  286. :change-cur-que="changeCurQue"
  287. />
  288. </template>
  289. <template v-else />
  290. </template>
  291. <template v-if="topicIitem.type == 'toneSelect_chs'">
  292. <template v-if="topicIitem.is_edit">
  293. <ToneSelect
  294. :cur-que="topicIitem.data"
  295. :type="topicIitem.type"
  296. :fn_data="fn_data"
  297. :change-cur-que="changeCurQue"
  298. />
  299. </template>
  300. <template v-else />
  301. </template>
  302. <template v-if="topicIitem.type === 'voice_matrix'">
  303. <template v-if="topicIitem.is_edit">
  304. <voice-matrix
  305. :cur-que="topicIitem.data"
  306. :change-cur-que="changeCurQue"
  307. />
  308. </template>
  309. </template>
  310. <template v-if="topicIitem.type == 'ligature_chs'">
  311. <template v-if="topicIitem.is_edit">
  312. <Ligature
  313. :curQue="topicIitem.data"
  314. :fn_data="fn_data"
  315. :changeCurQue="changeCurQue"
  316. />
  317. </template>
  318. <template v-else>
  319. <Ligatureview :curQue="topicIitem.data" />
  320. </template>
  321. </template>
  322. <template
  323. v-if="topicIitem.type == 'image_question_input_record'"
  324. >
  325. <template v-if="topicIitem.is_edit">
  326. <ImageQuestion
  327. :curQue="topicIitem.data"
  328. :type="topicIitem.type"
  329. :fn_data="fn_data"
  330. :changeCurQue="changeCurQue"
  331. />
  332. </template>
  333. <template v-else> </template>
  334. </template>
  335. <template
  336. v-if="
  337. topicIitem.type == 'single_chs' ||
  338. topicIitem.type == 'checkbox_chs' ||
  339. topicIitem.type == 'listen_record_single_chs'
  340. "
  341. >
  342. <template v-if="topicIitem.is_edit">
  343. <Single
  344. :curQue="topicIitem.data"
  345. :type="topicIitem.type"
  346. :fn_data="fn_data"
  347. :changeCurQue="changeCurQue"
  348. />
  349. </template>
  350. <template v-else> </template>
  351. </template>
  352. <template
  353. v-if="
  354. topicIitem.type == 'text_problem_chs' ||
  355. topicIitem.type == 'newWord_preview_chs' ||
  356. topicIitem.type == 'listen_record_single_syllable_chs'
  357. "
  358. >
  359. <template v-if="topicIitem.is_edit">
  360. <PurePreview
  361. :curQue="topicIitem.data"
  362. :type="topicIitem.type"
  363. :fn_data="fn_data"
  364. :changeCurQue="changeCurQue"
  365. />
  366. </template>
  367. <template v-else> </template>
  368. </template>
  369. <template
  370. v-if="topicIitem.type == 'zi_transverse_line_chs'"
  371. >
  372. <template v-if="topicIitem.is_edit">
  373. <ZiLine
  374. :curQue="topicIitem.data"
  375. :type="topicIitem.type"
  376. :fn_data="fn_data"
  377. :changeCurQue="changeCurQue"
  378. />
  379. </template>
  380. <template v-else> </template>
  381. </template>
  382. <template v-if="topicIitem.type == 'select_input_chs'">
  383. <template v-if="topicIitem.is_edit">
  384. <SelectInpue
  385. :curQue="topicIitem.data"
  386. :type="topicIitem.type"
  387. :fn_data="fn_data"
  388. :changeCurQue="changeCurQue"
  389. />
  390. </template>
  391. <template v-else> </template>
  392. </template>
  393. <template v-if="topicIitem.type == 'play_input_record_chs'">
  394. <template v-if="topicIitem.is_edit">
  395. <PlayInputReacord
  396. :curQue="topicIitem.data"
  397. :type="topicIitem.type"
  398. :fn_data="fn_data"
  399. :changeCurQue="changeCurQue"
  400. />
  401. </template>
  402. <template v-else> </template>
  403. </template>
  404. <template
  405. v-if="
  406. topicIitem.type == 'imgage_image' ||
  407. topicIitem.type == 'image_checkBox' ||
  408. topicIitem.type == 'image_judge' ||
  409. topicIitem.type == 'image_single' ||
  410. topicIitem.type == 'image_dobleinput' ||
  411. topicIitem.type == 'image_gdcy' ||
  412. topicIitem.type == 'image_input'
  413. "
  414. >
  415. <template v-if="topicIitem.is_edit">
  416. <Picture
  417. :curQue="topicIitem.data"
  418. :type="topicIitem.type"
  419. :fn_data="fn_data"
  420. :changeCurQue="changeCurQue"
  421. />
  422. </template>
  423. <template v-else> </template>
  424. </template>
  425. <template v-if="topicIitem.type == 'drag_chs'">
  426. <template v-if="topicIitem.is_edit">
  427. <Drag
  428. :curQue="topicIitem.data"
  429. :type="topicIitem.type"
  430. :fn_data="fn_data"
  431. :changeCurQue="changeCurQue"
  432. />
  433. </template>
  434. <template v-else> </template>
  435. </template>
  436. <template
  437. v-if="topicIitem.type == 'checkbox_self_assessment_chs'"
  438. >
  439. <template v-if="topicIitem.is_edit">
  440. <SelfAssessment
  441. :curQue="topicIitem.data"
  442. :type="topicIitem.type"
  443. :fn_data="fn_data"
  444. :changeCurQue="changeCurQue"
  445. />
  446. </template>
  447. <template v-else> </template>
  448. </template>
  449. <template v-if="topicIitem.type == 'sort_chs'">
  450. <template v-if="topicIitem.is_edit">
  451. <Sort
  452. :curQue="topicIitem.data"
  453. :type="topicIitem.type"
  454. :fn_data="fn_data"
  455. :changeCurQue="changeCurQue"
  456. />
  457. </template>
  458. <template v-else> </template>
  459. </template>
  460. <template v-if="topicIitem.type == 'sort_chs'">
  461. <template v-if="topicIitem.is_edit">
  462. <Sort
  463. :curQue="topicIitem.data"
  464. :type="topicIitem.type"
  465. :fn_data="fn_data"
  466. :changeCurQue="changeCurQue"
  467. />
  468. </template>
  469. <template v-else> </template>
  470. </template>
  471. <template v-if="topicIitem.type == 'CourseStart_chs'">
  472. <template v-if="topicIitem.is_edit">
  473. <CourseStart
  474. :curQue="topicIitem.data"
  475. :type="topicIitem.type"
  476. :fn_data="fn_data"
  477. :changeCurQue="changeCurQue"
  478. />
  479. </template>
  480. <template v-else> </template>
  481. </template>
  482. <template
  483. v-if="
  484. topicIitem.type == 'record_control_mini' ||
  485. topicIitem.type == 'record_control_normal' ||
  486. topicIitem.type == 'record_control_pro' ||
  487. topicIitem.type == 'record_control_promax'
  488. "
  489. >
  490. <template v-if="topicIitem.is_edit">
  491. <RecordControl
  492. :curQue="topicIitem.data"
  493. :type="topicIitem.type"
  494. :fn_data="fn_data"
  495. :changeCurQue="changeCurQue"
  496. />
  497. </template>
  498. <template v-else> </template>
  499. </template>
  500. </div>
  501. <div
  502. v-if="topicIitem.data && topicIitem.is_edit"
  503. class="addoption"
  504. @click="
  505. remoeModule(toindex, rowIndex, lineIndex, topicIitem)
  506. "
  507. >
  508. 删除模板
  509. </div>
  510. <div
  511. v-else-if="
  512. TopicIndex == toindex &&
  513. RowIndex == rowIndex &&
  514. lineIndex == LineIndex
  515. "
  516. class="addoption"
  517. >
  518. 选择模板
  519. </div>
  520. <div
  521. v-if="!topicIitem.data && topicIitem.is_add_module"
  522. class="addoption"
  523. @click="addModule(toindex, rowIndex, lineIndex, topicIitem)"
  524. >
  525. 添加模板
  526. </div>
  527. <template v-if="topicIitem.data">
  528. <div v-if="topicIitem.is_edit" class="Big-Book-save">
  529. <el-button
  530. type="success"
  531. size="small"
  532. @click="onSure(topicIitem)"
  533. >确定</el-button
  534. >
  535. </div>
  536. <div v-else class="Big-Book-save">
  537. <el-button
  538. type="primary"
  539. size="small"
  540. @click.stop="editCurQue(topicIitem)"
  541. >编辑</el-button
  542. >
  543. </div>
  544. </template>
  545. </div>
  546. </div>
  547. </div>
  548. </el-tab-pane>
  549. </el-tabs>
  550. </div>
  551. <div v-if="currentTreeID" class="Book-function">
  552. <ul class="function-list">
  553. <li
  554. v-for="(item, index) in fn_data"
  555. :key="'fn' + index"
  556. @click="selectedFnType(item, index)"
  557. >
  558. <el-dropdown v-if="item.list">
  559. <span class="fn-name">
  560. {{ item.name }}<i class="el-icon-arrow-down el-icon--right" />
  561. </span>
  562. <el-dropdown-menu slot="dropdown" trigger="click">
  563. <el-dropdown-item
  564. v-for="(child, i) in item.list"
  565. :key="i"
  566. @click.native="selectSmallModule(item, child, index, i)"
  567. >{{ child.name }}</el-dropdown-item
  568. >
  569. </el-dropdown-menu>
  570. </el-dropdown>
  571. <span v-else class="fn-name">{{ item.name }}</span>
  572. </li>
  573. </ul>
  574. </div>
  575. </div>
  576. <el-dialog
  577. :visible.sync="previewVisible"
  578. title="预览"
  579. top="0"
  580. width="100%"
  581. @close="handleClosePre"
  582. >
  583. <div class="chooseCon">
  584. <Preview
  585. :context="context"
  586. :que-index="queIndex"
  587. :father-name="fatherName"
  588. />
  589. </div>
  590. <span slot="footer" class="dialog-footer">
  591. <el-button @click="handleClosePre">关 闭</el-button>
  592. </span>
  593. </el-dialog>
  594. </div>
  595. </template>
  596. <script>
  597. import Header from "@/components/Header.vue";
  598. import Catelog from "@/components/Adult/inputModules/Catelog";
  599. import ArticleTemChs from "@/components/Adult/inputModules/ArticleTemChs/index.vue";
  600. import SentenceSegwordChs from "@/components/Adult/inputModules/SentenceSegwordChs/index.vue";
  601. import DialogueArticleChs from "@/components/Adult/inputModules/DialogueArticleChs/index.vue";
  602. import Single from "@/components/Adult/inputModules/Single.vue";
  603. import Judge from "@/components/Adult/inputModules/Judge.vue";
  604. import Dialogue from "@/components/Adult/inputModules/Dialogue.vue";
  605. import MatrixSingle from "@/components/Adult/inputModules/MatrixSingle.vue";
  606. import MultiRowInput from "@/components/Adult/inputModules/MultiRowInput.vue";
  607. import Ligature from "@/components/Adult/inputModules/Ligature.vue";
  608. import Neword from "@/components/Adult/inputModules/Neword.vue";
  609. import Notes from "@/components/Adult/inputModules/Notes.vue";
  610. import InputRecord from "@/components/Adult/inputModules/InputRecord.vue";
  611. import AudioControl from "@/components/Adult/inputModules/AudioControl.vue";
  612. import SuitchControl from "@/components/Adult/inputModules/SuitchControl.vue";
  613. import BgControl from "@/components/Adult/inputModules/BgControl.vue";
  614. import UploadControl from "@/components/Adult/inputModules/UploadControl.vue";
  615. import TextItem from "@/components/Adult/inputModules/TextItem.vue";
  616. import Sentence from "@/components/Adult/inputModules/Sentence.vue";
  617. import Sudoku from "@/components/Adult/inputModules/Sudoku.vue";
  618. import ToneSelect from "@/components/Adult/inputModules/ToneSelect.vue";
  619. import NumberCombination from "@/components/Adult/inputModules/NumberCombination.vue";
  620. import DialogueAnswerChs from "@/components/Adult/inputModules/DialogueAnswerChs";
  621. import VoiceMatrix from "@/components/Adult/inputModules/VoiceMatrix.vue";
  622. import ImageQuestion from "@/components/Adult/inputModules/ImageQuestion.vue";
  623. import PurePreview from "@/components/Adult/inputModules/PurePreview.vue";
  624. import ZiLine from "@/components/Adult/inputModules/ZiLine.vue";
  625. import SelectInpue from "@/components/Adult/inputModules/SelectInpue.vue";
  626. import PlayInputReacord from "@/components/Adult/inputModules/PlayInputReacord.vue";
  627. import Drag from "@/components/Adult/inputModules/Drag.vue";
  628. import SelfAssessment from "@/components/Adult/inputModules/SelfAssessment.vue";
  629. import Sort from "@/components/Adult/inputModules/Sort.vue";
  630. import CourseStart from "@/components/Adult/inputModules/CourseStart.vue";
  631. import RecordControl from "@/components/Adult/inputModules/RecordControl.vue";
  632. import Textdes from "@/components/Adult/inputModules/Textdes.vue";
  633. import Record from "@/components/Adult/inputModules/Record.vue";
  634. import Hanzi from "@/components/Adult/inputModules/Hanzi.vue";
  635. import Picture from "@/components/Adult/inputModules/Picture.vue";
  636. import Singleview from "@/components/Adult/preview/Single.vue";
  637. import Judgeview from "@/components/Adult/preview/Judge.vue";
  638. import Textdesview from "@/components/Adult/preview/Textdes.vue";
  639. import Hanziview from "@/components/Adult/preview/Hanzi.vue";
  640. import Pictureview from "@/components/Adult/preview/Picture.vue";
  641. import Dialogueview from "@/components/Adult/preview/Dialogue.vue";
  642. import MatrixSingleview from "@/components/Adult/preview/MatrixSingle.vue";
  643. import MultiRowInputview from "@/components/Adult/preview/MultiRowInput.vue";
  644. import Ligatureview from "@/components/Adult/preview/Ligature.vue";
  645. import InputRecordview from "@/components/Adult/preview/InputRecord.vue";
  646. import BgControlview from "@/components/Adult/preview/BgControl.vue";
  647. import NewordPhraseview from "@/components/Adult/preview/WordPhrase.vue";
  648. import UploadControlView from "@/components/Adult/preview/UploadControlView.vue";
  649. import DialogueAnswerViewChs from "@/components/Adult/preview/DialogueArticleViewChs/DialogueAnswerViewChs.vue";
  650. import Clauseresult from "@/components/Adult/inputModules/SentenceSegwordChs/components/ClauseresultChs.vue";
  651. import Preview from "@/components/Adult/Preview.vue";
  652. import fn from "@/components/Adult/common/data.js";
  653. import { getContent, getStaticContent } from "@/api/ajax";
  654. export default {
  655. components: {
  656. Header,
  657. Catelog,
  658. Single,
  659. Textdes,
  660. Record,
  661. Singleview,
  662. Textdesview,
  663. Hanziview,
  664. Pictureview,
  665. Preview,
  666. Hanzi,
  667. Picture,
  668. Judge,
  669. Judgeview,
  670. Dialogue,
  671. Dialogueview,
  672. MatrixSingle,
  673. MatrixSingleview,
  674. MultiRowInput,
  675. MultiRowInputview,
  676. Ligature,
  677. Ligatureview,
  678. Neword,
  679. Notes,
  680. InputRecord,
  681. ArticleTemChs,
  682. SentenceSegwordChs,
  683. DialogueArticleChs,
  684. AudioControl,
  685. SuitchControl,
  686. BgControl,
  687. InputRecordview,
  688. BgControlview,
  689. NewordPhraseview,
  690. UploadControl,
  691. TextItem,
  692. Sentence,
  693. UploadControlView,
  694. Sudoku,
  695. NumberCombination,
  696. ToneSelect,
  697. DialogueAnswerChs,
  698. VoiceMatrix,
  699. ImageQuestion,
  700. PurePreview,
  701. ZiLine,
  702. SelectInpue,
  703. PlayInputReacord,
  704. Drag,
  705. SelfAssessment,
  706. Sort,
  707. CourseStart,
  708. RecordControl,
  709. },
  710. data() {
  711. return {
  712. bookId: 1,
  713. bookLevel: "",
  714. bookIndex: "",
  715. fn_data: [],
  716. fn_type: "",
  717. cur_fn_data: null, // 当前模块的数据结构
  718. cur_page_queIsEdit: [], // 当前页数的某个题
  719. org_question_list: [
  720. {
  721. name: "tab1",
  722. title: "第1页",
  723. detailList: [
  724. {
  725. type: "detail",
  726. pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
  727. sentence: "", //句子
  728. segList: [], //分词结果
  729. seg_words: "",
  730. wordsList: [],
  731. },
  732. ], //目录分词
  733. classTopic: [
  734. {
  735. con: "",
  736. font: "",
  737. },
  738. ], //课题
  739. cur_fn_data: [],
  740. },
  741. ], // 总的数据列表
  742. question_list: [
  743. {
  744. name: "tab1",
  745. title: "第1页",
  746. detailList: [
  747. {
  748. type: "detail",
  749. pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
  750. sentence: "", //句子
  751. segList: [], //分词结果
  752. seg_words: "",
  753. wordsList: [],
  754. },
  755. ], //目录分词
  756. classTopic: [
  757. {
  758. con: "",
  759. font: "",
  760. },
  761. ], //课题
  762. cur_fn_data: [],
  763. },
  764. ], // 总的数据列表
  765. cur_page_que_index: 0,
  766. editableTabsValue: "tab1",
  767. tabIndex: 0,
  768. previewVisible: false,
  769. context: [],
  770. queIndex: 0,
  771. currentTreeID: null,
  772. row: null, // 行
  773. line: null, // 列
  774. TopicIndex: null, // 第几题的索引
  775. RowIndex: null, // 第几行
  776. LineIndex: null, // 第几列
  777. bgControlX: null, // 背景图插入模板的 x
  778. bgControlY: null, // 背景图插入模板的 y
  779. bgControlIndex: null, // 插入第几个
  780. DeletebgControlIndex: null, // 删除第几个
  781. fatherName: "",
  782. module_type: "",
  783. tmInde: "",
  784. };
  785. },
  786. computed: {
  787. getCurrentQuestionView() {
  788. const function_type = this.fn_type;
  789. switch (function_type) {
  790. case "single":
  791. return Single;
  792. case "text":
  793. return Textdes;
  794. case "record":
  795. return Record;
  796. }
  797. },
  798. },
  799. watch: {},
  800. // 生命周期 - 创建完成(可以访问当前this实例)
  801. created() {
  802. this.fn_data = fn.fnData;
  803. },
  804. // 生命周期 - 挂载完成(可以访问DOM元素)
  805. mounted() {
  806. console.log(this.question_list);
  807. // let question_list_str = localStorage.getItem("question_list");
  808. // if (question_list_str) {
  809. // this.question_list = JSON.parse(question_list_str);
  810. // this.cur_page_que_index =
  811. // this.question_list[this.tabIndex].cur_fn_data.length - 1;
  812. // }
  813. },
  814. beforeCreate() {}, // 生命周期 - 创建之前
  815. beforeMount() {}, // 生命周期 - 挂载之前
  816. beforeUpdate() {}, // 生命周期 - 更新之前
  817. updated() {}, // 生命周期 - 更新之后
  818. beforeDestroy() {}, // 生命周期 - 销毁之前
  819. destroyed() {}, // 生命周期 - 销毁完成
  820. activated() {},
  821. // 方法集合
  822. methods: {
  823. // 增加当前页的分词
  824. addDetail(index) {
  825. let obj = {
  826. type: "detail",
  827. pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
  828. sentence: "", //句子
  829. segList: [], //分词结果
  830. seg_words: "",
  831. wordsList: [],
  832. };
  833. this.question_list[index].detailList.push(obj);
  834. },
  835. // 删除当前页的分词
  836. deleteDetail(index, fcindex) {
  837. if (this.question_list[index].detailList.length <= 1) {
  838. this.$message.warning("至少要保留一一个");
  839. return;
  840. }
  841. this.question_list[index].detailList.splice(fcindex, 1);
  842. },
  843. // 增加课题
  844. addClassTopic(index) {
  845. let obj = {
  846. con: "",
  847. font: "",
  848. };
  849. this.question_list[index].classTopic.push(obj);
  850. },
  851. // 删除课题
  852. deleteClassTopic(index, ktindex) {
  853. if (this.question_list[index].classTopic.length <= 1) {
  854. this.$message.warning("至少要保留一一个");
  855. return;
  856. }
  857. this.question_list[index].classTopic.splice(ktindex, 1);
  858. },
  859. // 随意插入模板获取位置
  860. changeSite(x, y) {
  861. this.bgControlX = x;
  862. this.bgControlY = y;
  863. },
  864. // 插入索引
  865. changebgControlIndex(index) {
  866. this.bgControlIndex = index;
  867. },
  868. // 删除索引
  869. changeDeletebgControlIndex(index) {
  870. this.DeletebgControlIndex = index;
  871. },
  872. rowLine(value) {
  873. this[value] = this[value].match(/^\d*(\.?\d{0,2})/g)[0] || "";
  874. },
  875. createTable() {
  876. if (this.row && this.line) {
  877. let arr = {
  878. z_title: "",
  879. f_title: "",
  880. number: "",
  881. is_bg: false, // 是否有背景色
  882. is_layout: false, // 是不是按背景图布局
  883. table_list: [],
  884. };
  885. for (let i = 0; i < this.row; i++) {
  886. let rowArr = [];
  887. for (let j = 0; j < this.line; j++) {
  888. let obj = {
  889. text: `第${i + 1}行,第${j + 1}列`,
  890. is_add_module: true,
  891. is_edit: true,
  892. };
  893. rowArr.push(obj);
  894. }
  895. arr.table_list.push(rowArr);
  896. }
  897. this.question_list[this.tabIndex].cur_fn_data.push(arr);
  898. this.row = null;
  899. this.line = null;
  900. } else {
  901. this.$message.warning("请输入行和列");
  902. }
  903. },
  904. // 添加模板
  905. addModule(topicIndex, rowindex, lineIndex, item) {
  906. this.TopicIndex = topicIndex;
  907. this.RowIndex = rowindex;
  908. this.LineIndex = lineIndex;
  909. this.question_list.forEach((page) => {
  910. page.cur_fn_data.forEach((pic) => {
  911. pic.table_list.forEach((row) => {
  912. row.forEach((col) => {
  913. col.is_add_module = true;
  914. });
  915. });
  916. });
  917. });
  918. item.is_add_module = false;
  919. },
  920. // 删除模板
  921. remoeModule(topicIndex, rowindex, lineIndex, item) {
  922. // this.question_list[this.tabIndex].cur_fn_data[topicIndex].tableList[
  923. // rowindex
  924. // ][lineIndex].que = null;
  925. // this.$set(
  926. // this.question_list[this.tabIndex].cur_fn_data[topicIndex].tableList[
  927. // rowindex
  928. // ][lineIndex],
  929. // "que",
  930. // null
  931. // );
  932. item.type = "";
  933. item.data = null;
  934. this.TopicIndex = null;
  935. this.RowIndex = null;
  936. this.LineIndex = null;
  937. item.is_add_module = true;
  938. },
  939. handleClosePre() {
  940. if (window.stopAudioVoice) window.stopAudioVoice();
  941. if (window.stopAudioAudio) window.stopAudioAudio();
  942. if (window.stopAudioSound) window.stopAudioSound();
  943. this.previewVisible = false;
  944. },
  945. onBlur(item, field) {
  946. item[field] = item[field] ? item[field].trim() : "";
  947. },
  948. // 当前目录id name 父级name/当前 name
  949. changeId(id, name, fatherName) {
  950. this.TopicIndex = null;
  951. this.RowIndex = null;
  952. this.LineIndex = null;
  953. this.fatherName = fatherName;
  954. this.currentTreeID = id;
  955. // 根据当前目录切换题
  956. let MethodName = "book-courseware_manager-GetCoursewareContent";
  957. let data = {
  958. id,
  959. };
  960. console.log(this.question_list);
  961. getContent(MethodName, data)
  962. .then((res) => {
  963. this.question_list = res.content
  964. ? JSON.parse(res.content)
  965. : JSON.parse(JSON.stringify(this.org_question_list));
  966. this.cur_page_que_index =
  967. this.question_list[this.tabIndex].cur_fn_data.length - 1;
  968. })
  969. .catch((error) => {});
  970. },
  971. handleTabsEdit(targetName, action) {
  972. if (action === "add") {
  973. let leg = this.question_list.length;
  974. let obj = {
  975. name: `tab${leg + 1}`,
  976. title: `第${leg + 1}页`,
  977. cur_fn_data: [],
  978. detailList: [
  979. {
  980. type: "detail",
  981. pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
  982. sentence: "", //句子
  983. segList: [], //分词结果
  984. seg_words: "",
  985. wordsList: [],
  986. },
  987. ], //目录分词
  988. classTopic: [
  989. {
  990. con: "",
  991. font: "",
  992. },
  993. ], //课题
  994. };
  995. this.question_list.push(obj);
  996. }
  997. if (action === "remove") {
  998. let tabs = JSON.parse(JSON.stringify(this.question_list));
  999. let activeName = this.editableTabsValue;
  1000. if (activeName === targetName) {
  1001. tabs.forEach((tab, index) => {
  1002. if (tab.name === targetName) {
  1003. let nextTab = tabs[index + 1] || tabs[index - 1];
  1004. if (nextTab) {
  1005. activeName = nextTab.name;
  1006. }
  1007. }
  1008. });
  1009. }
  1010. this.editableTabsValue = activeName;
  1011. let question_list = tabs.filter((tab) => tab.name !== targetName);
  1012. question_list.map((item, index) => {
  1013. item.name = `tab${index + 1}`;
  1014. item.title = `第${index + 1}页`;
  1015. return item;
  1016. });
  1017. this.question_list = question_list;
  1018. this.TopicIndex = null;
  1019. this.RowIndex = null;
  1020. this.LineIndex = null;
  1021. }
  1022. },
  1023. tabClick(tab) {
  1024. this.tabIndex = tab.index;
  1025. },
  1026. // 大模板
  1027. selectedFnType(item, index) {
  1028. if (item.list) {
  1029. return;
  1030. }
  1031. if (
  1032. Object.prototype.toString.call(this.TopicIndex).indexOf("Number") ==
  1033. -1 &&
  1034. Object.prototype.toString.call(this.LineIndex).indexOf("Number") == -1
  1035. ) {
  1036. this.$message.warning("请先选择添加模板的位置");
  1037. return;
  1038. }
  1039. if (
  1040. this.question_list[this.tabIndex].cur_fn_data[this.TopicIndex]
  1041. .table_list[this.RowIndex][this.LineIndex].data
  1042. ) {
  1043. this.$message.warning("每列只能添加一个模板");
  1044. } else {
  1045. console.log("不存在");
  1046. this.$set(
  1047. this.question_list[this.tabIndex].cur_fn_data[this.TopicIndex]
  1048. .table_list[this.RowIndex][this.LineIndex],
  1049. "type",
  1050. item.type
  1051. );
  1052. this.$set(
  1053. this.question_list[this.tabIndex].cur_fn_data[this.TopicIndex]
  1054. .table_list[this.RowIndex][this.LineIndex],
  1055. "data",
  1056. null
  1057. );
  1058. console.log(this.question_list);
  1059. }
  1060. },
  1061. changeCurQue(data_stru) {
  1062. console.log(this.RowIndex, this.LineIndex);
  1063. this.$set(
  1064. this.question_list[this.tabIndex].cur_fn_data[this.TopicIndex]
  1065. .table_list[this.RowIndex][this.LineIndex],
  1066. "data",
  1067. JSON.parse(JSON.stringify(data_stru))
  1068. );
  1069. console.log(this.question_list);
  1070. },
  1071. // 小模板
  1072. selectSmallModule(item, child, itemIndex, childIndex) {
  1073. console.log("选择了小模版");
  1074. if (
  1075. Object.prototype.toString.call(this.TopicIndex).indexOf("Number") ==
  1076. -1 &&
  1077. Object.prototype.toString.call(this.LineIndex).indexOf("Number") == -1
  1078. ) {
  1079. this.$message.warning("请先选择添加模板的位置");
  1080. return;
  1081. }
  1082. if (
  1083. this.question_list[this.tabIndex].cur_fn_data[this.TopicIndex]
  1084. .table_list[this.RowIndex][this.LineIndex].data
  1085. ) {
  1086. this.$message.warning("每列只能添加一个模板");
  1087. } else {
  1088. this.$set(
  1089. this.question_list[this.tabIndex].cur_fn_data[this.TopicIndex]
  1090. .table_list[this.RowIndex][this.LineIndex],
  1091. "type",
  1092. child.type
  1093. );
  1094. this.$set(
  1095. this.question_list[this.tabIndex].cur_fn_data[this.TopicIndex]
  1096. .table_list[this.RowIndex][this.LineIndex],
  1097. "data",
  1098. null
  1099. );
  1100. }
  1101. },
  1102. // 删除某页中一个部分
  1103. deleteCurQue(item, queIndex) {
  1104. item.queList.splice(queIndex, 1);
  1105. },
  1106. saveNewwordAndSentences() {
  1107. let question_list = this.question_list;
  1108. let sentence_list = [];
  1109. let new_word_list = [];
  1110. question_list.forEach((item) => {
  1111. item.cur_fn_data.forEach((curItem) => {
  1112. curItem.table_list.forEach((tabItem) => {
  1113. tabItem.forEach((topicIitem) => {
  1114. if (topicIitem.type == "article_chs") {
  1115. topicIitem.data.detail.forEach((item) => {
  1116. sentence_list = sentence_list.concat(item.sentences);
  1117. });
  1118. } else if (topicIitem.type == "NewWord_chs") {
  1119. new_word_list = topicIitem.data.option;
  1120. }
  1121. });
  1122. });
  1123. });
  1124. });
  1125. return {
  1126. new_word_list,
  1127. sentence_list,
  1128. };
  1129. },
  1130. onSave() {
  1131. let question_list_str = JSON.stringify(this.question_list);
  1132. console.log(this.question_list);
  1133. localStorage.setItem("question_list", question_list_str);
  1134. let result = this.saveNewwordAndSentences();
  1135. this.$message.success("保存成功");
  1136. const MethodName = "book-courseware_manager-SaveCoursewareContent";
  1137. let data = {
  1138. id: this.currentTreeID,
  1139. content: JSON.stringify(this.question_list),
  1140. new_word_list: result.new_word_list,
  1141. sentence_list: result.sentence_list,
  1142. ui_type: "NPC",
  1143. };
  1144. getContent(MethodName, data)
  1145. .then((res) => {
  1146. this.$message.success("保存成功!");
  1147. })
  1148. .catch((error) => {});
  1149. },
  1150. async onPreview() {
  1151. let _this = this;
  1152. let question_data = null;
  1153. if (_this.question_list) {
  1154. const question2 = JSON.parse(JSON.stringify(_this.question_list));
  1155. question_data = await _this.getFileUrl_preview(question2);
  1156. _this.previewVisible = true;
  1157. _this.context = question_data;
  1158. console.log("预览数据");
  1159. console.log(this.question_list);
  1160. } else {
  1161. _this.$message.warning("还没有录入数据");
  1162. }
  1163. },
  1164. getFileUrl_preview(question) {
  1165. let questionStr = JSON.stringify(question);
  1166. const reg = /\[FID##(.*?)##FID\]/g;
  1167. let regConArr = [];
  1168. if (reg.test(questionStr)) {
  1169. regConArr = questionStr.match(reg);
  1170. }
  1171. if (regConArr.length > 0) {
  1172. regConArr = regConArr.map((item) => {
  1173. item = item.replace("[FID##", "").replace("##FID]", "");
  1174. return item;
  1175. });
  1176. }
  1177. return new Promise((resolve, reject) => {
  1178. const MethodName = "file_store_manager-GetFileURLMap";
  1179. const data = {
  1180. file_id_list: regConArr,
  1181. };
  1182. getStaticContent(MethodName, data).then((res) => {
  1183. const backData = res.url_map;
  1184. for (const key in backData) {
  1185. const url = backData[key];
  1186. if (questionStr.indexOf(key) > -1) {
  1187. const d = `\\[FID##${key}##FID\\]`;
  1188. const regD = new RegExp(d, "g");
  1189. questionStr = questionStr.replace(regD, url);
  1190. }
  1191. }
  1192. const question3 = JSON.parse(questionStr);
  1193. resolve(question3);
  1194. });
  1195. });
  1196. },
  1197. onSure(curItem) {
  1198. this.TopicIndex = null;
  1199. this.RowIndex = null;
  1200. this.LineIndex = null;
  1201. curItem.is_edit = false;
  1202. },
  1203. onDel(item, curIndex) {
  1204. item.cur_fn_data.splice(curIndex, 1);
  1205. if (this.question_list[this.tabIndex].cur_fn_data.length > 0) {
  1206. this.cur_page_que_index =
  1207. this.question_list[this.tabIndex].cur_fn_data.length - 1;
  1208. } else {
  1209. this.cur_page_que_index = 0;
  1210. }
  1211. // let question_list_str = JSON.stringify(this.question_list);
  1212. // localStorage.setItem("question_list", question_list_str);
  1213. },
  1214. // 编辑当前题型
  1215. editCurQue(curItem) {
  1216. curItem.is_edit = true;
  1217. // if (!curItem.isEdit) {
  1218. // let count = 0;
  1219. // let tabIndex = this.tabIndex;
  1220. // let leg = this.question_list[tabIndex].cur_fn_data.length;
  1221. // this.question_list[tabIndex].cur_fn_data.forEach((item) => {
  1222. // if (item.isEdit) {
  1223. // count++;
  1224. // }
  1225. // });
  1226. // if (count == 0) {
  1227. // if (!curItem.isEdit) {
  1228. // curItem.isEdit = true;
  1229. // }
  1230. // } else {
  1231. // this.$message.warning("有题目未保存");
  1232. // }
  1233. // }
  1234. },
  1235. }, // 如果页面有keep-alive缓存功能,这个函数会触发
  1236. };
  1237. </script>
  1238. <style lang='scss' scoped>
  1239. //@import url(); 引入公共css类
  1240. .Big-Book-container {
  1241. width: 100%;
  1242. min-height: 100vh;
  1243. .Big-Book-content {
  1244. padding: 26px 0;
  1245. display: flex;
  1246. justify-content: flex-start;
  1247. align-items: flex-start;
  1248. }
  1249. .content-tree {
  1250. width: 280px;
  1251. }
  1252. .Book-content {
  1253. flex: 1;
  1254. box-sizing: border-box;
  1255. padding: 30px;
  1256. height: 859px;
  1257. overflow-y: auto;
  1258. &-inner {
  1259. // width: 860px;
  1260. }
  1261. .addoption {
  1262. width: 148px;
  1263. height: 40px;
  1264. background: #f3f3f3;
  1265. border: 1px dashed rgba(0, 0, 0, 0.15);
  1266. box-sizing: border-box;
  1267. border-radius: 4px;
  1268. text-align: center;
  1269. line-height: 40px;
  1270. cursor: pointer;
  1271. font-size: 14px;
  1272. color: #000000;
  1273. margin-top: 20px;
  1274. }
  1275. .createTable {
  1276. }
  1277. }
  1278. .Big-Book-save {
  1279. width: 860px;
  1280. display: flex;
  1281. justify-content: flex-end;
  1282. padding: 0 0 20px 0;
  1283. }
  1284. .Big-Book {
  1285. &-add {
  1286. position: absolute;
  1287. top: -40px;
  1288. right: 0;
  1289. z-index: 1;
  1290. width: 73px;
  1291. height: 40px;
  1292. background: #f7f7f7;
  1293. border: 1px solid #d9d9d9;
  1294. line-height: 40px;
  1295. text-align: center;
  1296. font-weight: bold;
  1297. font-size: 18px;
  1298. text-align: center;
  1299. color: #000000;
  1300. }
  1301. &-name {
  1302. display: flex;
  1303. justify-content: flex-start;
  1304. align-items: center;
  1305. margin-bottom: 10px;
  1306. > p {
  1307. font-size: 14px;
  1308. }
  1309. }
  1310. &-delete {
  1311. width: 16px;
  1312. height: 16px;
  1313. margin-left: 15px;
  1314. cursor: pointer;
  1315. }
  1316. &-curPage {
  1317. margin-bottom: 20px;
  1318. &.Big-Book-curPage-edit {
  1319. border-top: 1px solid #e0e0e0;
  1320. border-bottom: 1px solid #e0e0e0;
  1321. background-color: #fafafa;
  1322. }
  1323. &.Big-Book-curPage-preview {
  1324. border-top: 1px solid #fff;
  1325. border-bottom: 1px solid #fff;
  1326. display: flex;
  1327. justify-content: flex-start;
  1328. align-items: flex-start;
  1329. &:hover {
  1330. background-color: #fafafa;
  1331. border-top: 1px solid #e0e0e0;
  1332. border-bottom: 1px solid #e0e0e0;
  1333. }
  1334. }
  1335. }
  1336. &-queBox {
  1337. padding: 10px 0;
  1338. }
  1339. }
  1340. .Book-function {
  1341. width: 204px;
  1342. background: #f7f7f7;
  1343. box-sizing: border-box;
  1344. padding: 30px 16px;
  1345. height: 859px;
  1346. overflow-y: auto;
  1347. .function-list {
  1348. width: 100%;
  1349. > li {
  1350. width: 100%;
  1351. width: 172px;
  1352. height: 40px;
  1353. background: #ffffff;
  1354. border: 1px solid rgba(0, 0, 0, 0.15);
  1355. box-sizing: border-box;
  1356. border-radius: 4px;
  1357. cursor: pointer;
  1358. margin-bottom: 5px;
  1359. display: flex;
  1360. justify-content: center;
  1361. align-items: center;
  1362. > span {
  1363. font-weight: normal;
  1364. font-size: 16px;
  1365. line-height: 150%;
  1366. color: #000000;
  1367. }
  1368. }
  1369. }
  1370. }
  1371. .Big-Book-top {
  1372. margin-top: 20px;
  1373. display: flex;
  1374. align-items: center;
  1375. span {
  1376. margin-right: 10px;
  1377. }
  1378. }
  1379. .addoption {
  1380. width: 200px;
  1381. height: 40px;
  1382. margin-bottom: 15px;
  1383. background: #f3f3f3;
  1384. border: 1px dashed rgba(0, 0, 0, 0.15);
  1385. box-sizing: border-box;
  1386. border-radius: 4px;
  1387. text-align: center;
  1388. line-height: 40px;
  1389. cursor: pointer;
  1390. }
  1391. }
  1392. </style>