index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. <template>
  2. <div class="application-overview">
  3. <!-- 右侧主内容区 -->
  4. <div class="main-content">
  5. <div style="display: flex;justify-content: space-between;">
  6. <!-- 搜索栏 -->
  7. <div class="search-bar">
  8. <el-input
  9. placeholder="请输入应用名称关键字"
  10. v-model="searchKeyword"
  11. class="search-input"
  12. >
  13. <!-- <template #append>
  14. <el-button type="primary" class="search-btn">搜索</el-button>
  15. </template> -->
  16. </el-input>
  17. <el-button type="primary" class="search-btn">搜索</el-button>
  18. </div>
  19. <!-- 应用范围过滤 -->
  20. <div class="filter-tabs">
  21. <el-radio-group v-model="activeTab" size="medium">
  22. <el-radio-button label="all">全部(41)</el-radio-button>
  23. <el-radio-button label="district">区级(19)</el-radio-button>
  24. <el-radio-button label="street">街镇(8)</el-radio-button>
  25. </el-radio-group>
  26. </div>
  27. </div>
  28. <!-- 应用卡片网格 -->
  29. <div class="app-content">
  30. <div class="applications-grid">
  31. <div class="application-card" v-for="(app, index) in applications" :key="index">
  32. <div class="card-image">
  33. <img :src="app.image" :alt="app.name" />
  34. </div>
  35. <div class="card-content">
  36. <div class="app-header">
  37. <h3 class="app-name">{{ app.name }}</h3>
  38. <span class="app-version">{{ app.version }}</span>
  39. </div>
  40. <div class="app-tags">
  41. <el-tag size="small" type="success">{{ app.status }}</el-tag>
  42. <el-tag size="small" v-for="tag in app.tags" :key="tag">{{ tag }}</el-tag>
  43. </div>
  44. <p class="app-description">{{ app.description }}</p>
  45. <div class="app-footer">
  46. <span class="app-date">{{ app.date }}</span>
  47. <el-button type="primary" size="small" class="visit-button">访问</el-button>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <!-- 加载更多按钮 -->
  54. <!-- <div class="load-more">
  55. <el-button type="primary" size="medium">查看更多</el-button>
  56. </div> -->
  57. </div>
  58. </div>
  59. </template>
  60. <script>
  61. export default {
  62. name: "ApplicationOverview",
  63. data() {
  64. return {
  65. searchKeyword: '',
  66. activeTab: 'all',
  67. applications: [
  68. {
  69. image: require('@/assets/images/common/app-bg-1.png'),
  70. name: '智慧园区',
  71. version: 'v1.0',
  72. status: '待审核',
  73. tags: [],
  74. description: '智慧园区运维管理平台',
  75. date: '2025-12-09 11:09:07'
  76. },
  77. {
  78. image: require('@/assets/images/common/app-bg-2.png'),
  79. name: '上海市一图一网一屏',
  80. version: 'v1.0',
  81. status: '待审核',
  82. tags: [],
  83. description: '城市综合数据可视化平台',
  84. date: '2025-12-09 11:09:06'
  85. },
  86. {
  87. image: require('@/assets/images/common/app-bg-3.png'),
  88. name: '水系综合管理',
  89. version: 'v1.0',
  90. status: '未完成',
  91. tags: ['水务'],
  92. description: '汇聚各类水务水务等专业数据,构建综合业务平台',
  93. date: '2025-11-30 15:17:17'
  94. },
  95. {
  96. image: require('@/assets/images/common/app-bg-4.png'),
  97. name: '数字孪生黄浦江',
  98. version: 'v1.0',
  99. status: '待发布',
  100. tags: ['未完成', '水务'],
  101. description: '利用大数据、物联网、BIM、三维可视化技术构建数字孪生平台',
  102. date: '2025-12-08 15:11:36'
  103. },
  104. {
  105. image: require('@/assets/images/common/u661.png'),
  106. name: '上海市生态环境管理',
  107. version: 'v1.0',
  108. status: '待审核',
  109. tags: [],
  110. description: '生态环境综合监测与管理平台',
  111. date: '2025-11-30 15:43:56'
  112. },
  113. {
  114. image: require('@/assets/images/common/app-bg-1.png'),
  115. name: '智慧园区',
  116. version: 'v1.0',
  117. status: '待审核',
  118. tags: [],
  119. description: '智慧园区运维管理平台',
  120. date: '2025-12-09 11:09:07'
  121. },
  122. {
  123. image: require('@/assets/images/common/app-bg-2.png'),
  124. name: '上海市一图一网一屏',
  125. version: 'v1.0',
  126. status: '待审核',
  127. tags: [],
  128. description: '城市综合数据可视化平台',
  129. date: '2025-12-09 11:09:06'
  130. },
  131. {
  132. image: require('@/assets/images/common/app-bg-3.png'),
  133. name: '水系综合管理',
  134. version: 'v1.0',
  135. status: '未完成',
  136. tags: ['水务'],
  137. description: '汇聚各类水务水务等专业数据,构建综合业务平台',
  138. date: '2025-11-30 15:17:17'
  139. },
  140. {
  141. image: require('@/assets/images/common/app-bg-4.png'),
  142. name: '数字孪生黄浦江',
  143. version: 'v1.0',
  144. status: '待发布',
  145. tags: ['未完成', '水务'],
  146. description: '利用大数据、物联网、BIM、三维可视化技术构建数字孪生平台',
  147. date: '2025-12-08 15:11:36'
  148. },
  149. {
  150. image: require('@/assets/images/common/u661.png'),
  151. name: '上海市生态环境管理',
  152. version: 'v1.0',
  153. status: '待审核',
  154. tags: [],
  155. description: '生态环境综合监测与管理平台',
  156. date: '2025-11-30 15:43:56'
  157. }
  158. ]
  159. }
  160. }
  161. }
  162. </script>
  163. <style lang="less" scoped>
  164. .application-overview {
  165. display: flex;
  166. width: 100%;
  167. background-color: #08224a;
  168. color: #ffffff;
  169. }
  170. /* 右侧主内容区 */
  171. .main-content {
  172. flex: 1;
  173. padding: 20px 30px;
  174. overflow-y: auto;
  175. }
  176. /* 搜索栏样式 */
  177. .search-bar {
  178. margin-bottom: 20px;
  179. .search-input {
  180. width: 400px;
  181. // ::v-deep .el-input__inner {
  182. // background-color: rgba(255, 255, 255, 0.1);
  183. // border: 1px solid rgba(255, 255, 255, 0.2);
  184. // color: #ffffff;
  185. // &::placeholder {
  186. // color: rgba(255, 255, 255, 0.6);
  187. // }
  188. // }
  189. // ::v-deep .el-input__prepend {
  190. // background-color: rgba(255, 255, 255, 0.1);
  191. // border-color: rgba(255, 255, 255, 0.2);
  192. // color: rgba(255, 255, 255, 0.8);
  193. // }
  194. }
  195. .search-btn {
  196. margin-left: 10px;
  197. }
  198. }
  199. /* 过滤标签样式 */
  200. .filter-tabs {
  201. margin-bottom: 30px;
  202. ::v-deep .el-radio-group {
  203. .el-radio-button {
  204. background-color: rgba(255, 255, 255, 0.1);
  205. border-color: rgba(255, 255, 255, 0.2);
  206. color: rgba(255, 255, 255, 0.8);
  207. &:first-child .el-radio-button__inner {
  208. border-left-color: rgba(255, 255, 255, 0.2);
  209. }
  210. .el-radio-button__inner {
  211. background-color: transparent;
  212. border-color: rgba(255, 255, 255, 0.2);
  213. color: rgba(255, 255, 255, 0.8);
  214. }
  215. &.is-active {
  216. background-color: #1890ff;
  217. .el-radio-button__inner {
  218. background-color: #1890ff;
  219. border-color: #1890ff;
  220. color: #ffffff;
  221. }
  222. }
  223. }
  224. }
  225. }
  226. .app-content{
  227. // height: 640px;
  228. height: calc(100vh - 266px);
  229. overflow: auto;
  230. }
  231. /* 应用卡片网格样式 */
  232. .applications-grid {
  233. display: grid;
  234. grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  235. gap: 25px;
  236. }
  237. /* 应用卡片样式 */
  238. .application-card {
  239. background-color: rgba(255, 255, 255, 0.05);
  240. border: 1px solid rgba(255, 255, 255, 0.1);
  241. border-radius: 8px;
  242. overflow: hidden;
  243. transition: all 0.3s ease;
  244. &:hover {
  245. transform: translateY(-5px);
  246. box-shadow: 0 10px 30px rgba(24, 144, 255, 0.2);
  247. border-color: rgba(24, 144, 255, 0.4);
  248. }
  249. .card-image {
  250. width: 100%;
  251. height: 160px;
  252. overflow: hidden;
  253. img {
  254. width: 100%;
  255. height: 100%;
  256. object-fit: cover;
  257. transition: transform 0.3s ease;
  258. }
  259. &:hover img {
  260. transform: scale(1.05);
  261. }
  262. }
  263. .card-content {
  264. padding: 15px;
  265. }
  266. .app-header {
  267. display: flex;
  268. justify-content: space-between;
  269. align-items: center;
  270. margin-bottom: 10px;
  271. .app-name {
  272. font-size: 16px;
  273. font-weight: bold;
  274. margin: 0;
  275. color: #ffffff;
  276. }
  277. .app-version {
  278. font-size: 12px;
  279. color: rgba(255, 255, 255, 0.6);
  280. background-color: rgba(255, 255, 255, 0.1);
  281. padding: 2px 6px;
  282. border-radius: 4px;
  283. }
  284. }
  285. .app-tags {
  286. margin-bottom: 10px;
  287. .el-tag {
  288. margin-right: 5px;
  289. margin-bottom: 5px;
  290. }
  291. }
  292. .app-description {
  293. font-size: 13px;
  294. line-height: 1.6;
  295. color: rgba(255, 255, 255, 0.7);
  296. margin-bottom: 15px;
  297. overflow: hidden;
  298. text-overflow: ellipsis;
  299. display: -webkit-box;
  300. -webkit-line-clamp: 2;
  301. -webkit-box-orient: vertical;
  302. }
  303. .app-footer {
  304. display: flex;
  305. justify-content: space-between;
  306. align-items: center;
  307. .app-date {
  308. font-size: 12px;
  309. color: rgba(255, 255, 255, 0.5);
  310. }
  311. .visit-button {
  312. padding: 4px 12px;
  313. font-size: 12px;
  314. border-radius: 4px;
  315. }
  316. }
  317. }
  318. /* 加载更多按钮 */
  319. .load-more {
  320. text-align: center;
  321. margin-bottom: 30px;
  322. .el-button {
  323. padding: 10px 30px;
  324. background-color: rgba(24, 144, 255, 0.2);
  325. border-color: rgba(24, 144, 255, 0.4);
  326. color: #1890ff;
  327. &:hover {
  328. background-color: rgba(24, 144, 255, 0.3);
  329. border-color: rgba(24, 144, 255, 0.6);
  330. }
  331. }
  332. }
  333. /* 响应式设计 */
  334. @media (max-width: 1200px) {
  335. .applications-grid {
  336. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  337. gap: 20px;
  338. }
  339. }
  340. @media (max-width: 992px) {
  341. .sidebar {
  342. width: 180px;
  343. .sidebar-menu .menu-item {
  344. padding: 12px 15px;
  345. i {
  346. font-size: 16px;
  347. }
  348. }
  349. }
  350. .main-content {
  351. padding: 15px 20px;
  352. }
  353. .search-input {
  354. width: 300px !important;
  355. }
  356. .applications-grid {
  357. grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  358. gap: 15px;
  359. }
  360. }
  361. </style>