conditionAssistance.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722
  1. <template>
  2. <BasicModal
  3. @register="register"
  4. title="风机运行工况辅助决策"
  5. :maskStyle="{ backgroundColor: '#000000aa' }"
  6. width="1200px"
  7. v-bind="$attrs"
  8. @ok="onSubmit"
  9. @cancel="onSubmit"
  10. :canFullscreen="false"
  11. :destroyOnClose="true"
  12. :footer="null"
  13. >
  14. <div class="modal-box">
  15. <div class="right-box">
  16. <!-- <div class="box-title">风机信息</div> -->
  17. <dv-decoration7 style="height: 20px">
  18. <div class="box-title">风机信息</div>
  19. </dv-decoration7>
  20. <div class="info-container">
  21. <template v-if="isMock">
  22. <div v-for="(item, index) in fanInfo" class="info-item" :key="index">
  23. <div class="title">{{ item.title }}:</div>
  24. <div class="value">{{ fanInfoData && fanInfoData[item.code] ? fanInfoData[item.code] : '-' }}</div>
  25. </div>
  26. </template>
  27. <template v-else>
  28. <div v-for="(item, index) in columns" class="info-item" :key="index">
  29. <div class="title">{{ item['title'] }}:</div>
  30. <div class="value">{{ selectData && selectData[item['dataIndex']] ? selectData[item['dataIndex']] : '-' }}</div>
  31. </div>
  32. </template>
  33. </div>
  34. </div>
  35. <div class="center-box">
  36. <a-spin :spinning="loadding" tip="正在计算,请稍等。。。">
  37. <div ref="chartRef" class="info-echarts" style="width: 450px; height: 375px"></div>
  38. <div v-if="resultObj" class="result-tip">
  39. 最佳工况点为
  40. <span style="color: #9a60b4; padding: 0 10px; font-weight: 600">{{ parseInt(resultObj.Hz) + (showFre ? 'Hz' : '°') }}</span>
  41. <span style="color: #c60000; padding: 0 10px; font-weight: 600">{{ formatNum(resultObj.x) }} m³/s</span>
  42. <span style="color: #c60000; padding: 0 10px; font-weight: 600">{{ formatNum(resultObj.y) }} Pa</span></div
  43. >
  44. </a-spin>
  45. </div>
  46. <div class="left-box">
  47. <!-- <div class="box-title">曲线方程</div> -->
  48. <dv-decoration7 style="height: 20px">
  49. <div class="box-title">曲线方程</div>
  50. </dv-decoration7>
  51. <div class="info-lines">
  52. <div v-for="(item, index) in lineEquation" class="info-item" :key="index">
  53. <div class="title">{{ item }}</div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="setting-box">
  59. <!-- <div class="left-buttons"> -->
  60. <!-- <div class="btn btn1" @click="edit('info')">编辑风机信息</div> -->
  61. <!-- <div class="btn btn1" @click="edit('line')">编辑特性曲线</div> -->
  62. <!-- 风机当前角度:<span>{{ selectData.bladeAngle }} &nbsp;°</span> -->
  63. <!-- </div> -->
  64. <!-- <div class="border-clip"></div> -->
  65. <div class="right-inputs">
  66. <div class="vent-flex-row">
  67. <div class="input-title">风量(m³/s):</div>
  68. <Input class="input-box" size="large" v-model:value="uQ" />
  69. <div class="input-title">风压(Pa):</div>
  70. <Input class="input-box" size="large" v-model:value="uH" />
  71. </div>
  72. <div class="btn btn1" @click="makeLine">决策工况</div>
  73. </div>
  74. </div>
  75. <!-- <div v-if="formShow" class="is-close" :class="{ 'is-open': formShow }">
  76. <a-divider orientation="left" style="border-color: #00d8ff22">{{ formType }}</a-divider>
  77. <BasicForm @register="registerForm" @submit="handleSubmit" :schemas="columns" />
  78. </div> -->
  79. </BasicModal>
  80. </template>
  81. <script lang="ts" setup>
  82. //ts语法
  83. import { ref, onMounted, reactive, nextTick, defineProps, defineEmits, watch } from 'vue';
  84. import echarts from '/@/utils/lib/echarts';
  85. import { setOption, initData, fanInfoData, fanInfo, getSchamas, getSchamas1, lineFormData } from '../main.data.ts';
  86. import { BasicModal, useModalInner } from '/@/components/Modal';
  87. import { BasicForm, useForm } from '/@/components/Form/index';
  88. import { Input } from 'ant-design-vue';
  89. import { Decoration7 as DvDecoration7 } from '@kjgl77/datav-vue3';
  90. import { message } from 'ant-design-vue';
  91. import { formatNum } from '/@/utils/ventutil';
  92. import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
  93. import { useGlobSetting } from '/@/hooks/setting';
  94. const { sysOrgCode } = useGlobSetting();
  95. const props = defineProps({
  96. deviceType: {
  97. type: String,
  98. },
  99. selectData: {
  100. type: Object,
  101. default: () => {},
  102. },
  103. m3: {
  104. type: Number,
  105. default: 670.8,
  106. },
  107. });
  108. const emit = defineEmits(['close', 'register', 'openModal']);
  109. type AssistanceItemType = {
  110. angle: number;
  111. Hz: number;
  112. a: number;
  113. b: number;
  114. c: number;
  115. min: number;
  116. max: number;
  117. };
  118. const columns = ref([]);
  119. const showFre = ref(true); // 是否显示频率曲线, 是显示,不是显示角度
  120. const isMock = false;
  121. let option = reactive({});
  122. // 注册 modal
  123. const [register, { closeModal }] = useModalInner(() => {
  124. nextTick(() => {
  125. computeAssistance();
  126. option = setOption(props.deviceType);
  127. if (option['xAxis']) option['xAxis']['data'] = xData;
  128. option['series'] = yDataList;
  129. initEcharts();
  130. });
  131. });
  132. const loadding = ref<boolean>(false);
  133. const formShow = ref(false);
  134. const formType = ref('');
  135. const chartRef = ref();
  136. const myChart = ref();
  137. const refresh = ref(true);
  138. const xData: any[] = [];
  139. const yDataList: [] = [];
  140. let lineNum = 0;
  141. const lineEquation = ref<string[]>([]);
  142. const deviceData = ref({});
  143. const uQ = ref<string | undefined>(undefined); // 100 - 400
  144. const uH = ref<number | undefined>(undefined); // - 1000
  145. const resultObj = ref<{ x: number; y: number; Hz: number } | null>(null);
  146. const [registerForm, {}] = useForm({
  147. labelWidth: 120,
  148. actionColOptions: {
  149. span: 24,
  150. },
  151. compact: true,
  152. showSubmitButton: true,
  153. submitButtonOptions: {
  154. text: '提交',
  155. preIcon: '',
  156. },
  157. showResetButton: true,
  158. resetButtonOptions: {
  159. text: '关闭',
  160. preIcon: '',
  161. },
  162. resetFunc: async () => {
  163. formShow.value = false;
  164. },
  165. });
  166. function computeAssistance() {
  167. const assistanceData = initData(props.deviceType);
  168. lineNum = 0;
  169. const assistanceDataList = [];
  170. const lineEquationList: string[] = [];
  171. for (const key in assistanceData) {
  172. const item = assistanceData[key];
  173. assistanceDataList.push(item);
  174. lineEquationList.push(
  175. `H${parseInt(item['Hz'])} = ${item['a']}Q² ${Number(item['b']) > 0 ? '+' : '-'} ${Math.abs(Number(item['b'])).toFixed(5)}Q ${
  176. Number(item['c']) > 0 ? '+' : '-'
  177. } ${Math.abs(Number(item['c'])).toFixed(5)}`
  178. );
  179. }
  180. lineEquation.value = lineEquationList;
  181. lineNum = assistanceDataList.length;
  182. // const xDataMin =
  183. // Math.min.apply(
  184. // Math,
  185. // assistanceDataList.map((item) => {
  186. // return item.min;
  187. // })
  188. // ) - 10;
  189. let xDataMin = Math.min.apply(
  190. Math,
  191. assistanceDataList.map((item) => {
  192. return item.min;
  193. })
  194. );
  195. let xDataMax = Math.max.apply(
  196. Math,
  197. assistanceDataList.map((item) => {
  198. return item.max;
  199. })
  200. );
  201. xDataMin = Number((xDataMin - (xDataMax - xDataMin) / 10).toFixed(0));
  202. xDataMax = Number((xDataMax + (xDataMax - xDataMin) / 10).toFixed(0));
  203. fanInfoData.flfw = `${xDataMin}~${xDataMax}`;
  204. const computeItem = (item: AssistanceItemType) => {
  205. const min = item.min;
  206. const max = item.max;
  207. const HList: number[] = [];
  208. for (let i = xDataMin; i <= xDataMax; i++) {
  209. if (i < min) {
  210. HList.push(null);
  211. } else if (i > max) {
  212. HList.push(null);
  213. } else {
  214. HList.push(item.a * i * i + item.b * i + item.c);
  215. }
  216. }
  217. return HList;
  218. };
  219. for (const key in assistanceData) {
  220. const element: AssistanceItemType = assistanceData[key];
  221. const yData: number[] = computeItem(element);
  222. const series = {
  223. name: `${element['Hz']}${showFre.value ? 'Hz' : '°'}`,
  224. type: 'line',
  225. smooth: true,
  226. showSymbol: false,
  227. symbol: 'none',
  228. emphasis: {
  229. focus: 'series',
  230. },
  231. itemStyle: { normal: { label: { show: true } } },
  232. lineStyle: {
  233. width: 1,
  234. color: '#ffffff88',
  235. },
  236. zlevel: 0,
  237. z: 1,
  238. endLabel: {
  239. show: true,
  240. formatter: '{a}',
  241. distance: 0,
  242. color: '#39E9FE99',
  243. backgroundColor: 'transparent',
  244. padding: [3, 3, 2, 3],
  245. },
  246. data: yData,
  247. };
  248. yDataList.push(series);
  249. }
  250. for (let i = xDataMin; i <= xDataMax; i++) {
  251. xData.push(i);
  252. }
  253. }
  254. function computeRLine() {
  255. if (uH.value && uQ.value) {
  256. const R = uH.value / Number(uQ.value) / Number(uQ.value);
  257. const yAxis: number[] = [];
  258. for (let i = 0; i < xData.length; i++) {
  259. const x = xData[i];
  260. const y = R * x * x;
  261. if (x == uQ.value) {
  262. uH.value = y;
  263. }
  264. yAxis.push(y);
  265. }
  266. const series = {
  267. name: 'R',
  268. type: 'line',
  269. smooth: true,
  270. showSymbol: false,
  271. zlevel: 0,
  272. emphasis: {
  273. focus: 'series',
  274. },
  275. itemStyle: { normal: { label: { show: true } } },
  276. lineStyle: {
  277. width: 2,
  278. color: '#D0A343',
  279. },
  280. endLabel: {
  281. show: true,
  282. formatter: '{a}',
  283. distance: 0,
  284. color: '#D0A343',
  285. },
  286. data: yAxis,
  287. };
  288. yDataList[lineNum] = series;
  289. }
  290. }
  291. function reSetLine() {
  292. let minIndex = -1;
  293. for (let i = 0; i < yDataList.length; i++) {
  294. if (i !== lineNum && i != lineNum + 1) {
  295. if (yDataList[i]['lineStyle']) yDataList[i]['lineStyle']['color'] = '#ffffff88';
  296. if (yDataList[i]['lineStyle']) yDataList[i]['lineStyle']['width'] = 1;
  297. if (yDataList[i]['endLabel'] && yDataList[i]['endLabel']['color']) {
  298. yDataList[i]['endLabel']['color'] = '#39E9FE99';
  299. }
  300. if (yDataList[i]['endLabel'] && yDataList[i]['endLabel']['backgroundColor']) yDataList[i]['endLabel']['backgroundColor'] = 'transparent';
  301. if (yDataList[i]['z']) yDataList[i]['z'] = 1;
  302. }
  303. if (resultObj.value && `${resultObj.value.Hz}${showFre.value ? 'Hz' : '°'}` == yDataList[i]['name']) {
  304. minIndex = i;
  305. }
  306. }
  307. if (minIndex != -1) {
  308. yDataList[minIndex]['lineStyle']['color'] = '#9A60B4';
  309. yDataList[minIndex]['lineStyle']['width'] = 2;
  310. yDataList[minIndex]['endLabel']['color'] = '#9A60B4';
  311. yDataList[minIndex]['endLabel']['backgroundColor'] = '#111';
  312. yDataList[minIndex]['z'] = 999;
  313. }
  314. }
  315. // 根据风量计算压差
  316. function computePa() {
  317. const R = uH.value / Number(uQ.value) / Number(uQ.value);
  318. const pointX = Number(uQ.value);
  319. const pointY = Number(uH.value);
  320. type ItemType = {
  321. x: number;
  322. y: number;
  323. Hz: number;
  324. };
  325. const assistanceData = initData(props.deviceType);
  326. const paList = new Map<number, ItemType>(); // key 是最近距离
  327. const getIntersectionPoint = (a, b, c, R, min, max) => {
  328. const obj: { x: undefined | number; y: undefined | number } = { x: undefined, y: undefined };
  329. // 计算二次方程的判别式
  330. const discriminant = b * b - 4 * (a - R) * c;
  331. if (discriminant > 0) {
  332. // 有两个实根
  333. const x1 = (-b + Math.sqrt(discriminant)) / (2 * (a - R));
  334. const x2 = (-b - Math.sqrt(discriminant)) / (2 * (a - R));
  335. const y1 = R * x1 * x1;
  336. const y2 = R * x2 * x2;
  337. if (x1 >= min && x1 <= max) {
  338. obj.x = x1;
  339. obj.y = y1;
  340. } else {
  341. obj.x = x2;
  342. obj.y = y2;
  343. }
  344. } else if (discriminant === 0) {
  345. // 有一个实根
  346. const x = -b / (2 * (a - R));
  347. const y = R * x * x;
  348. if (x >= min && x <= max) {
  349. obj.x = x;
  350. obj.y = y;
  351. }
  352. // console.log(`唯一交点: (${x}, ${y})`);
  353. } else {
  354. // 没有实根,交点在虚数域
  355. console.log('没有实数交点');
  356. }
  357. return obj;
  358. };
  359. for (let key in assistanceData) {
  360. const item: AssistanceItemType = assistanceData[key];
  361. paList.set(item.Hz, getIntersectionPoint(item.a, item.b, item.c, R, item.min, item.max));
  362. }
  363. const min = (points: Map<number, ItemType>) => {
  364. const targetX = uQ.value;
  365. const targetY = uH.value;
  366. let minDistance = Number.POSITIVE_INFINITY;
  367. let closestPoint = null;
  368. let keyVal = '';
  369. // 遍历已知点数组,计算距离并更新最小距离和对应的点
  370. for (const [key, point] of points) {
  371. const distance = Math.sqrt((targetX - point.x) ** 2 + (targetY - point.y) ** 2);
  372. if (distance < minDistance) {
  373. minDistance = distance;
  374. closestPoint = point;
  375. keyVal = key;
  376. }
  377. }
  378. if (closestPoint !== null) {
  379. console.log(`距离最小的点是 (${closestPoint.x}, ${closestPoint.y}), 距离为 ${minDistance}`);
  380. resultObj.value = { x: closestPoint.x, y: closestPoint.y, Hz: keyVal };
  381. } else {
  382. console.log('没有找到最小距离的点');
  383. }
  384. };
  385. min(paList);
  386. reSetLine();
  387. }
  388. function computeR() {
  389. if (uQ.value && uH.value) {
  390. computeRLine();
  391. computePa();
  392. if (resultObj.value && resultObj.value.x && resultObj.value.y) {
  393. const series = {
  394. type: 'effectScatter',
  395. symbolSize: 5,
  396. // symbolOffset:[1, 1],
  397. showEffectOn: 'render',
  398. // 涟漪特效相关配置。
  399. rippleEffect: {
  400. // 波纹的绘制方式,可选 'stroke' 和 'fill'。
  401. brushType: 'stroke',
  402. },
  403. zlevel: 1,
  404. z: 999,
  405. itemStyle: {
  406. color: '#C60000',
  407. },
  408. data: [[resultObj.value.x.toFixed(0), Number(resultObj.value.y.toFixed(0))]],
  409. };
  410. yDataList[lineNum + 1] = series;
  411. }
  412. }
  413. }
  414. function edit(flag) {
  415. if (flag == 'info') {
  416. formType.value = '编辑风机信息';
  417. }
  418. if (flag == 'line') {
  419. formType.value = '编辑特性曲线';
  420. }
  421. if (formShow.value == true) {
  422. formShow.value = false;
  423. nextTick(() => {
  424. formShow.value = true;
  425. });
  426. } else {
  427. formShow.value = true;
  428. }
  429. }
  430. async function onSubmit() {
  431. emit('close');
  432. closeModal();
  433. chartRef.value = null;
  434. uQ.value = undefined;
  435. uH.value = undefined;
  436. formType.value = '';
  437. myChart.value = undefined;
  438. refresh.value = true;
  439. xData.length = 0;
  440. yDataList.length = 0;
  441. lineNum = 0;
  442. lineEquation.value = [];
  443. resultObj.value = null;
  444. }
  445. function initEcharts() {
  446. if (chartRef.value) {
  447. computeR();
  448. myChart.value = echarts.init(chartRef.value);
  449. option && myChart.value.setOption(option);
  450. refresh.value = false;
  451. nextTick(() => {
  452. setTimeout(() => {
  453. refresh.value = true;
  454. }, 0);
  455. });
  456. }
  457. }
  458. function makeLine() {
  459. if (uQ.value && uH.value) {
  460. loadding.value = true;
  461. setTimeout(() => {
  462. initEcharts();
  463. loadding.value = false;
  464. }, 1200);
  465. }
  466. }
  467. function handleSubmit() {
  468. message.success('提交成功');
  469. setTimeout(() => {
  470. formShow.value = false;
  471. }, 800);
  472. }
  473. function getColumn() {
  474. let lineColumns = [];
  475. if (props.deviceType) {
  476. lineColumns = getTableHeaderColumns(props.deviceType + '_input') as [];
  477. if (lineColumns && lineColumns.length < 1) {
  478. lineColumns = getTableHeaderColumns(props.deviceType.split('_')[0] + '_input') as [];
  479. }
  480. if (lineColumns.length > 0) {
  481. lineColumns = lineColumns.filter((item) => item['dataIndex'] && (item['dataIndex'] as string).endsWith('_mainFanInfo'));
  482. columns.value = lineColumns;
  483. }
  484. }
  485. if (!columns.value || columns.value.length == 0) {
  486. columns.value = fanInfo;
  487. }
  488. }
  489. watch(
  490. () => props.deviceType,
  491. async () => {
  492. getColumn();
  493. // deviceData.value = await list({ devicetype: 'fanmain', pagetype: 'normal' });
  494. }
  495. );
  496. watch(
  497. () => props.selectData,
  498. async (selectData) => {
  499. deviceData.value = selectData;
  500. if (selectData['adjustmentMethod_mainFanInfo'] == 'angleadjust') {
  501. // 说明是角度了调节
  502. showFre.value = false;
  503. } else {
  504. showFre.value = true;
  505. }
  506. }
  507. );
  508. onMounted(() => {});
  509. </script>
  510. <style scoped lang="less">
  511. .modal-box {
  512. display: flex;
  513. flex-direction: row;
  514. background-color: #ffffff05;
  515. padding: 20px 8px;
  516. border: 1px solid #00d8ff22;
  517. // min-height: 600px;
  518. .box-title {
  519. width: calc(100% - 40px);
  520. text-align: center;
  521. background-color: #1dc1f522;
  522. }
  523. .info-item {
  524. display: flex;
  525. justify-content: space-between;
  526. align-items: center;
  527. padding: 2px 0px;
  528. margin: 4px 0;
  529. background-image: linear-gradient(to right, #39deff15, #3977e500);
  530. &:first-child {
  531. margin-top: 0;
  532. }
  533. .title {
  534. width: 200px;
  535. text-align: left;
  536. padding-left: 20px;
  537. color: #f1f1f1cc;
  538. }
  539. .value {
  540. width: 150px;
  541. color: #00d8ff;
  542. padding-right: 20px;
  543. text-align: right;
  544. }
  545. }
  546. .right-box {
  547. width: 350px;
  548. .info-container {
  549. width: calc(100% - 2px);
  550. margin-top: 5px;
  551. box-shadow: 0px 0px 50px #86baff08 inset;
  552. }
  553. }
  554. .left-box {
  555. width: 350px;
  556. .info-lines {
  557. width: calc(100% - 2px);
  558. height: 390px;
  559. box-shadow: 0px 0px 50px #86baff08 inset;
  560. overflow-y: auto;
  561. margin-top: 5px;
  562. .title {
  563. width: 100%;
  564. color: #f1f1f1cc;
  565. }
  566. }
  567. .info-item {
  568. padding: 8px 0px;
  569. margin: 4px 0;
  570. }
  571. }
  572. .center-box {
  573. margin: 0 10px;
  574. .info-echarts {
  575. // background-color: #ffffff11;
  576. }
  577. .result-tip {
  578. text-align: center;
  579. background-color: #00000011;
  580. line-height: 28px;
  581. margin: 10px 50px 0 50px;
  582. border: 1px solid #00d8ff22;
  583. border-radius: 2px;
  584. }
  585. }
  586. }
  587. .setting-box {
  588. width: 1170px;
  589. height: 70px;
  590. margin: 10px 0;
  591. background-color: #ffffff05;
  592. border: 1px solid #00d8ff22;
  593. display: flex;
  594. align-items: center;
  595. justify-content: center;
  596. .right-inputs {
  597. display: flex;
  598. height: 40px;
  599. margin-right: 10px;
  600. }
  601. .left-buttons {
  602. display: flex;
  603. height: 40px;
  604. margin-left: 15px;
  605. .btn {
  606. margin: 0 10px;
  607. }
  608. span {
  609. color: #00d8ff;
  610. }
  611. }
  612. .border-clip {
  613. width: 1px;
  614. height: 25px;
  615. border-right: 1px solid #8b8b8b77;
  616. }
  617. .input-title {
  618. width: 120px;
  619. }
  620. .input-box {
  621. width: 300px !important;
  622. background: transparent !important;
  623. border-color: #00d8ff44 !important;
  624. margin-right: 20px;
  625. color: #fff !important;
  626. }
  627. .btn {
  628. padding: 8px 20px;
  629. position: relative;
  630. border-radius: 2px;
  631. color: #fff;
  632. width: fit-content;
  633. cursor: pointer;
  634. &::before {
  635. position: absolute;
  636. display: block;
  637. content: '';
  638. width: calc(100% - 4px);
  639. height: calc(100% - 4px);
  640. top: 2px;
  641. left: 2px;
  642. border-radius: 2px;
  643. z-index: -1;
  644. }
  645. }
  646. .btn1 {
  647. border: 1px solid #5cfaff;
  648. &::before {
  649. background-image: linear-gradient(#2effee92, #0cb1d592);
  650. }
  651. &:hover {
  652. border: 1px solid #5cfaffaa;
  653. &::before {
  654. background-image: linear-gradient(#2effee72, #0cb1d572);
  655. }
  656. }
  657. }
  658. }
  659. .is-open {
  660. animation: open 0.5s;
  661. animation-iteration-count: 1;
  662. animation-fill-mode: forwards;
  663. animation-timing-function: ease-in;
  664. }
  665. .is-close {
  666. height: 0px;
  667. }
  668. @keyframes open {
  669. 0% {
  670. height: 0px;
  671. }
  672. 100% {
  673. height: fit-content;
  674. }
  675. }
  676. @keyframes close {
  677. 0% {
  678. height: fit-content;
  679. }
  680. 100% {
  681. height: 0px;
  682. }
  683. }
  684. :deep(.zxm-divider-inner-text) {
  685. color: #cacaca88 !important;
  686. }
  687. :deep(.zxm-form-item) {
  688. margin-bottom: 10px;
  689. }
  690. </style>