TaskTemplates.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. <template>
  2. <div class="page-container">
  3. <el-card>
  4. <PageHeader slot="header" title="任务模板管理">
  5. <el-button type="primary" size="small" icon="el-icon-plus" @click="handleCreate">新建模板</el-button>
  6. <el-button size="small" @click="handleRefresh" :loading="loading">刷新</el-button>
  7. </PageHeader>
  8. <!-- 搜索和筛选 -->
  9. <el-form :inline="true" :model="searchForm" class="mb-20">
  10. <el-form-item label="分类">
  11. <el-select v-model="searchForm.category" placeholder="全部分类" clearable @change="handleSearch">
  12. <el-option label="学习" value="学习"></el-option>
  13. <el-option label="家务" value="家务"></el-option>
  14. <el-option label="运动" value="运动"></el-option>
  15. <el-option label="阅读" value="阅读"></el-option>
  16. <el-option label="生活习惯" value="生活习惯"></el-option>
  17. <el-option label="其他" value="其他"></el-option>
  18. </el-select>
  19. </el-form-item>
  20. <el-form-item label="难度">
  21. <el-select v-model="searchForm.difficulty" placeholder="全部难度" clearable @change="handleSearch">
  22. <el-option label="简单" value="easy"></el-option>
  23. <el-option label="中等" value="medium"></el-option>
  24. <el-option label="困难" value="hard"></el-option>
  25. </el-select>
  26. </el-form-item>
  27. <el-form-item label="状态">
  28. <el-select v-model="searchForm.isActive" placeholder="全部状态" clearable @change="handleSearch">
  29. <el-option label="启用" :value="1"></el-option>
  30. <el-option label="禁用" :value="0"></el-option>
  31. </el-select>
  32. </el-form-item>
  33. <el-form-item>
  34. <el-button type="primary" @click="handleSearch">搜索</el-button>
  35. <el-button @click="handleReset">重置</el-button>
  36. </el-form-item>
  37. </el-form>
  38. <!-- 模板列表 -->
  39. <div class="adm-table-wrap">
  40. <el-table
  41. :data="tableData"
  42. border
  43. v-loading="loading"
  44. class="full-width"
  45. height="100%"
  46. >
  47. <el-table-column prop="id" label="ID" width="80">
  48. <template slot="header">
  49. <span class="sort-header" @click.stop="onSortClick('id', $event)">ID<span v-if="sortIndex('id') !== null" class="sort-index" :class="sortClass('id') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('id') }}</span>{{ sortIcon('id') }}</span>
  50. </template>
  51. </el-table-column>
  52. <el-table-column prop="title" label="模板名称" min-width="200">
  53. <template slot="header">
  54. <span class="sort-header" @click.stop="onSortClick('title', $event)">模板名称<span v-if="sortIndex('title') !== null" class="sort-index" :class="sortClass('title') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('title') }}</span>{{ sortIcon('title') }}</span>
  55. </template>
  56. </el-table-column>
  57. <el-table-column prop="category" label="分类" width="100">
  58. <template slot-scope="scope">
  59. <StatusTag :type="getCategoryType(scope.row.category)" :text="scope.row.category" size="small" />
  60. </template>
  61. <template slot="header">
  62. <span class="sort-header" @click.stop="onSortClick('category', $event)">分类<span v-if="sortIndex('category') !== null" class="sort-index" :class="sortClass('category') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('category') }}</span>{{ sortIcon('category') }}</span>
  63. </template>
  64. </el-table-column>
  65. <el-table-column prop="points" label="积分" width="80">
  66. <template slot-scope="scope">
  67. <StatusTag type="success" :text="String(scope.row.points || 0)" />
  68. </template>
  69. <template slot="header">
  70. <span class="sort-header" @click.stop="onSortClick('points', $event)">积分<span v-if="sortIndex('points') !== null" class="sort-index" :class="sortClass('points') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('points') }}</span>{{ sortIcon('points') }}</span>
  71. </template>
  72. </el-table-column>
  73. <el-table-column prop="difficulty" label="难度" width="100">
  74. <template slot-scope="scope">
  75. <StatusTag :type="getDifficultyType(scope.row.difficulty)" :text="getDifficultyText(scope.row.difficulty)" size="small" />
  76. </template>
  77. <template slot="header">
  78. <span class="sort-header" @click.stop="onSortClick('difficulty', $event)">难度<span v-if="sortIndex('difficulty') !== null" class="sort-index" :class="sortClass('difficulty') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('difficulty') }}</span>{{ sortIcon('difficulty') }}</span>
  79. </template>
  80. </el-table-column>
  81. <el-table-column prop="recommendedAge" label="推荐年龄" width="100">
  82. <template slot-scope="scope">
  83. <span v-if="scope.row.recommendedAge">{{ scope.row.recommendedAge }}岁+</span>
  84. <span v-else>-</span>
  85. </template>
  86. <template slot="header">
  87. <span class="sort-header" @click.stop="onSortClick('recommendedAge', $event)">推荐年龄<span v-if="sortIndex('recommendedAge') !== null" class="sort-index" :class="sortClass('recommendedAge') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('recommendedAge') }}</span>{{ sortIcon('recommendedAge') }}</span>
  88. </template>
  89. </el-table-column>
  90. <el-table-column prop="duration" label="时长" width="80">
  91. <template slot-scope="scope">
  92. <span v-if="scope.row.duration">{{ scope.row.duration }}分钟</span>
  93. <span v-else>-</span>
  94. </template>
  95. <template slot="header">
  96. <span class="sort-header" @click.stop="onSortClick('duration', $event)">时长<span v-if="sortIndex('duration') !== null" class="sort-index" :class="sortClass('duration') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('duration') }}</span>{{ sortIcon('duration') }}</span>
  97. </template>
  98. </el-table-column>
  99. <el-table-column prop="taskType" label="性质" width="80">
  100. <template slot-scope="scope">
  101. <StatusTag v-if="scope.row.taskType === 'recurring'" type="warning" size="small" text="循环" />
  102. <StatusTag v-else type="info" size="small" text="一次性" />
  103. </template>
  104. <template slot="header">
  105. <span class="sort-header" @click.stop="onSortClick('taskType', $event)">性质<span v-if="sortIndex('taskType') !== null" class="sort-index" :class="sortClass('taskType') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('taskType') }}</span>{{ sortIcon('taskType') }}</span>
  106. </template>
  107. </el-table-column>
  108. <el-table-column prop="needReview" label="需审核" width="80">
  109. <template slot-scope="scope">
  110. <StatusTag v-if="scope.row.needReview === 1" type="warning" size="small" text="是" />
  111. <StatusTag v-else type="info" size="small" text="否" />
  112. </template>
  113. <template slot="header">
  114. <span class="sort-header" @click.stop="onSortClick('needReview', $event)">需审核<span v-if="sortIndex('needReview') !== null" class="sort-index" :class="sortClass('needReview') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('needReview') }}</span>{{ sortIcon('needReview') }}</span>
  115. </template>
  116. </el-table-column>
  117. <el-table-column prop="isActive" label="状态" width="80">
  118. <template slot-scope="scope">
  119. <el-switch
  120. v-model="scope.row.isActive"
  121. :active-value="1"
  122. :inactive-value="0"
  123. @change="handleStatusChange(scope.row)"
  124. ></el-switch>
  125. </template>
  126. <template slot="header">
  127. <span class="sort-header" @click.stop="onSortClick('isActive', $event)">状态<span v-if="sortIndex('isActive') !== null" class="sort-index" :class="sortClass('isActive') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('isActive') }}</span>{{ sortIcon('isActive') }}</span>
  128. </template>
  129. </el-table-column>
  130. <el-table-column prop="createdAt" label="创建时间" width="180">
  131. <template slot-scope="scope">
  132. {{ formatDate(scope.row.createdAt) }}
  133. </template>
  134. <template slot="header">
  135. <span class="sort-header" @click.stop="onSortClick('createdAt', $event)">创建时间<span v-if="sortIndex('createdAt') !== null" class="sort-index" :class="sortClass('createdAt') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('createdAt') }}</span>{{ sortIcon('createdAt') }}</span>
  136. </template>
  137. </el-table-column>
  138. <el-table-column label="操作" width="180" fixed="right">
  139. <template slot-scope="scope">
  140. <el-button
  141. type="text"
  142. size="small"
  143. @click="handleEdit(scope.row)"
  144. >
  145. 编辑
  146. </el-button>
  147. <el-button
  148. type="text"
  149. size="small"
  150. class="text-error"
  151. @click="handleDelete(scope.row)"
  152. >
  153. 删除
  154. </el-button>
  155. </template>
  156. </el-table-column>
  157. </el-table>
  158. </div>
  159. <!-- 分页 -->
  160. <el-pagination
  161. class="pagination-right"
  162. @size-change="handleSizeChange"
  163. @current-change="handleCurrentChange"
  164. :current-page="pagination.current"
  165. :page-sizes="[10, 20, 50, 100]"
  166. :page-size="pagination.size"
  167. :total="pagination.total"
  168. layout="total, sizes, prev, pager, next, jumper"
  169. ></el-pagination>
  170. </el-card>
  171. <!-- 创建/编辑模板弹窗 -->
  172. <el-dialog
  173. :title="dialogTitle"
  174. :visible.sync="editDialogVisible"
  175. width="600px"
  176. @close="handleDialogClose"
  177. >
  178. <el-form :model="editForm" :rules="editRules" ref="editForm" label-width="120px">
  179. <el-form-item label="模板名称" prop="title">
  180. <el-input v-model="editForm.title" placeholder="请输入模板名称"></el-input>
  181. </el-form-item>
  182. <el-form-item label="描述" prop="description">
  183. <el-input
  184. type="textarea"
  185. v-model="editForm.description"
  186. placeholder="请输入任务描述"
  187. :rows="3"
  188. ></el-input>
  189. </el-form-item>
  190. <el-form-item label="分类" prop="category">
  191. <el-select v-model="editForm.category" placeholder="请选择分类">
  192. <el-option label="学习" value="学习"></el-option>
  193. <el-option label="家务" value="家务"></el-option>
  194. <el-option label="运动" value="运动"></el-option>
  195. <el-option label="阅读" value="阅读"></el-option>
  196. <el-option label="生活习惯" value="生活习惯"></el-option>
  197. <el-option label="其他" value="其他"></el-option>
  198. </el-select>
  199. </el-form-item>
  200. <el-form-item label="积分" prop="points">
  201. <el-input-number v-model="editForm.points" :min="1" :max="1000" placeholder="完成奖励积分"></el-input-number>
  202. </el-form-item>
  203. <el-form-item label="难度" prop="difficulty">
  204. <el-select v-model="editForm.difficulty" placeholder="请选择难度">
  205. <el-option label="简单" value="easy"></el-option>
  206. <el-option label="中等" value="medium"></el-option>
  207. <el-option label="困难" value="hard"></el-option>
  208. </el-select>
  209. </el-form-item>
  210. <el-form-item label="推荐年龄" prop="recommendedAge">
  211. <el-input-number v-model="editForm.recommendedAge" :min="0" :max="18" placeholder="推荐年龄"></el-input-number>
  212. <span class="suffix-hint">岁及以上</span>
  213. </el-form-item>
  214. <el-form-item label="预计时长" prop="duration">
  215. <el-input-number v-model="editForm.duration" :min="1" :max="480" placeholder="预计时长"></el-input-number>
  216. <span class="suffix-hint">分钟</span>
  217. </el-form-item>
  218. <el-form-item label="完成方式" prop="completeTypes">
  219. <el-checkbox-group v-model="editForm.completeTypes">
  220. <el-checkbox label="checkin">打卡</el-checkbox>
  221. <el-checkbox label="text">文本</el-checkbox>
  222. <el-checkbox label="voice">语音</el-checkbox>
  223. <el-checkbox label="image">图片</el-checkbox>
  224. <el-checkbox label="video">视频</el-checkbox>
  225. </el-checkbox-group>
  226. </el-form-item>
  227. <el-form-item label="任务性质" prop="taskType">
  228. <el-radio-group v-model="editForm.taskType">
  229. <el-radio label="onetime">一次性任务</el-radio>
  230. <el-radio label="recurring">循环任务</el-radio>
  231. </el-radio-group>
  232. </el-form-item>
  233. <el-form-item label="频率" prop="frequency" v-if="editForm.taskType === 'recurring'">
  234. <el-select v-model="editForm.frequency" placeholder="请选择频率">
  235. <el-option label="每天" value="daily"></el-option>
  236. <el-option label="每周" value="weekly"></el-option>
  237. <el-option label="每月" value="monthly"></el-option>
  238. </el-select>
  239. </el-form-item>
  240. <el-form-item label="周期次数" prop="maxFrequency" v-if="editForm.taskType === 'recurring'">
  241. <el-input-number v-model="editForm.maxFrequency" :min="1" :max="100" placeholder="周期内最多完成次数"></el-input-number>
  242. <span class="suffix-hint-sm">
  243. 超过此次数不计积分
  244. </span>
  245. </el-form-item>
  246. <el-form-item label="需要审核" prop="needReview">
  247. <el-switch v-model="editForm.needReview" :active-value="1" :inactive-value="0"></el-switch>
  248. </el-form-item>
  249. <el-form-item label="审核方式" prop="reviewType" v-if="editForm.needReview === 1">
  250. <el-select v-model="editForm.reviewType" placeholder="请选择审核方式">
  251. <el-option label="创建人审核" value="creator"></el-option>
  252. <el-option label="家长审核" value="parent"></el-option>
  253. <el-option label="成长规划师审核" value="teacher"></el-option>
  254. <el-option label="AI自动审核" value="ai"></el-option>
  255. </el-select>
  256. </el-form-item>
  257. <el-form-item label="按分类审核" prop="reviewByCategory" v-if="editForm.needReview === 1 && editForm.reviewType === 'parent'">
  258. <el-switch v-model="editForm.reviewByCategory" :active-value="1" :inactive-value="0"></el-switch>
  259. <span class="suffix-hint-sm">
  260. 开启后,将按照分类自动分配审核人
  261. </span>
  262. </el-form-item>
  263. </el-form>
  264. <div slot="footer">
  265. <el-button @click="editDialogVisible = false">取消</el-button>
  266. <el-button type="primary" @click="submitEdit" :loading="submitting">确定</el-button>
  267. </div>
  268. </el-dialog>
  269. </div>
  270. </template>
  271. <script>
  272. import SortMixin from '@/mixins/SortMixin'
  273. import ListStateMixin from '@/mixins/ListStateMixin'
  274. import { getTaskTemplateList, createTaskTemplate, updateTaskTemplate, deleteTaskTemplate } from '@/api/admin'
  275. export default {
  276. name: 'TaskTemplates',
  277. mixins: [SortMixin, ListStateMixin],
  278. computed: {
  279. tableHeight() {
  280. return window.innerHeight - 340
  281. }
  282. },
  283. data() {
  284. return {
  285. loading: false,
  286. submitting: false,
  287. tableData: [],
  288. sortableColumns: { id: 'ID', title: '模板名称', category: '分类', points: '积分', difficulty: '难度', recommendedAge: '推荐年龄', duration: '时长', taskType: '性质', needReview: '需审核', isActive: '状态', createdAt: '创建时间' },
  289. searchForm: {
  290. category: '',
  291. difficulty: '',
  292. isActive: null
  293. },
  294. pagination: {
  295. current: 1,
  296. size: 10,
  297. total: 0
  298. },
  299. editDialogVisible: false,
  300. isCreate: false,
  301. editForm: {
  302. id: null,
  303. title: '',
  304. description: '',
  305. category: '',
  306. points: 10,
  307. difficulty: 'medium',
  308. recommendedAge: null,
  309. duration: null,
  310. completeTypes: ['checkin'],
  311. taskType: 'onetime',
  312. frequency: null,
  313. maxFrequency: null,
  314. needReview: 1,
  315. reviewType: 'creator',
  316. reviewByCategory: 0,
  317. isActive: 1
  318. },
  319. editRules: {
  320. title: [
  321. { required: true, message: '请输入模板名称', trigger: 'blur' }
  322. ],
  323. category: [
  324. { required: true, message: '请选择分类', trigger: 'change' }
  325. ],
  326. points: [
  327. { required: true, message: '请输入积分', trigger: 'blur' }
  328. ],
  329. difficulty: [
  330. { required: true, message: '请选择难度', trigger: 'change' }
  331. ]
  332. }
  333. }
  334. },
  335. computed: {
  336. dialogTitle() {
  337. return this.isCreate ? '新建任务模板' : '编辑任务模板'
  338. }
  339. },
  340. mounted() {
  341. this.loadTemplates()
  342. },
  343. methods: {
  344. loadList() {
  345. this.loadTemplates()
  346. },
  347. async loadTemplates() {
  348. this.loading = true
  349. try {
  350. const params = {
  351. page: this.pagination.current,
  352. size: this.pagination.size,
  353. ...this.searchForm
  354. }
  355. if (this.sortState.length > 0) params.sort = this.sortState
  356. const res = await getTaskTemplateList(params)
  357. this.tableData = res.data.records || res.data || []
  358. this.pagination.total = res.data.total || this.tableData.length
  359. } catch (error) {
  360. this.$message.error(error.message || '加载模板列表失败')
  361. } finally {
  362. this.loading = false
  363. }
  364. },
  365. handleSearch() {
  366. this.pagination.current = 1
  367. this.loadTemplates()
  368. },
  369. handleReset() {
  370. this.searchForm = {
  371. category: '',
  372. difficulty: '',
  373. isActive: null
  374. }
  375. this.handleSearch()
  376. },
  377. handleRefresh() {
  378. this.loadTemplates()
  379. },
  380. handleSizeChange(val) {
  381. this.pagination.size = val
  382. this.pagination.current = 1
  383. this.loadTemplates()
  384. },
  385. handleCurrentChange(val) {
  386. this.pagination.current = val
  387. this.loadTemplates()
  388. },
  389. handleCreate() {
  390. this.isCreate = true
  391. this.editForm = {
  392. id: null,
  393. title: '',
  394. description: '',
  395. category: '',
  396. points: 10,
  397. difficulty: 'medium',
  398. recommendedAge: null,
  399. duration: null,
  400. completeTypes: ['checkin'],
  401. taskType: 'onetime',
  402. frequency: null,
  403. maxFrequency: null,
  404. needReview: 1,
  405. reviewType: 'creator',
  406. reviewByCategory: 0,
  407. isActive: 1
  408. }
  409. this.editDialogVisible = true
  410. },
  411. handleEdit(row) {
  412. this.isCreate = false
  413. // 解析 completeTypes(如果是字符串则转为数组)
  414. let completeTypes = row.completeTypes
  415. if (typeof completeTypes === 'string') {
  416. try {
  417. completeTypes = JSON.parse(completeTypes)
  418. } catch (e) {
  419. completeTypes = ['checkin']
  420. }
  421. }
  422. this.editForm = {
  423. id: row.id,
  424. title: row.title,
  425. description: row.description || '',
  426. category: row.category,
  427. points: row.points,
  428. difficulty: row.difficulty,
  429. recommendedAge: row.recommendedAge,
  430. duration: row.duration,
  431. completeTypes: completeTypes || ['checkin'],
  432. taskType: row.taskType || 'onetime',
  433. frequency: row.frequency,
  434. maxFrequency: row.maxFrequency,
  435. needReview: row.needReview,
  436. reviewType: row.reviewType || 'creator',
  437. reviewByCategory: row.reviewByCategory || 0,
  438. isActive: row.isActive
  439. }
  440. this.editDialogVisible = true
  441. },
  442. handleDialogClose() {
  443. this.$refs.editForm.resetFields()
  444. },
  445. async submitEdit() {
  446. this.$refs.editForm.validate(async (valid) => {
  447. if (valid) {
  448. this.submitting = true
  449. try {
  450. // 准备提交数据,确保 completeTypes 为 JSON 字符串
  451. const submitData = {
  452. ...this.editForm,
  453. completeTypes: JSON.stringify(this.editForm.completeTypes)
  454. }
  455. if (this.isCreate) {
  456. await createTaskTemplate(submitData)
  457. this.$message.success('创建成功')
  458. } else {
  459. await updateTaskTemplate(this.editForm.id, submitData)
  460. this.$message.success('更新成功')
  461. }
  462. this.editDialogVisible = false
  463. this.loadTemplates()
  464. } catch (error) {
  465. this.$message.error(error.message || (this.isCreate ? '创建失败' : '更新失败'))
  466. } finally {
  467. this.submitting = false
  468. }
  469. }
  470. })
  471. },
  472. async handleStatusChange(row) {
  473. try {
  474. await updateTaskTemplate(row.id, { isActive: row.isActive })
  475. this.$message.success(row.isActive === 1 ? '已启用' : '已禁用')
  476. } catch (error) {
  477. this.$message.error(error.message || '状态更新失败')
  478. // 恢复原状态
  479. row.isActive = row.isActive === 1 ? 0 : 1
  480. }
  481. },
  482. handleDelete(row) {
  483. this.$confirm(`确定要删除模板 "${row.title}" 吗?`, '提示', {
  484. confirmButtonText: '确定',
  485. cancelButtonText: '取消',
  486. type: 'warning'
  487. }).then(async () => {
  488. try {
  489. await deleteTaskTemplate(row.id)
  490. this.$message.success('删除成功')
  491. this.loadTemplates()
  492. } catch (error) {
  493. this.$message.error(error.message || '删除失败')
  494. }
  495. }).catch(() => {})
  496. },
  497. getCategoryType(category) {
  498. const types = {
  499. '学习': 'primary',
  500. '家务': 'success',
  501. '运动': 'warning',
  502. '阅读': 'info',
  503. '生活习惯': 'danger'
  504. }
  505. return types[category] || 'primary'
  506. },
  507. getDifficultyType(difficulty) {
  508. const types = {
  509. easy: 'success',
  510. medium: 'warning',
  511. hard: 'danger'
  512. }
  513. return types[difficulty] || 'info'
  514. },
  515. getDifficultyText(difficulty) {
  516. const texts = {
  517. easy: '简单',
  518. medium: '中等',
  519. hard: '困难'
  520. }
  521. return texts[difficulty] || difficulty
  522. },
  523. }
  524. }
  525. </script>
  526. <style scoped>
  527. .admin-page { padding: 24px; }
  528. /* == C 批内联清理工具类 == */
  529. .mb-20 { margin-bottom: 24px; }
  530. .full-width { width: 100%; }
  531. .text-error { color: var(--adm-error); }
  532. .pagination-right { margin-top: 24px; text-align: right; }
  533. .suffix-hint { margin-left: 10px; color: var(--adm-text-45); }
  534. .suffix-hint-sm { margin-left: 10px; color: var(--adm-text-45); font-size: 12px; }
  535. </style>