系统设置.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>叁强鲜配 - 系统设置原型图</title>
  7. <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
  8. <link rel="stylesheet" href="https://unpkg.com/@element-plus/icons-vue/dist/index.css">
  9. <style>
  10. * { margin: 0; padding: 0; box-sizing: border-box; }
  11. body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #303133; }
  12. .topbar { height: 60px; background: linear-gradient(135deg, #1989fa 0%, #07c160 100%); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: white; }
  13. .topbar-logo h1 { font-size: 22px; font-weight: 600; }
  14. .topbar-logo span { font-size: 13px; opacity: 0.85; }
  15. .topbar-user { display: flex; align-items: center; gap: 16px; }
  16. .main-container { display: flex; min-height: calc(100vh - 60px); }
  17. .sidebar { width: 220px; background: #fff; border-right: 1px solid #e4e7ed; padding: 16px 0; }
  18. .menu-item { padding: 14px 24px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #606266; font-size: 14px; }
  19. .menu-item:hover { background: #f5f7fa; color: #1989fa; }
  20. .menu-item.active { background: #ecf5ff; color: #1989fa; border-right: 3px solid #1989fa; }
  21. .content { flex: 1; padding: 24px; }
  22. .breadcrumb { font-size: 13px; color: #909399; margin-bottom: 8px; }
  23. .card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  24. .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
  25. .card-title { font-size: 16px; font-weight: 600; }
  26. .status-tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; }
  27. .status-tag.primary { background: #ecf5ff; color: #1989fa; }
  28. .status-tag.success { background: #f0f9eb; color: #07c160; }
  29. .status-tag.warning { background: #fdf6ec; color: #ff976a; }
  30. .status-tag.info { background: #f4f4f5; color: #909399; }
  31. .form-section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #1989fa; }
  32. .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  33. .setting-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #f5f5f5; }
  34. .setting-item:last-child { border-bottom: none; }
  35. .setting-info h4 { font-size: 14px; margin-bottom: 4px; }
  36. .setting-info p { font-size: 13px; color: #909399; }
  37. .nav-tabs { display: flex; gap: 4px; background: #f5f7fa; padding: 4px; border-radius: 8px; margin-bottom: 20px; width: 300px; }
  38. .nav-tab { padding: 10px 20px; cursor: pointer; border-radius: 6px; font-size: 14px; color: #606266; }
  39. .nav-tab.active { background: #fff; color: #1989fa; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  40. </style>
  41. </head>
  42. <body>
  43. <!-- 顶部导航 -->
  44. <div class="topbar">
  45. <div class="topbar-logo">
  46. <h1>叁强鲜配</h1>
  47. <span>运营管理后台</span>
  48. </div>
  49. <div class="topbar-user">
  50. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  51. <span>管理员</span>
  52. </div>
  53. </div>
  54. <div class="main-container">
  55. <!-- 左侧菜单 -->
  56. <div class="sidebar">
  57. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  58. <div class="menu-item"><el-icon><User /></el-icon><span>用户管理</span></div>
  59. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  60. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  61. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  62. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  63. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  64. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  65. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  66. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  67. <div class="menu-item"><el-icon><Document /></el-icon><span>附件管理</span></div>
  68. <div class="menu-item active"><el-icon><Setting /></el-icon><span>系统设置</span></div>
  69. </div>
  70. <!-- 内容区 -->
  71. <div class="content">
  72. <div class="breadcrumb">系统设置</div>
  73. <!-- Tab切换 -->
  74. <div class="nav-tabs">
  75. <div class="nav-tab active">基本设置</div>
  76. <div class="nav-tab">安全设置</div>
  77. <div class="nav-tab">审计日志</div>
  78. </div>
  79. <!-- 基本设置 -->
  80. <div class="card">
  81. <div class="card-header">
  82. <span class="card-title">基本设置</span>
  83. </div>
  84. <div class="setting-item">
  85. <div class="setting-info">
  86. <h4>系统名称</h4>
  87. <p>显示在顶部导航和登录页</p>
  88. </div>
  89. <el-input placeholder="叁强鲜配" style="width:200px;" />
  90. </div>
  91. <div class="setting-item">
  92. <div class="setting-info">
  93. <h4>公司名称</h4>
  94. <p>用于显示和联系信息</p>
  95. </div>
  96. <el-input placeholder="叁强公司" style="width:200px;" />
  97. </div>
  98. <div class="setting-item">
  99. <div class="setting-info">
  100. <h4>联系电话</h4>
  101. <p>客户联系客服使用</p>
  102. </div>
  103. <el-input placeholder="400-888-8888" style="width:200px;" />
  104. </div>
  105. <div class="setting-item">
  106. <div class="setting-info">
  107. <h4>配送时效预警时间</h4>
  108. <p>配送单过期前多少分钟预警</p>
  109. </div>
  110. <el-input placeholder="60" style="width:100px;" /> <span style="margin-left:8px;">分钟</span>
  111. </div>
  112. <div style="margin-top:20px;text-align:right;">
  113. <el-button type="primary">保存设置</el-button>
  114. </div>
  115. </div>
  116. <!-- 安全设置 -->
  117. <div class="card">
  118. <div class="card-header">
  119. <span class="card-title">安全设置</span>
  120. </div>
  121. <div class="setting-item">
  122. <div class="setting-info">
  123. <h4>密码复杂度要求</h4>
  124. <p>设置账号密码的复杂度要求</p>
  125. </div>
  126. <el-select placeholder="中等" style="width:150px;">
  127. <el-option label="简单" value="simple" />
  128. <el-option label="中等" value="medium" />
  129. <el-option label="复杂" value="complex" />
  130. </el-select>
  131. </div>
  132. <div class="setting-item">
  133. <div class="setting-info">
  134. <h4>密码过期时间</h4>
  135. <p>强制要求用户修改密码的周期</p>
  136. </div>
  137. <el-select placeholder="90天" style="width:150px;">
  138. <el-option label="30天" value="30" />
  139. <el-option label="60天" value="60" />
  140. <el-option label="90天" value="90" />
  141. <el-option label="永不过期" value="0" />
  142. </el-select>
  143. </div>
  144. <div class="setting-item">
  145. <div class="setting-info">
  146. <h4>会话超时时间</h4>
  147. <p>用户无操作自动退出的时间</p>
  148. </div>
  149. <el-select placeholder="30分钟" style="width:150px;">
  150. <el-option label="15分钟" value="15" />
  151. <el-option label="30分钟" value="30" />
  152. <el-option label="60分钟" value="60" />
  153. <el-option label="120分钟" value="120" />
  154. </el-select>
  155. </div>
  156. <div style="margin-top:20px;text-align:right;">
  157. <el-button type="primary">保存设置</el-button>
  158. </div>
  159. </div>
  160. <!-- 审计日志 -->
  161. <div class="card">
  162. <div class="card-header">
  163. <span class="card-title">审计日志</span>
  164. </div>
  165. <el-table :data="auditLogList" style="width:100%">
  166. <el-table-column prop="module" label="模块" width="100">
  167. <template #default="{row}">
  168. <span :class="'status-tag '+row.moduleClass">{{row.moduleText}}</span>
  169. </template>
  170. </el-table-column>
  171. <el-table-column prop="operation" label="操作" width="120" />
  172. <el-table-column prop="targetType" label="目标类型" width="100" />
  173. <el-table-column prop="operatorName" label="操作人" width="100" />
  174. <el-table-column prop="operatorRole" label="角色" width="80" />
  175. <el-table-column prop="ipAddress" label="IP地址" width="120" />
  176. <el-table-column prop="createTime" label="操作时间" width="160" />
  177. <el-table-column prop="note" label="备注" />
  178. </el-table>
  179. <div style="display:flex;justify-content:center;gap:8px;margin-top:24px;">
  180. <el-pagination background layout="prev, pager, next" :total="500" />
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  186. <script src="https://unpkg.com/element-plus"></script>
  187. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  188. <script>
  189. const { createApp, ref } = Vue;
  190. const app = createApp({
  191. setup() {
  192. const auditLogList = ref([
  193. { module: 'user', moduleClass: 'primary', moduleText: '用户', operation: '创建账号', targetType: '客户', operatorName: '管理员', operatorRole: '运营', ipAddress: '192.168.1.100', createTime: '2026-03-19 10:30:00', note: '新增客户账号:client001' },
  194. { module: 'price', moduleClass: 'success', moduleText: '价格', operation: '发布价格', targetType: '价格清单', operatorName: '管理员', operatorRole: '运营', ipAddress: '192.168.1.100', createTime: '2026-03-19 09:00:00', note: '发布城东区域V3价格清单' },
  195. { module: 'order', moduleClass: 'warning', moduleText: '订单', operation: '分配配送', targetType: '订单', operatorName: '管理员', operatorRole: '运营', ipAddress: '192.168.1.101', createTime: '2026-03-19 08:45:00', note: '分配订单ORD202603190001给配送员王强' },
  196. { module: 'settlement', moduleClass: 'info', moduleText: '结算', operation: '确认结算', targetType: '结算', operatorName: '管理员', operatorRole: '运营', ipAddress: '192.168.1.100', createTime: '2026-03-18 16:20:00', note: '确认客户XX餐厅线下结算¥856.00' },
  197. { module: 'user', moduleClass: 'primary', moduleText: '用户', operation: '重置密码', targetType: '供应商', operatorName: '管理员', operatorRole: '运营', ipAddress: '192.168.1.102', createTime: '2026-03-18 14:10:00', note: '重置供应商supplier001密码' },
  198. ]);
  199. return { auditLogList };
  200. }
  201. });
  202. app.use(ElementPlus);
  203. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  204. app.component(key, component);
  205. }
  206. app.mount('#app');
  207. </script>
  208. </body>
  209. </html>