appManagement.vue 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050
  1. <template>
  2. <div class="appManagement">
  3. <div class="ac_left">
  4. <div class="find">
  5. <img src="../../../../assets/icon/appStore/find_icon.svg" />
  6. <span>发现</span>
  7. </div>
  8. <saveCard
  9. title="最近使用"
  10. :data="recentUse"
  11. :icon="require('../../../../assets/icon/appStore/history_icon.svg')"
  12. :type="1"
  13. @saveClick="openApp"
  14. />
  15. <saveCard
  16. title="收藏"
  17. :icon="require('../../../../assets/icon/appStore/collect_icon.svg')"
  18. :data="collect"
  19. :type="0"
  20. @saveClick="openApp"
  21. />
  22. </div>
  23. <div class="ac_right">
  24. <div class="ac_header">
  25. <!-- <div class="ac_h_top">
  26. <span class="ac_h_t_active">
  27. <svg
  28. width="20"
  29. height="20"
  30. viewBox="0 0 20 20"
  31. xmlns="http://www.w3.org/2000/svg"
  32. >
  33. <path
  34. d="M14.0625 2.1875C11.9914 2.1875 10.3125 3.86643 10.3125 5.9375C10.3125 8.00857 11.9914 9.6875 14.0625 9.6875C16.1336 9.6875 17.8125 8.00857 17.8125 5.9375C17.8125 3.86643 16.1336 2.1875 14.0625 2.1875ZM11.5625 5.9375C11.5625 4.55679 12.6818 3.4375 14.0625 3.4375C15.4432 3.4375 16.5625 4.55679 16.5625 5.9375C16.5625 7.31821 15.4432 8.4375 14.0625 8.4375C12.6818 8.4375 11.5625 7.31821 11.5625 5.9375Z"
  35. />
  36. <path
  37. d="M2.5 3.75C2.5 3.05964 3.05964 2.5 3.75 2.5H8.125C8.81536 2.5 9.375 3.05964 9.375 3.75V8.125C9.375 8.81536 8.81536 9.375 8.125 9.375H3.75C3.05964 9.375 2.5 8.81536 2.5 8.125V3.75ZM3.75 3.75V8.125H8.125V3.75H3.75Z"
  38. />
  39. <path
  40. d="M2.5 11.875C2.5 11.1846 3.05964 10.625 3.75 10.625H8.125C8.81536 10.625 9.375 11.1846 9.375 11.875V16.25C9.375 16.9404 8.81536 17.5 8.125 17.5H3.75C3.05964 17.5 2.5 16.9404 2.5 16.25V11.875ZM3.75 11.875V16.25H8.125V11.875H3.75Z"
  41. />
  42. <path
  43. d="M10.625 11.875C10.625 11.1846 11.1846 10.625 11.875 10.625H16.25C16.9404 10.625 17.5 11.1846 17.5 11.875V16.25C17.5 16.9404 16.9404 17.5 16.25 17.5H11.875C11.1846 17.5 10.625 16.9404 10.625 16.25V11.875ZM11.875 16.25H16.25V11.875H11.875V16.25Z"
  44. />
  45. </svg>
  46. 应用管理</span
  47. >
  48. <span @click="changeShowPage(1)">
  49. <svg
  50. width="20"
  51. height="20"
  52. viewBox="0 0 20 20"
  53. xmlns="http://www.w3.org/2000/svg"
  54. >
  55. <rect width="20" height="20" fill="white" />
  56. <path
  57. fill-rule="evenodd"
  58. clip-rule="evenodd"
  59. d="M9.70072 1.32632C9.88727 1.22456 10.1127 1.22456 10.2993 1.32632L17.1743 5.07632C17.3751 5.18584 17.5 5.39628 17.5 5.625V14.375C17.5 14.6037 17.3751 14.8142 17.1743 14.9237L10.2993 18.6737C10.1127 18.7754 9.88727 18.7754 9.70072 18.6737L2.82572 14.9237C2.62493 14.8142 2.5 14.6037 2.5 14.375V5.625C2.5 5.39628 2.62493 5.18584 2.82572 5.07632L9.70072 1.32632ZM3.75 6.79282V14.004L9.375 17.0722V14.1039L6.55344 12.4109C6.36519 12.298 6.25 12.0945 6.25 11.875V8.45949L3.75 6.79282ZM7.5 8.47887V10.7711L9.375 9.64613V7.35387L7.5 8.47887ZM10.625 7.35387V9.64613L12.5 10.7711V8.47887L10.625 7.35387ZM13.75 8.45949V11.875C13.75 12.0945 13.6348 12.298 13.4466 12.4109L10.625 14.1039V17.0722L16.25 14.004V6.79282L13.75 8.45949ZM15.668 5.67854L10 2.58693L4.33205 5.67854L6.8926 7.38557L9.67844 5.71407C9.87637 5.59531 10.1236 5.59531 10.3216 5.71407L13.1074 7.38557L15.668 5.67854ZM10 13.0211L11.9102 11.875L10 10.7289L8.08978 11.875L10 13.0211Z"
  60. />
  61. </svg>
  62. 工作空间</span
  63. >
  64. </div> -->
  65. <el-button
  66. type="primary"
  67. size="small"
  68. icon="el-icon-plus"
  69. v-show="false"
  70. style="position: absolute;right: 15px;"
  71. @click="addApp"
  72. >添加应用</el-button
  73. >
  74. <div class="ac_h_banner" v-if="bannerObj">
  75. <img :src="bannerObj.poster" alt="banner图" />
  76. </div>
  77. <div class="ac_h_bottom">
  78. <div class="ac_h_b_typeList">
  79. <span
  80. :class="{ ac_h_b_typeList_active: showType === '' }"
  81. @click="changeType('')"
  82. >全部</span
  83. >
  84. <span
  85. v-for="item in typeList"
  86. :key="item.id"
  87. :class="{ ac_h_b_typeList_active: showType === item.id }"
  88. @click="changeType(item.id)"
  89. >{{ item.name }}</span
  90. >
  91. </div>
  92. <div class="ac_h_b_selectList">
  93. <el-select
  94. v-model="selectJuri"
  95. placeholder="请选择显示范围"
  96. @change="changeSelectType"
  97. style="width: 120px;margin-right: 10px;"
  98. >
  99. <el-option
  100. v-for="item in selectList"
  101. :key="item.index"
  102. :label="item.label"
  103. :value="item.index"
  104. ></el-option>
  105. </el-select>
  106. <el-select
  107. v-model="selectLabel"
  108. placeholder="请选择类型"
  109. @change="changeSelectType"
  110. style="width: 110px;margin-right: 10px;"
  111. >
  112. <el-option
  113. v-for="item in labelSelect"
  114. :key="item.value"
  115. :label="item.label"
  116. :value="item.value"
  117. ></el-option>
  118. </el-select>
  119. <el-input
  120. v-model="searchText"
  121. style="width: 250px;margin-right: 10px;"
  122. placeholder="请输入应用名称"
  123. @keyup.enter.native="getData"
  124. >
  125. <i
  126. slot="suffix"
  127. class="searchInputIcon el-icon-search"
  128. @click="getData"
  129. ></i>
  130. </el-input>
  131. <!-- <el-button
  132. type="primary"
  133. style="margin-left: 10px;"
  134. icon="el-icon-search"
  135. @click="getData"
  136. ></el-button> -->
  137. <el-button type="primary" @click="selectApp()">发布应用</el-button>
  138. </div>
  139. </div>
  140. </div>
  141. <div class="ac_content">
  142. <div
  143. class="ac_c_item"
  144. v-if="showType !== '' && !getDataLoading"
  145. v-for="(item, index) in dataList"
  146. :key="item.id"
  147. >
  148. <div class="ac_c_i_top" @click="openApp(item)">
  149. <div class="ac_c_i_t_left">
  150. <img v-if="item.json.icon" :src="item.json.icon" />
  151. <svg
  152. v-else
  153. t="1732605901531"
  154. class="icon"
  155. viewBox="0 0 1024 1024"
  156. version="1.1"
  157. xmlns="http://www.w3.org/2000/svg"
  158. p-id="4275"
  159. width="200"
  160. height="200"
  161. >
  162. <path
  163. d="M179.2 153.6a51.2 51.2 0 0 0-51.2 51.2v128a51.2 51.2 0 0 0 51.2 51.2h128a51.2 51.2 0 0 0 51.2-51.2V204.8a51.2 51.2 0 0 0-51.2-51.2H179.2z m0-102.4h128a153.6 153.6 0 0 1 153.6 153.6v128a153.6 153.6 0 0 1-153.6 153.6H179.2a153.6 153.6 0 0 1-153.6-153.6V204.8a153.6 153.6 0 0 1 153.6-153.6z m0 614.4a51.2 51.2 0 0 0-51.2 51.2v128a51.2 51.2 0 0 0 51.2 51.2h128a51.2 51.2 0 0 0 51.2-51.2V716.8a51.2 51.2 0 0 0-51.2-51.2H179.2z m0-102.4h128a153.6 153.6 0 0 1 153.6 153.6v128a153.6 153.6 0 0 1-153.6 153.6H179.2a153.6 153.6 0 0 1-153.6-153.6V716.8a153.6 153.6 0 0 1 153.6-153.6z m611.84-403.4048a51.2 51.2 0 0 0-72.3968 0L646.144 232.2432a51.2 51.2 0 0 0 0 72.3968l72.448 72.3968a51.2 51.2 0 0 0 72.3968 0l72.3968-72.3968a51.2 51.2 0 0 0 0-72.3968L791.04 159.744z m72.3968-72.3968l72.3968 72.3968a153.6 153.6 0 0 1 0 217.2416l-72.3968 72.3968a153.6 153.6 0 0 1-217.2416 0l-72.3968-72.3968a153.6 153.6 0 0 1 0-217.2416l72.3968-72.3968a153.6 153.6 0 0 1 217.2416 0zM699.7504 896a51.2 51.2 0 0 1 0 102.4A162.1504 162.1504 0 0 1 537.6 836.2496v-110.8992A162.1504 162.1504 0 0 1 699.7504 563.2h110.8992a162.1504 162.1504 0 0 1 162.1504 162.1504v8.448a51.2 51.2 0 0 1-102.4 0v-8.448c0-33.024-26.7264-59.7504-59.7504-59.7504h-110.8992c-33.024 0-59.7504 26.7264-59.7504 59.7504v110.8992c0 33.024 26.7264 59.7504 59.7504 59.7504z"
  164. fill="#2C6DD2"
  165. p-id="4276"
  166. ></path>
  167. <path
  168. d="M791.4496 160a51.2 51.2 0 0 0-72.3968 0l-72.448 72.3968a51.2 51.2 0 0 0 0 72.3968l72.448 72.3968a51.2 51.2 0 0 0 72.3968 0l72.3968-72.3968a51.2 51.2 0 0 0 0-72.3968l-72.3968-72.3968z"
  169. fill="#20C997"
  170. p-id="4277"
  171. ></path>
  172. </svg>
  173. </div>
  174. <div class="ac_c_i_t_right">
  175. <div class="ac_c_i_t_r_top">
  176. <el-tooltip
  177. class="item"
  178. effect="light"
  179. :content="item.name"
  180. placement="top"
  181. >
  182. <span>{{ item.name }}</span>
  183. </el-tooltip>
  184. <div class="ac_c_i_t_popover" v-if="showMenu(item)">
  185. <div
  186. class="ac_c_i_t_p_box"
  187. v-if="editAppCard === item.id"
  188. v-click-outside="handleBlur"
  189. >
  190. <div
  191. @click.stop="copyApp(item)"
  192. v-if="item.json && item.json.copy === '1'"
  193. >
  194. <img
  195. src="../../../../assets/icon/appStore/copy.svg"
  196. alt=""
  197. />
  198. <span>复制</span>
  199. </div>
  200. <div
  201. @click.stop="updateApp(item)"
  202. v-if="item.userid === userId"
  203. >
  204. <img
  205. src="../../../../assets/icon/appStore/edit.svg"
  206. alt=""
  207. />
  208. <span>修改</span>
  209. </div>
  210. <div
  211. @click.stop="delApp(item)"
  212. v-if="item.userid === userId"
  213. >
  214. <img
  215. src="../../../../assets/icon/appStore/del.svg"
  216. alt=""
  217. />
  218. <span>删除</span>
  219. </div>
  220. </div>
  221. <svg
  222. t="1732786015570"
  223. @click.stop="updateCard(item.id)"
  224. :style="
  225. `transform: rotate(${
  226. editAppCard === item.id ? '0deg' : '90deg'
  227. });background-color:${
  228. editAppCard === item.id ? '#F3F7FD' : '#fff'
  229. }`
  230. "
  231. class="icon"
  232. viewBox="0 0 1024 1024"
  233. version="1.1"
  234. xmlns="http://www.w3.org/2000/svg"
  235. p-id="9199"
  236. width="200"
  237. height="200"
  238. >
  239. <path
  240. d="M192 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-29.866667-68.266667-68.266667-68.266667zM512 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-29.866667-68.266667-68.266667-68.266667zM832 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-34.133333-68.266667-68.266667-68.266667z"
  241. fill="#111111"
  242. p-id="9200"
  243. ></path>
  244. </svg>
  245. </div>
  246. </div>
  247. <div class="ac_c_i_t_r_center">
  248. <span>@{{ item.username }}</span>
  249. <div v-if="item.label === 'workflow'">
  250. <img
  251. src="../../../../assets/icon/appStore/workflow.svg"
  252. alt=""
  253. />
  254. 工作流
  255. </div>
  256. <div v-if="item.label === 'agent'">
  257. <img
  258. src="../../../../assets/icon/appStore/agent.svg"
  259. alt=""
  260. />
  261. 智能体
  262. </div>
  263. </div>
  264. <div class="ac_c_i_t_r_bottom">
  265. {{ item.detail }}
  266. </div>
  267. </div>
  268. </div>
  269. <div class="ac_c_i_bottom">
  270. <div class="ac_c_i_b_left">
  271. <el-tooltip
  272. class="item"
  273. effect="light"
  274. content="被复制数"
  275. placement="top"
  276. >
  277. <div>
  278. <img src="../../../../assets/icon/appStore/user_copy.svg" />
  279. <span>{{ item.copyCount }}</span>
  280. </div>
  281. </el-tooltip>
  282. <el-tooltip
  283. class="item"
  284. effect="light"
  285. :content="item.likeId ? '取消点赞' : '点赞'"
  286. placement="top"
  287. >
  288. <div>
  289. <img
  290. :src="
  291. require('../../../../assets/icon/appStore/praise_default.svg')
  292. "
  293. v-if="!item.likeId"
  294. style="cursor: pointer;"
  295. @click="praiseFn(item, 0)"
  296. />
  297. <img
  298. :src="
  299. require('../../../../assets/icon/appStore/praise_active.svg')
  300. "
  301. v-else
  302. style="cursor: pointer;"
  303. @click="praiseFn(item, 1)"
  304. />
  305. <span>{{ item.likeCount }}</span>
  306. </div>
  307. </el-tooltip>
  308. <el-tooltip
  309. class="item"
  310. effect="light"
  311. :content="item.collectId ? '取消收藏' : '收藏'"
  312. placement="top"
  313. >
  314. <div>
  315. <img
  316. src="../../../../assets/icon/appStore/collect_default.svg"
  317. v-if="!item.collectId"
  318. style="cursor: pointer;"
  319. @click="collectFn(item, 0)"
  320. />
  321. <img
  322. src="../../../../assets/icon/appStore/collect_active.svg"
  323. v-else
  324. style="cursor: pointer;"
  325. @click="collectFn(item, 1)"
  326. />
  327. <span>{{ item.collectCount }}</span>
  328. </div>
  329. </el-tooltip>
  330. </div>
  331. <div class="ac_c_i_b_right" v-if="item.json.status">
  332. <span class="ac_c_i_b_r_type2" v-if="item.json.status === '1'"
  333. >测试</span
  334. >
  335. <span class="ac_c_i_b_r_type1" v-if="item.json.status === '2'"
  336. >稳定</span
  337. >
  338. </div>
  339. </div>
  340. </div>
  341. <div class="ac_c_typeCard" v-if="showType == ''">
  342. <div class="ac_c_tc_item" v-for="(item2, index2) in typeList">
  343. <div class="ac_c_tc_i_top">
  344. <div>{{ item2.name }}</div>
  345. <span
  346. >查看更多
  347. <img
  348. src="../../../../assets/icon/appStore/arrow.svg"
  349. />
  350. </span>
  351. </div>
  352. <div class="ac_c_tc_i_bottom">
  353. <div
  354. class="ac_c_item"
  355. v-if="item.type === item2.id"
  356. v-for="(item, index) in dataList"
  357. :key="item.id"
  358. >
  359. <div class="ac_c_i_top" @click="openApp(item)">
  360. <div class="ac_c_i_t_left">
  361. <img v-if="item.json.icon" :src="item.json.icon" />
  362. <svg
  363. v-else
  364. t="1732605901531"
  365. class="icon"
  366. viewBox="0 0 1024 1024"
  367. version="1.1"
  368. xmlns="http://www.w3.org/2000/svg"
  369. p-id="4275"
  370. width="200"
  371. height="200"
  372. >
  373. <path
  374. d="M179.2 153.6a51.2 51.2 0 0 0-51.2 51.2v128a51.2 51.2 0 0 0 51.2 51.2h128a51.2 51.2 0 0 0 51.2-51.2V204.8a51.2 51.2 0 0 0-51.2-51.2H179.2z m0-102.4h128a153.6 153.6 0 0 1 153.6 153.6v128a153.6 153.6 0 0 1-153.6 153.6H179.2a153.6 153.6 0 0 1-153.6-153.6V204.8a153.6 153.6 0 0 1 153.6-153.6z m0 614.4a51.2 51.2 0 0 0-51.2 51.2v128a51.2 51.2 0 0 0 51.2 51.2h128a51.2 51.2 0 0 0 51.2-51.2V716.8a51.2 51.2 0 0 0-51.2-51.2H179.2z m0-102.4h128a153.6 153.6 0 0 1 153.6 153.6v128a153.6 153.6 0 0 1-153.6 153.6H179.2a153.6 153.6 0 0 1-153.6-153.6V716.8a153.6 153.6 0 0 1 153.6-153.6z m611.84-403.4048a51.2 51.2 0 0 0-72.3968 0L646.144 232.2432a51.2 51.2 0 0 0 0 72.3968l72.448 72.3968a51.2 51.2 0 0 0 72.3968 0l72.3968-72.3968a51.2 51.2 0 0 0 0-72.3968L791.04 159.744z m72.3968-72.3968l72.3968 72.3968a153.6 153.6 0 0 1 0 217.2416l-72.3968 72.3968a153.6 153.6 0 0 1-217.2416 0l-72.3968-72.3968a153.6 153.6 0 0 1 0-217.2416l72.3968-72.3968a153.6 153.6 0 0 1 217.2416 0zM699.7504 896a51.2 51.2 0 0 1 0 102.4A162.1504 162.1504 0 0 1 537.6 836.2496v-110.8992A162.1504 162.1504 0 0 1 699.7504 563.2h110.8992a162.1504 162.1504 0 0 1 162.1504 162.1504v8.448a51.2 51.2 0 0 1-102.4 0v-8.448c0-33.024-26.7264-59.7504-59.7504-59.7504h-110.8992c-33.024 0-59.7504 26.7264-59.7504 59.7504v110.8992c0 33.024 26.7264 59.7504 59.7504 59.7504z"
  375. fill="#2C6DD2"
  376. p-id="4276"
  377. ></path>
  378. <path
  379. d="M791.4496 160a51.2 51.2 0 0 0-72.3968 0l-72.448 72.3968a51.2 51.2 0 0 0 0 72.3968l72.448 72.3968a51.2 51.2 0 0 0 72.3968 0l72.3968-72.3968a51.2 51.2 0 0 0 0-72.3968l-72.3968-72.3968z"
  380. fill="#20C997"
  381. p-id="4277"
  382. ></path>
  383. </svg>
  384. </div>
  385. <div class="ac_c_i_t_right">
  386. <div class="ac_c_i_t_r_top">
  387. <el-tooltip
  388. class="item"
  389. effect="light"
  390. :content="item.name"
  391. placement="top"
  392. >
  393. <span>{{ item.name }}</span>
  394. </el-tooltip>
  395. <div class="ac_c_i_t_popover" v-if="showMenu(item)">
  396. <div
  397. class="ac_c_i_t_p_box"
  398. v-if="editAppCard === item.id"
  399. v-click-outside="handleBlur"
  400. >
  401. <div
  402. @click.stop="copyApp(item)"
  403. v-if="item.json && item.json.copy === '1'"
  404. >
  405. <img
  406. src="../../../../assets/icon/appStore/copy.svg"
  407. alt=""
  408. />
  409. <span>复制</span>
  410. </div>
  411. <div
  412. @click.stop="updateApp(item)"
  413. v-if="item.userid === userId"
  414. >
  415. <img
  416. src="../../../../assets/icon/appStore/edit.svg"
  417. alt=""
  418. />
  419. <span>修改</span>
  420. </div>
  421. <div
  422. @click.stop="delApp(item)"
  423. v-if="item.userid === userId"
  424. >
  425. <img
  426. src="../../../../assets/icon/appStore/del.svg"
  427. alt=""
  428. />
  429. <span>删除</span>
  430. </div>
  431. </div>
  432. <svg
  433. t="1732786015570"
  434. @click.stop="updateCard(item.id)"
  435. :style="
  436. `transform: rotate(${
  437. editAppCard === item.id ? '0deg' : '90deg'
  438. });background-color:${
  439. editAppCard === item.id ? '#F3F7FD' : '#fff'
  440. }`
  441. "
  442. class="icon"
  443. viewBox="0 0 1024 1024"
  444. version="1.1"
  445. xmlns="http://www.w3.org/2000/svg"
  446. p-id="9199"
  447. width="200"
  448. height="200"
  449. >
  450. <path
  451. d="M192 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-29.866667-68.266667-68.266667-68.266667zM512 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-29.866667-68.266667-68.266667-68.266667zM832 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-34.133333-68.266667-68.266667-68.266667z"
  452. fill="#111111"
  453. p-id="9200"
  454. ></path>
  455. </svg>
  456. </div>
  457. </div>
  458. <div class="ac_c_i_t_r_center">
  459. <span>@{{ item.username }}</span>
  460. <div v-if="item.label === 'workflow'">
  461. <img
  462. src="../../../../assets/icon/appStore/workflow.svg"
  463. alt=""
  464. />
  465. 工作流
  466. </div>
  467. <div v-if="item.label === 'agent'">
  468. <img
  469. src="../../../../assets/icon/appStore/agent.svg"
  470. alt=""
  471. />
  472. 智能体
  473. </div>
  474. </div>
  475. <div class="ac_c_i_t_r_bottom">
  476. {{ item.detail }}
  477. </div>
  478. </div>
  479. </div>
  480. <div class="ac_c_i_bottom">
  481. <div class="ac_c_i_b_left">
  482. <el-tooltip
  483. class="item"
  484. effect="light"
  485. content="被复制数"
  486. placement="top"
  487. >
  488. <div>
  489. <img
  490. src="../../../../assets/icon/appStore/user_copy.svg"
  491. />
  492. <span>{{ item.copyCount }}</span>
  493. </div>
  494. </el-tooltip>
  495. <el-tooltip
  496. class="item"
  497. effect="light"
  498. :content="item.likeId ? '取消点赞' : '点赞'"
  499. placement="top"
  500. >
  501. <div>
  502. <img
  503. :src="
  504. require('../../../../assets/icon/appStore/praise_default.svg')
  505. "
  506. v-if="!item.likeId"
  507. style="cursor: pointer;"
  508. @click="praiseFn(item, 0)"
  509. />
  510. <img
  511. :src="
  512. require('../../../../assets/icon/appStore/praise_active.svg')
  513. "
  514. v-else
  515. style="cursor: pointer;"
  516. @click="praiseFn(item, 1)"
  517. />
  518. <span>{{ item.likeCount }}</span>
  519. </div>
  520. </el-tooltip>
  521. <el-tooltip
  522. class="item"
  523. effect="light"
  524. :content="item.collectId ? '取消收藏' : '收藏'"
  525. placement="top"
  526. >
  527. <div>
  528. <img
  529. src="../../../../assets/icon/appStore/collect_default.svg"
  530. v-if="!item.collectId"
  531. style="cursor: pointer;"
  532. @click="collectFn(item, 0)"
  533. />
  534. <img
  535. src="../../../../assets/icon/appStore/collect_active.svg"
  536. v-else
  537. style="cursor: pointer;"
  538. @click="collectFn(item, 1)"
  539. />
  540. <span>{{ item.collectCount }}</span>
  541. </div>
  542. </el-tooltip>
  543. </div>
  544. <div class="ac_c_i_b_right" v-if="item.json.status">
  545. <span
  546. class="ac_c_i_b_r_type2"
  547. v-if="item.json.status === '1'"
  548. >测试</span
  549. >
  550. <span
  551. class="ac_c_i_b_r_type1"
  552. v-if="item.json.status === '2'"
  553. >稳定</span
  554. >
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. </div>
  560. </div>
  561. <!-- <div
  562. class="ac_c_item"
  563. v-for="(item, index) in dataList"
  564. :key="item.id"
  565. @click="openApp(item)"
  566. >
  567. <div class="ac_c_i_top">
  568. <div class="ac_c_i_t_left">
  569. <svg
  570. v-if="
  571. isImageOrSvg(
  572. typeof item.json == 'object' ? item.json.icon : ''
  573. ) === 0
  574. "
  575. t="1732605901531"
  576. class="icon"
  577. viewBox="0 0 1024 1024"
  578. version="1.1"
  579. xmlns="http://www.w3.org/2000/svg"
  580. p-id="4275"
  581. width="200"
  582. height="200"
  583. >
  584. <path
  585. d="M179.2 153.6a51.2 51.2 0 0 0-51.2 51.2v128a51.2 51.2 0 0 0 51.2 51.2h128a51.2 51.2 0 0 0 51.2-51.2V204.8a51.2 51.2 0 0 0-51.2-51.2H179.2z m0-102.4h128a153.6 153.6 0 0 1 153.6 153.6v128a153.6 153.6 0 0 1-153.6 153.6H179.2a153.6 153.6 0 0 1-153.6-153.6V204.8a153.6 153.6 0 0 1 153.6-153.6z m0 614.4a51.2 51.2 0 0 0-51.2 51.2v128a51.2 51.2 0 0 0 51.2 51.2h128a51.2 51.2 0 0 0 51.2-51.2V716.8a51.2 51.2 0 0 0-51.2-51.2H179.2z m0-102.4h128a153.6 153.6 0 0 1 153.6 153.6v128a153.6 153.6 0 0 1-153.6 153.6H179.2a153.6 153.6 0 0 1-153.6-153.6V716.8a153.6 153.6 0 0 1 153.6-153.6z m611.84-403.4048a51.2 51.2 0 0 0-72.3968 0L646.144 232.2432a51.2 51.2 0 0 0 0 72.3968l72.448 72.3968a51.2 51.2 0 0 0 72.3968 0l72.3968-72.3968a51.2 51.2 0 0 0 0-72.3968L791.04 159.744z m72.3968-72.3968l72.3968 72.3968a153.6 153.6 0 0 1 0 217.2416l-72.3968 72.3968a153.6 153.6 0 0 1-217.2416 0l-72.3968-72.3968a153.6 153.6 0 0 1 0-217.2416l72.3968-72.3968a153.6 153.6 0 0 1 217.2416 0zM699.7504 896a51.2 51.2 0 0 1 0 102.4A162.1504 162.1504 0 0 1 537.6 836.2496v-110.8992A162.1504 162.1504 0 0 1 699.7504 563.2h110.8992a162.1504 162.1504 0 0 1 162.1504 162.1504v8.448a51.2 51.2 0 0 1-102.4 0v-8.448c0-33.024-26.7264-59.7504-59.7504-59.7504h-110.8992c-33.024 0-59.7504 26.7264-59.7504 59.7504v110.8992c0 33.024 26.7264 59.7504 59.7504 59.7504z"
  586. fill="#2C6DD2"
  587. p-id="4276"
  588. ></path>
  589. <path
  590. d="M791.4496 160a51.2 51.2 0 0 0-72.3968 0l-72.448 72.3968a51.2 51.2 0 0 0 0 72.3968l72.448 72.3968a51.2 51.2 0 0 0 72.3968 0l72.3968-72.3968a51.2 51.2 0 0 0 0-72.3968l-72.3968-72.3968z"
  591. fill="#20C997"
  592. p-id="4277"
  593. ></path>
  594. </svg>
  595. <span
  596. v-if="
  597. isImageOrSvg(
  598. typeof item.json == 'object' ? item.json.icon : ''
  599. ) === 1
  600. "
  601. v-html="item.json.icon"
  602. ></span>
  603. <el-image
  604. v-if="
  605. isImageOrSvg(
  606. typeof item.json == 'object' ? item.json.icon : ''
  607. ) === 2
  608. "
  609. style="width: 100%; height: 100%"
  610. :src="item.json.icon"
  611. fit="cover"
  612. ></el-image>
  613. </div>
  614. <div class="ac_c_i_t_right">
  615. <div>{{ item.name }}</div>
  616. <span>{{ item.label}}</span>
  617. </div>
  618. <div class="ac_c_i_t_popover">
  619. <div
  620. class="ac_c_i_t_p_box"
  621. v-if="editAppCard === item.id"
  622. v-click-outside="handleBlur"
  623. >
  624. <div
  625. @click.stop="cancelCollectApp(item)"
  626. v-if="collect.map(i => i.id).includes(item.id)"
  627. >
  628. 取消收藏
  629. </div>
  630. <div @click.stop="collectApp(item)" v-else>收藏</div>
  631. <div
  632. @click.stop="copyApp(item)"
  633. v-if="item.json && item.json.copy === '1'"
  634. >
  635. 复制
  636. </div>
  637. <div
  638. @click.stop="updateApp(item)"
  639. v-if="item.userid === userId"
  640. >
  641. 修改
  642. </div>
  643. <div @click.stop="delApp(item)" v-if="item.userid === userId">
  644. 删除
  645. </div>
  646. </div>
  647. <svg
  648. t="1732786015570"
  649. @click.stop="updateCard(item.id)"
  650. class="icon"
  651. viewBox="0 0 1024 1024"
  652. version="1.1"
  653. xmlns="http://www.w3.org/2000/svg"
  654. p-id="9199"
  655. width="200"
  656. height="200"
  657. >
  658. <path
  659. d="M192 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-29.866667-68.266667-68.266667-68.266667zM512 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-29.866667-68.266667-68.266667-68.266667zM832 443.733333c-38.4 0-68.266667 29.866667-68.266667 68.266667 0 38.4 29.866667 68.266667 68.266667 68.266667s68.266667-29.866667 68.266667-68.266667c0-38.4-34.133333-68.266667-68.266667-68.266667z"
  660. fill="#111111"
  661. p-id="9200"
  662. ></path>
  663. </svg>
  664. </div>
  665. </div>
  666. <div class="ac_c_i_bottom">
  667. <div>{{ item.detail }}</div>
  668. </div>
  669. </div> -->
  670. <div class="ac_c_empty" v-if="dataList.length === 0">
  671. <span>暂无数据...</span>
  672. </div>
  673. </div>
  674. </div>
  675. <addAppDialog
  676. ref="addAppDialogRef"
  677. :typeList="typeList"
  678. @success="addAppSuccess"
  679. />
  680. <selectAppDialog ref="selectAppDialogRef" @success="selectAppSuccess" />
  681. <releaseAppDialog
  682. ref="releaseAppDialogRef"
  683. :typeList="typeList"
  684. @success="releaseAppSuccess"
  685. />
  686. </div>
  687. </template>
  688. <script>
  689. const clickOutside = {
  690. bind(el, binding) {
  691. // 在元素上绑定一个点击事件监听器
  692. el.clickOutsideEvent = function(event) {
  693. // 检查点击事件是否发生在元素的内部
  694. if (!(el === event.target || el.contains(event.target))) {
  695. // 如果点击事件发生在元素的外部,则触发指令绑定的方法,将点击的event数据传过去
  696. binding.value(event);
  697. }
  698. };
  699. // 在文档上添加点击事件监听器
  700. document.addEventListener("click", el.clickOutsideEvent);
  701. },
  702. unbind(el) {
  703. // 在元素上解除点击事件监听器
  704. document.removeEventListener("click", el.clickOutsideEvent);
  705. }
  706. };
  707. import addAppDialog from "../dialog/addAppDialog.vue";
  708. import saveCard from "../components/saveCard.vue";
  709. import selectAppDialog from "../dialog/selectAppDialog.vue";
  710. import releaseAppDialog from "../dialog/releaseAppDialog.vue";
  711. // import collectCard from "./dialog/collectCard.vue";
  712. // import recentUseCard from "./dialog/recentUseCard.vue";
  713. export default {
  714. components: {
  715. addAppDialog,
  716. saveCard,
  717. selectAppDialog,
  718. releaseAppDialog
  719. // collectCard,
  720. // recentUseCard
  721. },
  722. directives: {
  723. "click-outside": clickOutside // 注册自定义指令
  724. },
  725. data() {
  726. return {
  727. showType: "",
  728. searchText: "",
  729. selectJuri: 3,
  730. selectLabel: "",
  731. typeList: [],
  732. selectList: [
  733. { index: 3, label: "所有组织" },
  734. { index: 2, label: "组织内" },
  735. { index: 1, label: "我的" }
  736. // { index: 98,label:"已发布"},
  737. // { index: 99,label:"未发布"},
  738. ],
  739. labelSelect: [
  740. { value: "", label: "所有类型" },
  741. { value: "agent", label: "智能体" },
  742. { value: "workflow", label: "工作流" }
  743. ],
  744. userId: this.$route.query["userid"],
  745. org: this.$route.query["org"],
  746. oid: this.$route.query["oid"],
  747. getDataLoading: false,
  748. dataList: [],
  749. recentUse: [],
  750. collect: [],
  751. editAppCard: null,
  752. bannerObj: null
  753. };
  754. },
  755. computed: {
  756. isImageOrSvg() {
  757. return value => {
  758. let _result = 0; //啥也不是
  759. if (value) {
  760. const svgPattern = /<svg.*<\/svg>/;
  761. const imagePattern = /\.(jpeg|jpg|gif|png|svg|bmp|webp)$/i; // 图片链接的正则表达式
  762. const urlPattern = /^(http|https):\/\/[^ "]+$/; // 网络地址的正则表达式
  763. if (svgPattern.test(value)) {
  764. _result = 1;
  765. } else if (urlPattern.test(value) && imagePattern.test(value)) {
  766. _result = 2;
  767. }
  768. }
  769. return _result;
  770. };
  771. },
  772. showMenu() {
  773. return data => {
  774. let _result = false;
  775. if (data && this.userId) {
  776. if (
  777. data.userid === this.userId ||
  778. (data.json && data.json.copy === "1")
  779. ) {
  780. _result = true;
  781. }
  782. }
  783. return _result;
  784. };
  785. }
  786. },
  787. methods: {
  788. changeType(newIndex) {
  789. let flag = this.showType === newIndex;
  790. this.showType = newIndex;
  791. if (!flag) {
  792. this.getData();
  793. }
  794. },
  795. changeSelectType() {
  796. this.getData();
  797. },
  798. getData() {
  799. this.getDataLoading = true;
  800. let params = {
  801. uid: this.userId, //用户ID
  802. name: this.searchText, //应用名称搜索
  803. label: this.selectLabel, //应用的标签搜索
  804. type: this.showType, //应用的类型
  805. juri: this.selectJuri, //应用权限 1:我的 2:组织内 3:所有人
  806. stand: "cn" //cn站还是hk站
  807. };
  808. this.ajax
  809. .get(this.$store.state.api + "select_appStore", params)
  810. .then(res => {
  811. this.getDataLoading = false;
  812. let _data = res.data[0];
  813. if (_data.length > 0) {
  814. _data.forEach(i => {
  815. if (i.json) {
  816. i.json = JSON.parse(i.json);
  817. }
  818. });
  819. this.dataList = _data;
  820. } else {
  821. this.dataList = [];
  822. }
  823. })
  824. .catch(err => {
  825. this.getDataLoading = false;
  826. console.log(err);
  827. this.$message.error("获取应用失败");
  828. });
  829. },
  830. addApp() {
  831. this.$refs.addAppDialogRef.open({ type: 1 });
  832. },
  833. selectApp() {
  834. this.$refs.selectAppDialogRef.open();
  835. },
  836. selectAppSuccess(data) {
  837. if (data) {
  838. this.$refs.selectAppDialogRef.close();
  839. this.$refs.releaseAppDialogRef.open({
  840. form: {
  841. id: data.id,
  842. name: data.name,
  843. label: data.label,
  844. detail: data.detail,
  845. url: data.url,
  846. type: data.type,
  847. juri: data.juri,
  848. stand: data.stand,
  849. json: data.json
  850. }
  851. });
  852. }
  853. },
  854. updateApp(data) {
  855. this.$refs.addAppDialogRef.open({
  856. type: 2,
  857. form: {
  858. id: data.id,
  859. name: data.name,
  860. label: data.label,
  861. detail: data.detail,
  862. url: data.url,
  863. type: data.type,
  864. juri: data.juri,
  865. stand: data.stand,
  866. json: data.json
  867. }
  868. });
  869. },
  870. // 收藏APP
  871. // collectApp(item) {
  872. // this.editAppCard = null;
  873. // this.insertSave(item, 0);
  874. // },
  875. //复制app
  876. copyApp(item) {
  877. this.$confirm(`确定复制《${item.name}》这个应用至我的列表吗?`, "复制", {
  878. confirmButtonText: "确定",
  879. cancelButtonText: "取消",
  880. type: "warning"
  881. })
  882. .then(() => {
  883. let params = [
  884. {
  885. name: `${item.name}_copy`, //app名称
  886. userid: this.userId, //创建的用户ID
  887. label: item.label, //app标签
  888. detail: item.detail, //app简介
  889. url: item.url, //app链接
  890. type: item.type, //app类型
  891. juri: "1", //app权限 1:我的 2:组织 3:所有人
  892. stand: "cn", //语言
  893. json: JSON.stringify(item.json) //其他信息
  894. }
  895. ];
  896. this.ajax
  897. .post(this.$store.state.api + "insert_appStore", params)
  898. .then(res => {
  899. if (res.data) {
  900. this.$message.success("复制成功,已添加至我的列表。");
  901. this.getData();
  902. this.insertSave(item, 3);
  903. } else {
  904. this.$message.error("复制失败");
  905. }
  906. })
  907. .catch(err => {
  908. console.log(err);
  909. this.$message.error("复制失败");
  910. });
  911. })
  912. .catch(_ => {
  913. console.log("取消复制");
  914. });
  915. },
  916. // 取消收藏
  917. cancelCollectApp(item) {
  918. this.editAppCard = null;
  919. let _data = this.collect.find(i => i.id === item.id);
  920. if (_data) {
  921. let params = [
  922. {
  923. sid: _data.sid
  924. }
  925. ];
  926. this.ajax
  927. .post(this.$store.state.api + "delete_appStoreSave", params)
  928. .then(res => {
  929. if (res.data) {
  930. this.$message.success("取消收藏成功");
  931. }
  932. this.getCollect();
  933. })
  934. .catch(e => {
  935. console.log(e);
  936. this.$message.error("取消收藏失败");
  937. this.getCollect();
  938. });
  939. } else {
  940. this.$message.error("取消收藏失败");
  941. this.getCollect();
  942. }
  943. },
  944. updateCard(id) {
  945. if (this.editAppCard === id) return (this.editAppCard = null);
  946. this.editAppCard = id;
  947. },
  948. handleBlur() {
  949. this.updateCard(null);
  950. },
  951. addAppSuccess(data, type) {
  952. if (type === 1) {
  953. //添加
  954. let params = [
  955. {
  956. name: data.name, //app名称
  957. userid: this.userId, //创建的用户ID
  958. label: data.label, //app标签
  959. detail: data.detail, //app简介
  960. url: data.url, //app链接
  961. type: data.type, //app类型
  962. juri: data.juri, //app权限 1:我的 2:组织 3:所有人
  963. stand: "cn", //语言
  964. json: JSON.stringify(data.json) //其他信息
  965. }
  966. ];
  967. this.ajax
  968. .post(this.$store.state.api + "insert_appStore", params)
  969. .then(res => {
  970. if (res.data[0][0]["id"]) {
  971. this.$message.success("添加成功");
  972. this.$refs.addAppDialogRef.close(true);
  973. this.getData();
  974. } else {
  975. this.$message.error("添加失败");
  976. this.$refs.addAppDialogRef.loading = false;
  977. }
  978. })
  979. .catch(err => {
  980. console.log(err);
  981. this.$message.error("添加失败");
  982. });
  983. } else if (type === 2) {
  984. let params = [
  985. {
  986. aid: data.id,
  987. name: data.name, //app名称
  988. userid: this.userId, //创建的用户ID
  989. label: data.label, //app标签
  990. detail: data.detail, //app简介
  991. url: data.url, //app链接
  992. type: data.type, //app类型
  993. juri: data.juri, //app权限 1:我的 2:组织 3:所有人
  994. stand: "cn", //语言
  995. json: JSON.stringify(data.json) //其他信息
  996. }
  997. ];
  998. this.ajax
  999. .post(this.$store.state.api + "update_appStore", params)
  1000. .then(res => {
  1001. if (res.data) {
  1002. this.$message.success("修改成功");
  1003. this.$refs.addAppDialogRef.close(true);
  1004. this.getData();
  1005. } else {
  1006. this.$message.error("修改失败");
  1007. this.$refs.addAppDialogRef.loading = false;
  1008. }
  1009. })
  1010. .catch(err => {
  1011. console.log(err);
  1012. this.$message.error("修改失败");
  1013. });
  1014. }
  1015. },
  1016. releaseAppSuccess(data) {
  1017. this.$refs.releaseAppDialogRef.loading = true;
  1018. let params = [
  1019. {
  1020. aid: data.id,
  1021. name: data.name, //app名称
  1022. userid: this.userId, //创建的用户ID
  1023. label: data.label, //app标签
  1024. detail: data.detail, //app简介
  1025. url: data.url, //app链接
  1026. type: data.type, //app类型
  1027. juri: data.juri, //app权限 1:我的 2:组织 3:所有人
  1028. stand: "cn", //语言
  1029. json: JSON.stringify(data.json) //其他信息
  1030. }
  1031. ];
  1032. this.ajax
  1033. .post(this.$store.state.api + "update_appStore", params)
  1034. .then(res => {
  1035. if (res.data) {
  1036. this.$message.success("发布成功");
  1037. this.$refs.releaseAppDialogRef.close(true);
  1038. } else {
  1039. this.$message.error("发布失败");
  1040. this.$refs.releaseAppDialogRef.loading = false;
  1041. }
  1042. this.getData();
  1043. })
  1044. .catch(err => {
  1045. console.log(err);
  1046. this.$message.error("修改失败");
  1047. });
  1048. },
  1049. getTypeList() {
  1050. let params = {
  1051. suserid: this.userId, //用户ID
  1052. sorg: this.org,
  1053. soid: this.oid,
  1054. sstand: "cn"
  1055. };
  1056. this.ajax
  1057. .get(this.$store.state.api + "select_appStoreType", params)
  1058. .then(res => {
  1059. let data = res.data[0];
  1060. if (data.length > 0) {
  1061. // data.forEach(i => {
  1062. // if (i.open == undefined) {
  1063. // i.open = true;
  1064. // }
  1065. // });
  1066. this.typeList = data;
  1067. }
  1068. })
  1069. .catch(err => {
  1070. console.log(err);
  1071. this.$message.error("获取应用类型失败");
  1072. });
  1073. },
  1074. openApp(item, type = 0) {
  1075. window.open(item.url, "_blank");
  1076. if (
  1077. !(this.recentUse.length > 0 && item.id === this.recentUse[0].id) &&
  1078. type === 0
  1079. ) {
  1080. this.insertSave(item, 1);
  1081. }
  1082. },
  1083. resetData() {
  1084. this.searchText = "";
  1085. this.selectJuri = 3;
  1086. this.showType = "";
  1087. this.getData();
  1088. },
  1089. getRecentUse() {
  1090. let params = {
  1091. uid: this.userId,
  1092. type: 1,
  1093. limit: 10
  1094. };
  1095. this.ajax
  1096. .get(this.$store.state.api + "select_appStoreSave", params)
  1097. .then(res => {
  1098. let data = res.data[0];
  1099. if (data.length > 0) {
  1100. data.forEach(i => {
  1101. if (i.json) {
  1102. i.json = JSON.parse(i.json);
  1103. }
  1104. });
  1105. this.recentUse = data;
  1106. } else {
  1107. this.recentUse = [];
  1108. }
  1109. })
  1110. .catch(err => {
  1111. console.log(err);
  1112. console.log("获取最近使用失败");
  1113. // this.$message.error("获取收藏应用失败")
  1114. });
  1115. },
  1116. getCollect() {
  1117. let params = {
  1118. uid: this.userId,
  1119. type: 0,
  1120. limit: 0
  1121. };
  1122. this.ajax
  1123. .get(this.$store.state.api + "select_appStoreSave", params)
  1124. .then(res => {
  1125. let data = res.data[0];
  1126. if (data.length > 0) {
  1127. data.forEach(i => {
  1128. if (i.json) {
  1129. i.json = JSON.parse(i.json);
  1130. }
  1131. });
  1132. this.collect = data;
  1133. } else {
  1134. this.collect = [];
  1135. }
  1136. })
  1137. .catch(err => {
  1138. console.log(err);
  1139. this.$message.error("获取收藏应用失败");
  1140. });
  1141. },
  1142. insertSave(item, type) {
  1143. return new Promise(resolve => {
  1144. let params = [
  1145. {
  1146. uid: this.userId,
  1147. type: type,
  1148. aid: item.id,
  1149. json: ""
  1150. }
  1151. ];
  1152. this.ajax
  1153. .post(this.$store.state.api + "insert_appStoreSave", params)
  1154. .then(res => {
  1155. if (res.data) {
  1156. if (type === 1) {
  1157. resolve(1);
  1158. }
  1159. }
  1160. })
  1161. .catch(err => {
  1162. resolve(0);
  1163. console.log(err);
  1164. });
  1165. });
  1166. },
  1167. delApp(item) {
  1168. this.$confirm(`确定要删除《${item.name}》这个应用吗!`, `确定删除应用`, {
  1169. confirmButtonText: "确定",
  1170. cancelButtonText: "取消",
  1171. type: "warning"
  1172. })
  1173. .then(() => {
  1174. let params = [
  1175. {
  1176. uid: this.userId,
  1177. aid: item.id
  1178. }
  1179. ];
  1180. this.ajax
  1181. .post(this.$store.state.api + "delete_appStore", params)
  1182. .then(res => {
  1183. if (res.data) {
  1184. this.$message.success("删除成功");
  1185. this.getData();
  1186. } else {
  1187. this.$message.error("删除失败");
  1188. }
  1189. if (this.collect.findIndex(i => i.id == item.id) != -1) {
  1190. this.getCollect();
  1191. }
  1192. })
  1193. .catch(err => {
  1194. console.log(err);
  1195. this.$message.error("删除失败");
  1196. });
  1197. })
  1198. .catch(() => {
  1199. console.log("取消删除");
  1200. });
  1201. },
  1202. changeShowPage(newPage) {
  1203. this.$emit("changeShowCard", newPage);
  1204. },
  1205. getBanner() {
  1206. let params = {
  1207. uid: this.userId,
  1208. oid: this.oid,
  1209. org: this.org,
  1210. type: 4
  1211. };
  1212. this.ajax
  1213. .get(this.$store.state.api + "select_bannerByoidORorg", params)
  1214. .then(res => {
  1215. let _data = res.data[0];
  1216. if (_data[0]) {
  1217. this.bannerObj = _data[0];
  1218. } else {
  1219. this.bannerObj = null;
  1220. }
  1221. })
  1222. .catch(e => {
  1223. console.log("获取banner图失败");
  1224. console.log(e);
  1225. });
  1226. },
  1227. praiseFn(item, type = 0) {
  1228. //点赞
  1229. if (type === 0) {
  1230. //点赞
  1231. let params = [
  1232. {
  1233. uid: this.userId,
  1234. type: 2,
  1235. aid: item.id,
  1236. json: ""
  1237. }
  1238. ];
  1239. this.ajax
  1240. .post(this.$store.state.api + "insert_appStoreSave", params)
  1241. .then(res => {
  1242. if (res.data) {
  1243. let _likeId = res.data[0][0].id;
  1244. this.dataList.find(i => i.id === item.id).likeCount += 1;
  1245. this.dataList.find(i => i.id === item.id).likeId = _likeId;
  1246. this.$message.success("点赞成功");
  1247. }
  1248. })
  1249. .catch(e => {
  1250. this.$message.error("点赞失败");
  1251. });
  1252. } else if (type === 1) {
  1253. //取消点赞
  1254. console.log("取消点赞👉:", item);
  1255. let params = [
  1256. {
  1257. sid: item.likeId
  1258. }
  1259. ];
  1260. this.ajax
  1261. .post(this.$store.state.api + "delete_appStoreSave", params)
  1262. .then(res => {
  1263. if (res.data) {
  1264. this.dataList.find(i => i.id === item.id).likeCount -= 1;
  1265. this.dataList.find(i => i.id === item.id).likeId = "";
  1266. this.$message.success("取消点赞成功");
  1267. }
  1268. })
  1269. .catch(e => {
  1270. console.log(e);
  1271. this.$message.error("取消点赞失败");
  1272. });
  1273. }
  1274. },
  1275. collectFn(item, type = 0) {
  1276. //收藏
  1277. if (type === 0) {
  1278. //收藏
  1279. console.log("收藏👉:", item);
  1280. let params = [
  1281. {
  1282. uid: this.userId,
  1283. type: 0,
  1284. aid: item.id,
  1285. json: ""
  1286. }
  1287. ];
  1288. this.ajax
  1289. .post(this.$store.state.api + "insert_appStoreSave", params)
  1290. .then(res => {
  1291. if (res.data) {
  1292. let _colletId = res.data[0][0].id;
  1293. this.dataList.find(i => i.id === item.id).collectCount += 1;
  1294. this.dataList.find(i => i.id === item.id).collectId = _colletId;
  1295. this.$message.success("收藏成功");
  1296. }
  1297. this.getCollect();
  1298. })
  1299. .catch(e => {
  1300. console.log(e);
  1301. this.getCollect();
  1302. this.$message.error("收藏失败");
  1303. });
  1304. } else if (type === 1) {
  1305. //取消收藏
  1306. console.log("取消收藏👉:", item);
  1307. let params = [
  1308. {
  1309. sid: item.collectId
  1310. }
  1311. ];
  1312. this.ajax
  1313. .post(this.$store.state.api + "delete_appStoreSave", params)
  1314. .then(res => {
  1315. if (res.data) {
  1316. this.dataList.find(i => i.id === item.id).collectCount -= 1;
  1317. this.dataList.find(i => i.id === item.id).collectId = "";
  1318. this.$message.success("取消收藏成功");
  1319. }
  1320. this.getCollect();
  1321. })
  1322. .catch(e => {
  1323. console.log(e);
  1324. this.$message.error("取消收藏失败");
  1325. this.getCollect();
  1326. });
  1327. }
  1328. }
  1329. },
  1330. mounted() {
  1331. this.getTypeList();
  1332. this.getData();
  1333. this.getCollect();
  1334. this.getRecentUse();
  1335. this.getBanner();
  1336. }
  1337. };
  1338. </script>
  1339. <style scoped>
  1340. .appManagement {
  1341. width: 100vw;
  1342. height: 100vh;
  1343. background-color: #f2f4f7;
  1344. margin: 0;
  1345. overflow: auto;
  1346. box-sizing: border-box;
  1347. /* padding: 20px; */
  1348. display: flex;
  1349. justify-content: space-between;
  1350. }
  1351. .ac_left {
  1352. /* width: 280px;
  1353. min-width: 280px; */
  1354. width: clamp(150px, 12vw, 280px);
  1355. min-width: 150px;
  1356. margin-right: 20px;
  1357. height: 100%;
  1358. /* border-radius: 5px; */
  1359. background-color: #fff;
  1360. /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); */
  1361. box-sizing: border-box;
  1362. padding: 10px;
  1363. padding-left: 20px;
  1364. overflow: auto;
  1365. }
  1366. .ac_left > .find {
  1367. width: 100%;
  1368. height: 45px;
  1369. background-color: #fff;
  1370. border-radius: 10px;
  1371. border: 1px solid #f3f7fd;
  1372. box-sizing: border-box;
  1373. padding: 0 20px;
  1374. display: flex;
  1375. align-items: center;
  1376. /* box-shadow: 2px 2px 4px 0px #1D39830A; */
  1377. box-shadow: 0px 0px 4px 2px #1d39830a;
  1378. margin-bottom: 10px;
  1379. font-weight: bold;
  1380. font-size: 16px;
  1381. color: #000000e5;
  1382. }
  1383. .ac_left > .find > img {
  1384. width: 22px;
  1385. height: 22px;
  1386. margin-right: 10px;
  1387. }
  1388. .ac_right {
  1389. flex: 1;
  1390. min-width: 800px;
  1391. height: 100%;
  1392. overflow: auto;
  1393. display: flex;
  1394. padding-right: 10px;
  1395. padding-top: 10px;
  1396. box-sizing: border-box;
  1397. flex-direction: column;
  1398. }
  1399. .ac_header {
  1400. width: 100%;
  1401. height: auto;
  1402. border-radius: 5px;
  1403. /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); */
  1404. background-color: none;
  1405. }
  1406. .ac_h_top {
  1407. width: 100%;
  1408. height: 50px;
  1409. display: flex;
  1410. align-items: center;
  1411. box-sizing: border-box;
  1412. padding: 0 15px;
  1413. border-bottom: 1px solid #eeeeee;
  1414. position: relative;
  1415. justify-content: center;
  1416. }
  1417. .ac_h_top > span {
  1418. font-size: 22px;
  1419. position: relative;
  1420. margin-right: 25px;
  1421. cursor: pointer;
  1422. display: flex;
  1423. align-items: center;
  1424. }
  1425. .ac_h_top > span > svg {
  1426. width: 22px;
  1427. height: 22px;
  1428. fill: #1a1a1a;
  1429. margin-right: 10px;
  1430. }
  1431. .ac_h_t_active {
  1432. color: #0354d7;
  1433. }
  1434. .ac_h_t_active > svg {
  1435. fill: #0354d7 !important;
  1436. }
  1437. /* .ac_h_t_active::after {
  1438. content: "";
  1439. position: absolute;
  1440. width: 100%;
  1441. height: 3px;
  1442. border-radius: 4px;
  1443. background-color: #409eff;
  1444. left: 0;
  1445. bottom: -5px;
  1446. } */
  1447. .ac_h_banner {
  1448. width: 100%;
  1449. height: clamp(100px, 25vh, 350px);
  1450. /* height: 400px; */
  1451. border-radius: 5px;
  1452. overflow: hidden;
  1453. box-sizing: border-box;
  1454. padding: 10px;
  1455. }
  1456. .ac_h_banner > img {
  1457. width: 100%;
  1458. height: 100%;
  1459. object-fit: cover;
  1460. border-radius: 5px;
  1461. }
  1462. .ac_h_bottom {
  1463. width: 100%;
  1464. height: auto;
  1465. padding: 10px 15px 10px 15px;
  1466. box-sizing: border-box;
  1467. display: flex;
  1468. justify-content: space-between;
  1469. align-items: center;
  1470. border-bottom: solid 1px #e7e7e7;
  1471. }
  1472. .ac_h_b_typeList {
  1473. width: calc(100% - 400px);
  1474. height: auto;
  1475. display: flex;
  1476. flex-wrap: wrap;
  1477. box-sizing: border-box;
  1478. }
  1479. .ac_h_b_typeList > span {
  1480. font-size: 18px;
  1481. margin-right: 20px;
  1482. margin-top: 10px;
  1483. margin-bottom: 5px;
  1484. cursor: pointer;
  1485. }
  1486. .ac_h_b_typeList_active {
  1487. color: #007aff;
  1488. position: relative;
  1489. }
  1490. .ac_h_b_typeList_active::after {
  1491. content: "";
  1492. width: 80%;
  1493. height: 5px;
  1494. background-color: #007aff;
  1495. border-radius: 4px;
  1496. position: absolute;
  1497. top: 110%;
  1498. left: 10%;
  1499. }
  1500. .ac_h_b_selectList {
  1501. margin-left: 15px;
  1502. margin-bottom: 10px;
  1503. display: flex;
  1504. align-items: center;
  1505. }
  1506. .ac_content {
  1507. width: 100%;
  1508. height: auto;
  1509. margin-top: 10px;
  1510. padding-bottom: 10px;
  1511. }
  1512. .ac_c_typeCard {
  1513. width: 100%;
  1514. height: auto;
  1515. }
  1516. .ac_c_item {
  1517. width: calc(100% / 4 - (15px * 4) / 4);
  1518. height: 250px;
  1519. background-color: #fff;
  1520. border-radius: 10px;
  1521. /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); */
  1522. box-sizing: border-box;
  1523. padding: 15px;
  1524. margin-right: 15px;
  1525. margin-bottom: 15px;
  1526. float: left;
  1527. border: solid 1px #e7e7e7;
  1528. transition: 0.2s;
  1529. /* cursor: pointer; */
  1530. }
  1531. .ac_c_item:hover {
  1532. box-shadow: 0px 8px 10px -5px #00000014;
  1533. box-shadow: 0px 16px 24px 2px #0000000a;
  1534. box-shadow: 0px 6px 30px 5px #0000000d;
  1535. }
  1536. @media screen and (min-width: 1400px) {
  1537. .ac_c_item {
  1538. width: calc(100% / 4 - (15px * 3) / 4) !important;
  1539. }
  1540. .ac_c_item:nth-child(4n) {
  1541. margin-right: 0px !important;
  1542. /* background-color: red; */
  1543. }
  1544. }
  1545. @media screen and (max-width: 1380px) {
  1546. .ac_c_item {
  1547. width: calc(100% / 4 - (15px * 3) / 4) !important;
  1548. }
  1549. .ac_c_item:nth-child(4n) {
  1550. margin-right: 0px !important;
  1551. }
  1552. /* .ac_c_item:nth-child(5n) {
  1553. margin-right: 0 !important;
  1554. } */
  1555. }
  1556. @media screen and (max-width: 1080px) {
  1557. .ac_c_item {
  1558. width: calc(100% / 3 - (15px * 2) / 3) !important;
  1559. }
  1560. .ac_c_item:nth-child(5n) {
  1561. margin-right: 15px !important;
  1562. }
  1563. .ac_c_item:nth-of-type(4n) {
  1564. margin-right: 15px !important;
  1565. }
  1566. .ac_c_item:nth-child(3n) {
  1567. margin-right: 0 !important;
  1568. }
  1569. }
  1570. .ac_c_empty {
  1571. width: 100%;
  1572. height: 40%;
  1573. display: flex;
  1574. box-sizing: border-box;
  1575. padding-top: 2%;
  1576. justify-content: center;
  1577. /* align-items: center; */
  1578. }
  1579. .ac_c_i_top {
  1580. width: 100%;
  1581. display: flex;
  1582. height: calc(100% - 40px);
  1583. cursor: pointer;
  1584. }
  1585. .ac_c_i_t_left {
  1586. width: 100px;
  1587. min-width: 100px;
  1588. height: 100px;
  1589. box-sizing: border-box;
  1590. display: flex;
  1591. align-items: flex-start;
  1592. box-sizing: border-box;
  1593. padding: 10px;
  1594. margin-right: 10px;
  1595. }
  1596. .ac_c_i_t_left > svg {
  1597. width: 100%;
  1598. height: auto;
  1599. border: 1px solid #e7e7e7;
  1600. border-radius: 4px;
  1601. box-sizing: border-box;
  1602. }
  1603. .ac_c_i_t_left > img {
  1604. width: 100%;
  1605. object-fit: cover;
  1606. height: 80px;
  1607. border: 1px solid #e7e7e7;
  1608. border-radius: 4px;
  1609. box-sizing: border-box;
  1610. }
  1611. .ac_c_i_t_right {
  1612. flex: 1;
  1613. width: calc(100% - 100px - 10px);
  1614. height: 100%;
  1615. display: flex;
  1616. flex-direction: column;
  1617. }
  1618. .ac_c_i_t_right > div {
  1619. width: 100%;
  1620. }
  1621. .ac_c_i_t_r_top {
  1622. height: 40px;
  1623. display: flex;
  1624. align-items: flex-end;
  1625. justify-content: space-between;
  1626. position: relative;
  1627. font-weight: bold;
  1628. box-sizing: border-box;
  1629. padding-bottom: 2px;
  1630. }
  1631. .ac_c_i_t_r_top > span {
  1632. display: block;
  1633. max-width: 100%;
  1634. white-space: nowrap;
  1635. overflow: hidden;
  1636. text-overflow: ellipsis;
  1637. font-size: 24px;
  1638. }
  1639. .ac_c_i_t_popover {
  1640. width: 30px;
  1641. height: 30px;
  1642. /* position: absolute; */
  1643. /* right: 0;
  1644. top: 0; */
  1645. z-index: 3;
  1646. }
  1647. .ac_c_i_t_popover svg {
  1648. width: 30px;
  1649. height: 30px;
  1650. box-sizing: border-box;
  1651. padding: 2.5px;
  1652. /* transform: rotate(90deg); */
  1653. cursor: pointer;
  1654. transition: 0.3s;
  1655. border-radius: 4px;
  1656. }
  1657. .ac_c_i_t_p_box {
  1658. position: absolute;
  1659. height: auto;
  1660. top: 100%;
  1661. right: 0;
  1662. padding: 8px;
  1663. border-radius: 8px 8px 8px 8px;
  1664. background-color: #fff;
  1665. /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); */
  1666. width: auto;
  1667. border: 1px solid #e7e7e7;
  1668. }
  1669. .ac_c_i_t_p_box > div {
  1670. width: 80px;
  1671. height: 30px;
  1672. cursor: pointer;
  1673. transition: 0.3s;
  1674. font-size: 0.7em;
  1675. border-radius: 5px;
  1676. font-weight: 100;
  1677. display: flex;
  1678. justify-content: center;
  1679. align-items: center;
  1680. position: relative;
  1681. box-sizing: border-box;
  1682. }
  1683. .ac_c_i_t_p_box > div > img {
  1684. width: 18px;
  1685. height: 18px;
  1686. margin-right: 10px;
  1687. }
  1688. .ac_c_i_t_p_box > div:hover {
  1689. background-color: #f2f4f7;
  1690. }
  1691. .ac_c_i_t_r_center {
  1692. height: 30px;
  1693. display: flex;
  1694. justify-content: space-between;
  1695. align-items: center;
  1696. margin: 5px 0;
  1697. }
  1698. .ac_c_i_t_r_center > span {
  1699. display: block;
  1700. max-width: calc(100% - 80px);
  1701. white-space: nowrap;
  1702. overflow: hidden;
  1703. font-size: 20px;
  1704. color: #00000066;
  1705. text-overflow: ellipsis;
  1706. }
  1707. .ac_c_i_t_r_center > div {
  1708. width: 75px;
  1709. height: 85%;
  1710. display: flex;
  1711. align-items: center;
  1712. justify-content: center;
  1713. font-size: 16px;
  1714. background-color: #f3f3f3;
  1715. color: #00000066;
  1716. border-radius: 3px;
  1717. }
  1718. .ac_c_i_t_r_center > div > img {
  1719. width: 16px;
  1720. height: 16px;
  1721. margin-right: 4px;
  1722. }
  1723. .ac_c_i_t_r_bottom {
  1724. max-width: 100%;
  1725. max-height: calc(100% - 30px - 40px - 20px - 10px + 5px);
  1726. margin-top: 5px;
  1727. margin-bottom: 10px;
  1728. font-size: 18px;
  1729. color: #00000099;
  1730. display: -webkit-box;
  1731. -webkit-box-orient: vertical;
  1732. -webkit-line-clamp: 4;
  1733. overflow: hidden;
  1734. text-overflow: ellipsis;
  1735. }
  1736. .ac_c_i_bottom {
  1737. width: 100%;
  1738. height: 50px;
  1739. box-sizing: border-box;
  1740. border-top: solid 2px #e7e7e7;
  1741. display: flex;
  1742. align-items: center;
  1743. justify-content: space-between;
  1744. }
  1745. .ac_c_i_b_left {
  1746. width: 130px;
  1747. display: flex;
  1748. align-items: center;
  1749. justify-content: space-between;
  1750. overflow: auto;
  1751. height: 100%;
  1752. }
  1753. .ac_c_i_b_left > div {
  1754. /* margin-right: 20px; */
  1755. display: flex;
  1756. align-items: center;
  1757. }
  1758. .ac_c_i_b_left > div > img {
  1759. width: 22px;
  1760. height: 22px;
  1761. }
  1762. .ac_c_i_b_left > div > span {
  1763. margin-left: 5px;
  1764. color: #00000099;
  1765. cursor: default;
  1766. }
  1767. .ac_c_i_b_right {
  1768. display: flex;
  1769. align-items: center;
  1770. width: 70px;
  1771. height: 70%;
  1772. justify-content: flex-end;
  1773. }
  1774. .ac_c_i_b_right > span {
  1775. width: 60px;
  1776. height: 100%;
  1777. border-radius: 4px;
  1778. display: flex;
  1779. justify-content: center;
  1780. align-items: center;
  1781. }
  1782. .ac_c_i_b_r_type1 {
  1783. background-color: #17c469;
  1784. color: #fff;
  1785. }
  1786. .ac_c_i_b_r_type2 {
  1787. background-color: #ffcf33;
  1788. color: #000;
  1789. }
  1790. .searchInputIcon {
  1791. width: 20px;
  1792. height: 20px;
  1793. position: relative;
  1794. top: 10px;
  1795. right: 5px;
  1796. font-size: 19px;
  1797. cursor: pointer;
  1798. }
  1799. .ac_c_tc_item {
  1800. width: 100%;
  1801. height: auto;
  1802. }
  1803. .ac_c_tc_i_top {
  1804. width: 100%;
  1805. height: 40px;
  1806. display: flex;
  1807. justify-content: space-between;
  1808. align-items: center;
  1809. margin-bottom: 20px;
  1810. box-sizing: border-box;
  1811. padding: 0 20px;
  1812. /* background-color: red; */
  1813. }
  1814. .ac_c_tc_i_top > div {
  1815. font-size: 20px;
  1816. }
  1817. .ac_c_tc_i_top > span {
  1818. display: flex;
  1819. align-items: center;
  1820. color: #a2a2a2;
  1821. font-size: 16px;
  1822. cursor: pointer;
  1823. }
  1824. .ac_c_tc_i_top > span > img {
  1825. width: 18px;
  1826. height: 18px;
  1827. margin-left: 5px;
  1828. /*transform: rotate(90deg);*/
  1829. transition: 0.3s;
  1830. }
  1831. /* .ac_c_i_top {
  1832. width: 100%;
  1833. height: 50px;
  1834. display: flex;
  1835. position: relative;
  1836. }
  1837. .ac_c_i_t_popover {
  1838. width: 30px;
  1839. height: 30px;
  1840. position: absolute;
  1841. right: 0;
  1842. top: 0;
  1843. }
  1844. .ac_c_i_t_popover svg {
  1845. width: 25px;
  1846. height: 25px;
  1847. cursor: pointer;
  1848. }
  1849. .ac_c_i_t_p_box {
  1850. position: absolute;
  1851. height: auto;
  1852. top: 100%;
  1853. right: 0;
  1854. padding: 8px;
  1855. border-radius: 8px 0 8px 8px;
  1856. background-color: #fff;
  1857. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  1858. width: auto;
  1859. }
  1860. .ac_c_i_t_p_box > div {
  1861. width: 80px;
  1862. height: 30px;
  1863. cursor: pointer;
  1864. transition: 0.3s;
  1865. font-weight: bold;
  1866. font-size: 0.9em;
  1867. border-radius: 5px;
  1868. display: flex;
  1869. justify-content: center;
  1870. align-items: center;
  1871. position: relative;
  1872. box-sizing: border-box;
  1873. }
  1874. .ac_c_i_t_p_box > div:hover {
  1875. background-color: #f2f4f7;
  1876. }
  1877. .ac_c_i_t_left {
  1878. width: 50px;
  1879. height: 50px;
  1880. border-radius: 8px;
  1881. margin-right: 10px;
  1882. box-sizing: border-box;
  1883. padding: 5px;
  1884. }
  1885. .ac_c_i_t_left > svg {
  1886. width: 100%;
  1887. height: 100%;
  1888. }
  1889. .ac_c_i_t_left > span {
  1890. width: 100%;
  1891. height: 100%;
  1892. display: block;
  1893. }
  1894. .ac_c_i_t_left > span >>> svg {
  1895. width: 100%;
  1896. height: 100%;
  1897. }
  1898. .ac_c_i_t_right {
  1899. width: calc(100% - 60px);
  1900. height: 100%;
  1901. display: flex;
  1902. flex-direction: column;
  1903. justify-content: space-evenly;
  1904. }
  1905. .ac_c_i_t_right > div {
  1906. font-size: 1.4em;
  1907. font-weight: bold;
  1908. max-width: 100%;
  1909. overflow: hidden;
  1910. text-overflow: ellipsis;
  1911. white-space: nowrap;
  1912. }
  1913. .ac_c_i_t_right > span {
  1914. font-size: 1.1em;
  1915. color: #8991a1;
  1916. display: block;
  1917. max-width: 100%;
  1918. overflow: hidden;
  1919. text-overflow: ellipsis;
  1920. white-space: nowrap;
  1921. }
  1922. .ac_c_i_bottom {
  1923. width: 100%;
  1924. height: calc(100% - 60px);
  1925. margin-top: 15px;
  1926. }
  1927. .ac_c_i_bottom > div {
  1928. font-size: 1em;
  1929. color: #8991a1;
  1930. width: 100%;
  1931. height: calc(100%);
  1932. display: -webkit-box;
  1933. display: block;
  1934. overflow: hidden;
  1935. text-overflow: ellipsis;
  1936. -webkit-line-clamp: 8;
  1937. -webkit-box-orient: vertical;
  1938. }
  1939. .ac_c_i_bottom > span {
  1940. margin-top: 5px;
  1941. font-size: 1em;
  1942. color: #409eff;
  1943. overflow: hidden;
  1944. display: block;
  1945. text-overflow: ellipsis;
  1946. white-space: nowrap;
  1947. cursor: pointer;
  1948. } */
  1949. </style>