AschoolFeature.vue 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530
  1. <template>
  2. <div
  3. v-if="Object.keys(Alldata).length > 0"
  4. v-loading="AllLoading"
  5. class="Asc"
  6. style="display: flex; flex-direction: column; gap: 20px; height: 100%"
  7. >
  8. <div class="Ktop">
  9. <div class="topTit">
  10. <div>
  11. <div>集团简介</div>
  12. <div
  13. style="
  14. height: 4px;
  15. background-color: #0663fe;
  16. width: 2rem;
  17. margin-top: 6px;
  18. "
  19. ></div>
  20. </div>
  21. <div>
  22. <img
  23. v-if="userinfo.role == 1 && userinfo.type == 1"
  24. class="topTitEdit"
  25. @click="editregion(0)"
  26. src="../../../assets/img/bianji.svg"
  27. alt=""
  28. />
  29. </div>
  30. </div>
  31. <div style="height: auto; padding: 30px 0">
  32. <div
  33. class="CarO"
  34. style="border-radius: 10px; overflow: hidden"
  35. v-if="CampusF.GroupImgList && CampusF.GroupImgList.length"
  36. >
  37. <el-carousel
  38. indicator-position="outside"
  39. height="420px"
  40. >
  41. <el-carousel-item
  42. v-for="(i, index) in CampusF.GroupImgList"
  43. :key="index"
  44. >
  45. <el-image
  46. style="
  47. width: 100%;
  48. border-radius: 10px;
  49. height: 100%;
  50. "
  51. class="imgCar"
  52. :src="i"
  53. :preview-src-list="CampusF.GroupImgList"
  54. >
  55. </el-image>
  56. </el-carousel-item>
  57. </el-carousel>
  58. </div>
  59. </div>
  60. <div class="TopbriKl">
  61. {{
  62. Alldata.admin.CampusF ? Alldata.admin.CampusF.GroupBri : "暂无简介"
  63. }}
  64. </div>
  65. </div>
  66. <div class="feature">
  67. <div class="topTit">
  68. <div>
  69. <div>办学特色</div>
  70. <div
  71. style="
  72. height: 4px;
  73. background-color: #0663fe;
  74. width: 2rem;
  75. margin-top: 6px;
  76. "
  77. ></div>
  78. </div>
  79. <div>
  80. <img
  81. v-if="userinfo.role == 1 && userinfo.type == 1"
  82. class="topTitEdit"
  83. @click="editregion(1)"
  84. src="../../../assets/img/bianji.svg"
  85. alt=""
  86. />
  87. </div>
  88. </div>
  89. <div class="featureAll">
  90. <template v-if="featureList.length">
  91. <div
  92. class="featureCon"
  93. v-for="(i, index) in featureList"
  94. :key="index"
  95. >
  96. <img
  97. style="width: 34px; height: 34px; object-fit: cover"
  98. :src="i.icon"
  99. alt=""
  100. />
  101. <el-tooltip
  102. class="item"
  103. effect="dark"
  104. :content="i.name"
  105. placement="bottom"
  106. >
  107. <div class="featureConTit">{{ i.name }}</div>
  108. </el-tooltip>
  109. <el-tooltip
  110. class="item"
  111. effect="dark"
  112. :content="i.bri"
  113. placement="bottom"
  114. >
  115. <div class="Topbri2">{{ i.bri }}</div>
  116. </el-tooltip>
  117. </div>
  118. </template>
  119. <div v-else>暂无数据</div>
  120. </div>
  121. </div>
  122. <div class="feature">
  123. <div class="topTit">
  124. <div>
  125. <div>师资力量</div>
  126. <div
  127. style="
  128. height: 4px;
  129. background-color: #0663fe;
  130. width: 2rem;
  131. margin-top: 6px;
  132. "
  133. ></div>
  134. </div>
  135. <div>
  136. <img
  137. v-if="userinfo.role == 1 && userinfo.type == 1"
  138. class="topTitEdit"
  139. @click="editregion(2)"
  140. src="../../../assets/img/bianji.svg"
  141. alt=""
  142. />
  143. </div>
  144. </div>
  145. <div class="TopbriKl">
  146. {{
  147. Alldata.admin.CampusF
  148. ? Alldata.admin.CampusF.teacherN.teaBri
  149. : "暂无简介"
  150. }}
  151. </div>
  152. <div class="featureAll" v-if="teaData.length">
  153. <div class="featureCon2" v-for="(i, index) in teaData" :key="index">
  154. <el-tooltip
  155. class="item"
  156. effect="dark"
  157. :content="i.bri"
  158. placement="bottom"
  159. >
  160. <div class="featureConTit2">{{ i.bri }}</div>
  161. </el-tooltip>
  162. <el-tooltip
  163. class="item"
  164. effect="dark"
  165. :content="i.bri"
  166. placement="bottom"
  167. >
  168. <div class="Topbri">{{ i.name }}</div>
  169. </el-tooltip>
  170. </div>
  171. </div>
  172. <div v-else>暂无数据</div>
  173. </div>
  174. <div class="feature">
  175. <div class="topTit">
  176. <div>
  177. <div>特色应用</div>
  178. <div
  179. style="
  180. height: 4px;
  181. background-color: #0663fe;
  182. width: 2rem;
  183. margin-top: 6px;
  184. "
  185. ></div>
  186. </div>
  187. </div>
  188. <div
  189. style="display: flex; flex-direction: column; gap: 10px"
  190. v-for="(item, index) in CampusF.appList"
  191. :key="index + 'b'"
  192. >
  193. <div style="display: flex; justify-content: space-between">
  194. <div></div>
  195. <div
  196. style="
  197. display: flex;
  198. justify-content: space-between;
  199. gap: 10px;
  200. align-items: center;
  201. "
  202. >
  203. <img
  204. @click="(isBtn = 3), editFea(index)"
  205. class="topTitEdit"
  206. :src="
  207. editIndex == index
  208. ? require('../../../assets/kanban/bz.svg')
  209. : require('../../../assets/kanban/feaB.svg')
  210. "
  211. alt=""
  212. />
  213. <img
  214. @click="(isBtn = 3), delFe(index)"
  215. class="topTitEdit"
  216. src="../../../assets/kanban/delK.svg"
  217. alt=""
  218. />
  219. </div>
  220. </div>
  221. <div>
  222. <div style="display: flex; justify-content: space-between; gap: 30px">
  223. <!-- 左边区域 -->
  224. <div
  225. class="diaFea"
  226. @click="openNewWindow(item)"
  227. style="
  228. height: 122px;
  229. width: 30%;
  230. min-width: 200px;
  231. max-width: 300px;
  232. cursor: pointer;
  233. "
  234. >
  235. <img
  236. v-if="editIndex == index"
  237. style="
  238. border: 1px #0663fe solid;
  239. padding: 3px;
  240. box-sizing: border-box;
  241. "
  242. class="diaFeaImgT"
  243. @click="uploadisBtn(3, index)"
  244. :src="item.setIcon ? item.setIcon : item.json.icon"
  245. alt=""
  246. />
  247. <img
  248. v-else
  249. class="diaFeaImgT"
  250. :src="item.setIcon ? item.setIcon : item.json.icon"
  251. alt=""
  252. />
  253. <div class="AppStoreConTit">{{ item.name }}</div>
  254. </div>
  255. <!-- 右边区域 -->
  256. <div style="flex: 1">
  257. <div class="AppStoreConBri" v-if="item.detailWri">
  258. <el-input
  259. v-if="editIndex == index"
  260. :style="{
  261. border: editIndex == index ? '1px dashed #9747FF !important' : '',
  262. }"
  263. resize="none"
  264. style="border-radius: 10px; height: 100%"
  265. type="textarea"
  266. placeholder="请输入内容"
  267. v-model="item.detailWri"
  268. >
  269. </el-input>
  270. <div v-else style="font-weight: 600">{{ item.detailWri }}</div>
  271. </div>
  272. <div class="AppStoreConBri" v-else>
  273. <el-input
  274. v-if="editIndex == index"
  275. resize="none"
  276. :style="{
  277. border: editIndex == index ? '1px dashed #9747FF !important' : '',
  278. }"
  279. style="border-radius: 10px"
  280. type="textarea"
  281. placeholder="请输入内容"
  282. v-model="item.detail"
  283. >
  284. </el-input>
  285. <div v-else style="font-weight: 600">{{ item.detail }}</div>
  286. </div>
  287. </div>
  288. </div>
  289. <div class="diaBtn" style="padding: 0" v-if="editIndex == index">
  290. <div style="color: #000" @click="feaClo(index)">取消</div>
  291. <div
  292. style="background: #fff"
  293. :style="{
  294. border:
  295. editBtnType == 1 ? '1px #9747FF solid' : '1px #0663fe solid',
  296. color: editBtnType == 1 ? '#9747FF' : '#0663fe',
  297. }"
  298. @click="setJsonL(index)"
  299. >
  300. 保存
  301. </div>
  302. </div>
  303. </div>
  304. </div>
  305. <div class="FedialogJIa" style="display: flex" @click="lookMore()">
  306. <div style="width: 100%; border: 1px #000 dashed; cursor: pointer">
  307. <img src="../../../assets/kanban/jia.svg" alt="" />
  308. </div>
  309. </div>
  310. </div>
  311. <template v-if="CampusF.customTemplate && CampusF.customTemplate.length">
  312. <div class="feature" v-for="(i,index) in CampusF.customTemplate" :key="index">
  313. <!-- 标题区域 -->
  314. <div class="topTit">
  315. <div>
  316. <div>{{ i.tit }}</div>
  317. <div
  318. style="
  319. height: 4px;
  320. background-color: #0663fe;
  321. width: 2rem;
  322. margin-top: 6px;
  323. "
  324. ></div>
  325. </div>
  326. <div>
  327. <img
  328. v-if="userinfo.role == 1 && userinfo.type == 1"
  329. class="topTitEdit"
  330. @click="editregion(4,index)"
  331. src="../../../assets/img/bianji.svg"
  332. alt=""
  333. />
  334. </div>
  335. </div>
  336. <!-- 简介区域 -->
  337. <div class="TopbriKl">
  338. {{
  339. i.bri
  340. ? i.bri
  341. : "暂无简介"
  342. }}
  343. </div>
  344. <!-- 内容区域 -->
  345. <div class="featureAll">
  346. <div class="featureCon2" v-for="(k, index) in i.list" :key="index+'a'">
  347. <el-tooltip
  348. class="item"
  349. effect="dark"
  350. :content="k.bri"
  351. placement="bottom"
  352. >
  353. <div class="featureConTit2">{{ k.bri }}</div>
  354. </el-tooltip>
  355. <el-tooltip
  356. class="item"
  357. effect="dark"
  358. :content="k.bri"
  359. placement="bottom"
  360. >
  361. <div class="Topbri">{{ k.name }}</div>
  362. </el-tooltip>
  363. </div>
  364. </div>
  365. </div>
  366. </template>
  367. <template v-if="userinfo.role == 1 && userinfo.type == 1">
  368. <div class="topTit">
  369. <div>
  370. <div>添加自定义模块</div>
  371. <div
  372. style="
  373. height: 4px;
  374. background-color: #0663fe;
  375. width: 2rem;
  376. margin-top: 6px;
  377. "
  378. ></div>
  379. </div>
  380. </div>
  381. <div class="FedialogJIa" style="display: flex" @click="addTemVisible = true">
  382. <div style="width: 100%; border: 1px #000 dashed; cursor: pointer">
  383. <img src="../../../assets/kanban/jia.svg" alt="" />
  384. </div>
  385. </div>
  386. </template>
  387. <!-- 修改校区特色弹框 -->
  388. <el-dialog
  389. :title="editTitle"
  390. :visible.sync="editVisible"
  391. close-on-click-modal
  392. class="Fedialog"
  393. :before-close="handleClose"
  394. >
  395. <div v-loading="diaLoad" style="display: flex; flex-direction: column">
  396. <div class="diaCon" id="bottomElement">
  397. <!-- 集团简介 -->
  398. <div class="diaTop" v-if="isBtn === 0">
  399. <el-input
  400. resize="none"
  401. style="
  402. border: 1px #0663fe dashed !important;
  403. border-radius: 10px;
  404. outline: none;
  405. "
  406. type="textarea"
  407. :rows="4"
  408. placeholder="请输入内容"
  409. v-model="CampusF.GroupBri"
  410. >
  411. </el-input>
  412. <div class="FedialogJIa">
  413. <template
  414. v-if="CampusF.GroupImgList && CampusF.GroupImgList.length"
  415. >
  416. <div
  417. class="imgBoc"
  418. v-for="(i, index) in CampusF.GroupImgList"
  419. :key="index"
  420. >
  421. <i @click="delImg(index)" class="el-icon-circle-close"></i>
  422. <img
  423. style="width: 100%; object-fit: contain"
  424. :src="i"
  425. alt=""
  426. />
  427. </div>
  428. </template>
  429. <div @click="uploadisBtn(isBtn)">
  430. <img src="../../../assets/kanban/jia.svg" alt="" />
  431. </div>
  432. </div>
  433. <div
  434. style="
  435. font-family: PingFang SC;
  436. font-weight: 400;
  437. font-size: 12px;
  438. "
  439. >
  440. 请尽量上传10M以内的横版照片
  441. </div>
  442. </div>
  443. <!-- 办学特色 isBtn === 1-->
  444. <div
  445. style="display: flex; flex-direction: column; gap: 10px"
  446. v-if="isBtn === 1"
  447. >
  448. <div
  449. class="diaFea"
  450. :style="{
  451. border:
  452. editIndex == index
  453. ? editBtnType == 1
  454. ? '2px dashed #9747FF'
  455. : '2px dashed #3681FC'
  456. : '',
  457. }"
  458. v-for="(i, index) in CampusF.feature"
  459. :key="index + 'b'"
  460. >
  461. <!-- 办学特色顶部 -->
  462. <div
  463. style="
  464. display: flex;
  465. justify-content: space-between;
  466. gap: 16px;
  467. height: 28px;
  468. "
  469. >
  470. <el-input
  471. v-if="editIndex == index"
  472. resize="none"
  473. style="border-radius: 10px"
  474. placeholder="请输入内容"
  475. v-model="i.name"
  476. >
  477. </el-input>
  478. <div v-else class="itemTit">{{ i.name }}</div>
  479. <!-- 编辑与删除 -->
  480. <div
  481. style="
  482. flex-shrink: 0;
  483. display: flex;
  484. justify-content: space-between;
  485. gap: 16px;
  486. align-items: center;
  487. "
  488. >
  489. <img
  490. @click="editFea(index)"
  491. class="topTitEdit"
  492. v-if="!(editBtnType == 2 && editIndex == index)"
  493. :src="
  494. editIndex == index
  495. ? editBtnType == 1
  496. ? require('../../../assets/kanban/bz.svg')
  497. : require('../../../assets/kanban/lj.svg')
  498. : require('../../../assets/kanban/feaB.svg')
  499. "
  500. alt=""
  501. />
  502. <img
  503. @click="delFe(index)"
  504. class="topTitEdit"
  505. src="../../../assets/kanban/delK.svg"
  506. alt=""
  507. />
  508. </div>
  509. </div>
  510. <!-- 图标 -->
  511. <div
  512. class="djjC"
  513. :style="{
  514. border:
  515. editIndex == index
  516. ? editBtnType == 1
  517. ? '1px dashed #9747FF'
  518. : '1px dashed #3681FC'
  519. : '1px solid #9747FF',
  520. cursor: editIndex == index ? 'pointer' : '',
  521. background: editIndex == index ? '#F2F2F2' : '',
  522. }"
  523. >
  524. <div
  525. class="jiaBoc"
  526. @click="uploadisBtn(isBtn, index)"
  527. v-if="!i.icon"
  528. >
  529. <img src="../../../assets/kanban/djj.svg" alt="" />
  530. </div>
  531. <img
  532. style="cursor: pointer"
  533. v-else-if="editIndex == index"
  534. @click="uploadisBtn(isBtn, index)"
  535. class="diaFeaImg"
  536. :src="i.icon"
  537. alt=""
  538. />
  539. <img v-else class="diaFeaImg" :src="i.icon" alt="" />
  540. </div>
  541. <div>
  542. <el-input
  543. :disabled="editIndex != index"
  544. resize="none"
  545. :style="{
  546. border:
  547. editIndex == index
  548. ? editBtnType == 1
  549. ? '1px dashed #9747FF'
  550. : '1px dashed #3681FC'
  551. : ' 1px solid #969BA3',
  552. }"
  553. :class="editIndex == index ? 'tArea' : ''"
  554. style="border-radius: 8px; overflow: hidden"
  555. type="textarea"
  556. :rows="4"
  557. placeholder="请输入内容"
  558. v-model="i.bri"
  559. >
  560. </el-input>
  561. <div
  562. class="diaBtn"
  563. style="padding: 0"
  564. v-if="editIndex == index"
  565. >
  566. <div style="color: #000" @click="feaClo(index)">取消</div>
  567. <div
  568. style="background: #fff"
  569. :style="{
  570. border:
  571. editBtnType == 1
  572. ? '1px #9747FF solid'
  573. : '1px #0663fe solid',
  574. color: editBtnType == 1 ? '#9747FF' : '#0663fe',
  575. }"
  576. @click="setJsonL(0)"
  577. >
  578. 保存
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. </div>
  584. <!-- 师资力量 isBtn === 2-->
  585. <div
  586. style="display: flex; flex-direction: column; gap: 10px"
  587. v-if="isBtn === 2"
  588. >
  589. <!-- 顶部简介区域 -->
  590. <div
  591. class="diaFea"
  592. :style="{
  593. border: editIndex == 'bri' ? '2px dashed #9747FF' : '',
  594. }"
  595. >
  596. <div style="display: flex; justify-content: space-between">
  597. <div class="itemTit">简介</div>
  598. <div
  599. style="
  600. display: flex;
  601. justify-content: space-between;
  602. gap: 10px;
  603. align-items: center;
  604. "
  605. >
  606. <img
  607. @click="editFea('bri')"
  608. class="topTitEdit"
  609. :src="
  610. editIndex == 'bri'
  611. ? editBtnType == 1
  612. ? require('../../../assets/kanban/bz.svg')
  613. : require('../../../assets/kanban/lj.svg')
  614. : require('../../../assets/kanban/feaB.svg')
  615. "
  616. alt=""
  617. />
  618. </div>
  619. </div>
  620. <div>
  621. <el-input
  622. :disabled="editIndex != 'bri'"
  623. resize="none"
  624. style="border-radius: 10px; overflow: hidden"
  625. type="textarea"
  626. :rows="4"
  627. :style="{
  628. border:
  629. editIndex == 'bri'
  630. ? editBtnType == 1
  631. ? '1px dashed #9747FF'
  632. : '1px dashed #3681FC'
  633. : ' 1px solid #969BA3',
  634. }"
  635. :class="editIndex == 'bri' ? 'tArea' : ''"
  636. placeholder="请输入内容"
  637. v-model="CampusF.teacherN.teaBri"
  638. >
  639. </el-input>
  640. <div
  641. class="diaBtn"
  642. style="padding: 0"
  643. v-if="editIndex == 'bri'"
  644. >
  645. <div style="color: #000" @click="feaClo()">取消</div>
  646. <div
  647. style="background: #fff"
  648. :style="{
  649. border:
  650. editBtnType == 1
  651. ? '1px #9747FF solid'
  652. : '1px #0663fe solid',
  653. color: editBtnType == 1 ? '#9747FF' : '#0663fe',
  654. }"
  655. @click="setJsonL(0)"
  656. >
  657. 保存
  658. </div>
  659. </div>
  660. </div>
  661. </div>
  662. <div
  663. class="diaFea"
  664. :style="{
  665. border:
  666. editIndex == index
  667. ? editBtnType == 1
  668. ? '2px dashed #9747FF'
  669. : '2px dashed #3681FC'
  670. : '',
  671. }"
  672. v-for="(i, index) in CampusF.teacherN.list"
  673. :key="index + 'b'"
  674. >
  675. <div
  676. style="
  677. display: flex;
  678. justify-content: space-between;
  679. gap: 16px;
  680. height: 28px;
  681. "
  682. >
  683. <el-input
  684. v-if="editIndex == index"
  685. resize="none"
  686. style="border-radius: 10px"
  687. placeholder="请输入内容"
  688. v-model="i.name"
  689. >
  690. </el-input>
  691. <div v-else class="itemTit">{{ i.name }}</div>
  692. <div
  693. style="
  694. display: flex;
  695. justify-content: space-between;
  696. gap: 10px;
  697. align-items: center;
  698. "
  699. >
  700. <img
  701. @click="editFea(index)"
  702. class="topTitEdit"
  703. v-if="!(editBtnType == 2 && editIndex == index)"
  704. :src="
  705. editIndex == index
  706. ? editBtnType == 1
  707. ? require('../../../assets/kanban/bz.svg')
  708. : require('../../../assets/kanban/lj.svg')
  709. : require('../../../assets/kanban/feaB.svg')
  710. "
  711. alt=""
  712. />
  713. <img
  714. @click="delFe(index)"
  715. class="topTitEdit"
  716. src="../../../assets/kanban/delK.svg"
  717. alt=""
  718. />
  719. </div>
  720. </div>
  721. <div>
  722. <el-input
  723. :disabled="editIndex != index"
  724. resize="none"
  725. :style="{
  726. border:
  727. editIndex == index
  728. ? editBtnType == 1
  729. ? '1px dashed #9747FF'
  730. : '1px dashed #3681FC'
  731. : ' 1px solid #969BA3',
  732. }"
  733. :class="editIndex == index ? 'tArea' : ''"
  734. style="border-radius: 10px; overflow: hidden"
  735. type="textarea"
  736. :rows="4"
  737. placeholder="请输入内容"
  738. v-model="i.bri"
  739. >
  740. </el-input>
  741. <div
  742. class="diaBtn"
  743. style="padding: 0"
  744. v-if="editIndex == index"
  745. >
  746. <div style="color: #000" @click="feaClo(index)">取消</div>
  747. <div
  748. style="background: #fff"
  749. :style="{
  750. border:
  751. editBtnType == 1
  752. ? '1px #9747FF solid'
  753. : '1px #0663fe solid',
  754. color: editBtnType == 1 ? '#9747FF' : '#0663fe',
  755. }"
  756. @click="setJsonL(0)"
  757. >
  758. 保存
  759. </div>
  760. </div>
  761. </div>
  762. </div>
  763. </div>
  764. <!-- 自定义模块 isBtn === 4-->
  765. <div
  766. style="display: flex; flex-direction: column; gap: 10px"
  767. >
  768. <!-- 模块名称 -->
  769. <div style="background: #fff;border-radius: 10px;padding: 16px;box-sizing: border-box;">
  770. <div class="mouD">
  771. <el-input v-if="editIndex == 'tit'" v-model="CampusF.customTemplate[TemNum].tit" placeholder="模块名称"></el-input>
  772. <div class="mouDTitDiv" v-else>{{ CampusF.customTemplate[TemNum].tit }}</div>
  773. <img
  774. @click="editFea('tit')"
  775. class="topTitEdit"
  776. :src="
  777. editIndex == 'tit'
  778. ? editBtnType == 1
  779. ? require('../../../assets/kanban/bz.svg')
  780. : require('../../../assets/kanban/lj.svg')
  781. : require('../../../assets/kanban/feaB.svg')
  782. "
  783. alt=""
  784. />
  785. </div>
  786. <div
  787. class="diaBtn"
  788. style="padding: 0"
  789. v-if="editIndex == 'tit'"
  790. >
  791. <div style="color: #000" @click="feaClo()">取消</div>
  792. <div
  793. style="background: #fff"
  794. :style="{
  795. border:
  796. editBtnType == 1
  797. ? '1px #9747FF solid'
  798. : '1px #0663fe solid',
  799. color: editBtnType == 1 ? '#9747FF' : '#0663fe',
  800. }"
  801. @click="setJsonL(0)"
  802. >
  803. 保存
  804. </div>
  805. </div>
  806. </div>
  807. <!-- 简介区域 -->
  808. <div
  809. class="diaFea"
  810. :style="{
  811. border: editIndex == 'bri' ? '2px dashed #9747FF' : '',
  812. }"
  813. >
  814. <div style="display: flex; justify-content: space-between">
  815. <div class="itemTit">简介</div>
  816. <div
  817. style="
  818. display: flex;
  819. justify-content: space-between;
  820. gap: 10px;
  821. align-items: center;
  822. "
  823. >
  824. <img
  825. @click="editFea('bri')"
  826. class="topTitEdit"
  827. :src="
  828. editIndex == 'bri'
  829. ? editBtnType == 1
  830. ? require('../../../assets/kanban/bz.svg')
  831. : require('../../../assets/kanban/lj.svg')
  832. : require('../../../assets/kanban/feaB.svg')
  833. "
  834. alt=""
  835. />
  836. </div>
  837. </div>
  838. <div>
  839. <el-input
  840. :disabled="editIndex != 'bri'"
  841. resize="none"
  842. style="border-radius: 10px; overflow: hidden"
  843. type="textarea"
  844. :rows="4"
  845. :style="{
  846. border:
  847. editIndex == 'bri'
  848. ? editBtnType == 1
  849. ? '1px dashed #9747FF'
  850. : '1px dashed #3681FC'
  851. : ' 1px solid #969BA3',
  852. }"
  853. :class="editIndex == 'bri' ? 'tArea' : ''"
  854. placeholder="请输入内容"
  855. v-model="CampusF.customTemplate[TemNum].bri"
  856. >
  857. </el-input>
  858. <div
  859. class="diaBtn"
  860. style="padding: 0"
  861. v-if="editIndex == 'bri'"
  862. >
  863. <div style="color: #000" @click="feaClo()">取消</div>
  864. <div
  865. style="background: #fff"
  866. :style="{
  867. border:
  868. editBtnType == 1
  869. ? '1px #9747FF solid'
  870. : '1px #0663fe solid',
  871. color: editBtnType == 1 ? '#9747FF' : '#0663fe',
  872. }"
  873. @click="setJsonL(0)"
  874. >
  875. 保存
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. <!-- 循环区域 -->
  881. <div
  882. class="diaFea"
  883. :style="{
  884. border:
  885. editIndex == index
  886. ? editBtnType == 1
  887. ? '2px dashed #9747FF'
  888. : '2px dashed #3681FC'
  889. : '',
  890. }"
  891. v-for="(i, index) in CampusF.customTemplate[TemNum].list"
  892. :key="index + 'b'"
  893. >
  894. <div
  895. style="
  896. display: flex;
  897. justify-content: space-between;
  898. gap: 16px;
  899. height: 28px;
  900. "
  901. >
  902. <el-input
  903. v-if="editIndex == index"
  904. resize="none"
  905. style="border-radius: 10px"
  906. placeholder="请输入标题"
  907. v-model="i.name"
  908. >
  909. </el-input>
  910. <div v-else class="itemTit">{{ i.name ? i.name : '标题' }}</div>
  911. <div
  912. style="
  913. display: flex;
  914. justify-content: space-between;
  915. gap: 10px;
  916. align-items: center;
  917. "
  918. >
  919. <img
  920. @click="editFea(index)"
  921. class="topTitEdit"
  922. v-if="!(editBtnType == 2 && editIndex == index)"
  923. :src="
  924. editIndex == index
  925. ? editBtnType == 1
  926. ? require('../../../assets/kanban/bz.svg')
  927. : require('../../../assets/kanban/lj.svg')
  928. : require('../../../assets/kanban/feaB.svg')
  929. "
  930. alt=""
  931. />
  932. <img
  933. @click="delFe(index)"
  934. class="topTitEdit"
  935. src="../../../assets/kanban/delK.svg"
  936. alt=""
  937. />
  938. </div>
  939. </div>
  940. <div>
  941. <el-input
  942. :disabled="editIndex != index"
  943. resize="none"
  944. :style="{
  945. border:
  946. editIndex == index
  947. ? editBtnType == 1
  948. ? '1px dashed #9747FF'
  949. : '1px dashed #3681FC'
  950. : ' 1px solid #969BA3',
  951. }"
  952. :class="editIndex == index ? 'tArea' : ''"
  953. style="border-radius: 10px; overflow: hidden"
  954. type="textarea"
  955. :rows="4"
  956. placeholder="请输入内容"
  957. v-model="i.bri"
  958. >
  959. </el-input>
  960. <div
  961. class="diaBtn"
  962. style="padding: 0"
  963. v-if="editIndex == index"
  964. >
  965. <div style="color: #000" @click="feaClo(index)">取消</div>
  966. <div
  967. style="background: #fff"
  968. :style="{
  969. border:
  970. editBtnType == 1
  971. ? '1px #9747FF solid'
  972. : '1px #0663fe solid',
  973. color: editBtnType == 1 ? '#9747FF' : '#0663fe',
  974. }"
  975. @click="setJsonL(0)"
  976. >
  977. 保存
  978. </div>
  979. </div>
  980. </div>
  981. </div>
  982. </div>
  983. </div>
  984. <div
  985. v-if="isBtn === 1 || isBtn === 2 || isBtn === 4"
  986. @click="additem()"
  987. style="
  988. display: flex;
  989. align-items: center;
  990. padding: 10px 20px;
  991. box-sizing: border-box;
  992. cursor: pointer;
  993. "
  994. >
  995. <img src="../../../assets/kanban/feaJ.svg" alt="" />
  996. <span style="color: #0560fd">添加</span>
  997. </div>
  998. <div class="diaBtn" style="padding: 0 20px 10px !important">
  999. <div style="color: #000" @click="handleClose">
  1000. {{ isBtn === 0 ? "返 回" : "取 消" }}
  1001. </div>
  1002. <div
  1003. type="primary"
  1004. :style="{
  1005. background: editBtnType == 0 ? '#0663fe' : '#969BA3',
  1006. color: '#fff',
  1007. }"
  1008. @click="setJson(1)"
  1009. >
  1010. 确 定
  1011. </div>
  1012. </div>
  1013. </div>
  1014. </el-dialog>
  1015. <!-- 添加自定义模块-->
  1016. <el-dialog
  1017. title="添加自定义模块"
  1018. :visible.sync="addTemVisible"
  1019. close-on-click-modal
  1020. class="Fedialog"
  1021. :before-close="handleClose"
  1022. >
  1023. <div class="diaCon" id="bottomElement">
  1024. <div
  1025. style="display: flex; flex-direction: column; gap: 10px"
  1026. >
  1027. <!-- 模块名称 -->
  1028. <div style="background: #fff;border-radius: 10px;padding: 16px;box-sizing: border-box;">
  1029. <div class="mouD">
  1030. <el-input v-model="mouldD.tit" placeholder="模块名称"></el-input>
  1031. </div>
  1032. </div>
  1033. <!-- 简介区域 -->
  1034. <div
  1035. class="diaFea"
  1036. >
  1037. <div>
  1038. <div class="itemTit">简介</div>
  1039. </div>
  1040. <div>
  1041. <el-input
  1042. resize="none"
  1043. style="border-radius: 10px; overflow: hidden;border: 1px solid #969BA3;"
  1044. type="textarea"
  1045. :rows="4"
  1046. placeholder="请输入内容"
  1047. v-model="mouldD.bri"
  1048. >
  1049. </el-input>
  1050. </div>
  1051. </div>
  1052. <!-- 循环区域 -->
  1053. <div
  1054. class="diaFea"
  1055. v-for="(i, index) in mouldD.list"
  1056. :key="index + 'b'"
  1057. >
  1058. <div
  1059. style="
  1060. display: flex;
  1061. justify-content: space-between;
  1062. gap: 16px;
  1063. height: 28px;
  1064. "
  1065. >
  1066. <el-input
  1067. resize="none"
  1068. style="border-radius: 10px"
  1069. placeholder="请输入标题"
  1070. v-model="i.name"
  1071. >
  1072. </el-input>
  1073. </div>
  1074. <div>
  1075. <el-input
  1076. resize="none"
  1077. style="border-radius: 10px; overflow: hidden;border: 1px solid #969BA3"
  1078. type="textarea"
  1079. :rows="4"
  1080. placeholder="请输入内容"
  1081. v-model="i.bri"
  1082. >
  1083. </el-input>
  1084. </div>
  1085. </div>
  1086. <div
  1087. @click="addtempitem"
  1088. style="
  1089. display: flex;
  1090. align-items: center;
  1091. padding: 10px 20px;
  1092. box-sizing: border-box;
  1093. cursor: pointer;
  1094. "
  1095. >
  1096. <img src="../../../assets/kanban/feaJ.svg" alt="" />
  1097. <span style="color: #0560fd">添加</span>
  1098. </div>
  1099. <div class="diaBtn" style="padding: 0 20px 10px !important">
  1100. <div style="color: #000" @click="handleClose">
  1101. 取 消
  1102. </div>
  1103. <div
  1104. type="primary"
  1105. style="background: #0663fe;color: #fff;"
  1106. @click="addTemp"
  1107. >
  1108. 确 定
  1109. </div>
  1110. </div>
  1111. </div>
  1112. </div>
  1113. </el-dialog>
  1114. <!-- 常见应用弹框 -->
  1115. <el-dialog
  1116. title="应用列表"
  1117. :visible.sync="dialogVisible"
  1118. class="moreDia"
  1119. :close-on-click-modal="false"
  1120. :modal="false"
  1121. width="60%"
  1122. :before-close="handleClose"
  1123. >
  1124. <div slot="title" class="applistTop">
  1125. <div>应用列表</div>
  1126. <el-input
  1127. placeholder="请输入内容"
  1128. style="width: 200px;height: 30px;"
  1129. v-model="appinp">
  1130. <i slot="suffix" class="el-input__icon el-icon-search"></i>
  1131. </el-input>
  1132. </div>
  1133. <div style="height: 500px;width: 100%;overflow: auto;overflow-x: hidden;">
  1134. <div
  1135. v-loading="loading"
  1136. style="
  1137. display: flex;
  1138. flex-wrap: wrap;
  1139. justify-content: space-between;
  1140. gap: 16px;
  1141. width: 100%;
  1142. overflow-x: hidden;
  1143. "
  1144. >
  1145. <div
  1146. v-for="(item, index) in isAdd(usuallyList)"
  1147. class="tabCon"
  1148. @click="selApp(item)"
  1149. :key="index + '6p'"
  1150. style="width: 30%; position: relative"
  1151. >
  1152. <img
  1153. v-if="selectedItem.find((k) => k.id === item.id)"
  1154. src="../../../assets/img/dui.svg"
  1155. style="position: absolute; top: 10px; right: 10px; width: 30px"
  1156. alt=""
  1157. />
  1158. <div class="AppList">
  1159. <img class="appImg" :src="JSON.parse(item.json).icon" alt="" />
  1160. <div class="con">
  1161. <div class="tit">{{ item.name }}</div>
  1162. <div class="bri">
  1163. <el-tooltip
  1164. class="item"
  1165. effect="light"
  1166. :content="item.detail"
  1167. placement="bottom"
  1168. >
  1169. <span>
  1170. {{ item.detail }}
  1171. </span>
  1172. </el-tooltip>
  1173. </div>
  1174. </div>
  1175. </div>
  1176. </div>
  1177. </div>
  1178. </div>
  1179. <div class="diaBtn" style="padding: 0 20px 10px !important">
  1180. <div @click="dialogVisible = false">取 消</div>
  1181. <div
  1182. type="primary"
  1183. style="background: #0663fe; color: #fff"
  1184. @click="updateUApplist"
  1185. >
  1186. 确 定
  1187. </div>
  1188. </div>
  1189. </el-dialog>
  1190. <!-- <addCampusDialog ref="addCampusDialogRef" @success="addCampusSuccess" /> -->
  1191. </div>
  1192. </template>
  1193. <script>
  1194. import { mapGetters } from "vuex";
  1195. import { API_CONFIG } from "../../../common/apiConfig.js";
  1196. // import addCampusDialog from "./addCampusDialog";
  1197. import { myMixin } from "@/mixins/mixin.js";
  1198. import "@/common/aws-sdk-2.235.1.min.js";
  1199. import axios from "@/common/axios.config"; // 引入 axios 配置实例
  1200. // import store from "../../../store";
  1201. export default {
  1202. mixins: [myMixin],
  1203. props: ["schId", "schOrg"],
  1204. components: {
  1205. // addCampusDialog,
  1206. },
  1207. data() {
  1208. return {
  1209. // 常见应用弹框
  1210. dialogVisible: false,
  1211. appinp:'', //搜索框
  1212. // 0默认颜色 1编辑 2添加
  1213. editBtnType: 0,
  1214. // 添加与编辑弹框显示
  1215. editVisible: false,
  1216. // 判断点击的哪个部分的编辑按钮
  1217. // 0集团简介 1办学特色 2师资力量 3特色应用 4自动定义模块
  1218. isBtn: -1,
  1219. // app应用列表
  1220. usuallyList: [],
  1221. loading: false,//列表加载
  1222. // 正在编辑哪一个
  1223. editIndex: null,
  1224. // 上传图片loading
  1225. diaLoad: false,
  1226. // 所有应用列表
  1227. appList: [],
  1228. // 页面校区特色数据
  1229. CampusF: [],
  1230. // 储存选择特色应用
  1231. selectedItem: [],
  1232. // 整体数据
  1233. Alldata: {},
  1234. AllLoading: false,
  1235. addTemVisible:false,
  1236. TemNum:0,
  1237. // 添加自定义模块模板
  1238. mouldD:{
  1239. tit:'',
  1240. bri:'',
  1241. list:[
  1242. {name:'',bri:''}
  1243. ]
  1244. }
  1245. };
  1246. },
  1247. computed: {
  1248. ...mapGetters(["userinfo"]),
  1249. featureList() {
  1250. if (this.Alldata.admin.CampusF) {
  1251. return this.Alldata.admin.CampusF.feature; // 从 Alldata 中获取 featureList
  1252. } else {
  1253. return [];
  1254. }
  1255. },
  1256. // 判断是否被添加过
  1257. isAdd() {
  1258. return function (val) {
  1259. const difference = val.filter(
  1260. (item1) =>
  1261. !this.CampusF.appList.some((item2) => item1.id === item2.id) && item1.name.includes(this.appinp)
  1262. );
  1263. return difference;
  1264. };
  1265. },
  1266. teaData() {
  1267. if (this.Alldata.admin.CampusF) {
  1268. return this.Alldata.admin.CampusF.teacherN.list; // 从 Alldata 中获取 teaData
  1269. } else {
  1270. return [];
  1271. }
  1272. },
  1273. allApp() {
  1274. return function (val) {
  1275. const difference = val.filter(
  1276. (item1) =>
  1277. !this.CampusF.appList.some((item2) => item1.id === item2.id)
  1278. );
  1279. return difference;
  1280. };
  1281. },
  1282. editTitle() {
  1283. if (this.isBtn == 0) return "编辑集团简介";
  1284. else if (this.isBtn == 1) return "编辑办学特色";
  1285. else if (this.isBtn == 2) return "编辑师资力量";
  1286. else if (this.isBtn == 4) return `编辑${this.CampusF.customTemplate[this.TemNum].tit}`;
  1287. else if (this.isBtn == 5) return "添加自定义模块";
  1288. else return ""; // 默认值
  1289. },
  1290. },
  1291. watch: {
  1292. schId(newValue) {
  1293. console.log("newValue", newValue);
  1294. this.getSchFacility();
  1295. },
  1296. },
  1297. methods: {
  1298. // 添加自定义模块item
  1299. addtempitem(){
  1300. if (this.hasEmptyData2(this.mouldD.list))
  1301. return this.$message.info("请填充空数据");
  1302. this.mouldD.list.push({name:'',bri:''})
  1303. },
  1304. // 添加自定义模块
  1305. addTemp(){
  1306. if (!this.mouldD.tit.trim()) return this.$message.error('请填充模块名称')
  1307. if (!this.mouldD.bri.trim()) return this.$message.error('请填充模块简介')
  1308. if (!this.CampusF.customTemplate) {
  1309. this.CampusF.customTemplate = []
  1310. }
  1311. this.CampusF.customTemplate.push(this.mouldD)
  1312. this.setJson(1)
  1313. },
  1314. // 修改特色应用
  1315. updateUApplist() {
  1316. this.CampusF.appList = [...this.CampusF.appList, ...this.selectedItem];
  1317. this.setJson(1);
  1318. },
  1319. // 添加或去除app
  1320. selApp(val) {
  1321. let k = this.selectedItem.findIndex((item) => item.id === val.id);
  1322. console.log("selApp", k);
  1323. if (k != -1) {
  1324. this.selectedItem.splice(k, 1);
  1325. } else {
  1326. this.selectedItem.push(val);
  1327. }
  1328. },
  1329. // 添加数据
  1330. additem() {
  1331. this.editBtnType = 2;
  1332. if (this.isBtn == 1) {
  1333. if (this.hasEmptyData(this.CampusF.feature))
  1334. return this.$message.info("请填充空数据");
  1335. this.CampusF.feature.push({ bri: "", icon: "", name: "" });
  1336. this.editIndex = this.CampusF.feature.length - 1;
  1337. setTimeout(() => {
  1338. document.querySelector("#bottomElement").scrollTo({
  1339. top: document.querySelector("#bottomElement").scrollHeight,
  1340. behavior: "smooth",
  1341. });
  1342. }, 0);
  1343. } else if (this.isBtn == 2) {
  1344. if (this.hasEmptyData2(this.CampusF.teacherN.list))
  1345. return this.$message.info("请填充空数据");
  1346. this.CampusF.teacherN.list.push({ bri: "", name: "" });
  1347. this.editIndex = this.CampusF.teacherN.list.length - 1;
  1348. setTimeout(() => {
  1349. document.querySelector("#bottomElement").scrollTo({
  1350. top: document.querySelector("#bottomElement").scrollHeight,
  1351. behavior: "smooth",
  1352. });
  1353. }, 0);
  1354. } else if (this.isBtn == 4) {
  1355. if (this.CampusF.customTemplate[this.TemNum].list.length && this.hasEmptyData2(this.CampusF.customTemplate[this.TemNum].list))
  1356. return this.$message.info("请填充空数据");
  1357. this.CampusF.customTemplate[this.TemNum].list.push({ bri: "", name: "" });
  1358. this.editIndex = this.CampusF.customTemplate[this.TemNum].list.length - 1;
  1359. setTimeout(() => {
  1360. document.querySelector("#bottomElement").scrollTo({
  1361. top: document.querySelector("#bottomElement").scrollHeight,
  1362. behavior: "smooth",
  1363. });
  1364. }, 0);
  1365. }
  1366. },
  1367. // 点击区块编辑
  1368. async editregion(type,index) {
  1369. this.editIndex = null;
  1370. this.editBtnType = 0;
  1371. this.TemNum = index
  1372. this.isBtn = type;
  1373. this.editVisible = true;
  1374. },
  1375. //删除集团简介中的图片
  1376. delImg(ind) {
  1377. this.CampusF.GroupImgList.splice(ind, 1);
  1378. },
  1379. // 编辑弹框数据条中的图片
  1380. editFea(ind) {
  1381. this.editBtnType = 1;
  1382. this.CampusF = JSON.parse(JSON.stringify(this.Alldata.admin.CampusF));
  1383. this.editIndex = ind;
  1384. },
  1385. handleClose() {
  1386. this.dialogVisible = false;
  1387. this.editVisible = false;
  1388. this.addTemVisible = false
  1389. this.isBtn = -1;
  1390. this.appList = [];
  1391. this.editIndex = null;
  1392. this.editBtnType = 0;
  1393. this.dialogVisible = false;
  1394. this.selectedItem = [];
  1395. if (this.Alldata.admin.CampusF) {
  1396. this.CampusF = JSON.parse(JSON.stringify(this.Alldata.admin.CampusF));
  1397. }
  1398. // 重置自定义模板
  1399. this.mouldD = {
  1400. tit:'',
  1401. bri:'',
  1402. list:[
  1403. {name:'',bri:''}
  1404. ]
  1405. }
  1406. },
  1407. // 删除
  1408. delFe(index) {
  1409. this.$confirm("确定要删除吗?", "提示", {
  1410. confirmButtonText: "确定",
  1411. cancelButtonText: "取消",
  1412. type: "warning",
  1413. })
  1414. .then(() => {
  1415. // 用户点击“确定”后执行删除操作
  1416. if (this.isBtn == 1) {
  1417. this.CampusF.feature.splice(index, 1);
  1418. } else if (this.isBtn == 2) {
  1419. this.CampusF.teacherN.list.splice(index, 1);
  1420. } else if (this.isBtn == 3) {
  1421. this.CampusF.appList.splice(index, 1);
  1422. } else if (this.isBtn == 4) {
  1423. this.CampusF.customTemplate[this.TemNum].list.splice(index, 1)
  1424. }
  1425. // this.setJson(0);
  1426. // this.$message.success('删除成功!');
  1427. })
  1428. .catch(() => {
  1429. // 用户点击“取消”后执行的操作
  1430. // this.$message.error('已取消删除');
  1431. });
  1432. },
  1433. // 打开常见应用弹框
  1434. lookMore() {
  1435. this.dialogVisible = true;
  1436. this.loading = true;
  1437. let params = [
  1438. {
  1439. functionName: API_CONFIG.ajax_usuallyApp.functionName,
  1440. uid: this.userinfo.userid,
  1441. cn: this.userinfo.schoolArea
  1442. ? this.userinfo.schoolArea
  1443. : this.userinfo.orgArea, //学校id
  1444. },
  1445. ];
  1446. this.$ajax
  1447. .post(API_CONFIG.baseUrl, params)
  1448. .then((res) => {
  1449. this.usuallyList = res.data[0];
  1450. this.loading = false;
  1451. })
  1452. .catch((err) => {
  1453. console.log(err);
  1454. this.loading = false;
  1455. this.$message.error("获取工具数据失败");
  1456. });
  1457. },
  1458. openNewWindow(val) {
  1459. console.log(val);
  1460. this.addOp3(
  1461. "1",
  1462. "",
  1463. { id: val.id, name: val.name, type: this.prefixL + "appstoreOpen" },
  1464. "success"
  1465. );
  1466. // // 基本用法:打开指定 URL
  1467. window.open(val.url, "_blank");
  1468. },
  1469. // 办学特色取消
  1470. feaClo(ind) {
  1471. this.editBtnType = 0;
  1472. this.editIndex = null;
  1473. let data = JSON.parse(JSON.stringify(this.Alldata.admin.CampusF));
  1474. if (this.isBtn == 1) {
  1475. this.CampusF.feature = data.feature;
  1476. } else if (this.isBtn == 2) {
  1477. this.CampusF.teacherN.teaBri = data.teacherN.teaBri;
  1478. if (ind != null) {
  1479. this.CampusF.teacherN.list = data.teacherN.list;
  1480. }
  1481. } else if (this.isBtn == 3) {
  1482. this.CampusF.appList = data.appList;
  1483. } else if (this.isBtn == 4) {
  1484. this.CampusF.customTemplate = data.customTemplate
  1485. }
  1486. },
  1487. // 保存时添加判断
  1488. setJsonL(ind) {
  1489. // 办学特色
  1490. if (this.isBtn == 1) {
  1491. if (this.hasEmptyData(this.CampusF.feature))
  1492. return this.$message.info("请填充空数据");
  1493. this.setJson(0);
  1494. } else if (this.isBtn == 2) {
  1495. // 师资力量
  1496. if (!this.CampusF.teacherN.teaBri)
  1497. return this.$message.info("请填充简介");
  1498. if (this.hasEmptyData2(this.CampusF.teacherN.list))
  1499. return this.$message.info("请填充空数据");
  1500. this.setJson(0);
  1501. } else if (this.isBtn == 3) {
  1502. // 特色应用
  1503. if (!this.CampusF.appList[ind].detailWri) {
  1504. this.CampusF.appList[ind].detailWri =
  1505. this.CampusF.appList[ind].detail;
  1506. }
  1507. this.setJson(0);
  1508. } else if (this.isBtn == 4) {
  1509. // // 特色应用
  1510. // if (!this.CampusF.customTemplate[this.TemNum].tit)
  1511. // return this.$message.info("请填充模块名称");
  1512. // if (!this.CampusF.customTemplate[this.TemNum].bri)
  1513. // return this.$message.info("请填充简介");
  1514. // if (this.CampusF.customTemplate[this.TemNum].list.length && this.hasEmptyData2(this.CampusF.customTemplate[this.TemNum].list))
  1515. // return this.$message.info("请填充空数据");
  1516. // console.log('66666');
  1517. this.setJson(0);
  1518. }
  1519. },
  1520. // 不能有空值
  1521. hasEmptyData2(arr) {
  1522. return arr.some(
  1523. (item) => item.name.trim() === "" || item.bri.trim() === ""
  1524. );
  1525. },
  1526. hasEmptyData(arr) {
  1527. return arr.some(
  1528. (item) =>
  1529. item.name.trim() === "" || item.icon === "" || item.bri.trim() === ""
  1530. );
  1531. },
  1532. // 提交
  1533. setJson(SetL) {
  1534. if (SetL == 1) {
  1535. if (this.editBtnType != 0) return this.$message.info("请保存修改数据");
  1536. }
  1537. if (this.isBtn == 1 && this.hasEmptyData(this.CampusF.feature))
  1538. return this.$message.info("请填充空数据");
  1539. if (this.isBtn == 4 && (!this.CampusF.customTemplate[this.TemNum].tit.trim() || !this.CampusF.customTemplate[this.TemNum].bri.trim() || (this.CampusF.customTemplate[this.TemNum].list.length && this.hasEmptyData2(this.CampusF.customTemplate[this.TemNum].list))))
  1540. return this.$message.info("请填充空数据");
  1541. this.editIndex = null;
  1542. this.diaLoad = true;
  1543. let _form = JSON.parse(JSON.stringify(this.Alldata));
  1544. console.log("CampusF", JSON.parse(JSON.stringify(this.CampusF)));
  1545. _form.desktop.list = _form.desktop.list.map((i) => i.id);
  1546. _form.admin.index.list = _form.admin.index.list.map((i) => i.id);
  1547. _form.admin.sidebar.list.forEach((i, index) => {
  1548. if (i.children) {
  1549. _form.admin.sidebar.list[index].children = i.children.map(
  1550. (i) => i.id
  1551. );
  1552. } else {
  1553. _form.admin.sidebar.list[index] = i.id;
  1554. }
  1555. });
  1556. _form.admin.cocoFlow = _form.admin.cocoFlow
  1557. ? _form.admin.cocoFlow.map((i) => {return { id: i.id, setIcon: i.setIcon };}): [];
  1558. _form.admin.cocoFlow2 = _form.admin.cocoFlow2
  1559. ? _form.admin.cocoFlow2.map((i) => {return { id: i.id, setIcon: i.setIcon };}): [];
  1560. _form.admin.CampusF = JSON.parse(JSON.stringify(this.CampusF));
  1561. // console.log('_form.admin.CampusF',JSON.parse(JSON.stringify(_form.admin.CampusF)));
  1562. _form.admin.CampusF.appList = _form.admin.CampusF.appList.length
  1563. ? _form.admin.CampusF.appList.map((i) => {
  1564. return {
  1565. id: i.id,
  1566. setIcon: i.setIcon,
  1567. detailWri: i.detailWri ? i.detailWri : "",};}): [];
  1568. console.log("_form", JSON.parse(JSON.stringify(_form)));
  1569. let params = [
  1570. {
  1571. functionName: "update_orgOroid_json_liyuan",
  1572. oid: this.schId,
  1573. orgid: this.schOrg,
  1574. ujson: JSON.stringify(_form),
  1575. },
  1576. ];
  1577. axios
  1578. .post(API_CONFIG.baseUrl, params)
  1579. .then(async (res) => {
  1580. let _data = res.data;
  1581. if (_data == 1) {
  1582. this.$message.success("修改成功");
  1583. this.getSchFacility();
  1584. this.editBtnType = 0;
  1585. if (SetL) {
  1586. this.handleClose();
  1587. }
  1588. this.addOp3(
  1589. "1",
  1590. "",
  1591. {
  1592. uid: this.userinfo.userid,
  1593. cid: this.userinfo.organizeid,
  1594. type: "user_op",
  1595. content: `修改了${this.userinfo.schoolName}的校区特色`,
  1596. },
  1597. "success"
  1598. );
  1599. } else {
  1600. this.$message.error("修改失败");
  1601. }
  1602. this.diaLoad = false;
  1603. })
  1604. .catch((err) => {
  1605. console.log(err);
  1606. this.diaLoad = false;
  1607. this.$message.error("修改失败");
  1608. this.addOp3(
  1609. "1",
  1610. "",
  1611. {
  1612. uid: this.userid,
  1613. cid: this.data.id,
  1614. type: "user_op",
  1615. content: `修改了${this.data.name}的校区特色`,
  1616. },
  1617. err
  1618. );
  1619. });
  1620. },
  1621. async getSchFacility() {
  1622. this.AllLoading = true;
  1623. let params = [
  1624. {
  1625. functionName: API_CONFIG.ajax_schoolPermission.functionName, // 调用存储过程的名称
  1626. org: this.schOrg, //组织id
  1627. oid: this.schId, //学校id
  1628. },
  1629. ];
  1630. console.log("params", params);
  1631. // 获取学校权限与组织权限,优先使用学校权限,其次使用组织权限
  1632. // 第一步
  1633. let res = await axios.post(API_CONFIG.baseUrl, params);
  1634. let perData = JSON.parse(res.data[0][0].json);
  1635. // 第二步
  1636. let params2 = [
  1637. {
  1638. functionName: "select_desktopToolByPage",
  1639. status: "",
  1640. page: 1,
  1641. lim: 9999999,
  1642. },
  1643. ];
  1644. let res2 = await axios.post(API_CONFIG.baseUrl, params2);
  1645. let toolList = res2.data[0];
  1646. toolList.forEach((i) => {
  1647. i.url = JSON.parse(i.url);
  1648. i.json = JSON.parse(i.json);
  1649. i.argumentList = JSON.parse(i.argumentList);
  1650. });
  1651. let params3 = [
  1652. {
  1653. functionName: "select_schUsuallyApp",
  1654. userid: "",
  1655. stand: "cn",
  1656. },
  1657. ];
  1658. let res3 = await axios.post(API_CONFIG.baseUrl, params3);
  1659. let _list = res3.data[0];
  1660. _list.forEach((i) => {
  1661. i.json = JSON.parse(i.json);
  1662. });
  1663. let appList = _list;
  1664. // 第三步
  1665. perData.desktop.list.forEach((i, index) => {
  1666. let _index = toolList.findIndex((i2) => i == i2.id);
  1667. if (_index != -1) {
  1668. perData.desktop.list[index] = toolList[_index];
  1669. } else {
  1670. console.log("无工具", i);
  1671. }
  1672. });
  1673. if (perData.admin.CampusF && perData.admin.CampusF.appList) {
  1674. perData.admin.CampusF.appList.forEach((i, index) => {
  1675. let _index = appList.findIndex((i2) => i.id == i2.id);
  1676. if (_index != -1) {
  1677. let _setData = appList[_index];
  1678. _setData.setIcon = i.setIcon;
  1679. _setData.detailWri = i.detailWri ? i.detailWri : "";
  1680. perData.admin.CampusF.appList[index] = _setData;
  1681. } else {
  1682. console.log("无应用", i);
  1683. }
  1684. });
  1685. perData.admin.CampusF.appList =
  1686. perData.admin.CampusF.appList.filter(Boolean);
  1687. }
  1688. perData.admin.index.list.forEach((i, index) => {
  1689. let _index = toolList.findIndex((i2) => i == i2.id);
  1690. if (_index != -1) {
  1691. perData.admin.index.list[index] = toolList[_index];
  1692. perData.admin.index.list[index].hovered = false;
  1693. } else {
  1694. console.log("无工具", i);
  1695. }
  1696. });
  1697. perData.admin.sidebar.list.forEach((i, index) => {
  1698. if (i.children) {
  1699. i.children.forEach((i2, index2) => {
  1700. let _toolList = JSON.parse(JSON.stringify(toolList));
  1701. let _index = _toolList.findIndex((i3) => i2 == i3.id);
  1702. if (_index != -1) {
  1703. perData.admin.sidebar.list[index].children[index2] =
  1704. _toolList[_index];
  1705. perData.admin.sidebar.list[index].children[index2].typeId =
  1706. perData.admin.sidebar.list[index].typeId +
  1707. "," +
  1708. _toolList[_index].id;
  1709. } else {
  1710. console.log("无工具", i);
  1711. }
  1712. });
  1713. } else {
  1714. let _toolList = JSON.parse(JSON.stringify(toolList));
  1715. let _index = _toolList.findIndex((i2) => i == i2.id);
  1716. if (_index != -1) {
  1717. perData.admin.sidebar.list[index] = _toolList[_index];
  1718. perData.admin.sidebar.list[index].typeId =
  1719. perData.admin.sidebar.list[index].id;
  1720. } else {
  1721. console.log("无工具", i);
  1722. }
  1723. }
  1724. });
  1725. console.log("perData", perData);
  1726. this.Alldata = perData;
  1727. this.AllLoading = false;
  1728. if (perData.admin.CampusF) {
  1729. this.CampusF = JSON.parse(JSON.stringify(perData.admin.CampusF));
  1730. } else {
  1731. this.CampusF = {
  1732. GroupBri: "暂无简介",
  1733. feature: [
  1734. {
  1735. bri: "暂无简介",
  1736. icon: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/tese1745913146000.svg",
  1737. name: "默认标题",
  1738. },
  1739. ],
  1740. teacherN: {
  1741. teaBri: "暂无简介",
  1742. list: [{ bri: "默认标题", name: "暂无数据" }],
  1743. },
  1744. appList: [],
  1745. };
  1746. }
  1747. // commit('SET_FROM', perData)
  1748. },
  1749. // 上传图片
  1750. async uploadisBtn(val, index) {
  1751. let imgUrl = await this.uploadFile("image/*");
  1752. if (val == 0) {
  1753. if (this.CampusF.GroupImgList) {
  1754. this.$set(this.CampusF, "GroupImgList", [
  1755. ...this.CampusF.GroupImgList,
  1756. imgUrl,
  1757. ]);
  1758. } else {
  1759. this.CampusF.GroupImgList = [];
  1760. this.$set(this.CampusF, "GroupImgList", [
  1761. ...this.CampusF.GroupImgList,
  1762. imgUrl,
  1763. ]);
  1764. }
  1765. } else if (val == 1) {
  1766. this.CampusF.feature[index].icon = imgUrl;
  1767. } else if (val == 3) {
  1768. this.CampusF.appList[index].setIcon = imgUrl;
  1769. }
  1770. this.$forceUpdate();
  1771. },
  1772. uploadFile(accept = "*") {
  1773. return new Promise((resolve) => {
  1774. const input = document.createElement("input");
  1775. input.type = "file";
  1776. input.accept = accept;
  1777. input.onchange = (event) => {
  1778. const file = event.target.files[0];
  1779. if (file) {
  1780. let credentials = {
  1781. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1782. secretAccessKey: "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",
  1783. }; //秘钥形式的登录上传
  1784. window.AWS.config.update(credentials);
  1785. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1786. let bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1787. this.diaLoad = true;
  1788. let params = {
  1789. Key:
  1790. file.name.split(".")[0] +
  1791. new Date().getTime() +
  1792. "." +
  1793. file.name.split(".")[file.name.split(".").length - 1],
  1794. ContentType: file.type,
  1795. Body: file,
  1796. "Access-Control-Allow-Credentials": "*",
  1797. ACL: "public-read",
  1798. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1799. let options = {
  1800. partSize: 2048 * 1024 * 1024,
  1801. queueSize: 2,
  1802. leavePartsOnError: true,
  1803. };
  1804. bucket
  1805. .upload(params, options)
  1806. .on("httpUploadProgress", (evt) => {
  1807. console.log(evt);
  1808. })
  1809. .send((err, data) => {
  1810. if (err) {
  1811. this.$message.error("上传失败");
  1812. this.diaLoad = false;
  1813. // return resolve("");
  1814. } else {
  1815. this.diaLoad = false;
  1816. return resolve(data.Location);
  1817. }
  1818. });
  1819. } else {
  1820. resolve("");
  1821. this.diaLoad = false;
  1822. console.log("没上传成功");
  1823. }
  1824. };
  1825. input.click();
  1826. });
  1827. },
  1828. },
  1829. mounted() {
  1830. this.getSchFacility();
  1831. },
  1832. };
  1833. </script>
  1834. <style scoped>
  1835. .Ktop {
  1836. /* height: 159px; */
  1837. padding: 36px 27px;
  1838. box-sizing: border-box;
  1839. display: flex;
  1840. flex-direction: column;
  1841. background: #fff;
  1842. border-radius: 12px;
  1843. justify-content: space-between;
  1844. }
  1845. .Asc >>> .el-icon-picture-outline:before {
  1846. height: 30px;
  1847. width: 30px;
  1848. }
  1849. .topTit {
  1850. font-family: PingFang SC;
  1851. font-weight: 600;
  1852. font-size: 18px;
  1853. line-height: 22px;
  1854. color: #0663fe;
  1855. display: flex;
  1856. height: 36px;
  1857. justify-content: space-between;
  1858. }
  1859. .topTitEdit {
  1860. width: 24px;
  1861. height: 24px;
  1862. cursor: pointer;
  1863. }
  1864. .TopbriKl {
  1865. font-family: PingFang SC;
  1866. font-weight: 400;
  1867. font-size: 14px;
  1868. line-height: 22px;
  1869. color: #000;
  1870. }
  1871. .Topbri {
  1872. font-family: PingFang SC;
  1873. font-weight: 400;
  1874. font-size: 14px;
  1875. line-height: 22px;
  1876. color: #000;
  1877. flex-shrink: 0;
  1878. display: -webkit-box;
  1879. -webkit-line-clamp: 1;
  1880. -webkit-box-orient: vertical;
  1881. overflow: hidden;
  1882. text-overflow: ellipsis;
  1883. }
  1884. .Topbri2 {
  1885. font-family: PingFang SC;
  1886. font-weight: 400;
  1887. font-size: 14px;
  1888. color: #000;
  1889. display: -webkit-box;
  1890. -webkit-line-clamp: 2;
  1891. -webkit-box-orient: vertical;
  1892. overflow: hidden;
  1893. text-overflow: ellipsis;
  1894. }
  1895. .feature {
  1896. width: 100%;
  1897. padding: 36px 27px;
  1898. border-radius: 12px;
  1899. box-sizing: border-box;
  1900. background: #eeeeee;
  1901. display: flex;
  1902. flex-direction: column;
  1903. gap: 20px;
  1904. justify-content: space-between;
  1905. }
  1906. .featureCon {
  1907. background: #ffffff;
  1908. height: 211px;
  1909. display: flex;
  1910. flex: 1;
  1911. flex-shrink: 0;
  1912. flex-direction: column;
  1913. /* justify-content: center; */
  1914. border-radius: 10px;
  1915. padding: 40px 20px;
  1916. align-items: center;
  1917. box-sizing: border-box;
  1918. gap: 18px;
  1919. }
  1920. .featureAll {
  1921. grid-template-columns: repeat(4, 1fr);
  1922. display: grid;
  1923. gap: 20px;
  1924. }
  1925. .featureCon2 {
  1926. background: #ffffff;
  1927. width: 100%;
  1928. height: 94px;
  1929. display: flex;
  1930. flex-direction: column;
  1931. justify-content: center;
  1932. border-radius: 10px;
  1933. padding: 40px 20px;
  1934. align-items: center;
  1935. box-sizing: border-box;
  1936. gap: 10px;
  1937. }
  1938. .featureConTit {
  1939. font-family: PingFang SC;
  1940. font-weight: 600;
  1941. font-size: 18px;
  1942. color: #000;
  1943. text-align: center;
  1944. display: -webkit-box;
  1945. -webkit-line-clamp: 1;
  1946. -webkit-box-orient: vertical;
  1947. overflow: hidden;
  1948. text-overflow: ellipsis;
  1949. }
  1950. .featureConTit2 {
  1951. font-family: PingFang SC;
  1952. font-weight: 600;
  1953. font-size: 20px;
  1954. line-height: 22px;
  1955. color: #0663fe;
  1956. flex-shrink: 0;
  1957. display: -webkit-box;
  1958. -webkit-line-clamp: 1;
  1959. -webkit-box-orient: vertical;
  1960. overflow: hidden;
  1961. text-overflow: ellipsis;
  1962. }
  1963. .AppStoreList {
  1964. display: grid;
  1965. grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
  1966. gap: 20px;
  1967. }
  1968. .AppStoreList2 {
  1969. display: flex;
  1970. flex-direction: column;
  1971. }
  1972. .AppStore {
  1973. display: flex;
  1974. flex-direction: column;
  1975. gap: 10px;
  1976. min-height: 171px;
  1977. min-width: 100px;
  1978. cursor: pointer;
  1979. }
  1980. .AppStoreCon {
  1981. border-radius: 10px;
  1982. padding: 17px 17px;
  1983. height: 100%;
  1984. box-sizing: border-box;
  1985. background: #fff;
  1986. }
  1987. .AppStoreCon img {
  1988. width: 32px;
  1989. height: 32px;
  1990. margin-bottom: 10px;
  1991. object-fit: cover;
  1992. border-radius: 50%;
  1993. }
  1994. .AppAdd {
  1995. height: 171px;
  1996. border-radius: 10px;
  1997. padding: 17px 17px;
  1998. box-sizing: border-box;
  1999. border: 1px dashed #000000;
  2000. background: #e5e5e5;
  2001. display: flex;
  2002. justify-content: center;
  2003. align-items: center;
  2004. }
  2005. .AppStoreConTit {
  2006. font-family: PingFang SC;
  2007. font-weight: 500;
  2008. font-size: 16px;
  2009. margin-bottom: 5px;
  2010. display: -webkit-box;
  2011. -webkit-line-clamp: 2;
  2012. -webkit-box-orient: vertical;
  2013. overflow: hidden;
  2014. text-overflow: ellipsis;
  2015. }
  2016. .AppStoreConBri {
  2017. font-family: PingFang SC;
  2018. font-weight: 300;
  2019. font-size: 14px;
  2020. color: #969ba3;
  2021. height: 100%;
  2022. /* display: -webkit-box;
  2023. -webkit-line-clamp: 2;
  2024. -webkit-box-orient: vertical; */
  2025. /* white-space: wrap;
  2026. overflow: hidden;
  2027. text-overflow: ellipsis; */
  2028. }
  2029. .AppStoreConBri >>> .el-textarea {
  2030. height: 100%;
  2031. }
  2032. .AppStoreConBri >>> .el-textarea__inner {
  2033. border: none !important;
  2034. border-radius: 8px !important;
  2035. height: 100%;
  2036. background: #f2f2f2 !important;
  2037. }
  2038. .AppStoreBri {
  2039. font-family: PingFang SC;
  2040. font-size: 10px;
  2041. color: #969ba3;
  2042. }
  2043. .appItem {
  2044. height: 100px;
  2045. background-color: white;
  2046. box-sizing: border-box;
  2047. border: solid 1px #f3f4f6;
  2048. padding: 10px;
  2049. border-radius: 8px;
  2050. cursor: pointer;
  2051. display: flex;
  2052. align-items: center;
  2053. justify-content: center;
  2054. transition: 0.3s;
  2055. }
  2056. .appActive {
  2057. border-color: #409eff;
  2058. box-shadow: 0px 6px 30px 5px #00000015;
  2059. }
  2060. .appItem:hover {
  2061. box-shadow: 0px 6px 30px 5px #00000015;
  2062. }
  2063. .ai_left {
  2064. width: 80px;
  2065. height: 80px;
  2066. box-sizing: border-box;
  2067. padding: 10px;
  2068. margin-right: 10px;
  2069. }
  2070. .ai_right {
  2071. width: calc(100% - 80px - 10px);
  2072. position: relative;
  2073. }
  2074. .ai_right > div {
  2075. max-width: calc(100% - 50px);
  2076. font-weight: bold;
  2077. overflow: hidden;
  2078. white-space: nowrap;
  2079. text-overflow: ellipsis;
  2080. font-size: 16px;
  2081. color: #000;
  2082. margin-bottom: 10px;
  2083. }
  2084. .ai_right > span {
  2085. font-size: 14px;
  2086. color: #00000099;
  2087. display: -webkit-box;
  2088. -webkit-box-orient: vertical;
  2089. -webkit-line-clamp: 2;
  2090. overflow: hidden;
  2091. text-overflow: ellipsis;
  2092. }
  2093. .Fedialog >>> .el-dialog {
  2094. width: 60% !important;
  2095. min-width: 800px;
  2096. overflow: hidden;
  2097. margin-top: 10vh !important;
  2098. border-radius: 12px;
  2099. }
  2100. .diaTop {
  2101. height: 450px;
  2102. display: flex;
  2103. flex-direction: column;
  2104. gap: 15px;
  2105. }
  2106. .diaTop >>> .el-textarea__inner {
  2107. border: none !important;
  2108. border-radius: 10px !important;
  2109. }
  2110. .diaCon {
  2111. height: 500px;
  2112. overflow: auto;
  2113. padding: 20px;
  2114. }
  2115. .FedialogJIa {
  2116. display: grid;
  2117. grid-template-columns: repeat(3, 1fr);
  2118. gap: 15px;
  2119. }
  2120. .FedialogJIa div {
  2121. height: 122px;
  2122. display: flex;
  2123. justify-content: center;
  2124. align-items: center;
  2125. background: #e6e6e6;
  2126. border-radius: 12px;
  2127. overflow: hidden;
  2128. border: 1px #0663fe dashed;
  2129. }
  2130. .Fedialog >>> .el-dialog__header {
  2131. padding: 15px 20px;
  2132. background: #fff;
  2133. border-radius: 10px 10px 0 0;
  2134. border-bottom: 1px #e7e7e7 solid;
  2135. }
  2136. .Fedialog >>> .el-dialog__body {
  2137. position: relative;
  2138. max-height: 70vh;
  2139. /* 内容区域最大高度为视口高度的 70% */
  2140. overflow-y: auto;
  2141. /* 当内容超出时显示滚动条 */
  2142. background: #fafafa;
  2143. /* 添加内边距 */
  2144. padding: 0;
  2145. box-sizing: border-box;
  2146. /* 确保 padding 不影响宽度计算 */
  2147. }
  2148. .Fedialog >>> .el-dialog__title {
  2149. color: #000;
  2150. }
  2151. .diaBtn {
  2152. display: flex;
  2153. justify-content: flex-end;
  2154. gap: 10px;
  2155. /* height: 40px; */
  2156. align-items: center;
  2157. padding: 10px 0px 0 !important;
  2158. box-sizing: border-box;
  2159. /* min-height: 60px; */
  2160. }
  2161. .diaBtn > div {
  2162. background: #e7e7e7;
  2163. border-radius: 25px;
  2164. height: 24px;
  2165. width: 56px;
  2166. display: flex;
  2167. justify-content: center;
  2168. align-items: center;
  2169. box-sizing: border-box;
  2170. font-family: PingFang SC;
  2171. font-weight: 400;
  2172. font-size: 12px;
  2173. cursor: pointer;
  2174. }
  2175. .CarO {
  2176. border-radius: 10px;
  2177. overflow: hidden;
  2178. /* box-shadow: 0px 0px 20px 0px #0000001a; */
  2179. }
  2180. .CarO >>> .el-carousel {
  2181. height: auto !important;
  2182. }
  2183. /* .CarO >>> .el-carousel__container {
  2184. height: 420px !important;
  2185. } */
  2186. /*指示器按钮*/
  2187. .CarO >>> .el-carousel__button {
  2188. width: 10px;
  2189. height: 10px;
  2190. border: none;
  2191. border-radius: 50%;
  2192. background-color: rgba(0, 0, 0, 0.2);
  2193. }
  2194. /*指示器激活按钮*/
  2195. .CarO >>> .is-active .el-carousel__button {
  2196. background: #0663fe;
  2197. }
  2198. .imgBoc {
  2199. position: relative;
  2200. border: none !important;
  2201. }
  2202. .imgBoc > .el-icon-circle-close {
  2203. position: absolute;
  2204. top: 10px;
  2205. right: 10px;
  2206. display: none;
  2207. font-size: 25px;
  2208. cursor: pointer;
  2209. color: #0663fe;
  2210. }
  2211. .imgBoc:hover .el-icon-circle-close {
  2212. display: block;
  2213. }
  2214. .diaFea {
  2215. background: #fff;
  2216. display: flex;
  2217. flex-direction: column;
  2218. gap: 10px;
  2219. padding: 16px;
  2220. box-sizing: border-box;
  2221. border-radius: 10px;
  2222. }
  2223. .diaFea >>> .el-input__inner {
  2224. height: 28px;
  2225. line-height: 28px;
  2226. border-radius: 10px;
  2227. border: none !important;
  2228. background: #f2f2f2;
  2229. }
  2230. .diaFea >>> .el-textarea__inner {
  2231. border: none !important;
  2232. border-radius: 10px;
  2233. background: #fff !important;
  2234. }
  2235. .diaFeaImgT {
  2236. width: 30px;
  2237. height: 30px;
  2238. object-fit: cover;
  2239. border-radius: 50%;
  2240. }
  2241. .diaFeaImg {
  2242. height: 100%;
  2243. width: 100%;
  2244. object-fit: contain;
  2245. padding: 4px;
  2246. box-sizing: border-box;
  2247. }
  2248. .shadeC {
  2249. position: absolute;
  2250. top: 0;
  2251. left: 0;
  2252. height: 100%;
  2253. width: 100%;
  2254. background: #000;
  2255. z-index: 9999;
  2256. opacity: 0.3;
  2257. }
  2258. /* 弹框 */
  2259. .moreDia >>> .el-dialog {
  2260. border-radius: 10px;
  2261. }
  2262. .moreDia >>> .el-dialog__body {
  2263. /* height: 500px; */
  2264. /* overflow: auto; */
  2265. border-top: 1px #e7e7e7 solid;
  2266. }
  2267. /* 对号 */
  2268. .top {
  2269. display: flex;
  2270. height: 154px;
  2271. justify-content: space-between;
  2272. background-color: #fff;
  2273. align-items: center;
  2274. padding: 24px;
  2275. box-sizing: border-box;
  2276. margin-bottom: 14px;
  2277. border-radius: 10px;
  2278. box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  2279. }
  2280. .AppList {
  2281. flex-wrap: wrap;
  2282. display: flex;
  2283. justify-content: space-between;
  2284. border: 1px rgb(243 244 246 / var(--tw-border-opacity, 1)) solid;
  2285. border-radius: 10px;
  2286. padding: 16px;
  2287. box-sizing: border-box;
  2288. position: relative;
  2289. }
  2290. .appImg {
  2291. width: 48px;
  2292. height: 48px;
  2293. border-radius: 50%;
  2294. object-fit: cover;
  2295. }
  2296. .con {
  2297. flex: 1;
  2298. margin-left: 12px;
  2299. display: flex;
  2300. flex-direction: column;
  2301. justify-content: center;
  2302. }
  2303. .tit {
  2304. color: #1f2937;
  2305. font-size: 16px;
  2306. height: 24px;
  2307. line-height: 24px;
  2308. -webkit-line-clamp: 1;
  2309. display: -webkit-box;
  2310. -webkit-box-orient: vertical;
  2311. overflow: hidden;
  2312. text-overflow: ellipsis;
  2313. }
  2314. .bri {
  2315. color: #6b7280;
  2316. font-size: 12px;
  2317. height: 16px;
  2318. line-height: 16px;
  2319. overflow: hidden;
  2320. -webkit-line-clamp: 1;
  2321. display: -webkit-box;
  2322. -webkit-box-orient: vertical;
  2323. overflow: hidden;
  2324. text-overflow: ellipsis;
  2325. }
  2326. .djjC {
  2327. display: flex;
  2328. align-items: center;
  2329. justify-content: center;
  2330. width: 40px;
  2331. height: 40px;
  2332. border-radius: 8px;
  2333. border-width: 1px;
  2334. overflow: hidden;
  2335. }
  2336. .jiaBoc {
  2337. width: 100%;
  2338. height: 100%;
  2339. display: flex;
  2340. background: #eeeeee;
  2341. align-items: center;
  2342. justify-content: center;
  2343. }
  2344. .tArea >>> .el-textarea__inner {
  2345. background: #f2f2f2 !important;
  2346. }
  2347. .itemTit {
  2348. font-weight: 600;
  2349. color: #303133;
  2350. }
  2351. .imgCar >>> img{
  2352. /* height: 100%; */
  2353. width: 100%;
  2354. object-fit: cover;
  2355. }
  2356. .applistTop{
  2357. display: flex;justify-content: space-between;align-items: center;padding-right: 50px;
  2358. }
  2359. .applistTop >>> .el-input__icon{
  2360. line-height: 30px;
  2361. }
  2362. .applistTop >>> .el-input__inner{
  2363. height: 30px;
  2364. line-height: 30px;
  2365. }
  2366. .mouD{
  2367. display: flex;gap: 10px;
  2368. align-items: center;
  2369. background: #fff;
  2370. box-sizing: border-box;
  2371. border-radius: 10px;
  2372. }
  2373. .mouDTitDiv{
  2374. flex: 1;
  2375. border: 1px solid rgb(150, 155, 163);
  2376. padding: 5px 15px;
  2377. box-sizing: border-box;border-radius: 5px;
  2378. color: #C0C4CC;
  2379. }
  2380. .mouD >>> .el-input__inner{
  2381. border: none;
  2382. background: #F2F2F2 !important;
  2383. height: 28px;
  2384. border-radius: 10px;
  2385. color: #000 !important;
  2386. }
  2387. </style>