AschoolFeature.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769
  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. style="
  34. width: 100%;
  35. object-fit: contain;
  36. border-radius: 10px;
  37. height: 100%;
  38. margin-bottom: 14px;
  39. "
  40. v-if="CampusF.GroupImgList && CampusF.GroupImgList.length == 1"
  41. >
  42. <img
  43. style="
  44. width: 100%;
  45. height: 100%;
  46. object-fit: cover;
  47. border-radius: 10px;
  48. "
  49. :src="CampusF.GroupImgList[0]"
  50. alt=""
  51. />
  52. </div>
  53. <div
  54. class="CarO"
  55. style="border-radius: 10px; overflow: hidden"
  56. v-if="CampusF.GroupImgList && CampusF.GroupImgList.length > 1"
  57. >
  58. <el-carousel
  59. style="width: 100%; height: 100%"
  60. indicator-position="outside"
  61. >
  62. <el-carousel-item
  63. v-for="(i, index) in CampusF.GroupImgList"
  64. :key="index"
  65. >
  66. <el-image
  67. style="width: 100%;
  68. object-fit: contain;
  69. border-radius: 10px;"
  70. :src="i"
  71. :preview-src-list="CampusF.GroupImgList">
  72. </el-image>
  73. <!-- <img
  74. style="
  75. width: 100%;
  76. height: 100%;
  77. object-fit: cover;
  78. border-radius: 10px;
  79. "
  80. :src="i"
  81. alt=""
  82. /> -->
  83. </el-carousel-item>
  84. </el-carousel>
  85. </div>
  86. </div>
  87. <div class="Topbri">
  88. {{
  89. Alldata.admin.CampusF ? Alldata.admin.CampusF.GroupBri : "暂无简介"
  90. }}
  91. </div>
  92. </div>
  93. <div class="feature">
  94. <div class="topTit">
  95. <div>
  96. <div>办学特色</div>
  97. <div
  98. style="
  99. height: 4px;
  100. background-color: #0663fe;
  101. width: 2rem;
  102. margin-top: 6px;
  103. "
  104. ></div>
  105. </div>
  106. <div>
  107. <img
  108. v-if="userinfo.role == 1 && userinfo.type == 1"
  109. class="topTitEdit"
  110. @click="editregion(1)"
  111. src="../../../assets/img/bianji.svg"
  112. alt=""
  113. />
  114. </div>
  115. </div>
  116. <div class="featureAll">
  117. <template v-if="featureList.length">
  118. <div
  119. class="featureCon"
  120. v-for="(i, index) in featureList"
  121. :key="index"
  122. >
  123. <img
  124. style="width: 34px; height: 34px; object-fit: contain"
  125. :src="i.icon"
  126. alt=""
  127. />
  128. <div class="featureConTit">{{ i.name }}</div>
  129. <el-tooltip
  130. class="item"
  131. effect="dark"
  132. :content="i.bri"
  133. placement="bottom"
  134. >
  135. <div class="Topbri2">{{ i.bri }}</div>
  136. </el-tooltip>
  137. </div>
  138. </template>
  139. <div v-else>暂无数据</div>
  140. </div>
  141. </div>
  142. <div class="feature">
  143. <div class="topTit">
  144. <div>
  145. <div>师资力量</div>
  146. <div
  147. style="
  148. height: 4px;
  149. background-color: #0663fe;
  150. width: 2rem;
  151. margin-top: 6px;
  152. "
  153. ></div>
  154. </div>
  155. <div>
  156. <img
  157. v-if="userinfo.role == 1 && userinfo.type == 1"
  158. class="topTitEdit"
  159. @click="editregion(2)"
  160. src="../../../assets/img/bianji.svg"
  161. alt=""
  162. />
  163. </div>
  164. </div>
  165. <div class="Topbri">
  166. <el-tooltip
  167. class="item"
  168. effect="dark"
  169. :content="
  170. Alldata.admin.CampusF
  171. ? Alldata.admin.CampusF.teacherN.teaBri
  172. : '暂无数据'
  173. "
  174. placement="bottom"
  175. >
  176. <span>
  177. {{
  178. Alldata.admin.CampusF
  179. ? Alldata.admin.CampusF.teacherN.teaBri
  180. : "暂无简介"
  181. }}
  182. </span>
  183. </el-tooltip>
  184. </div>
  185. <div class="featureAll" v-if="teaData.length">
  186. <div class="featureCon2" v-for="(i, index) in teaData" :key="index">
  187. <div class="featureConTit2">{{ i.bri }}</div>
  188. <div class="Topbri">{{ i.name }}</div>
  189. </div>
  190. </div>
  191. <div v-else>暂无数据</div>
  192. </div>
  193. <div class="feature">
  194. <div class="topTit">
  195. <div>
  196. <div>特色应用</div>
  197. <div
  198. style="
  199. height: 4px;
  200. background-color: #0663fe;
  201. width: 2rem;
  202. margin-top: 6px;
  203. "
  204. ></div>
  205. </div>
  206. </div>
  207. <div
  208. style="display: flex;flex-direction: column;gap: 10px;"
  209. v-for="(item, index) in CampusF.appList"
  210. :key="index + 'b'"
  211. >
  212. <div style="display: flex; justify-content: space-between">
  213. <div></div>
  214. <div
  215. style="
  216. display: flex;
  217. justify-content: space-between;
  218. gap: 10px;
  219. "
  220. >
  221. <img
  222. @click="isBtn = 3,editFea(index)"
  223. class="topTitEdit"
  224. :src="editIndex == index ? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/feaB.svg')"
  225. alt=""
  226. />
  227. <img
  228. @click="isBtn = 3,delFe(index)"
  229. class="topTitEdit"
  230. src="../../../assets/kanban/delK.svg"
  231. alt=""
  232. />
  233. </div>
  234. </div>
  235. <div>
  236. <div style="display: flex;justify-content: space-between;gap: 30px;">
  237. <div class="diaFea" @click="openNewWindow(item)" style="height: 122px;width: 30%;min-width: 200px;max-width: 300px;cursor: pointer;">
  238. <img v-if="editIndex == index" style="border:1px #0663fe solid;padding: 3px;box-sizing: border-box;" class="diaFeaImgT" @click="uploadisBtn(3,index)" :src="item.setIcon ? item.setIcon : item.json.icon" alt="">
  239. <img v-else class="diaFeaImgT" :src="item.setIcon ? item.setIcon : item.json.icon" alt="">
  240. <div class="AppStoreConTit">{{ item.name }}</div>
  241. </div>
  242. <div style="flex: 1;">
  243. <div class="AppStoreConBri" v-if="item.detailWri">
  244. <el-input
  245. v-if="editIndex == index"
  246. resize="none"
  247. style="border-radius: 10px;height: 100%;"
  248. type="textarea"
  249. placeholder="请输入内容"
  250. v-model="item.detailWri"
  251. >
  252. </el-input>
  253. <div v-else style="font-weight: 600">{{ item.detailWri }}</div>
  254. </div>
  255. <div class="AppStoreConBri" v-else>
  256. <el-input
  257. v-if="editIndex == index"
  258. resize="none"
  259. style="border-radius: 10px"
  260. type="textarea"
  261. placeholder="请输入内容"
  262. v-model="item.detail"
  263. >
  264. </el-input>
  265. <div v-else style="font-weight: 600">{{ item.detail }}</div>
  266. </div>
  267. </div>
  268. </div>
  269. <div
  270. class="diaBtn"
  271. style="padding: 0"
  272. v-if="editIndex == index"
  273. >
  274. <span style="color: #000;" @click="feaClo(index)">取消</span>
  275. <span
  276. style="
  277. background: #fff;
  278. "
  279. :style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
  280. color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
  281. @click="setJsonL(index)"
  282. >保存</span
  283. >
  284. </div>
  285. </div>
  286. </div>
  287. <div class="FedialogJIa" style="display: flex;" @click="lookMore()">
  288. <div style="width: 100%;border: 1px #000 dashed;cursor: pointer;">
  289. <img src="../../../assets/kanban/jia.svg" alt="" />
  290. </div>
  291. </div>
  292. </div>
  293. <!-- 修改校区特色弹框 -->
  294. <el-dialog
  295. :title="editTitle"
  296. :visible.sync="editVisible"
  297. close-on-click-modal
  298. class="Fedialog"
  299. :before-close="handleClose"
  300. >
  301. <div v-loading="diaLoad" style="display: flex; flex-direction: column">
  302. <div class="diaCon" id="bottomElement">
  303. <!-- 集团简介 -->
  304. <div class="diaTop" v-if="isBtn === 0">
  305. <el-input
  306. resize="none"
  307. style="
  308. border: 1px #0663fe dashed !important;
  309. border-radius: 10px;
  310. outline: none;
  311. "
  312. type="textarea"
  313. :rows="4"
  314. placeholder="请输入内容"
  315. v-model="CampusF.GroupBri"
  316. >
  317. </el-input>
  318. <div class="FedialogJIa">
  319. <template
  320. v-if="CampusF.GroupImgList && CampusF.GroupImgList.length"
  321. >
  322. <div
  323. class="imgBoc"
  324. v-for="(i, index) in CampusF.GroupImgList"
  325. :key="index"
  326. >
  327. <i @click="delImg(index)" class="el-icon-circle-close"></i>
  328. <img
  329. style="width: 100%; object-fit: contain"
  330. :src="i"
  331. alt=""
  332. />
  333. </div>
  334. </template>
  335. <div @click="uploadisBtn(isBtn)">
  336. <img src="../../../assets/kanban/jia.svg" alt="" />
  337. </div>
  338. </div>
  339. <div
  340. style="
  341. font-family: PingFang SC;
  342. font-weight: 400;
  343. font-size: 12px;
  344. "
  345. >
  346. 请尽量上传10M以内的横版照片
  347. </div>
  348. </div>
  349. <!-- 办学特色 -->
  350. <div
  351. style="display: flex; flex-direction: column; gap: 10px"
  352. v-if="isBtn === 1"
  353. >
  354. <div
  355. class="diaFea"
  356. :style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
  357. v-for="(i, index) in CampusF.feature"
  358. :key="index + 'b'"
  359. >
  360. <div style="display: flex; justify-content: space-between">
  361. <el-input
  362. v-if="editIndex == index"
  363. resize="none"
  364. style="border-radius: 10px;"
  365. placeholder="请输入内容"
  366. v-model="i.name"
  367. >
  368. </el-input>
  369. <div v-else style="font-weight: 600">{{ i.name }}</div>
  370. <div
  371. style="
  372. display: flex;
  373. justify-content: space-between;
  374. gap: 10px;
  375. "
  376. >
  377. <img
  378. @click="editFea(index)"
  379. class="topTitEdit"
  380. :src="editIndex == index ? editBtnType == 1? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/lj.svg') : require('../../../assets/kanban/feaB.svg')"
  381. alt=""
  382. />
  383. <img
  384. @click="delFe(index)"
  385. class="topTitEdit"
  386. src="../../../assets/kanban/delK.svg"
  387. alt=""
  388. />
  389. </div>
  390. </div>
  391. <div>
  392. <div v-if="!i.icon"
  393. class="djjC"
  394. @click="uploadisBtn(isBtn, index)">
  395. <img src="../../../assets/kanban/djj.svg" alt="">
  396. </div>
  397. <img
  398. style="cursor: pointer"
  399. v-else-if="editIndex == index"
  400. @click="uploadisBtn(isBtn, index)"
  401. class="diaFeaImg"
  402. :src="i.icon"
  403. alt=""
  404. />
  405. <img v-else class="diaFeaImg" :src="i.icon" alt="" />
  406. </div>
  407. <div>
  408. <el-input
  409. :disabled="editIndex != index"
  410. resize="none"
  411. :style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
  412. style="border-radius: 10px;overflow: hidden;"
  413. type="textarea"
  414. :rows="4"
  415. placeholder="请输入内容"
  416. v-model="i.bri"
  417. >
  418. </el-input>
  419. <div
  420. class="diaBtn"
  421. style="padding: 0"
  422. v-if="editIndex == index"
  423. >
  424. <span style="color: #000;" @click="feaClo(index)">取消</span>
  425. <span
  426. style="
  427. background: #fff;
  428. "
  429. :style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
  430. color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
  431. @click="setJsonL(0)"
  432. >保存</span
  433. >
  434. </div>
  435. </div>
  436. </div>
  437. </div>
  438. <!-- 师资力量 -->
  439. <div
  440. style="display: flex; flex-direction: column; gap: 10px"
  441. v-if="isBtn === 2"
  442. >
  443. <div class="diaFea" :style="{border: editIndex == 'bri' ? '1px dashed #3681FC' :''}">
  444. <div style="display: flex; justify-content: space-between">
  445. <div></div>
  446. <div
  447. style="
  448. display: flex;
  449. justify-content: space-between;
  450. gap: 10px;
  451. "
  452. >
  453. <img
  454. @click="editFea('bri')"
  455. class="topTitEdit"
  456. :src="editIndex == 'bri' ? editBtnType == 1 ? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/lj.svg') : require('../../../assets/kanban/feaB.svg')"
  457. alt=""
  458. />
  459. </div>
  460. </div>
  461. <div>
  462. <el-input
  463. :disabled="editIndex != 'bri'"
  464. resize="none"
  465. style="border-radius: 10px;overflow: hidden;"
  466. type="textarea"
  467. :rows="4"
  468. :style="{border: editIndex == 'bri' ? '1px dashed #3681FC' :''}"
  469. placeholder="请输入内容"
  470. v-model="CampusF.teacherN.teaBri"
  471. >
  472. </el-input>
  473. <div
  474. class="diaBtn"
  475. style="padding: 0"
  476. v-if="editIndex == 'bri'"
  477. >
  478. <span style="color: #000;" @click="feaClo()">取消</span>
  479. <span
  480. style="
  481. background: #fff;
  482. "
  483. :style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
  484. color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
  485. @click="setJsonL(0)"
  486. >保存</span
  487. >
  488. </div>
  489. </div>
  490. </div>
  491. <div
  492. class="diaFea"
  493. :style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
  494. v-for="(i, index) in CampusF.teacherN.list"
  495. :key="index + 'b'"
  496. >
  497. <div style="display: flex; justify-content: space-between">
  498. <el-input
  499. v-if="editIndex == index"
  500. resize="none"
  501. style="border-radius: 10px"
  502. placeholder="请输入内容"
  503. v-model="i.name"
  504. >
  505. </el-input>
  506. <div v-else style="font-weight: 600">{{ i.name }}</div>
  507. <div
  508. style="
  509. display: flex;
  510. justify-content: space-between;
  511. gap: 10px;
  512. "
  513. >
  514. <img
  515. @click="editFea(index)"
  516. class="topTitEdit"
  517. :src="editIndex == index ? editBtnType == 1? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/lj.svg') : require('../../../assets/kanban/feaB.svg')"
  518. alt=""
  519. />
  520. <img
  521. @click="delFe(index)"
  522. class="topTitEdit"
  523. src="../../../assets/kanban/delK.svg"
  524. alt=""
  525. />
  526. </div>
  527. </div>
  528. <div>
  529. <el-input
  530. :disabled="editIndex != index"
  531. resize="none"
  532. :style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
  533. style="border-radius: 10px;overflow: hidden;"
  534. type="textarea"
  535. :rows="4"
  536. placeholder="请输入内容"
  537. v-model="i.bri"
  538. >
  539. </el-input>
  540. <div
  541. class="diaBtn"
  542. style="padding: 0"
  543. v-if="editIndex == index"
  544. >
  545. <span style="color: #000;" @click="feaClo(index)">取消</span>
  546. <span
  547. style="
  548. background: #fff;
  549. "
  550. :style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
  551. color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
  552. @click="setJsonL(0)"
  553. >保存</span
  554. >
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. </div>
  560. <div
  561. v-if="isBtn === 1 || isBtn === 2"
  562. @click="additem()"
  563. style="
  564. display: flex;
  565. align-items: center;
  566. padding: 10px 20px;
  567. box-sizing: border-box;
  568. cursor: pointer;
  569. "
  570. >
  571. <img src="../../../assets/kanban/feaJ.svg" alt="" />
  572. <span style="color: #0560fd">添加</span>
  573. </div>
  574. <div class="diaBtn" style="padding-bottom: 10px !important;">
  575. <span style="color: #000;" @click="handleClose"> {{isBtn === 0?'返 回':'取 消' }}</span>
  576. <span
  577. type="primary"
  578. style="background: #0663fe; color: #fff"
  579. @click="setJson(1)"
  580. >确 定</span
  581. >
  582. </div>
  583. </div>
  584. </el-dialog>
  585. <!-- 常见应用弹框 -->
  586. <el-dialog
  587. title="应用列表"
  588. :visible.sync="dialogVisible"
  589. class="moreDia"
  590. :close-on-click-modal="false"
  591. :modal="false"
  592. width="60%"
  593. :before-close="handleClose">
  594. <div v-loading="loading" style="display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 16px;height: 500px;overflow: auto;">
  595. <div v-for="(item,index) in isAdd(usuallyList)" class="tabCon" @click="selApp(item)" :key="index+'6p'" style="min-width: 308px;position: relative;">
  596. <img v-if="selectedItem.find(k => k.id === item.id)"
  597. src="../../../assets/img/dui.svg"
  598. style="position: absolute;top: 10px;right: 10px;width: 30px;" alt="">
  599. <div class="AppList">
  600. <img class="appImg" :src="JSON.parse(item.json).icon" alt="">
  601. <div class="con">
  602. <div class="tit">{{ item.name }}</div>
  603. <div class="bri">
  604. <el-tooltip class="item" effect="light" :content="item.detail" placement="bottom">
  605. <span>
  606. {{ item.detail }}
  607. </span>
  608. </el-tooltip>
  609. </div>
  610. </div>
  611. </div>
  612. </div>
  613. </div>
  614. <div class="diaBtn" style="height: 5%;padding-bottom: 10px;">
  615. <span @click="dialogVisible = false">取 消</span>
  616. <span
  617. type="primary"
  618. style="background: #0663fe; color: #fff"
  619. @click="updateUApplist"
  620. >确 定</span
  621. >
  622. </div>
  623. </el-dialog>
  624. <!-- <addCampusDialog ref="addCampusDialogRef" @success="addCampusSuccess" /> -->
  625. </div>
  626. </template>
  627. <script>
  628. import { mapGetters } from "vuex";
  629. import { API_CONFIG } from "../../../common/apiConfig.js";
  630. // import addCampusDialog from "./addCampusDialog";
  631. import { myMixin } from "@/mixins/mixin.js";
  632. import "@/common/aws-sdk-2.235.1.min.js";
  633. import axios from "@/common/axios.config"; // 引入 axios 配置实例
  634. // import store from "../../../store";
  635. export default {
  636. mixins: [myMixin],
  637. props: ["schId", "schOrg"],
  638. components: {
  639. // addCampusDialog,
  640. },
  641. data() {
  642. return {
  643. dialogVisible:false,
  644. // 0默认颜色 1编辑 2添加
  645. editBtnType:0,
  646. // 添加与编辑弹框显示
  647. editVisible: false,
  648. // app应用列表
  649. usuallyList:[],
  650. // 正在编辑哪一个
  651. editIndex: null,
  652. // 上传图片loading
  653. diaLoad: false,
  654. loading: false,
  655. appLoading: false,
  656. // 判断点击的哪个部分的编辑按钮
  657. isBtn: -1,
  658. // 所有应用列表
  659. appList: [],
  660. // 页面校区特色数据
  661. CampusF: [],
  662. // 储存选择特色应用
  663. selectedItem: [],
  664. // 整体数据
  665. Alldata: {},
  666. AllLoading: false,
  667. };
  668. },
  669. computed: {
  670. ...mapGetters(["userinfo"]),
  671. featureList() {
  672. if (this.Alldata.admin.CampusF) {
  673. return this.Alldata.admin.CampusF.feature; // 从 Alldata 中获取 featureList
  674. } else {
  675. return [];
  676. }
  677. },
  678. // 判断是否被添加过
  679. isAdd(){
  680. return function(val){
  681. const difference = val.filter(item1 =>
  682. !this.CampusF.appList.some(item2 => item1.id === item2.id)
  683. );
  684. return difference
  685. }
  686. },
  687. teaData() {
  688. if (this.Alldata.admin.CampusF) {
  689. return this.Alldata.admin.CampusF.teacherN.list; // 从 Alldata 中获取 teaData
  690. } else {
  691. return [];
  692. }
  693. },
  694. allApp() {
  695. return function (val) {
  696. const difference = val.filter(
  697. (item1) =>
  698. !this.CampusF.appList.some((item2) => item1.id === item2.id)
  699. );
  700. return difference;
  701. };
  702. },
  703. editTitle() {
  704. if (this.isBtn == 0) return "编辑集团简介";
  705. else if (this.isBtn == 1) return "编辑办学特色";
  706. else if (this.isBtn == 2) return "编辑师资力量";
  707. else if (this.isBtn == 3) return "添加特色应用";
  708. else if (this.isBtn == 4) return "编辑特色应用";
  709. else return ""; // 默认值
  710. },
  711. },
  712. watch: {
  713. schId(newValue) {
  714. console.log("newValue", newValue);
  715. this.getSchFacility();
  716. },
  717. },
  718. methods: {
  719. // 修改特色应用
  720. updateUApplist(){
  721. this.CampusF.appList = [...this.CampusF.appList,...this.selectedItem]
  722. this.setJson(1)
  723. },
  724. // 添加或去除app
  725. selApp(val){
  726. let k = this.selectedItem.findIndex(item => item.id === val.id)
  727. console.log('selApp',k);
  728. if (k != -1) {
  729. this.selectedItem.splice(k,1)
  730. } else { this.selectedItem.push(val) }
  731. },
  732. // 添加数据
  733. additem() {
  734. this.editBtnType = 2
  735. if (this.isBtn == 1) {
  736. this.CampusF.feature.push({ bri: "", icon: "", name: "" });
  737. this.editIndex = this.CampusF.feature.length - 1;
  738. setTimeout(() => {
  739. document.querySelector("#bottomElement").scrollTo({
  740. top: document.querySelector("#bottomElement").scrollHeight,
  741. behavior: "smooth",
  742. });
  743. }, 0);
  744. }else if (this.isBtn == 2) {
  745. this.CampusF.teacherN.list.push({ bri: "", name: "" });
  746. this.editIndex = this.CampusF.teacherN.list.length - 1;
  747. setTimeout(() => {
  748. document.querySelector("#bottomElement").scrollTo({
  749. top: document.querySelector("#bottomElement").scrollHeight,
  750. behavior: "smooth",
  751. });
  752. }, 0);
  753. }
  754. },
  755. // 点击区块编辑
  756. async editregion(type) {
  757. this.editIndex = null
  758. this.isBtn = type;
  759. this.editVisible = true;
  760. this.appLoading = true;
  761. },
  762. //删除集团简介中的图片
  763. delImg(ind) {
  764. this.CampusF.GroupImgList.splice(ind, 1);
  765. },
  766. // 编辑弹框数据条中的图片
  767. editFea(ind) {
  768. this.editBtnType = 1
  769. this.CampusF = JSON.parse(JSON.stringify(this.Alldata.admin.CampusF));
  770. this.editIndex = ind;
  771. },
  772. handleClose() {
  773. this.dialogVisible = false
  774. this.editVisible = false;
  775. this.isBtn = -1;
  776. this.appList = [];
  777. this.editIndex = null;
  778. this.dialogVisible = false
  779. this.selectedItem = []
  780. if (this.Alldata.admin.CampusF) {
  781. this.CampusF = JSON.parse(JSON.stringify(this.Alldata.admin.CampusF));
  782. }
  783. },
  784. // 上移
  785. moveUp(index) {
  786. if (index > 0) {
  787. const list = this.CampusF.appList;
  788. const temp = list[index];
  789. this.$set(list, index, list[index - 1]);
  790. this.$set(list, index - 1, temp);
  791. }
  792. },
  793. // 下移
  794. moveDown(index) {
  795. const list = this.CampusF.appList;
  796. if (index < list.length - 1) {
  797. const temp = list[index];
  798. this.$set(list, index, list[index + 1]);
  799. this.$set(list, index + 1, temp);
  800. }
  801. },
  802. // 删除
  803. delFe(index) {
  804. this.$confirm("确定要删除吗?", "提示", {
  805. confirmButtonText: "确定",
  806. cancelButtonText: "取消",
  807. type: "warning",
  808. })
  809. .then(() => {
  810. // 用户点击“确定”后执行删除操作
  811. if (this.isBtn == 1) {
  812. this.CampusF.feature.splice(index, 1);
  813. }else if(this.isBtn == 2) {
  814. this.CampusF.teacherN.list.splice(index, 1);
  815. } else if(this.isBtn == 3) {
  816. console.log('66666',index);
  817. this.CampusF.appList.splice(index, 1);
  818. }
  819. this.setJson(0);
  820. // this.$message.success('删除成功!');
  821. })
  822. .catch(() => {
  823. // 用户点击“取消”后执行的操作
  824. // this.$message.error('已取消删除');
  825. });
  826. },
  827. // 打开常见应用弹框
  828. lookMore(){
  829. this.dialogVisible = true
  830. this.loading = true
  831. let params = [
  832. {
  833. functionName: API_CONFIG.ajax_usuallyApp.functionName,
  834. uid: this.userinfo.userid,
  835. cn: this.userinfo.schoolArea ? this.userinfo.schoolArea : this.userinfo.orgArea, //学校id
  836. },
  837. ];
  838. this.$ajax
  839. .post(API_CONFIG.baseUrl, params)
  840. .then((res) => {
  841. this.usuallyList = res.data[0]
  842. this.loading = false
  843. })
  844. .catch((err) => {
  845. console.log(err);
  846. this.loading = false
  847. this.$message.error("获取工具数据失败");
  848. });
  849. },
  850. openNewWindow(val) {
  851. console.log(val);
  852. this.addOp3(
  853. "1",
  854. "",
  855. { id: val.id, name: val.name, type: this.prefixL + "appstoreOpen" },
  856. "success"
  857. );
  858. // // 基本用法:打开指定 URL
  859. window.open(val.url, "_blank");
  860. },
  861. // 办学特色取消
  862. feaClo(ind) {
  863. this.editBtnType = 0
  864. this.editIndex = null;
  865. let data = JSON.parse(
  866. JSON.stringify(this.Alldata.admin.CampusF)
  867. );
  868. if (this.isBtn == 1) {
  869. this.CampusF.feature = data.feature
  870. } else if (this.isBtn == 2) {
  871. this.CampusF.teacherN.teaBri = data.teacherN.teaBri
  872. if (ind != null) {
  873. this.CampusF.teacherN.list = data.teacherN.list
  874. }
  875. } else if (this.isBtn == 3) {
  876. this.CampusF.appList = data.appList
  877. }
  878. },
  879. // 保存时添加判断
  880. setJsonL(ind) {
  881. if (this.isBtn == 1) {
  882. if (this.hasEmptyData(this.CampusF.feature)) return this.$message.info("请填充空数据");
  883. this.setJson(0);
  884. }else if (this.isBtn == 2) {
  885. if (!this.CampusF.teacherN.teaBri) return this.$message.info("请填充简介");
  886. if (this.hasEmptyData2(this.CampusF.teacherN.list)) return this.$message.info("请填充空数据");
  887. this.setJson(0);
  888. }else if (this.isBtn == 3) {
  889. if (this.CampusF.appList[ind].detailWri != 'undefined') {
  890. this.CampusF.appList[ind].detailWri = this.CampusF.appList[ind].detail
  891. }
  892. this.setJson(0);
  893. }
  894. },
  895. // 不能有空值
  896. hasEmptyData2(arr) {
  897. return arr.some(
  898. (item) => item.name.trim() === "" || item.bri.trim() === ""
  899. );
  900. },
  901. hasEmptyData(arr) {
  902. return arr.some(
  903. (item) => item.name.trim() === "" || item.icon === "" || item.bri.trim() === ""
  904. );
  905. },
  906. // 提交
  907. setJson(SetL) {
  908. if (this.isBtn == 1 && this.hasEmptyData(this.CampusF.feature))
  909. return this.$message.info("请填充空数据");
  910. this.editIndex = null;
  911. this.diaLoad = true;
  912. let _form = JSON.parse(JSON.stringify(this.Alldata));
  913. _form.desktop.list = _form.desktop.list.map((i) => i.id);
  914. _form.admin.index.list = _form.admin.index.list.map((i) => i.id);
  915. _form.admin.sidebar.list.forEach((i, index) => {
  916. if (i.children) {
  917. _form.admin.sidebar.list[index].children = i.children.map(
  918. (i) => i.id
  919. );
  920. } else {
  921. _form.admin.sidebar.list[index] = i.id;
  922. }
  923. });
  924. _form.admin.cocoFlow = _form.admin.cocoFlow
  925. ? _form.admin.cocoFlow.map((i) => {return { id: i.id, setIcon: i.setIcon };})
  926. : [];
  927. _form.admin.cocoFlow2 = _form.admin.cocoFlow2
  928. ? _form.admin.cocoFlow2.map((i) => {return { id: i.id, setIcon: i.setIcon };})
  929. : [];
  930. _form.admin.CampusF = JSON.parse(JSON.stringify(this.CampusF));
  931. _form.admin.CampusF.appList = _form.admin.CampusF.appList.length
  932. ? _form.admin.CampusF.appList.map((i) => {return { id: i.id, setIcon: i.setIcon,detailWri: i.detailWri ? i.detailWri : '' };})
  933. : [];
  934. console.log("_form", JSON.parse(JSON.stringify(_form)));
  935. let params = [
  936. {
  937. functionName: "update_orgOroid_json_liyuan",
  938. oid: this.schId,
  939. orgid: this.schOrg,
  940. ujson: JSON.stringify(_form),
  941. },
  942. ];
  943. axios
  944. .post(API_CONFIG.baseUrl, params)
  945. .then(async (res) => {
  946. let _data = res.data;
  947. if (_data == 1) {
  948. this.$message.success("修改成功");
  949. this.getSchFacility();
  950. if (SetL) {
  951. this.handleClose();
  952. }
  953. this.addOp3(
  954. "1",
  955. "",
  956. {
  957. uid: this.userinfo.userid,
  958. cid: this.userinfo.organizeid,
  959. type: "user_op",
  960. content: `修改了${this.userinfo.schoolName}的权限设置`,
  961. },
  962. "success"
  963. );
  964. } else {
  965. this.$message.error("修改权限失败");
  966. }
  967. this.diaLoad = false;
  968. })
  969. .catch((err) => {
  970. console.log(err);
  971. this.diaLoad = false;
  972. this.$message.error("修改权限失败");
  973. this.addOp3(
  974. "1",
  975. "",
  976. {
  977. uid: this.userid,
  978. cid: this.data.id,
  979. type: "user_op",
  980. content: `修改了${this.data.name}的权限设置`,
  981. },
  982. err
  983. );
  984. });
  985. },
  986. async getSchFacility() {
  987. this.AllLoading = true;
  988. let params = [
  989. {
  990. functionName: API_CONFIG.ajax_schoolPermission.functionName, // 调用存储过程的名称
  991. org: this.schOrg, //组织id
  992. oid: this.schId, //学校id
  993. },
  994. ];
  995. console.log("params", params);
  996. // 获取学校权限与组织权限,优先使用学校权限,其次使用组织权限
  997. // 第一步
  998. let res = await axios.post(API_CONFIG.baseUrl, params);
  999. let perData = JSON.parse(res.data[0][0].json);
  1000. // 第二步
  1001. let params2 = [
  1002. {
  1003. functionName: "select_desktopToolByPage",
  1004. status: "",
  1005. page: 1,
  1006. lim: 9999999,
  1007. },
  1008. ];
  1009. let res2 = await axios.post(API_CONFIG.baseUrl, params2);
  1010. let toolList = res2.data[0];
  1011. toolList.forEach((i) => {
  1012. i.url = JSON.parse(i.url);
  1013. i.json = JSON.parse(i.json);
  1014. i.argumentList = JSON.parse(i.argumentList);
  1015. });
  1016. let params3 = [
  1017. {
  1018. functionName: "select_schUsuallyApp",
  1019. userid: "",
  1020. stand: "cn",
  1021. },
  1022. ];
  1023. let res3 = await axios.post(API_CONFIG.baseUrl, params3);
  1024. let _list = res3.data[0];
  1025. _list.forEach((i) => {
  1026. i.json = JSON.parse(i.json);
  1027. });
  1028. let appList = _list;
  1029. // 第三步
  1030. perData.desktop.list.forEach((i, index) => {
  1031. let _index = toolList.findIndex((i2) => i == i2.id);
  1032. if (_index != -1) {
  1033. perData.desktop.list[index] = toolList[_index];
  1034. } else {
  1035. console.log("无工具", i);
  1036. }
  1037. });
  1038. if (perData.admin.CampusF && perData.admin.CampusF.appList) {
  1039. perData.admin.CampusF.appList.forEach((i, index) => {
  1040. let _index = appList.findIndex((i2) => i.id == i2.id);
  1041. if (_index != -1) {
  1042. let _setData = appList[_index];
  1043. _setData.setIcon = i.setIcon;_setData.detailWri = i.detailWri ? i.detailWri : '';
  1044. perData.admin.CampusF.appList[index] = _setData;
  1045. } else {
  1046. console.log("无应用", i);
  1047. }
  1048. });
  1049. perData.admin.CampusF.appList =
  1050. perData.admin.CampusF.appList.filter(Boolean);
  1051. }
  1052. perData.admin.index.list.forEach((i, index) => {
  1053. let _index = toolList.findIndex((i2) => i == i2.id);
  1054. if (_index != -1) {
  1055. perData.admin.index.list[index] = toolList[_index];
  1056. perData.admin.index.list[index].hovered = false;
  1057. } else {
  1058. console.log("无工具", i);
  1059. }
  1060. });
  1061. perData.admin.sidebar.list.forEach((i, index) => {
  1062. if (i.children) {
  1063. i.children.forEach((i2, index2) => {
  1064. let _toolList = JSON.parse(JSON.stringify(toolList));
  1065. let _index = _toolList.findIndex((i3) => i2 == i3.id);
  1066. if (_index != -1) {
  1067. perData.admin.sidebar.list[index].children[index2] =
  1068. _toolList[_index];
  1069. perData.admin.sidebar.list[index].children[index2].typeId =
  1070. perData.admin.sidebar.list[index].typeId +
  1071. "," +
  1072. _toolList[_index].id;
  1073. } else {
  1074. console.log("无工具", i);
  1075. }
  1076. });
  1077. } else {
  1078. let _toolList = JSON.parse(JSON.stringify(toolList));
  1079. let _index = _toolList.findIndex((i2) => i == i2.id);
  1080. if (_index != -1) {
  1081. perData.admin.sidebar.list[index] = _toolList[_index];
  1082. perData.admin.sidebar.list[index].typeId =
  1083. perData.admin.sidebar.list[index].id;
  1084. } else {
  1085. console.log("无工具", i);
  1086. }
  1087. }
  1088. });
  1089. console.log("perData", perData);
  1090. this.Alldata = perData;
  1091. this.AllLoading = false;
  1092. if (perData.admin.CampusF) {
  1093. this.CampusF = JSON.parse(JSON.stringify(perData.admin.CampusF));
  1094. } else {
  1095. this.CampusF = {
  1096. GroupBri: "暂无简介",
  1097. feature: [
  1098. {
  1099. bri: "暂无简介",
  1100. icon: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/tese1745913146000.svg",
  1101. name: "默认标题",
  1102. },
  1103. ],
  1104. teacherN: {
  1105. teaBri: "暂无简介",
  1106. list: [{ bri: "默认标题", name: "暂无数据" }],
  1107. },
  1108. appList: [],
  1109. };
  1110. }
  1111. // commit('SET_FROM', perData)
  1112. },
  1113. // 上传图片
  1114. async uploadisBtn(val, index) {
  1115. let imgUrl = await this.uploadFile("image/*");
  1116. if (val == 0) {
  1117. if (this.CampusF.GroupImgList) {
  1118. this.$set(this.CampusF, "GroupImgList", [
  1119. ...this.CampusF.GroupImgList,
  1120. imgUrl,
  1121. ]);
  1122. } else {
  1123. this.CampusF.GroupImgList = [];
  1124. this.$set(this.CampusF, "GroupImgList", [
  1125. ...this.CampusF.GroupImgList,
  1126. imgUrl,
  1127. ]);
  1128. }
  1129. } else if (val == 1) {
  1130. this.CampusF.feature[index].icon = imgUrl;
  1131. } else if (val == 3) {
  1132. this.CampusF.appList[index].setIcon = imgUrl;
  1133. }
  1134. this.$forceUpdate();
  1135. },
  1136. uploadFile(accept = "*") {
  1137. return new Promise((resolve) => {
  1138. const input = document.createElement("input");
  1139. input.type = "file";
  1140. input.accept = accept;
  1141. input.onchange = (event) => {
  1142. const file = event.target.files[0];
  1143. if (file) {
  1144. let credentials = {
  1145. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  1146. secretAccessKey: "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",
  1147. }; //秘钥形式的登录上传
  1148. window.AWS.config.update(credentials);
  1149. window.AWS.config.region = "cn-northwest-1"; //设置区域
  1150. let bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  1151. this.diaLoad = true;
  1152. let params = {
  1153. Key:
  1154. file.name.split(".")[0] +
  1155. new Date().getTime() +
  1156. "." +
  1157. file.name.split(".")[file.name.split(".").length - 1],
  1158. ContentType: file.type,
  1159. Body: file,
  1160. "Access-Control-Allow-Credentials": "*",
  1161. ACL: "public-read",
  1162. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  1163. let options = {
  1164. partSize: 2048 * 1024 * 1024,
  1165. queueSize: 2,
  1166. leavePartsOnError: true,
  1167. };
  1168. bucket
  1169. .upload(params, options)
  1170. .on("httpUploadProgress", (evt) => {
  1171. console.log(evt);
  1172. })
  1173. .send((err, data) => {
  1174. if (err) {
  1175. this.$message.error("上传失败");
  1176. this.diaLoad = false;
  1177. // return resolve("");
  1178. } else {
  1179. this.diaLoad = false;
  1180. return resolve(data.Location);
  1181. }
  1182. });
  1183. } else {
  1184. resolve("");
  1185. this.diaLoad = false;
  1186. console.log("没上传成功");
  1187. }
  1188. };
  1189. input.click();
  1190. });
  1191. },
  1192. },
  1193. mounted() {
  1194. this.getSchFacility();
  1195. },
  1196. };
  1197. </script>
  1198. <style scoped>
  1199. .Ktop {
  1200. /* height: 159px; */
  1201. padding: 36px 27px;
  1202. box-sizing: border-box;
  1203. display: flex;
  1204. flex-direction: column;
  1205. background: #fff;
  1206. border-radius: 12px;
  1207. justify-content: space-between;
  1208. }
  1209. .Asc >>> .el-icon-picture-outline:before{
  1210. height: 30px;width: 30px;
  1211. }
  1212. .topTit {
  1213. font-family: PingFang SC;
  1214. font-weight: 600;
  1215. font-size: 18px;
  1216. line-height: 22px;
  1217. color: #0663fe;
  1218. display: flex;
  1219. height: 36px;
  1220. justify-content: space-between;
  1221. }
  1222. .topTitEdit {
  1223. cursor: pointer;
  1224. }
  1225. .Topbri {
  1226. font-family: PingFang SC;
  1227. font-weight: 400;
  1228. font-size: 14px;
  1229. line-height: 22px;
  1230. color: #000;
  1231. }
  1232. .Topbri2 {
  1233. font-family: PingFang SC;
  1234. font-weight: 400;
  1235. font-size: 14px;
  1236. color: #000;
  1237. display: -webkit-box;
  1238. -webkit-line-clamp: 2;
  1239. -webkit-box-orient: vertical;
  1240. overflow: hidden;
  1241. text-overflow: ellipsis;
  1242. }
  1243. .feature {
  1244. width: 100%;
  1245. padding: 36px 27px;
  1246. border-radius: 12px;
  1247. box-sizing: border-box;
  1248. background: #eeeeee;
  1249. display: flex;
  1250. flex-direction: column;
  1251. gap: 20px;
  1252. justify-content: space-between;
  1253. }
  1254. .featureCon {
  1255. background: #ffffff;
  1256. width: 100%;
  1257. height: 211px;
  1258. display: flex;
  1259. flex-direction: column;
  1260. justify-content: center;
  1261. border-radius: 12px;
  1262. padding: 40px 20px;
  1263. align-items: center;
  1264. box-sizing: border-box;
  1265. gap: 18px;
  1266. }
  1267. .featureAll {
  1268. grid-template-columns: repeat(4, 1fr);
  1269. display: grid;
  1270. gap: 20px;
  1271. }
  1272. .featureCon2 {
  1273. background: #ffffff;
  1274. width: 100%;
  1275. height: 94px;
  1276. display: flex;
  1277. flex-direction: column;
  1278. justify-content: center;
  1279. border-radius: 12px;
  1280. padding: 40px 20px;
  1281. align-items: center;
  1282. box-sizing: border-box;
  1283. gap: 10px;
  1284. }
  1285. .featureConTit {
  1286. font-family: PingFang SC;
  1287. font-weight: 600;
  1288. font-size: 18px;
  1289. line-height: 22px;
  1290. color: #000;
  1291. }
  1292. .featureConTit2 {
  1293. font-family: PingFang SC;
  1294. font-weight: 600;
  1295. font-size: 20px;
  1296. line-height: 22px;
  1297. color: #0663fe;
  1298. }
  1299. .AppStoreList {
  1300. display: grid;
  1301. grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
  1302. gap: 20px;
  1303. }
  1304. .AppStoreList2 {
  1305. display: flex;
  1306. flex-direction: column;
  1307. }
  1308. .AppStore {
  1309. display: flex;
  1310. flex-direction: column;
  1311. gap: 10px;
  1312. min-height: 171px;
  1313. min-width: 100px;
  1314. cursor: pointer;
  1315. }
  1316. .AppStoreCon {
  1317. border-radius: 10px;
  1318. padding: 17px 17px;
  1319. height: 100%;
  1320. box-sizing: border-box;
  1321. background: #fff;
  1322. }
  1323. .AppStoreCon img {
  1324. width: 32px;
  1325. height: 32px;
  1326. margin-bottom: 10px;
  1327. object-fit: cover;
  1328. border-radius: 50%;
  1329. }
  1330. .AppAdd {
  1331. height: 171px;
  1332. border-radius: 10px;
  1333. padding: 17px 17px;
  1334. box-sizing: border-box;
  1335. border: 1px dashed #000000;
  1336. background: #e5e5e5;
  1337. display: flex;
  1338. justify-content: center;
  1339. align-items: center;
  1340. }
  1341. .AppStoreConTit {
  1342. font-family: PingFang SC;
  1343. font-weight: 500;
  1344. font-size: 16px;
  1345. margin-bottom: 5px;
  1346. display: -webkit-box;
  1347. -webkit-line-clamp: 2;
  1348. -webkit-box-orient: vertical;
  1349. overflow: hidden;
  1350. text-overflow: ellipsis;
  1351. }
  1352. .AppStoreConBri {
  1353. font-family: PingFang SC;
  1354. font-weight: 300;
  1355. font-size: 14px;
  1356. color: #969ba3;
  1357. height: 100%;
  1358. /* display: -webkit-box;
  1359. -webkit-line-clamp: 2;
  1360. -webkit-box-orient: vertical; */
  1361. white-space: wrap;
  1362. overflow: hidden;
  1363. text-overflow: ellipsis;
  1364. }
  1365. .AppStoreConBri >>> .el-textarea{
  1366. height: 100%;
  1367. }
  1368. .AppStoreConBri >>> .el-textarea__inner {
  1369. border: none !important;
  1370. border-radius: 10px !important;
  1371. height: 100%;
  1372. }
  1373. .AppStoreBri {
  1374. font-family: PingFang SC;
  1375. font-size: 10px;
  1376. color: #969ba3;
  1377. }
  1378. .appItem {
  1379. height: 100px;
  1380. background-color: white;
  1381. box-sizing: border-box;
  1382. border: solid 1px #f3f4f6;
  1383. padding: 10px;
  1384. border-radius: 8px;
  1385. cursor: pointer;
  1386. display: flex;
  1387. align-items: center;
  1388. justify-content: center;
  1389. transition: 0.3s;
  1390. }
  1391. .appActive {
  1392. border-color: #409eff;
  1393. box-shadow: 0px 6px 30px 5px #00000015;
  1394. }
  1395. .appItem:hover {
  1396. box-shadow: 0px 6px 30px 5px #00000015;
  1397. }
  1398. .ai_left {
  1399. width: 80px;
  1400. height: 80px;
  1401. box-sizing: border-box;
  1402. padding: 10px;
  1403. margin-right: 10px;
  1404. }
  1405. .ai_right {
  1406. width: calc(100% - 80px - 10px);
  1407. position: relative;
  1408. }
  1409. .ai_right > div {
  1410. max-width: calc(100% - 50px);
  1411. font-weight: bold;
  1412. overflow: hidden;
  1413. white-space: nowrap;
  1414. text-overflow: ellipsis;
  1415. font-size: 16px;
  1416. color: #000;
  1417. margin-bottom: 10px;
  1418. }
  1419. .ai_right > span {
  1420. font-size: 14px;
  1421. color: #00000099;
  1422. display: -webkit-box;
  1423. -webkit-box-orient: vertical;
  1424. -webkit-line-clamp: 2;
  1425. overflow: hidden;
  1426. text-overflow: ellipsis;
  1427. }
  1428. .Fedialog >>> .el-dialog {
  1429. width: 60% !important;
  1430. min-width: 800px;
  1431. overflow: hidden;
  1432. margin-top: 10vh !important;
  1433. border-radius: 12px;
  1434. }
  1435. .diaTop {
  1436. height: 450px;
  1437. display: flex;
  1438. flex-direction: column;
  1439. gap: 15px;
  1440. }
  1441. .diaTop >>> .el-textarea__inner {
  1442. border: none !important;
  1443. border-radius: 10px !important;
  1444. }
  1445. .diaCon {
  1446. height: 500px;
  1447. overflow: auto;
  1448. padding: 20px;
  1449. }
  1450. .FedialogJIa {
  1451. display: grid;
  1452. grid-template-columns: repeat(3, 1fr);
  1453. gap: 15px;
  1454. }
  1455. .FedialogJIa div {
  1456. height: 160px;
  1457. display: flex;
  1458. justify-content: center;
  1459. align-items: center;
  1460. background: #e6e6e6;
  1461. border-radius: 12px;
  1462. overflow: hidden;
  1463. border: 1px #0663fe dashed;
  1464. }
  1465. .Fedialog >>> .el-dialog__header {
  1466. padding: 15px 20px;
  1467. background: #fff;
  1468. border-radius: 10px 10px 0 0;
  1469. border-bottom: 1px #e7e7e7 solid;
  1470. }
  1471. .Fedialog >>> .el-dialog__body {
  1472. position: relative;
  1473. max-height: 70vh;
  1474. /* 内容区域最大高度为视口高度的 70% */
  1475. overflow-y: auto;
  1476. /* 当内容超出时显示滚动条 */
  1477. background: #fafafa;
  1478. /* 添加内边距 */
  1479. padding: 0;
  1480. box-sizing: border-box;
  1481. /* 确保 padding 不影响宽度计算 */
  1482. }
  1483. .Fedialog >>> .el-dialog__title {
  1484. color: #000;
  1485. }
  1486. .diaBtn {
  1487. display: flex;
  1488. justify-content: flex-end;
  1489. gap: 10px;
  1490. /* height: 40px; */
  1491. align-items: center;
  1492. padding: 10px 20px 0 !important;
  1493. box-sizing: border-box;
  1494. /* min-height: 60px; */
  1495. }
  1496. .diaBtn > span {
  1497. background: #e7e7e7;
  1498. border-radius: 25px;
  1499. padding: 5px 15px;
  1500. box-sizing: border-box;
  1501. font-family: PingFang SC;
  1502. font-weight: 400;
  1503. font-size: 12px;
  1504. cursor: pointer;
  1505. }
  1506. .CarO {
  1507. border-radius: 10px;
  1508. overflow: hidden;
  1509. /* box-shadow: 0px 0px 20px 0px #0000001a; */
  1510. }
  1511. .CarO >>> .el-carousel {
  1512. height: auto !important;
  1513. }
  1514. .CarO >>> .el-carousel__container {
  1515. height: 350px !important;
  1516. }
  1517. /*指示器按钮*/
  1518. .CarO >>> .el-carousel__button {
  1519. width: 10px;
  1520. height: 10px;
  1521. border: none;
  1522. border-radius: 50%;
  1523. background-color: rgba(0, 0, 0, 0.2);
  1524. }
  1525. /*指示器激活按钮*/
  1526. .CarO >>> .is-active .el-carousel__button {
  1527. background: #0663fe;
  1528. }
  1529. .imgBoc {
  1530. position: relative;
  1531. border: none !important;
  1532. }
  1533. .imgBoc > .el-icon-circle-close {
  1534. position: absolute;
  1535. top: 10px;
  1536. right: 10px;
  1537. display: none;
  1538. font-size: 25px;
  1539. cursor: pointer;
  1540. color: #0663fe;
  1541. }
  1542. .imgBoc:hover .el-icon-circle-close {
  1543. display: block;
  1544. }
  1545. .diaFea {
  1546. background: #fff;
  1547. display: flex;
  1548. flex-direction: column;
  1549. gap: 10px;
  1550. padding: 16px;
  1551. box-sizing: border-box;
  1552. border-radius: 10px;
  1553. }
  1554. .diaFea >>> .el-input__inner {
  1555. height: 24px;
  1556. line-height: 24px;
  1557. }
  1558. .diaFeaImgT{
  1559. width: 30px;height: 30px;object-fit: cover;border-radius: 50%;
  1560. }
  1561. .diaFeaImg {
  1562. height: 40px;
  1563. width: 40px;
  1564. object-fit: contain;
  1565. border-radius: 5px;
  1566. border: 1px solid #0663fe;
  1567. }
  1568. .shadeC {
  1569. position: absolute;
  1570. top: 0;
  1571. left: 0;
  1572. height: 100%;
  1573. width: 100%;
  1574. background: #000;
  1575. z-index: 9999;
  1576. opacity: 0.3;
  1577. }
  1578. /* 弹框 */
  1579. .moreDia >>> .el-dialog{
  1580. border-radius: 10px;
  1581. }
  1582. .moreDia >>> .el-dialog__body{
  1583. /* height: 500px; */
  1584. /* overflow: auto; */
  1585. border-top: 1px #e7e7e7 solid;
  1586. }
  1587. /* 对号 */
  1588. .top{
  1589. display: flex;
  1590. height: 154px;
  1591. justify-content: space-between;
  1592. background-color: #fff;
  1593. align-items: center;
  1594. padding: 24px;
  1595. box-sizing: border-box;
  1596. margin-bottom: 14px;
  1597. border-radius: 10px;
  1598. box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)
  1599. }
  1600. .AppList{
  1601. flex-wrap: wrap;display: flex;
  1602. justify-content: space-between;
  1603. border: 1px rgb(243 244 246 / var(--tw-border-opacity, 1)) solid;
  1604. border-radius: 10px;padding: 16px;box-sizing: border-box;
  1605. position: relative;
  1606. }
  1607. .appImg{
  1608. width: 48px;
  1609. height: 48px;
  1610. border-radius: 50%;
  1611. object-fit: cover;
  1612. }
  1613. .con{
  1614. flex: 1;
  1615. margin-left: 12px;
  1616. display: flex;
  1617. flex-direction: column;
  1618. justify-content: center;
  1619. }
  1620. .tit{
  1621. color: #1f2937;font-size: 16px;height: 24px;line-height: 24px;
  1622. -webkit-line-clamp: 1;
  1623. display: -webkit-box;
  1624. -webkit-box-orient: vertical;
  1625. overflow: hidden;
  1626. text-overflow: ellipsis;
  1627. }
  1628. .bri{
  1629. color: #6b7280;font-size: 12px;height: 16px;line-height: 16px;
  1630. overflow: hidden;
  1631. -webkit-line-clamp: 1;
  1632. display: -webkit-box;
  1633. -webkit-box-orient: vertical;
  1634. overflow: hidden;
  1635. text-overflow: ellipsis;
  1636. }
  1637. .djjC{
  1638. display: flex;align-items: center;justify-content: center;
  1639. width: 40px;
  1640. height: 40px;
  1641. border-radius: 8px;
  1642. border-width: 1px;
  1643. cursor: pointer;
  1644. border: 1px dashed #3681FC;
  1645. }
  1646. </style>