TargetEquipmentMap.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. <template>
  2. <div class="section-card">
  3. <!-- 头部 -->
  4. <div class="section-header cursor-pointer" @click="toggleCollapse">
  5. <h4 class="section-title flex items-center justify-between">
  6. <span class="flex items-center">
  7. <i class="el-icon-link mr-2"></i>
  8. 时序计划
  9. </span>
  10. <i
  11. class="el-icon-arrow-right transition-transform duration-300"
  12. :class="{ 'rotate-90': !isCollapsed, '-rotate-90': isCollapsed }"
  13. />
  14. </h4>
  15. </div>
  16. <!-- 主体:检索 + 表格 -->
  17. <div class="body p-4" v-show="!isCollapsed" ref="bodyRef">
  18. <!-- 检索条 -->
  19. <div class="toolbar" ref="toolbarRef">
  20. <div class="filters">
  21. <el-select
  22. v-model="filterDomain"
  23. clearable
  24. placeholder="打击域"
  25. size="small"
  26. class="mr8"
  27. @change="onDomainChange"
  28. >
  29. <el-option label="对陆" value="对陆" />
  30. <el-option label="对海" value="对海" />
  31. </el-select>
  32. <el-input
  33. v-model="filterKeyword"
  34. clearable
  35. placeholder="关键事件"
  36. size="small"
  37. class="mr8 w220"
  38. @change="onKeywordChange"
  39. >
  40. <i slot="prefix" class="el-icon-search" />
  41. </el-input>
  42. <el-button size="small" @click="resetFilters">重置</el-button>
  43. </div>
  44. <div class="ops">
  45. <el-button
  46. type="primary"
  47. size="small"
  48. icon="el-icon-plus"
  49. @click="openAdd"
  50. >新增</el-button>
  51. </div>
  52. </div>
  53. <!-- 表格 -->
  54. <el-table
  55. :data="filteredData"
  56. :height="tableHeight"
  57. border
  58. size="small"
  59. :empty-text="emptyText"
  60. :header-cell-style="{background: 'rgba(30, 58, 138, 0.3)', color: '#bae6fd', borderColor: 'rgba(14, 165, 233, 0.2)'}"
  61. :row-style="{background: 'rgba(15, 23, 42, 0.5)', color: '#e0f2fe', borderColor: 'rgba(14, 165, 233, 0.1)'}"
  62. >
  63. <el-table-column type="index" label="序号" align="center" width="80"/>
  64. <el-table-column prop="strikeDomain" label="打击域" align="center" min-width="100"/>
  65. <el-table-column prop="timing" label="时序" align="center" min-width="160"/>
  66. <el-table-column prop="keyEvent" label="关键事件" align="center" min-width="220" show-overflow-tooltip/>
  67. <el-table-column label="操作" width="180" align="center" fixed="right">
  68. <template slot-scope="scope">
  69. <el-tooltip content="查看" placement="top" :open-delay="200">
  70. <el-button
  71. type="text"
  72. icon="el-icon-view"
  73. class="p-1 text-blue-400 action-btn"
  74. @click="openForm('view', scope.row)"
  75. />
  76. </el-tooltip>
  77. <el-tooltip content="编辑" placement="top" :open-delay="200">
  78. <el-button
  79. type="text"
  80. icon="el-icon-edit"
  81. class="p-1 text-blue-400 action-btn"
  82. @click="openForm('edit', scope.row)"
  83. />
  84. </el-tooltip>
  85. <el-tooltip content="删除" placement="top" :open-delay="200">
  86. <el-button
  87. type="text"
  88. icon="el-icon-delete"
  89. class="p-1 text-blue-400 action-btn"
  90. @click="confirmDelete(scope.row)"
  91. />
  92. </el-tooltip>
  93. </template>
  94. </el-table-column>
  95. </el-table>
  96. <!-- 完全无数据空态 -->
  97. <el-empty
  98. v-if="!hasAnyData"
  99. description="暂无时序计划"
  100. :image-size="80"
  101. class="abs-empty"
  102. />
  103. </div>
  104. <!-- 新增抽屉:多选关键事件 -->
  105. <el-drawer
  106. title="新增时序(多选)"
  107. :visible.sync="dlgAddVisible"
  108. size="60%"
  109. :close-on-click-modal="false"
  110. :append-to-body="true"
  111. destroy-on-close
  112. >
  113. <div class="drawer-body">
  114. <div class="drawer-toolbar">
  115. <el-input
  116. v-model.trim="addSearch"
  117. size="small"
  118. clearable
  119. placeholder="搜索关键事件/时序/打击域"
  120. class="w260 mr8"
  121. >
  122. <i slot="prefix" class="el-icon-search" />
  123. </el-input>
  124. <el-select v-model="addDomain" size="small" clearable placeholder="按打击域筛选" class="mr8">
  125. <el-option label="对陆" value="对陆" />
  126. <el-option label="对海" value="对海" />
  127. </el-select>
  128. <el-button size="small" @click="resetAddFilters">重置</el-button>
  129. </div>
  130. <el-table
  131. ref="addTableRef"
  132. :data="addFiltered"
  133. height="420"
  134. border
  135. size="small"
  136. @selection-change="onAddSelectionChange"
  137. :header-cell-style="{background: 'rgba(30, 58, 138, 0.3)', color: '#bae6fd', borderColor: 'rgba(14, 165, 233, 0.2)'}"
  138. :row-style="{background: 'rgba(15, 23, 42, 0.5)', color: '#e0f2fe', borderColor: 'rgba(14, 165, 233, 0.1)'}"
  139. >
  140. <el-table-column type="selection" width="50" />
  141. <el-table-column prop="strikeDomain" label="打击域" width="80" align="center" />
  142. <el-table-column prop="timing" label="时序" width="130" align="center" />
  143. <el-table-column prop="keyEvent" label="关键事件" min-width="280" show-overflow-tooltip />
  144. </el-table>
  145. <div class="drawer-footer">
  146. <span class="hint">已选择:{{ addSelection.length }} 条</span>
  147. <div>
  148. <el-button @click="dlgAddVisible=false">取 消</el-button>
  149. <el-button type="primary" @click="submitAddBatch">确 定</el-button>
  150. </div>
  151. </div>
  152. </div>
  153. </el-drawer>
  154. <!-- 统一表单弹窗(查看 / 编辑共用) -->
  155. <el-dialog
  156. :title="isViewMode ? '查看时序' : '编辑时序'"
  157. :visible.sync="dlgFormVisible"
  158. width="520px"
  159. :close-on-click-modal="false"
  160. :append-to-body="true"
  161. destroy-on-close
  162. >
  163. <el-form
  164. :model="form"
  165. :rules="rules"
  166. ref="formRef"
  167. label-width="96px"
  168. size="small"
  169. >
  170. <el-form-item label="打击域" prop="strikeDomain">
  171. <el-select v-model="form.strikeDomain" :disabled="isViewMode" placeholder="选择打击域">
  172. <el-option label="对陆" value="对陆" />
  173. <el-option label="对海" value="对海" />
  174. </el-select>
  175. </el-form-item>
  176. <!-- 时序:单位秒,不做格式化。构造为 T、T+10、或 T-10~T+20 -->
  177. <el-form-item label="时序" prop="timing">
  178. <div class="timing-input-group">
  179. <!-- 起始 -->
  180. <div class="timing-input-item">
  181. <span>T</span>
  182. <el-select v-model="timingStart.operator" :disabled="isViewMode" size="mini" style="width: 60px;">
  183. <el-option label="+" value="+" />
  184. <el-option label="-" value="-" />
  185. </el-select>
  186. <el-input-number
  187. v-model="timingStart.value"
  188. :disabled="isViewMode"
  189. :min="0"
  190. :max="999999"
  191. controls-position="right"
  192. size="mini"
  193. style="width: 100px;"
  194. placeholder="秒"
  195. />
  196. </div>
  197. <span class="tilde">~</span>
  198. <!-- 结束 -->
  199. <div class="timing-input-item">
  200. <span>T</span>
  201. <el-select v-model="timingEnd.operator" :disabled="isViewMode" size="mini" style="width: 60px;">
  202. <el-option label="+" value="+" />
  203. <el-option label="-" value="-" />
  204. </el-select>
  205. <el-input-number
  206. v-model="timingEnd.value"
  207. :disabled="isViewMode"
  208. :min="0"
  209. :max="999999"
  210. controls-position="right"
  211. size="mini"
  212. style="width: 100px;"
  213. placeholder="秒"
  214. />
  215. </div>
  216. </div>
  217. <!-- 预览(实时展示最终会提交/展示的时序字符串) -->
  218. <div class="timing-preview">结果:{{ timingPreview }}</div>
  219. </el-form-item>
  220. <el-form-item label="关键事件" prop="keyEvent">
  221. <el-input
  222. type="textarea"
  223. :rows="3"
  224. v-model.trim="form.keyEvent"
  225. :disabled="isViewMode"
  226. placeholder="填写关键事件描述"
  227. />
  228. </el-form-item>
  229. </el-form>
  230. <span slot="footer" class="dialog-footer">
  231. <el-button @click="dlgFormVisible=false">{{ isViewMode ? '关 闭' : '取 消' }}</el-button>
  232. <el-button v-if="!isViewMode" type="primary" @click="submitForm">保 存</el-button>
  233. </span>
  234. </el-dialog>
  235. </div>
  236. </template>
  237. <script>
  238. export default {
  239. name: 'TargetEquipmentMap',
  240. props: {
  241. // 表格数据由父组件持有
  242. mapData: { type: Array, default: () => [] },
  243. // 关键事件总表(新增抽屉多选)
  244. // timing 建议也用本规则:T / T+10 / T-10~T+20
  245. eventCatalog: {
  246. type: Array,
  247. default: () => ([
  248. { id: 'E1', strikeDomain: '对陆', timing: 'T+30', keyEvent: '测量系统上电' },
  249. { id: 'E2', strikeDomain: '对陆', timing: 'T+60', keyEvent: '目标进入监视区' },
  250. { id: 'E3', strikeDomain: '对海', timing: 'T+90', keyEvent: '干扰装备启动' },
  251. { id: 'E4', strikeDomain: '对海', timing: 'T+120', keyEvent: '目标锁定' },
  252. { id: 'E5', strikeDomain: '对陆', timing: 'T+150', keyEvent: '导弹准备' },
  253. { id: 'E6', strikeDomain: '对海', timing: 'T+180', keyEvent: '导弹发射' },
  254. { id: 'E7', strikeDomain: '对陆', timing: 'T+210', keyEvent: '数据记录开始' },
  255. { id: 'E8', strikeDomain: '对海', timing: 'T+240', keyEvent: '拦截评估' }
  256. ])
  257. }
  258. },
  259. data() {
  260. return {
  261. isCollapsed: false,
  262. // 检索条件
  263. filterDomain: '',
  264. filterKeyword: '',
  265. // 表格高度
  266. tableHeight: 320,
  267. // 新增抽屉
  268. dlgAddVisible: false,
  269. addSearch: '',
  270. addDomain: '',
  271. addSelection: [],
  272. // 统一弹窗
  273. dlgFormVisible: false,
  274. dlgMode: 'view', // 'view' | 'edit'
  275. form: this.initForm(),
  276. // 时序控件:value=null 表示未填
  277. timingStart: {operator: '+', value: null},
  278. timingEnd: {operator: '+', value: null},
  279. // 校验
  280. rules: {
  281. strikeDomain: [{required: true, message: '请选择打击域', trigger: 'change'}],
  282. keyEvent: [{required: true, message: '请输入关键事件', trigger: 'blur'}],
  283. // timing 允许:T、T+10、T-10、T-10~T+20
  284. timing: [{
  285. validator: (rule, v, cb) => {
  286. const ok = /^T(?:[+-]\d+)?(?:~T[+-]\d+)?$/.test(String(v || ''));
  287. ok ? cb() : cb(new Error('时序格式不合法(示例:T、T+10、T-10~T+20)'));
  288. },
  289. trigger: 'change'
  290. }]
  291. },
  292. // 尺寸观察
  293. _ro: null
  294. };
  295. },
  296. computed: {
  297. isViewMode() {
  298. return this.dlgMode === 'view';
  299. },
  300. hasAnyData() {
  301. return Array.isArray(this.mapData) && this.mapData.length > 0;
  302. },
  303. filteredData() {
  304. if (!this.hasAnyData) return [];
  305. const kw = (this.filterKeyword || '').trim();
  306. return this.mapData.filter(row => {
  307. const okDomain = this.filterDomain ? String(row.strikeDomain) === this.filterDomain : true;
  308. const okKey = kw ? String(row.keyEvent || '').includes(kw) : true;
  309. return okDomain && okKey;
  310. });
  311. },
  312. emptyText() {
  313. if (!this.hasAnyData) return '暂无数据';
  314. if (this.filterDomain || (this.filterKeyword || '').trim()) return '无匹配数据';
  315. return '暂无数据';
  316. },
  317. /** 抽屉内:筛选关键事件总表 */
  318. addFiltered() {
  319. let list = Array.isArray(this.eventCatalog) ? this.eventCatalog.slice() : [];
  320. const kw = (this.addSearch || '').trim();
  321. if (this.addDomain) list = list.filter(x => String(x.strikeDomain) === this.addDomain);
  322. if (kw) {
  323. list = list.filter(x =>
  324. String(x.keyEvent || '').includes(kw) ||
  325. String(x.timing || '').includes(kw) ||
  326. String(x.strikeDomain || '').includes(kw)
  327. );
  328. }
  329. return list;
  330. },
  331. /** 预览当前时序字符串(不格式化秒) */
  332. timingPreview() {
  333. return this.buildTimingString(
  334. this.timingStart.operator, this.timingStart.value,
  335. this.timingEnd.operator, this.timingEnd.value
  336. );
  337. }
  338. },
  339. watch: {
  340. isCollapsed(nv) {
  341. if (!nv) this.$nextTick(this.calcTableHeight);
  342. }
  343. },
  344. mounted() {
  345. console.log("eventCatalog",this.eventCatalog)
  346. this.$nextTick(this.calcTableHeight);
  347. if (window.ResizeObserver) {
  348. this._ro = new ResizeObserver(() => this.calcTableHeight());
  349. const body = this.$refs.bodyRef;
  350. if (body) this._ro.observe(body);
  351. } else {
  352. window.addEventListener('resize', this.calcTableHeight);
  353. }
  354. },
  355. beforeDestroy() {
  356. if (this._ro) {
  357. this._ro.disconnect();
  358. this._ro = null;
  359. }
  360. window.removeEventListener('resize', this.calcTableHeight);
  361. },
  362. methods: {
  363. /* ========== 基础 ========== */
  364. initForm() {
  365. return {id: '', strikeDomain: '', timing: 'T', keyEvent: ''};
  366. },
  367. toggleCollapse() {
  368. this.isCollapsed = !this.isCollapsed;
  369. },
  370. /* ========== 表格检索 ========== */
  371. onDomainChange(val) {
  372. this.filterDomain = val || '';
  373. this.$emit('search-change', {strikeDomain: this.filterDomain, keyEvent: (this.filterKeyword || '').trim()});
  374. this.$nextTick(this.calcTableHeight);
  375. },
  376. onKeywordChange(val) {
  377. this.filterKeyword = (val || '').trim();
  378. this.$emit('search-change', {strikeDomain: this.filterDomain, keyEvent: this.filterKeyword});
  379. this.$nextTick(this.calcTableHeight);
  380. },
  381. resetFilters() {
  382. this.filterDomain = '';
  383. this.filterKeyword = '';
  384. this.$emit('search-change', {strikeDomain: '', keyEvent: ''});
  385. this.$nextTick(this.calcTableHeight);
  386. },
  387. /* ========== 表格高度计算 ========== */
  388. calcTableHeight() {
  389. const bodyEl = this.$refs.bodyRef;
  390. if (!bodyEl || this.isCollapsed) return;
  391. const bodyH = bodyEl.clientHeight || 0;
  392. const toolbarH = this.$refs.toolbarRef ? this.$refs.toolbarRef.offsetHeight : 0;
  393. const usable = Math.max(0, bodyH - toolbarH);
  394. const h = Math.floor(usable * 0.6);
  395. this.tableHeight = Math.max(h, 240);
  396. },
  397. /* ========== 新增(抽屉) ========== */
  398. openAdd() {
  399. this.addSearch = '';
  400. this.addDomain = '';
  401. this.addSelection = [];
  402. this.dlgAddVisible = true;
  403. console.log(this.addFiltered,"sss===")
  404. this.$nextTick(() => {
  405. if (this.$refs.addTableRef) this.$refs.addTableRef.clearSelection();
  406. });
  407. },
  408. onAddSelectionChange(rows) {
  409. this.addSelection = Array.isArray(rows) ? rows : [];
  410. },
  411. resetAddFilters() {
  412. this.addSearch = '';
  413. this.addDomain = '';
  414. this.$nextTick(() => {
  415. if (this.$refs.addTableRef) this.$refs.addTableRef.clearSelection();
  416. });
  417. },
  418. submitAddBatch() {
  419. if (!this.addSelection.length) return this.$message.warning('请至少选择一条关键事件');
  420. const items = this.addSelection.map(x => ({
  421. id: this.genId(),
  422. strikeDomain: x.strikeDomain,
  423. timing: x.timing, // 直接使用目录中的 timing(T / T±n / T±n~T±m)
  424. keyEvent: x.keyEvent
  425. }));
  426. this.$emit('create-batch', items);
  427. items.forEach(it => this.$emit('create', it)); // 兼容:逐条
  428. this.dlgAddVisible = false;
  429. },
  430. /* ========== 查看 / 编辑(统一弹窗) ========== */
  431. openForm(mode, row) {
  432. this.dlgMode = mode === 'edit' ? 'edit' : 'view';
  433. this.form = {...(row || this.initForm())};
  434. if (!this.form.id) this.form.id = this.genId();
  435. // 解析 timing -> 控件
  436. this.applyTimingToControls(this.form.timing);
  437. this.dlgFormVisible = true;
  438. this.$nextTick(() => this.$refs.formRef && this.$refs.formRef.clearValidate());
  439. },
  440. submitForm() {
  441. // 仅编辑模式提交
  442. if (this.isViewMode) return (this.dlgFormVisible = false);
  443. // 用控件值构造 timing 字符串
  444. this.form.timing = this.buildTimingString(
  445. this.timingStart.operator, this.timingStart.value,
  446. this.timingEnd.operator, this.timingEnd.value
  447. );
  448. this.$refs.formRef.validate(valid => {
  449. if (!valid) return;
  450. const payload = {...this.form};
  451. this.$emit('update', payload);
  452. this.dlgFormVisible = false;
  453. });
  454. },
  455. /* ========== 时序字符串 <-> 控件 ========== */
  456. /**
  457. * 构造时序字符串(不格式化秒)
  458. * 规则:
  459. * - 两端都未填 -> "T"
  460. * - 单端:T±n;若 n 为 0 -> "T"
  461. * - 双端:T±a~T±b;若 a=0 且 b=0 -> "T"
  462. * - 若一端为 0,另一端非 0 -> 返回单端形式(只保留非 0 的那端)
  463. */
  464. buildTimingString(op1, val1, op2, val2) {
  465. const has1 = Number.isFinite(val1);
  466. const has2 = Number.isFinite(val2);
  467. const n1 = has1 ? Number(val1) : null;
  468. const n2 = has2 ? Number(val2) : null;
  469. if (!has1 && !has2) return 'T';
  470. // 单端
  471. if (has1 && !has2) return n1 === 0 ? 'T' : `T${op1}${n1}`;
  472. if (!has1 && has2) return n2 === 0 ? 'T' : `T${op2}${n2}`;
  473. // 双端
  474. if (n1 === 0 && n2 === 0) return 'T';
  475. if (n1 === 0 && n2 !== 0) return `T${op2}${n2}`;
  476. if (n1 !== 0 && n2 === 0) return `T${op1}${n1}`;
  477. return `T${op1}${n1}~T${op2}${n2}`;
  478. },
  479. /** 解析字符串到控件,支持:T / T±n / T±a~T±b */
  480. applyTimingToControls(str) {
  481. const s = String(str || '').trim();
  482. // 默认值
  483. this.timingStart = {operator: '+', value: null};
  484. this.timingEnd = {operator: '+', value: null};
  485. if (!s || s === 'T') return;
  486. // 范围:T±a~T±b
  487. let m = /^T([+-])(\d+)~T([+-])(\d+)$/.exec(s);
  488. if (m) {
  489. this.timingStart.operator = m[1];
  490. this.timingStart.value = Number(m[2]);
  491. this.timingEnd.operator = m[3];
  492. this.timingEnd.value = Number(m[4]);
  493. return;
  494. }
  495. // 单端:T±n
  496. m = /^T([+-])(\d+)$/.exec(s);
  497. if (m) {
  498. this.timingStart.operator = m[1];
  499. this.timingStart.value = Number(m[2]);
  500. }
  501. },
  502. /* ========== 删除 ========== */
  503. confirmDelete(row) {
  504. this.$confirm('确定删除该条时序吗?', '提示', {type: 'warning'})
  505. .then(() => this.$emit('delete', row))
  506. .catch(() => {
  507. });
  508. },
  509. /* ========== 工具 ========== */
  510. genId() {
  511. return 'S' + Date.now().toString(36) + Math.random().toString(36).slice(2, 7);
  512. }
  513. }
  514. };
  515. </script>
  516. <style scoped>
  517. .section-card {
  518. background-color: rgba(15, 23, 42, 0.7);
  519. border: 1px solid rgba(14, 165, 233, 0.2);
  520. border-radius: 4px;
  521. overflow: hidden;
  522. }
  523. .section-header {
  524. background-color: rgba(30, 58, 138, 0.3);
  525. padding: 8px 16px;
  526. border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  527. }
  528. .section-title {
  529. color: #bae6fd;
  530. font-size: 14px;
  531. margin: 0;
  532. }
  533. .cursor-pointer {
  534. cursor: pointer;
  535. }
  536. .rotate-90 {
  537. transform: rotate(90deg);
  538. }
  539. .-rotate-90 {
  540. transform: rotate(-90deg);
  541. }
  542. .el-icon-arrow-right {
  543. color: #94a3b8;
  544. }
  545. .body {
  546. position: relative;
  547. min-height: 200px;
  548. }
  549. /* 检索条 */
  550. .toolbar {
  551. display: flex;
  552. justify-content: space-between;
  553. align-items: center;
  554. margin-bottom: 10px;
  555. }
  556. .filters {
  557. display: flex;
  558. align-items: center;
  559. flex-wrap: wrap;
  560. }
  561. .mr8 {
  562. margin-right: 8px;
  563. }
  564. .w220 {
  565. width: 220px;
  566. }
  567. /* 空态覆盖整个主体 */
  568. .abs-empty {
  569. position: absolute;
  570. inset: 0;
  571. display: flex;
  572. align-items: center;
  573. justify-content: center;
  574. pointer-events: none;
  575. }
  576. /* 抽屉 */
  577. .drawer-body {
  578. display: flex;
  579. flex-direction: column;
  580. height: 100%;
  581. }
  582. .drawer-toolbar {
  583. display: flex;
  584. align-items: center;
  585. margin-bottom: 8px;
  586. }
  587. .w260 {
  588. width: 260px;
  589. }
  590. .drawer-footer {
  591. display: flex;
  592. align-items: center;
  593. justify-content: space-between;
  594. margin-top: 10px;
  595. }
  596. .hint {
  597. font-size: 12px;
  598. color: #9aa0a6;
  599. }
  600. /* 统一表单:时序控件 */
  601. .timing-input-group {
  602. display: flex;
  603. align-items: center;
  604. gap: 10px;
  605. }
  606. .timing-input-item {
  607. display: inline-flex;
  608. align-items: center;
  609. gap: 6px;
  610. }
  611. .tilde {
  612. opacity: 0.7;
  613. }
  614. .timing-preview {
  615. margin-top: 6px;
  616. font-size: 12px;
  617. color: #9aa0a6;
  618. }
  619. /* 操作按钮 */
  620. .action-btn:hover {
  621. filter: brightness(1.15);
  622. }
  623. </style>