adultInput.vue 48 KB

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