AschoolFeature.vue 60 KB

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