index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. <template>
  2. <div class="p-4 timer-config-container">
  3. <!-- 顶部操作栏 -->
  4. <el-card shadow="never" class="mb-4">
  5. <div class="flex justify-between items-center">
  6. <span class="text-lg font-bold">计时器大屏配置</span>
  7. <el-button type="primary" size="large" :loading="buttonLoading" @click="submitForm">
  8. <el-icon class="mr-1"><Check /></el-icon> 保存所有配置
  9. </el-button>
  10. </div>
  11. </el-card>
  12. <el-row :gutter="20">
  13. <!-- ================= 左侧:大屏预览区 ================= -->
  14. <el-col :span="14">
  15. <el-card shadow="hover" class="preview-card">
  16. <template #header>
  17. <div class="font-bold">屏幕预览</div>
  18. </template>
  19. <div class="screen-mockup border rounded overflow-hidden relative flex flex-col" :style="{ backgroundColor: '#f0f2f5', height: '600px' }">
  20. <!-- 1. 顶部区域 -->
  21. <div
  22. class="h-16 w-full flex items-center justify-center border-b relative"
  23. :style="{ backgroundImage: form.topBgImage ? `url(${form.topBgImage})` : 'none', color: form.topFontColor }"
  24. >
  25. <span class="z-10 font-bold text-xl">顶部</span>
  26. <div v-if="!form.topBgImage" class="absolute inset-0 flex items-center justify-center bg-gray-100 bg-opacity-50 text-gray-500 text-sm">
  27. 请上传顶部背景图
  28. </div>
  29. </div>
  30. <!-- 2. 主体区域 -->
  31. <div class="flex-1 p-4 flex flex-col gap-4 relative" :style="{ backgroundImage: form.mainBgImage ? `url(${form.mainBgImage})` : 'none' }">
  32. <!-- 中部信息栏 4列 -->
  33. <div class="grid grid-cols-4 gap-2 text-center">
  34. <div
  35. class="border p-2 rounded bg-white bg-opacity-80"
  36. v-for="(item, index) in ['当前级别', '参赛人数', '下次休息', '平均记分']"
  37. :key="index"
  38. >
  39. <div :style="{ color: form.midTopFontColor }">{{ item }}</div>
  40. <div class="text-xl font-bold" :style="{ color: form.midDownFontColor }">
  41. {{ index === 0 ? 'XX' : index === 1 ? 'XX/XX' : 'XXX' }}
  42. </div>
  43. </div>
  44. </div>
  45. <!-- 预置分 + 计时器区域 -->
  46. <div class="flex-1 flex items-center gap-4">
  47. <!-- 当前预置分 -->
  48. <div class="border p-4 rounded bg-white bg-opacity-80 text-center" style="width: 160px">
  49. <div :style="{ color: form.midTopFontColor }">当前预置分</div>
  50. <div class="text-xl font-bold" :style="{ color: form.midDownFontColor }">XX/XX</div>
  51. </div>
  52. <!-- 计时器 -->
  53. <div class="flex-1 flex items-center justify-center border border-dashed border-gray-300 rounded bg-white bg-opacity-50">
  54. <div class="text-8xl font-bold tracking-widest" :style="{ color: form.timerRunningColor }">50:45</div>
  55. </div>
  56. <!-- 下级预置分 -->
  57. <div class="border p-4 rounded bg-white bg-opacity-80 text-center" style="width: 160px">
  58. <div :style="{ color: form.midTopFontColor }">下级预置分</div>
  59. <div class="text-xl font-bold" :style="{ color: form.midDownFontColor }">XX/XX</div>
  60. </div>
  61. </div>
  62. <!-- 状态栏 -->
  63. <div class="flex gap-2 justify-center mt-2">
  64. <el-tag :style="{ backgroundColor: form.statusAcceptBg, color: form.statusAcceptText, border: 'none' }">接受报名</el-tag>
  65. <el-tag :style="{ backgroundColor: form.statusStopBg, color: form.statusStopText, border: 'none' }">截止报名</el-tag>
  66. <el-tag :style="{ backgroundColor: form.statusShortlistBg, color: form.statusShortlistText, border: 'none' }">入围人数</el-tag>
  67. <el-tag :style="{ backgroundColor: form.statusQueueBg, color: form.statusQueueText, border: 'none' }">排队人数</el-tag>
  68. </div>
  69. </div>
  70. <!-- 3. 底部区域 -->
  71. <div
  72. class="h-12 w-full flex items-center justify-center border-t"
  73. :style="{ backgroundColor: form.bottomBgColor, color: form.bottomFontColor }"
  74. >
  75. 底部
  76. </div>
  77. </div>
  78. </el-card>
  79. <!-- ================= 特殊界面预览区 ================= -->
  80. <el-card shadow="hover" class="mt-4">
  81. <template #header>
  82. <div class="font-bold">特殊界面预览</div>
  83. </template>
  84. <el-row :gutter="16">
  85. <!-- 暂停界面预览 -->
  86. <el-col :span="12">
  87. <div class="text-sm text-gray-500 mb-2">暂停界面</div>
  88. <div
  89. class="special-preview-box rounded flex flex-col items-center justify-center"
  90. :style="{ backgroundColor: form.pauseBgColor, color: form.pauseFontColor }"
  91. >
  92. <div class="text-5xl font-bold">暂停</div>
  93. <!-- <div class="text-6xl font-bold mt-2" :style="{ color: form.pauseTimerNumColor }">50:45</div>-->
  94. </div>
  95. </el-col>
  96. <!-- 比赛结束界面预览 -->
  97. <el-col :span="12">
  98. <div class="text-sm text-gray-500 mb-2">比赛结束界面</div>
  99. <div
  100. class="special-preview-box rounded flex flex-col items-center justify-center"
  101. :style="{ backgroundColor: form.finishBgColor, color: form.finishFontColor }"
  102. >
  103. <div class="text-5xl font-bold">比赛结束</div>
  104. </div>
  105. </el-col>
  106. </el-row>
  107. <el-row :gutter="16" class="mt-4">
  108. <!-- 同步阶段界面预览 -->
  109. <el-col :span="12">
  110. <div class="text-sm text-gray-500 mb-2">同步阶段界面</div>
  111. <div
  112. class="special-preview-box rounded flex flex-col items-center justify-center"
  113. :style="{ backgroundColor: form.syncBgColor, color: form.syncFontColor }"
  114. >
  115. <div class="text-lg mb-2">正在同步</div>
  116. <!-- <div class="text-6xl font-bold" :style="{ color: form.timerRunningColor }">59:32</div>-->
  117. </div>
  118. </el-col>
  119. <!-- 暂停倒计时界面预览 -->
  120. <el-col :span="12">
  121. <div class="text-sm text-gray-500 mb-2">暂停倒计时界面</div>
  122. <div class="special-preview-box rounded flex flex-col items-center justify-center" :style="{ backgroundColor: form.pauseTimerBgColor }">
  123. <div class="text-lg" :style="{ color: form.pauseTimerTextColor }">比赛暂停时间</div>
  124. <div class="text-6xl font-bold mt-2" :style="{ color: form.pauseTimerNumColor }">01:36</div>
  125. </div>
  126. </el-col>
  127. </el-row>
  128. </el-card>
  129. <!-- E. 特殊配置入口 -->
  130. <el-button type="warning" plain class="w-full py-4 text-lg dashed-border mt-4" @click="openSpecialDialog">
  131. <el-icon class="mr-2"><Setting /></el-icon> 进入【特殊配置】 (暂停/结束/同步界面)
  132. </el-button>
  133. <!-- 跑马灯内容 -->
  134. <el-card shadow="hover" class="mt-4">
  135. <template #header>
  136. <span class="font-bold">跑马灯内容</span>
  137. </template>
  138. <el-input
  139. v-model="form.marqueeText"
  140. type="textarea"
  141. :rows="4"
  142. placeholder="请输入大屏底部跑马灯滚动显示的文字"
  143. show-word-limit
  144. :maxlength="500"
  145. />
  146. </el-card>
  147. </el-col>
  148. <!-- ================= 右侧:配置表单区 ================= -->
  149. <el-col :span="10">
  150. <el-form ref="formRef" :model="form" label-position="top" size="default">
  151. <!-- A. 顶部与主体配置 -->
  152. <el-card shadow="hover" class="mb-4">
  153. <template #header><b>顶部与主体背景</b></template>
  154. <el-form-item label="顶部背景图">
  155. <div class="upload-preview-row">
  156. <el-upload
  157. action="#"
  158. :auto-upload="false"
  159. accept="image/*"
  160. :on-change="(file) => handleImageChange(file, 'topBgImage')"
  161. :show-file-list="false"
  162. >
  163. <el-button type="primary" plain icon="Upload">选择图片</el-button>
  164. </el-upload>
  165. <el-image
  166. v-if="form.topBgImage"
  167. :src="form.topBgImage"
  168. fit="cover"
  169. class="upload-preview-img"
  170. :preview-src-list="[form.topBgImage]"
  171. />
  172. </div>
  173. </el-form-item>
  174. <div class="config-row">
  175. <label>顶部字体颜色</label>
  176. <div class="color-picker-wrapper">
  177. <el-color-picker v-model="form.topFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  178. <span class="color-value-text">{{ form.topFontColor }}</span>
  179. </div>
  180. </div>
  181. <el-divider />
  182. <el-form-item label="主体背景图 (中间大图)">
  183. <div class="upload-preview-row">
  184. <el-upload
  185. action="#"
  186. :auto-upload="false"
  187. accept="image/*"
  188. :on-change="(file) => handleImageChange(file, 'mainBgImage')"
  189. :show-file-list="false"
  190. >
  191. <el-button type="primary" plain icon="Upload">选择图片</el-button>
  192. </el-upload>
  193. <el-image
  194. v-if="form.mainBgImage"
  195. :src="form.mainBgImage"
  196. fit="cover"
  197. class="upload-preview-img"
  198. :preview-src-list="[form.mainBgImage]"
  199. />
  200. </div>
  201. </el-form-item>
  202. </el-card>
  203. <!-- B. 中部字体颜色配置 -->
  204. <el-card shadow="hover" class="mb-4">
  205. <template #header><b>中部字体颜色</b></template>
  206. <el-row :gutter="10">
  207. <el-col :span="12">
  208. <el-form-item label="普通文字颜色 (上)">
  209. <el-color-picker v-model="form.midTopFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  210. <div class="text-xs text-gray-400">当前级别、参赛人数、下次休息、平均记分等文字</div>
  211. </el-form-item>
  212. </el-col>
  213. <el-col :span="12">
  214. <el-form-item label="普通数值颜色 (下)">
  215. <el-color-picker v-model="form.midDownFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  216. <div class="text-xs text-gray-400">数值字体颜色配置</div>
  217. </el-form-item>
  218. </el-col>
  219. </el-row>
  220. <el-divider content-position="left">特殊状态字体</el-divider>
  221. <el-row :gutter="10">
  222. <el-col :span="12">
  223. <el-form-item label="特殊文字颜色">
  224. <el-color-picker v-model="form.midSpecialTextFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  225. <div class="text-xs text-gray-400">当前预置分、下级预置分等文字</div>
  226. </el-form-item>
  227. </el-col>
  228. <el-col :span="12">
  229. <el-form-item label="特殊数值颜色">
  230. <el-color-picker v-model="form.midSpecialNumberFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  231. <div class="text-xs text-gray-400">预置分数值颜色</div>
  232. </el-form-item>
  233. </el-col>
  234. </el-row>
  235. </el-card>
  236. <!-- C. 计时器与状态配置 -->
  237. <el-card shadow="hover" class="mb-4">
  238. <template #header><b>计时器与状态颜色</b></template>
  239. <el-form-item label="正常计时颜色">
  240. <el-color-picker v-model="form.timerRunningColor" show-alpha color-format="hex" :predefine="predefineColors" />
  241. </el-form-item>
  242. <el-form-item label="休息/暂停计时颜色">
  243. <el-color-picker v-model="form.timerBreakColor" show-alpha color-format="hex" :predefine="predefineColors" />
  244. </el-form-item>
  245. <el-divider content-position="left">状态按钮样式</el-divider>
  246. <div class="text-xs text-gray-400 mb-2">前者为背景颜色,后者为字体颜色</div>
  247. <div class="grid grid-cols-2 gap-4">
  248. <el-form-item label="接受报名">
  249. <div class="flex items-center gap-2">
  250. <el-color-picker v-model="form.statusAcceptBg" show-alpha color-format="hex" title="背景" :predefine="predefineColors" />
  251. <el-color-picker v-model="form.statusAcceptText" show-alpha color-format="hex" title="文字" :predefine="predefineColors" />
  252. </div>
  253. </el-form-item>
  254. <el-form-item label="截止报名">
  255. <div class="flex items-center gap-2">
  256. <el-color-picker v-model="form.statusStopBg" show-alpha color-format="hex" :predefine="predefineColors" />
  257. <el-color-picker v-model="form.statusStopText" show-alpha color-format="hex" :predefine="predefineColors" />
  258. </div>
  259. </el-form-item>
  260. <el-form-item label="入围人数">
  261. <div class="flex items-center gap-2">
  262. <el-color-picker v-model="form.statusShortlistBg" show-alpha color-format="hex" :predefine="predefineColors" />
  263. <el-color-picker v-model="form.statusShortlistText" show-alpha color-format="hex" :predefine="predefineColors" />
  264. </div>
  265. </el-form-item>
  266. <el-form-item label="排队人数">
  267. <div class="flex items-center gap-2">
  268. <el-color-picker v-model="form.statusQueueBg" show-alpha color-format="hex" :predefine="predefineColors" />
  269. <el-color-picker v-model="form.statusQueueText" show-alpha color-format="hex" :predefine="predefineColors" />
  270. </div>
  271. </el-form-item>
  272. </div>
  273. </el-card>
  274. <!-- D. 底部配置 -->
  275. <el-card shadow="hover" class="mb-4">
  276. <template #header><b>底部配置</b></template>
  277. <el-row :gutter="10">
  278. <el-col :span="12">
  279. <el-form-item label="背景色">
  280. <el-color-picker v-model="form.bottomBgColor" show-alpha color-format="hex" :predefine="predefineColors" />
  281. </el-form-item>
  282. </el-col>
  283. <el-col :span="12">
  284. <el-form-item label="字体色">
  285. <el-color-picker v-model="form.bottomFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  286. </el-form-item>
  287. </el-col>
  288. </el-row>
  289. </el-card>
  290. </el-form>
  291. </el-col>
  292. </el-row>
  293. <!-- ================= 模态框:特殊配置 ================= -->
  294. <el-dialog v-model="specialDialogVisible" title="特殊界面配置" width="700px" destroy-on-close>
  295. <el-scrollbar height="500px">
  296. <el-form :model="form" label-position="top">
  297. <!-- 1. 暂停界面 -->
  298. <div class="config-section">
  299. <div class="section-title">暂停界面</div>
  300. <el-row :gutter="20">
  301. <el-col :span="12">
  302. <el-form-item label="背景颜色">
  303. <el-color-picker v-model="form.pauseBgColor" show-alpha color-format="hex" :predefine="predefineColors" />
  304. </el-form-item>
  305. </el-col>
  306. <el-col :span="12">
  307. <el-form-item label="字体颜色">
  308. <el-color-picker v-model="form.pauseFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  309. </el-form-item>
  310. </el-col>
  311. </el-row>
  312. </div>
  313. <!-- 2. 比赛结束界面 -->
  314. <div class="config-section">
  315. <div class="section-title">比赛结束界面</div>
  316. <el-row :gutter="20">
  317. <el-col :span="12">
  318. <el-form-item label="背景颜色">
  319. <el-color-picker v-model="form.finishBgColor" show-alpha color-format="hex" :predefine="predefineColors" />
  320. </el-form-item>
  321. </el-col>
  322. <el-col :span="12">
  323. <el-form-item label="字体颜色">
  324. <el-color-picker v-model="form.finishFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  325. </el-form-item>
  326. </el-col>
  327. </el-row>
  328. </div>
  329. <!-- 3. 同步阶段界面 -->
  330. <div class="config-section">
  331. <div class="section-title">同步阶段界面</div>
  332. <el-row :gutter="20">
  333. <el-col :span="12">
  334. <el-form-item label="背景颜色">
  335. <el-color-picker v-model="form.syncBgColor" show-alpha color-format="hex" :predefine="predefineColors" />
  336. </el-form-item>
  337. </el-col>
  338. <el-col :span="12">
  339. <el-form-item label="字体颜色">
  340. <el-color-picker v-model="form.syncFontColor" show-alpha color-format="hex" :predefine="predefineColors" />
  341. </el-form-item>
  342. </el-col>
  343. </el-row>
  344. </div>
  345. <!-- 4. 暂停倒计时界面 -->
  346. <div class="config-section">
  347. <div class="section-title">暂停倒计时界面</div>
  348. <el-form-item label="背景颜色">
  349. <el-color-picker v-model="form.pauseTimerBgColor" show-alpha color-format="hex" :predefine="predefineColors" />
  350. </el-form-item>
  351. <el-row :gutter="20">
  352. <el-col :span="12">
  353. <el-form-item label="普通说明文字颜色">
  354. <el-color-picker v-model="form.pauseTimerTextColor" show-alpha color-format="hex" :predefine="predefineColors" />
  355. <div class="text-xs text-gray-400">界面上的提示语</div>
  356. </el-form-item>
  357. </el-col>
  358. <el-col :span="12">
  359. <el-form-item label="倒计时数字颜色">
  360. <el-color-picker v-model="form.pauseTimerNumColor" show-alpha color-format="hex" :predefine="predefineColors" />
  361. <div class="text-xs text-gray-400">大大的数字</div>
  362. </el-form-item>
  363. </el-col>
  364. </el-row>
  365. </div>
  366. </el-form>
  367. </el-scrollbar>
  368. <template #footer>
  369. <el-button @click="specialDialogVisible = false">关闭</el-button>
  370. <el-button type="primary" @click="specialDialogVisible = false">确认配置</el-button>
  371. </template>
  372. </el-dialog>
  373. </div>
  374. </template>
  375. <script setup lang="ts">
  376. import { ref, reactive, onMounted } from 'vue';
  377. import { ElMessage } from 'element-plus';
  378. import { Check, Setting } from '@element-plus/icons-vue';
  379. import { uploadTournament } from '@/api/system/business/tournaments';
  380. import { getTimerConfigByKey, updateTimerConfig, addTimerConfig } from '@/api/system/physical/timerConfig';
  381. // --- 1. 表单数据 (对应后端 TimerConfigBo) ---
  382. const initFormData = {
  383. id: undefined,
  384. // 顶部
  385. topBgImage: '',
  386. topFontColor: '#F59A23',
  387. // 主体
  388. mainBgImage: '',
  389. // 中部普通
  390. midTopFontColor: '#FF9A82',
  391. midDownFontColor: '#F9A825',
  392. // 中部特殊 (预置分)
  393. midSpecialTextFontColor: '#FFFFFF',
  394. midSpecialNumberFontColor: '#FFFFFF',
  395. // 计时器
  396. timerRunningColor: '#FFFFFF',
  397. timerBreakColor: '#00FF4D',
  398. // 状态按钮
  399. statusAcceptBg: '#2E7D32',
  400. statusAcceptText: '#FFFFFF',
  401. statusStopBg: '#C62828',
  402. statusStopText: '#FFFFFF',
  403. statusShortlistBg: '#F59A23',
  404. statusShortlistText: '#FFFFFF',
  405. statusQueueBg: '#F57C00',
  406. statusQueueText: '#FFFFFF',
  407. // 底部
  408. bottomBgColor: '#2F375F',
  409. bottomFontColor: '#FFFFFF',
  410. // 特殊 - 暂停
  411. pauseBgColor: '#000000',
  412. pauseFontColor: '#FFFFFF',
  413. // 特殊 - 结束
  414. finishBgColor: '#000000',
  415. finishFontColor: '#FFFFFF',
  416. // 特殊 - 同步
  417. syncBgColor: '#000000',
  418. syncFontColor: '#FFFFFF',
  419. // 特殊 - 暂停倒计时
  420. pauseTimerBgColor: '#000000',
  421. pauseTimerTextColor: '#FFFFFF',
  422. pauseTimerNumColor: '#00FF4D',
  423. marqueeText: ''
  424. };
  425. const predefineColors = ref(['#ff4500', '#ff8c00', '#ffd700', '#90ee90', '#00ced1', '#1e90ff', '#c71585', '#ffffff']);
  426. const form = reactive({ ...initFormData });
  427. const buttonLoading = ref(false);
  428. const specialDialogVisible = ref(false);
  429. // --- 2. 方法 ---
  430. // 上传图片
  431. const handleImageChange = async (file: any, field: string) => {
  432. try {
  433. const res = await uploadTournament(file.raw);
  434. if (res.code === 200) {
  435. form[field] = res.data.url;
  436. ElMessage.success(`已上传: ${file.name}`);
  437. } else {
  438. ElMessage.error(res.msg || '上传失败');
  439. }
  440. } catch (error) {
  441. console.error('上传图片失败:', error);
  442. ElMessage.error('上传图片失败,请重试');
  443. }
  444. };
  445. // 加载数据
  446. const loadData = async () => {
  447. buttonLoading.value = true;
  448. try {
  449. const res = await getTimerConfigByKey('timer_config');
  450. if (res.code === 200 && res.data) {
  451. const configData = JSON.parse(res.data.configData);
  452. Object.assign(form, configData);
  453. if (res.data.id) {
  454. form.id = res.data.id;
  455. }
  456. }
  457. } catch (error) {
  458. console.error('加载配置失败:', error);
  459. } finally {
  460. buttonLoading.value = false;
  461. }
  462. };
  463. // 打开特殊配置弹窗
  464. const openSpecialDialog = () => {
  465. specialDialogVisible.value = true;
  466. };
  467. // 提交保存
  468. const submitForm = async () => {
  469. buttonLoading.value = true;
  470. try {
  471. const { id, ...rest } = form;
  472. const data: any = {
  473. configKey: 'timer_config',
  474. configData: JSON.stringify(rest)
  475. };
  476. if (id) {
  477. data.id = id;
  478. await updateTimerConfig(data);
  479. } else {
  480. await addTimerConfig(data);
  481. }
  482. ElMessage.success('保存成功');
  483. await loadData();
  484. } catch (error) {
  485. console.error('保存失败:', error);
  486. ElMessage.error('保存失败,请重试');
  487. } finally {
  488. buttonLoading.value = false;
  489. }
  490. };
  491. onMounted(() => {
  492. loadData();
  493. });
  494. </script>
  495. <style scoped>
  496. .timer-config-container {
  497. padding: 20px;
  498. background-color: #f0f2f5;
  499. min-height: 100vh;
  500. }
  501. .config-row {
  502. display: flex;
  503. align-items: center;
  504. justify-content: space-between;
  505. margin-bottom: 10px;
  506. }
  507. .config-row label {
  508. font-size: 13px;
  509. color: #606266;
  510. }
  511. .color-value-text {
  512. font-size: 12px;
  513. color: #909399;
  514. margin-left: 8px;
  515. }
  516. .dashed-border {
  517. border-style: dashed;
  518. }
  519. .el-color-picker {
  520. margin-left: 10px;
  521. }
  522. .config-section {
  523. margin-bottom: 20px;
  524. padding-bottom: 15px;
  525. border-bottom: 1px dashed #eee;
  526. }
  527. .section-title {
  528. font-weight: bold;
  529. font-size: 14px;
  530. color: #303133;
  531. margin-bottom: 12px;
  532. }
  533. .upload-preview-img {
  534. width: 120px;
  535. height: 60px;
  536. border-radius: 4px;
  537. border: 1px solid #ebeef5;
  538. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  539. flex-shrink: 0;
  540. }
  541. .upload-preview-img {
  542. width: 120px;
  543. height: 60px;
  544. border-radius: 4px;
  545. border: 1px solid #ebeef5;
  546. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  547. flex-shrink: 0;
  548. }
  549. .special-preview-box {
  550. height: 120px;
  551. }
  552. </style>