tanimation.vue 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274
  1. <template>
  2. <!-- 所有弹出框 -->
  3. <div class="l_Dialog">
  4. <!-- 推演结果 -->
  5. <el-aside width="278px" class="L_aside asideg asidegbg leftbgimg" v-show="monitor">
  6. <div class="result">
  7. <el-tabs
  8. v-model="resultactiveName"
  9. type="card"
  10. class="demo-tabs"
  11. @tab-click="handleClick"
  12. >
  13. <el-tab-pane label="当前时间" name="first">
  14. <div class="newtime">{{ newtime }}</div>
  15. </el-tab-pane>
  16. <el-tab-pane label="指定时间" name="second">
  17. <div class="newtime">
  18. <el-date-picker
  19. v-model="zdtime"
  20. type="datetime"
  21. placeholder="Select date and time"
  22. @change="zdtimechange"
  23. /></div
  24. ></el-tab-pane>
  25. <el-tab-pane label="动画演示" name="third">
  26. <div class="animation_s">
  27. <el-slider
  28. :max="endtime"
  29. :min="starttime"
  30. v-model="count"
  31. @change="sliderchange"
  32. >
  33. </el-slider>
  34. <!-- <el-progress type="line" :percentage="percentage" :color="customColor" :stroke-width="4"/> -->
  35. <div class="tanniu">
  36. <ul>
  37. <li>
  38. <el-image :src="t1" fit="contain" @click="Prev"></el-image>
  39. <p>后退</p>
  40. </li>
  41. <li>
  42. <el-image :src="t2" fit="contain" @click="play(500)"></el-image>
  43. <p>播放</p>
  44. </li>
  45. <li>
  46. <el-image :src="t3" fit="contain" @click="suspend"></el-image>
  47. <p>暂停</p>
  48. </li>
  49. <li>
  50. <el-image :src="t4" fit="contain" @click="increment"></el-image>
  51. <p>快进</p>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. </el-tab-pane>
  57. </el-tabs>
  58. </div>
  59. </el-aside>
  60. <!-- 监测点 -->
  61. <!-- 监测点 -->
  62. <div class="jiancedian asideg1" v-show="monitor">
  63. <div class="jc_header he_pading color1">
  64. <el-form-item label="污染物选择:">
  65. <el-select
  66. v-model="formInline.region"
  67. @change="regionchange"
  68. placeholder="请选择"
  69. >
  70. <el-option
  71. v-for="item in strResultFormatlist"
  72. :key="item.id"
  73. :label="item.name"
  74. :value="item.value"
  75. ></el-option>
  76. </el-select>
  77. </el-form-item>
  78. </div>
  79. <div class="jc_content tablecolor">
  80. <div class="jc_padding">
  81. <div class="xian">
  82. <el-table
  83. :data="tableData2"
  84. style="width: 100%"
  85. @current-change="handleCurrentChange"
  86. :row-class-name="tableRowClassName"
  87. :header-cell-style="{ background: 'rgba(13, 22, 57, 0.96) ' }"
  88. >
  89. <el-table-column prop="name" label="监测点名称" width="120" />
  90. <el-table-column prop="value" label="值" />
  91. </el-table>
  92. </div>
  93. </div>
  94. <div class="jc_header color1">
  95. <span class="jc_tile">锋面定义</span>
  96. </div>
  97. <div style="height: 200px"></div>
  98. </div>
  99. </div>
  100. </div>
  101. </template>
  102. <script setup>
  103. import { computed, ref, onMounted, reactive, toRef } from "vue";
  104. import { request, uploadFile } from "@/utils/request";
  105. import { ElMessage, ElButton, ElDialog, ElSelect } from "element-plus";
  106. import icon from "@/assets/img/icon.png";
  107. import mitts from "@/utils/Bus";
  108. import closeimg from "@/assets/img/colse.png";
  109. import { timestampToTime } from "@/js/lindex.js";
  110. import t1 from "@/assets/img/t1.png";
  111. import t2 from "@/assets/img/t2.png";
  112. import t3 from "@/assets/img/t3.png";
  113. import t4 from "@/assets/img/t4.png";
  114. import * as d3 from "d3-scale";
  115. import { formatDefaultLocale } from "d3-format";
  116. import "@kitware/vtk.js/Rendering/Profiles/Geometry";
  117. import vtkRenderWindowWithControlBar from "@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar";
  118. import vtkFullScreenRenderWindow from "@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow";
  119. import vtkActor from "@kitware/vtk.js/Rendering/Core/Actor";
  120. import vtkMapper from "@kitware/vtk.js/Rendering/Core/Mapper";
  121. import vtkUnstructuredDataReader from "../../reader/UnstructuredDataReader.js";
  122. import { createFireControl } from "../../control/fireControl.js";
  123. import vtkScalarBarActor from "@kitware/vtk.js/Rendering/Core/ScalarBarActor";
  124. import vtkLookupTable from "@kitware/vtk.js/Common/Core/LookupTable";
  125. import vtkDataArray from "@kitware/vtk.js/Common/Core/DataArray.js";
  126. import vtkColorTransferFunction from "@kitware/vtk.js/Rendering/Core/ColorTransferFunction";
  127. import { I } from "@kitware/vtk.js/macros2.js";
  128. import { Representation } from "@kitware/vtk.js/Rendering/Core/Property/Constants";
  129. import vtkConeSource from "@kitware/vtk.js/Filters/Sources/ConeSource";
  130. import vtkSphereMapper from "@kitware/vtk.js/Rendering/Core/SphereMapper";
  131. import vtkPixelSpaceCallbackMapper from "@kitware/vtk.js/Rendering/Core/PixelSpaceCallbackMapper";
  132. import vtkSphereSource from "@kitware/vtk.js/Filters/Sources/SphereSource";
  133. import vtkAxesActor from "@kitware/vtk.js/Rendering/Core/AxesActor";
  134. import vtkCubeAxesActor from "@kitware/vtk.js/Rendering/Core/CubeAxesActor";
  135. import vtk2DShape from "@kitware/vtk.js/Filters/Sources/Arrow2DSource";
  136. import vtkTriangleFilter from "@kitware/vtk.js/Filters/General/TriangleFilter";
  137. const renderWindowWith = vtkFullScreenRenderWindow.newInstance();
  138. // renderWindowWith.setBackground(22, 26, 42);
  139. const renderer = renderWindowWith.getRenderer();
  140. // renderer.setBackground(0, 0, 0);
  141. const renderWindow = renderWindowWith.getRenderWindow();
  142. const resetCamera = renderer.resetCamera;
  143. const render = renderWindow.render;
  144. const mapper = vtkMapper.newInstance();
  145. const actor = vtkActor.newInstance();
  146. const reader = vtkUnstructuredDataReader.newInstance();
  147. const scalarBarActor = vtkScalarBarActor.newInstance();
  148. actor.getProperty().setRepresentation(Representation.SURFACE); //面
  149. scalarBarActor.setGenerateTicks(generateTicks(5));
  150. scalarBarActor.setDrawAboveRangeSwatch(true);
  151. //修改设条颜色
  152. const ctf = vtkColorTransferFunction.newInstance();
  153. ctf.addRGBPoint(0.0, 0.0, 0.0, 1.0);
  154. ctf.addRGBPoint(1.0, 0.0, 1.0, 0.5);
  155. ctf.addRGBPoint(2.0, 0.0, 1.0, 0.0);
  156. ctf.addRGBPoint(3.0, 1.0, 0.5, 0.0);
  157. ctf.addRGBPoint(4.0, 1.0, 0.0, 0.0);
  158. mapper.setLookupTable(ctf);
  159. const lut = mapper.getLookupTable();
  160. scalarBarActor.setScalarsToColors(lut);
  161. renderer.addActor(scalarBarActor);
  162. let emit = defineEmits([]);
  163. const props = defineProps({
  164. classradio: {
  165. type: String,
  166. // default: '',
  167. },
  168. });
  169. const count = ref(0);
  170. const isstop = ref(false);
  171. const monitor = ref(false);
  172. const strResultFormatlist = ref([]);
  173. let url = ref("http://localhost:8080/?aid=0");
  174. // 推演结果
  175. const resultactiveName = ref("first");
  176. let newtime = ref("");
  177. let starttime = ref(1);
  178. let endtime = ref(60);
  179. let timenum = ref(2);
  180. let aid = ref();
  181. const percentage = ref(20);
  182. const customColor = ref("#409eff");
  183. const tableRowClassName = ({ row, rowIndex }) => {
  184. if (rowIndex % 2 != 0) {
  185. return "evenRow";
  186. }
  187. return "oddRow";
  188. };
  189. const formInline = ref({
  190. region: "shanghai",
  191. });
  192. const tableData = ref([]);
  193. const tableData2 = ref([
  194. {
  195. name: "",
  196. value: "",
  197. },
  198. ]);
  199. const handleCurrentChange = ({ row, rowIndex }) => {
  200. console.log(row);
  201. };
  202. const min = ref(0);
  203. const max = ref(1);
  204. const job = ref({
  205. jid: 0, // 任务ID
  206. aid: 0, // 事故ID
  207. starttime: "", // 结束时间
  208. endtime: "", // 开始时间
  209. state: "", // 状态
  210. faildes: "", // 失败原因
  211. dt: "", // 时间步长
  212. dx: "", // 空间步长
  213. reportstep: "", // 输出步长
  214. interactionstep: "", // 交互步长
  215. acctime: "", // 事故开始时间
  216. totaltime: "", // 模拟时长
  217. coids: "", // 物理属性ID逗号分隔
  218. cocodes: "", //物理属性code逗号分隔
  219. });
  220. const zdtime = ref("");
  221. const chvals = ref([]);
  222. const cocodes = ref([]);
  223. const cocodeIndex = ref(0);
  224. //滑块
  225. function sliderchange(val) {
  226. fcon.step = count.value;
  227. vtkScalarRead();
  228. }
  229. //播放
  230. function play(time) {
  231. isstop.value = true;
  232. const sleep = (timeout = time) =>
  233. new Promise((resolve, reject) => {
  234. setTimeout(resolve, timeout);
  235. });
  236. let timer = async (timeout) => {
  237. while (count.value < endtime.value && isstop.value) {
  238. if (isstop.value == true) {
  239. await sleep(time);
  240. count.value++;
  241. fcon.step = count.value;
  242. vtkScalarRead();
  243. }
  244. }
  245. };
  246. timer(time);
  247. }
  248. function increment() {
  249. isstop.value = false;
  250. if (count.value == endtime.value) {
  251. return;
  252. }
  253. count.value++;
  254. fcon.step = count.value;
  255. vtkScalarRead();
  256. }
  257. //暂停
  258. function suspend() {
  259. isstop.value = false;
  260. }
  261. //回到上一页
  262. function Prev() {
  263. isstop.value = false;
  264. count.value--;
  265. fcon.step = count.value;
  266. vtkScalarRead();
  267. }
  268. function zdtimechange() {
  269. const zdtimestamp = Date.parse(zdtime.value);
  270. const zdtimeDate = new Date(zdtimestamp);
  271. reddate(zdtimeDate);
  272. vtkScalarRead();
  273. }
  274. function regionchange() {
  275. for (let index = 0; index < cocodes.value.length; index++) {
  276. if (formInline.value.region == cocodes.value[index].cocode) {
  277. cocodeIndex.value = index + 1;
  278. break;
  279. }
  280. }
  281. tableData2.value = [];
  282. for (let i = 0; i < chvals.value.length; i++) {
  283. let chval = chvals.value[i];
  284. if (cocodeIndex.value == 1) {
  285. tableData2.value.push({
  286. name: chval.chcode,
  287. value: chval.v1,
  288. });
  289. }
  290. if (cocodeIndex.value == 2) {
  291. tableData2.value.push({
  292. name: chval.chcode,
  293. value: chval.v2,
  294. });
  295. }
  296. if (cocodeIndex.value == 3) {
  297. tableData2.value.push({
  298. name: chval.chcode,
  299. value: chval.v3,
  300. });
  301. }
  302. if (cocodeIndex.value == 4) {
  303. tableData2.value.push({
  304. name: chval.chcode,
  305. value: chval.v4,
  306. });
  307. }
  308. if (cocodeIndex.value == 5) {
  309. tableData2.value.push({
  310. name: chval.chcode,
  311. value: chval.v5,
  312. });
  313. }
  314. if (cocodeIndex.value == 6) {
  315. tableData2.value.push({
  316. name: chval.chcode,
  317. value: chval.v6,
  318. });
  319. }
  320. }
  321. vtkShow();
  322. }
  323. // aid获取
  324. const accident5 = (val) => {
  325. aid.value = val;
  326. console.log(aid.value);
  327. console.log(11111);
  328. console.log("props.classradio", props.classradio);
  329. if (props.classradio == "Fire") {
  330. monitor.value = true;
  331. } else if (props.classradio == "Water") {
  332. monitor.value = true;
  333. }
  334. //获取任务信息
  335. readJob();
  336. // fireRead()
  337. };
  338. const init = () => {};
  339. onMounted(() => {
  340. init();
  341. });
  342. const fcon = createFireControl();
  343. //监测点数据获取
  344. async function getMonitor() {
  345. const params = {
  346. transCode: "D10016",
  347. aid: aid.value,
  348. step: fcon.step,
  349. };
  350. await request(params)
  351. .then((res) => {
  352. if (res.returnCode == "000000000") {
  353. cocodes.value = res.cocodes;
  354. chvals.value = res.chvals;
  355. formInline.value.region = cocodes.value[0].cocode;
  356. cocodeIndex.value = 1;
  357. strResultFormatlist.value = [];
  358. for (let index = 0; index < cocodes.value.length; index++) {
  359. const cocode = cocodes.value[index];
  360. strResultFormatlist.value.push({
  361. id: index,
  362. name: cocode.cocode,
  363. value: cocode.cocode,
  364. });
  365. }
  366. tableData2.value = [];
  367. for (let i = 0; i < chvals.value.length; i++) {
  368. let chval = chvals.value[i];
  369. tableData2.value.push({
  370. name: chval.chcode,
  371. value: chval.v1,
  372. });
  373. }
  374. vtkGridRead();
  375. } else {
  376. ElMessage({
  377. message: res.returnMsg,
  378. type: "error",
  379. });
  380. }
  381. })
  382. .catch((err) => {});
  383. }
  384. //获取任务信息
  385. async function readJob() {
  386. const params = {
  387. transCode: "D10017",
  388. aid: aid.value,
  389. };
  390. await request(params)
  391. .then((res) => {
  392. if (res.returnCode == "000000000") {
  393. //成功
  394. job.value = res;
  395. reddate(new Date());
  396. getMonitor();
  397. } else {
  398. ElMessage({
  399. message: res.returnMsg,
  400. type: "error",
  401. });
  402. }
  403. })
  404. .catch((err) => {});
  405. }
  406. //获取当前时间最近的步数 读取文件
  407. //当前时间=开始时间+输出步长*输出次数
  408. function reddate(date) {
  409. //当前时间
  410. const timestamp = date.getTime();
  411. newtime.value = timestampToTime(timestamp);
  412. const accstamp = Date.parse(job.value.acctime);
  413. var timeDifference = parseInt((timestamp - accstamp) / 1000);
  414. fcon.stepsum = parseInt(job.value.totaltime) / parseInt(job.value.reportstep);
  415. max.value = fcon.stepsum;
  416. if (timeDifference < parseInt(job.value.totaltime)) {
  417. //最长时间范围
  418. fcon.step = parseInt(timeDifference / parseInt(job.value.reportstep));
  419. } else {
  420. fcon.step = fcon.stepsum;
  421. }
  422. count.value = fcon.step;
  423. }
  424. function vtkGridRead() {
  425. fcon.aid = aid.value;
  426. fcon
  427. .initGemetry()
  428. .then((result) => {
  429. console.log(fcon.polydata);
  430. vtkScalarRead();
  431. })
  432. .catch((err) => {});
  433. }
  434. function vtkScalarRead() {
  435. fcon
  436. .getScalrsByStep(fcon.step)
  437. .then((result) => {
  438. console.log(fcon.scalar);
  439. vtkShow();
  440. })
  441. .catch((err) => {
  442. console.log(err);
  443. });
  444. }
  445. function vtkShow() {
  446. console.log(formInline.value.region);
  447. const scalarArray = fcon.scalar.get(formInline.value.region);
  448. console.log("scalarArray:", scalarArray);
  449. const dataArray = vtkDataArray.newInstance({
  450. name: formInline.value.region,
  451. size: fcon.polydata.getNumberOfPoints(),
  452. });
  453. console.log(dataArray);
  454. dataArray.setData(scalarArray);
  455. fcon.polydata.getPointData().setScalars(dataArray);
  456. mapper.setInputData(fcon.polydata);
  457. getMinMax(scalarArray);
  458. mapper.setScalarRange(min.value, max.value); //设置范围
  459. actor.setMapper(mapper);
  460. renderer.addActor(actor);
  461. scalarBarActor.setAxisLabel(formInline.value.region);
  462. mapper.clearColorArrays(); //强制重建颜色
  463. // actor.getProperty().setOpacity(count.value); //设置错误的透明度使得页面重新加载 不设置不刷新页面
  464. renderer.resetCamera();
  465. renderWindow.render();
  466. }
  467. function getMinMax(scalars) {
  468. // console.log("getMinMax:",scalars);
  469. min.value = scalars[0];
  470. max.value = scalars[0];
  471. for (let index = 0; index <= scalars.length; index++) {
  472. let scalar = scalars[index];
  473. if (min.value > scalar) {
  474. min.value = scalar;
  475. }
  476. if (max.value < scalar) {
  477. max.value = scalar;
  478. }
  479. }
  480. // console.log("max,min:", max.value, min.value);
  481. }
  482. //设置
  483. function generateTicks(numberOfTicks) {
  484. return (helper) => {
  485. const lastTickBounds = helper.getLastTickBounds();
  486. // compute tick marks for axes
  487. const scale = d3
  488. .scaleLinear()
  489. .domain([0.0, 1.0])
  490. .range([lastTickBounds[0], lastTickBounds[1]]);
  491. const samples = scale.ticks(numberOfTicks);
  492. const ticks = samples.map((tick) => scale(tick));
  493. // Replace minus "\u2212" with hyphen-minus "\u002D" so that parseFloat() works
  494. formatDefaultLocale({ minus: "\u002D" });
  495. const format = scale.tickFormat(ticks[0], ticks[ticks.length - 1], numberOfTicks);
  496. const tickStrings = ticks
  497. .map(format)
  498. .map((tick) => Number(parseFloat(tick).toPrecision(12)).toPrecision()); // d3 sometimes adds unwanted whitespace
  499. helper.setTicks(ticks);
  500. helper.setTickStrings(tickStrings);
  501. };
  502. }
  503. defineExpose({ monitor, accident5 });
  504. </script>
  505. <style lang="scss" scoped>
  506. .jc_padding {
  507. padding: 18px 10px;
  508. }
  509. .line {
  510. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  511. box-sizing: border-box;
  512. }
  513. .L_aside {
  514. .iconimg {
  515. width: 37px;
  516. height: 36px;
  517. margin: 0 7px 0 24px;
  518. }
  519. .Frame2 {
  520. background-image: url(../assets/img/Frame2.png);
  521. background-size: 100%;
  522. background-position: center;
  523. }
  524. .Frame3 {
  525. background-image: url(../assets/img/Frame3.png);
  526. background-repeat: no-repeat;
  527. background-position: center;
  528. }
  529. .el-collapse,
  530. .el-collapse-item__header {
  531. border: none;
  532. ul li {
  533. text-align: left;
  534. }
  535. .inputkuang {
  536. height: 30px;
  537. width: 100%;
  538. background: rgba(13, 22, 57, 0.4);
  539. position: relative;
  540. .righttext {
  541. display: inline-block;
  542. position: absolute;
  543. right: 10px;
  544. top: 3px;
  545. color: rgba($color: #ffffff, $alpha: 0.8);
  546. }
  547. }
  548. .inputtext_1 {
  549. font-weight: 400;
  550. font-size: 13px;
  551. color: #ffffff;
  552. line-height: 14px;
  553. text-align: left;
  554. font-style: normal;
  555. text-transform: none;
  556. padding: 13px 0 7px 0;
  557. display: inline-block;
  558. }
  559. }
  560. }
  561. .ddd {
  562. margin-top: 20px;
  563. .ddd_div {
  564. padding: 20px 0;
  565. position: relative;
  566. }
  567. .class_btn {
  568. position: absolute;
  569. right: 0;
  570. top: 21px;
  571. }
  572. }
  573. .header_l {
  574. line-height: 10px;
  575. // height: 40px;
  576. text-align: left;
  577. padding: 0 20px;
  578. // border-bottom: 1px solid;
  579. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  580. 1;
  581. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  582. border-radius: 0px 0px 0px 0px;
  583. .el-image {
  584. padding: 10px 10px 0 0;
  585. }
  586. h4 {
  587. font-weight: bold;
  588. font-size: 12px;
  589. color: #68adff;
  590. line-height: 14px;
  591. text-align: left;
  592. font-style: normal;
  593. text-transform: none;
  594. }
  595. }
  596. .tianjia {
  597. display: inline-block;
  598. }
  599. .el-dialog__title {
  600. display: inline-block;
  601. }
  602. .bgcolor {
  603. // width: 482px;
  604. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  605. border-radius: 0px 0px 0px 0px;
  606. border: 1px solid;
  607. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  608. 1;
  609. }
  610. .dialog_class {
  611. .my-header {
  612. line-height: 10px;
  613. height: 40px;
  614. text-align: left;
  615. padding: 0 20px;
  616. border-bottom: 1px solid;
  617. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48))
  618. 1 1;
  619. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  620. border-radius: 0px 0px 0px 0px;
  621. .el-image {
  622. padding: 10px 10px 0 0;
  623. }
  624. h4 {
  625. font-weight: bold;
  626. font-size: 12px;
  627. color: #68adff;
  628. line-height: 14px;
  629. text-align: left;
  630. font-style: normal;
  631. text-transform: none;
  632. }
  633. }
  634. .my_content {
  635. width: 100%;
  636. height: 90px;
  637. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  638. border-radius: 0px 0px 0px 0px;
  639. position: relative;
  640. .radio-group {
  641. display: flex;
  642. justify-content: center;
  643. .el-radio {
  644. flex: 1;
  645. justify-content: center;
  646. font-weight: bold;
  647. font-size: 12px;
  648. color: #ffffff;
  649. line-height: 14px;
  650. }
  651. }
  652. }
  653. .el-dialog__footer {
  654. position: absolute;
  655. bottom: 17px;
  656. display: flex;
  657. .footerbtn {
  658. flex: 1;
  659. text-align: center;
  660. }
  661. }
  662. }
  663. .my_content1 {
  664. .el-table .cell {
  665. font-weight: 400;
  666. font-size: 12px;
  667. color: #ffffff !important;
  668. line-height: 14px;
  669. text-align: left;
  670. font-style: normal;
  671. text-transform: none;
  672. }
  673. }
  674. .l_btn .borderimg {
  675. width: 109px;
  676. height: 30px;
  677. background: rgba(104, 173, 255, 0.3);
  678. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  679. /* border: 1px solid rgba(31, 107, 255, 1); */
  680. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  681. 1;
  682. border-radius: 4px;
  683. display: flex;
  684. display: inline-block;
  685. box-sizing: border-box;
  686. }
  687. .borderimg {
  688. width: 109px;
  689. height: 30px;
  690. background: rgba(104, 173, 255, 0.3);
  691. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  692. /* border: 1px solid rgba(31, 107, 255, 1); */
  693. -o-border-image: linear-gradient(
  694. 180deg,
  695. rgba(31, 107, 255, 1),
  696. rgba(31, 107, 255, 0.48)
  697. )
  698. 1 1;
  699. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  700. 1;
  701. border-radius: 4px;
  702. display: flex;
  703. display: inline-block;
  704. box-sizing: border-box;
  705. }
  706. .el-table,
  707. .el-table thead th {
  708. background-color: rgba(13, 22, 57, 0.96) !important;
  709. }
  710. .L_aside {
  711. height: calc(100vh - 70px);
  712. position: absolute;
  713. top: 70px;
  714. }
  715. .asides_content {
  716. // background: rgba(13,22,57,0.4);
  717. // box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2);
  718. // border-radius: 0px 0px 0px 0px;
  719. // border: 1px solid;
  720. // border-image: linear-gradient(359deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0)) 1 1;
  721. .el-form-item__label {
  722. color: #ffffff !important;
  723. }
  724. }
  725. .asdis_btn {
  726. display: flex;
  727. margin-top: 9px;
  728. .btn {
  729. flex: 1;
  730. width: 145px;
  731. height: 54px;
  732. background-image: url(../assets/img/Rectangle5.png);
  733. background-repeat: no-repeat;
  734. line-height: 54px;
  735. .spantext {
  736. font-weight: bold;
  737. font-size: 12px;
  738. color: #ffffff;
  739. text-align: center;
  740. font-style: normal;
  741. text-transform: none;
  742. }
  743. }
  744. }
  745. .logs {
  746. margin-top: 25px;
  747. border-radius: 0px 0px 0px 0px;
  748. border-top: 1px solid;
  749. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  750. 1;
  751. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  752. h4 {
  753. padding: 10px 0;
  754. font-weight: 400;
  755. font-size: 13px;
  756. color: #ffffff;
  757. line-height: 14px;
  758. text-align: left;
  759. font-style: normal;
  760. text-transform: none;
  761. }
  762. }
  763. .logs_pading {
  764. padding: 13px 20px 23px 24px;
  765. }
  766. .newtime {
  767. height: 112px;
  768. padding: 38px;
  769. font-weight: bold;
  770. font-size: 20px;
  771. color: #ff0f0f;
  772. line-height: 23px;
  773. text-align: center;
  774. font-style: normal;
  775. text-transform: none;
  776. }
  777. .animation_s {
  778. padding: 25px;
  779. }
  780. .tanniu ul {
  781. margin-top: 40px;
  782. display: flex;
  783. li {
  784. flex: 1;
  785. text-align: center;
  786. p {
  787. text-align: center;
  788. font-weight: 400;
  789. font-size: 12px;
  790. color: #ffffff;
  791. line-height: 14px;
  792. font-style: normal;
  793. text-transform: none;
  794. }
  795. }
  796. }
  797. .jiancedian {
  798. width: 371px;
  799. position: fixed;
  800. right: 0;
  801. top: 70px;
  802. background-color: rgba(13, 22, 57, 0.6);
  803. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  804. border-radius: 4px 4px 4px 4px;
  805. border: 1px solid;
  806. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  807. 1;
  808. }
  809. </style>
  810. <style>
  811. /* //.bgcolor */
  812. .bgcolor {
  813. border-radius: 0px 0px 0px 0px;
  814. border: 1px solid;
  815. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  816. 1;
  817. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  818. }
  819. .dialog_class {
  820. background-color: rgba(13, 22, 57, 0.96) !important;
  821. width: 482px;
  822. }
  823. .el-dialog__header,
  824. .el-dialog__body,
  825. .el-dialog__footer {
  826. padding: 0 !important;
  827. margin: 0 !important;
  828. }
  829. .el-dialog {
  830. --el-dialog-padding-primary: 0px !important;
  831. }
  832. .el-dialog__headerbtn {
  833. position: absolute;
  834. top: 2px !important;
  835. right: 0;
  836. padding: 0;
  837. width: 40px !important;
  838. height: 40px !important;
  839. background: 0 0;
  840. border: none;
  841. outline: 0;
  842. cursor: pointer;
  843. font-size: var(--el-message-close-size, 16px);
  844. }
  845. .el-icon {
  846. color: #68adff !important;
  847. }
  848. .l_btn .borderimg {
  849. width: 109px;
  850. height: 30px;
  851. background: rgba(104, 173, 255, 0.3);
  852. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  853. /* border: 1px solid rgba(31, 107, 255, 1); */
  854. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  855. 1;
  856. border-radius: 4px;
  857. display: flex;
  858. display: inline-block;
  859. box-sizing: border-box;
  860. }
  861. .l_btn .el-button {
  862. width: 100%;
  863. height: 100%;
  864. border-radius: 4px;
  865. color: #fff;
  866. background: rgba(104, 173, 255, 0.3);
  867. border: 1px solid rgba(31, 107, 255, 1);
  868. }
  869. .class_footer {
  870. position: absolute;
  871. bottom: 17px;
  872. }
  873. .footer_div {
  874. height: 90px;
  875. padding: 30px 0;
  876. }
  877. .l_btn {
  878. width: 100%;
  879. bottom: 17px;
  880. display: flex;
  881. border-radius: 4px;
  882. }
  883. .el-table .el-table__cell {
  884. padding: 0 !important;
  885. height: 30px;
  886. line-height: 30px;
  887. }
  888. /* .el-table tr,.el-table th.el-table__cell{
  889. background-color: rgba(13, 22, 57, 0.96) !important;
  890. } */
  891. .el-table__row {
  892. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  893. border-radius: 0px 0px 0px 0px;
  894. border: 1px solid;
  895. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  896. 1;
  897. }
  898. .el-table td.el-table__cell,
  899. .el-table th.el-table__cell.is-leaf {
  900. /* box-shadow: inset 0px 0px 17px 5px rgba(12,97,197,0.2); */
  901. border-radius: 0px 0px 0px 0px;
  902. border-bottom: 1px solid;
  903. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  904. 1;
  905. }
  906. .oddRow {
  907. background-color: rgba(104, 173, 255, 0.2) !important;
  908. }
  909. .evenRow {
  910. background-color: rgba(13, 22, 57, 0.96) !important;
  911. }
  912. .my_content1 .el-table .cell {
  913. font-weight: 400;
  914. font-size: 12px;
  915. color: #ffffff !important;
  916. line-height: 14px;
  917. text-align: left;
  918. font-style: normal;
  919. text-transform: none;
  920. }
  921. .el-table--border .el-table__inner-wrapper::after,
  922. .el-table--border::after,
  923. .el-table--border::before,
  924. .el-table__inner-wrapper::before {
  925. height: 0 !important;
  926. background-color: rgba(red, green, blue, 0) !important;
  927. }
  928. .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  929. background-color: rgba(104, 173, 255, 0) !important;
  930. }
  931. .el-button:focus,
  932. .el-button:hover {
  933. background: rgba(104, 173, 255, 1) !important;
  934. font-weight: bold;
  935. color: #000 !important;
  936. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  937. border-radius: 4px 4px 4px 4px;
  938. border: 1px solid;
  939. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  940. 1;
  941. }
  942. .el-input__wrapper {
  943. height: 30px;
  944. background: rgba(104, 173, 255, 0.3) !important;
  945. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2) !important;
  946. border-radius: 0px 0px 0px 0px;
  947. border: 1px solid;
  948. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  949. 1;
  950. }
  951. .ddd_div .el-input__inner {
  952. border: none;
  953. /* background: rgba(104,173,255,0.3); */
  954. }
  955. .ddd_div .el-form-item__label {
  956. color: #fff !important;
  957. }
  958. .ddd_div .demo-input-suffix {
  959. width: 100%;
  960. }
  961. .ddd .el-form-item {
  962. width: 80%;
  963. }
  964. /* .el-input__inner::placeholder {
  965. color: #fff !important;
  966. } */
  967. .flex1 {
  968. flex: 1;
  969. }
  970. .el-radio__input.is-checked .el-radio__inner {
  971. border-color: #fff !important;
  972. background: #fff !important;
  973. }
  974. .el-radio__inner {
  975. border: 2px solid #fff !important;
  976. background-color: rgba(104, 173, 255, 0) !important;
  977. border: 1px solid #68adff;
  978. }
  979. .asideg .el-collapse-item__header {
  980. height: 50px !important;
  981. width: 100%;
  982. color: #fff;
  983. background-position: left;
  984. border: none !important;
  985. font-weight: bold;
  986. font-size: 15px;
  987. color: #ffffff;
  988. line-height: 18px;
  989. text-align: left;
  990. font-style: normal;
  991. text-transform: none;
  992. }
  993. .leftbgimg .el-collapse-item__header {
  994. background-image: url(../../assets/img/Group10.png) !important;
  995. }
  996. .asideg1 .jc_header {
  997. width: 100%;
  998. height: 52px;
  999. line-height: 52px;
  1000. background-image: url(../../assets/img/Group24.png) !important;
  1001. background-repeat: no-repeat;
  1002. background-position: center;
  1003. }
  1004. .jc_tile {
  1005. padding-left: 20px;
  1006. }
  1007. .he_pading {
  1008. padding: 11px 0 0 31px;
  1009. }
  1010. .asideg1 .el-form-item__label {
  1011. font-weight: 400;
  1012. font-size: 13px;
  1013. color: #ffffff;
  1014. text-align: left;
  1015. font-style: normal;
  1016. text-transform: none;
  1017. }
  1018. .asideg .el-collapse {
  1019. --el-collapse-header-bg-color: none !important;
  1020. }
  1021. .asideg .el-collapse-item__arrow {
  1022. margin: 0 8px 0 auto;
  1023. font-weight: 800;
  1024. color: #fff !important;
  1025. font-weight: bold !important;
  1026. font-size: 20px !important;
  1027. }
  1028. .el-collapse-item__content {
  1029. background: rgba(13, 22, 57, 0.2);
  1030. }
  1031. .asideg .el-input__wrapper {
  1032. background: rgba(104, 173, 255, 0) !important;
  1033. border: 1px solid rgba(31, 107, 255, 1);
  1034. border-radius: 4px;
  1035. box-shadow: none !important;
  1036. }
  1037. .asideg .el-input__inner {
  1038. color: rgba(255, 15, 15, 1);
  1039. font-weight: 400;
  1040. font-size: 16px;
  1041. }
  1042. .el-collapse {
  1043. --el-collapse-header-bg-color: rgba(104, 173, 255, 0) !important;
  1044. --el-collapse-header-text-color: var(--el-text-color-primary);
  1045. --el-collapse-header-font-size: 13px;
  1046. --el-collapse-content-text-color: rgba(104, 173, 255, 0) !important;
  1047. --el-collapse-content-bg-color: rgba(104, 173, 255, 0) !important;
  1048. }
  1049. .asideg .el-collapse-item__content {
  1050. padding: 0 !important;
  1051. }
  1052. .asideg .el-collapse-item__wrap {
  1053. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1054. border-radius: 4px 4px 4px 4px;
  1055. border-bottom: 1px solid;
  1056. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  1057. 1;
  1058. }
  1059. #textarea_id {
  1060. height: 226px;
  1061. background: rgba(104, 173, 255, 0) !important;
  1062. border: 1px solid rgba(31, 107, 255, 1);
  1063. border-radius: 4px;
  1064. box-shadow: none !important;
  1065. }
  1066. .asides_content .el-form-item__label {
  1067. color: #ffffff !important;
  1068. font-weight: 400;
  1069. font-size: 13px;
  1070. line-height: 33px;
  1071. text-align: left;
  1072. font-style: normal;
  1073. text-transform: none;
  1074. }
  1075. .el-form-item {
  1076. width: 100%;
  1077. }
  1078. .el-select__wrapper {
  1079. background-color: rgba(104, 173, 255, 0) !important;
  1080. }
  1081. .el-select__wrapper.is-hovering:not(.is-focused),
  1082. .el-select__wrapper {
  1083. box-shadow: none !important;
  1084. border: 1px solid rgba(31, 107, 255, 1);
  1085. border-radius: 4px;
  1086. box-shadow: none !important;
  1087. }
  1088. /* Webkit内核浏览器(Chrome、Safari等)*/
  1089. ::-webkit-scrollbar {
  1090. width: 4px; /* 设置滚动条宽度 */
  1091. background-color: #161a2a; /* 设置滚动条背景颜色 */
  1092. }
  1093. /* 滑块样式 */
  1094. ::-webkit-scrollbar-thumb {
  1095. border-radius: 2px; /* 设置滑块边角半径 */
  1096. background-color: rgba(31, 107, 255, 1); /* 设置滑块背景颜色 */
  1097. }
  1098. /* 滑块在hover状态时的样式 */
  1099. ::-webkit-scrollbar-thumb:hover {
  1100. background-color: #555; /* 设置滑块在hover状态下的背景颜色 */
  1101. }
  1102. /* 滚动条轨道样式 */
  1103. ::-webkit-scrollbar-track {
  1104. background-color: rgba(104, 173, 255, 0.4); /* 设置滚动条轨道背景颜色 */
  1105. }
  1106. .result {
  1107. background-color: rgba(13, 22, 57, 0.6);
  1108. }
  1109. .result .el-tabs__item {
  1110. padding: 17.5px !important;
  1111. font-weight: bold;
  1112. font-size: 14px;
  1113. color: #ffffff;
  1114. line-height: 16px;
  1115. text-align: center;
  1116. font-style: normal;
  1117. text-transform: none;
  1118. }
  1119. .el-tabs--card > .el-tabs__header,
  1120. .el-tabs--card > .el-tabs__header,
  1121. .el-tabs--card > .el-tabs__header .el-tabs__nav {
  1122. border: none !important;
  1123. }
  1124. .el-tabs {
  1125. --el-tabs-header-height: 70px !important;
  1126. }
  1127. .result .el-tabs__item {
  1128. border-left: 1px solid;
  1129. border-right: 1px solid;
  1130. border-bottom: 1px solid;
  1131. border-image: linear-gradient(180deg, rgb(31, 107, 255), rgba(31, 107, 255, 0.48)) 1 1;
  1132. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1133. border-radius: 0px 0px 0px 0px;
  1134. font-weight: bold;
  1135. font-size: 14px;
  1136. color: #fff;
  1137. line-height: 23px;
  1138. text-align: center;
  1139. font-style: normal;
  1140. text-transform: none;
  1141. }
  1142. .result .is-active {
  1143. height: 70px;
  1144. background: radial-gradient(ellipse at 54px 0px, #3aa0ff -37%, #123066 53%);
  1145. border-radius: 0px 0px 0px 0px;
  1146. border: 2px solid;
  1147. color: rgba(255, 15, 15, 1) !important;
  1148. border-left: 1px solid rgba(16, 92, 240, 1);
  1149. border-right: 1px solid rgba(18, 48, 102, 1);
  1150. border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(18, 48, 102, 1)) 1 1;
  1151. }
  1152. .result .el-tabs__item:hover {
  1153. color: rgba(255, 15, 15, 1);
  1154. cursor: pointer;
  1155. }
  1156. .result .el-tabs__header {
  1157. padding: 0 !important;
  1158. margin: 0 !important;
  1159. }
  1160. .result .el-tabs__content {
  1161. border: 1px solid;
  1162. color: rgba(255, 15, 15, 1) !important;
  1163. border-image: linear-gradient(347deg, rgba(16, 92, 240, 1), rgba(18, 48, 102, 1)) 1 1;
  1164. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2);
  1165. border-radius: 0px 0px 0px 0px;
  1166. position: relative;
  1167. }
  1168. .result .el-tabs__content {
  1169. width: 278px;
  1170. }
  1171. .el-slider__button {
  1172. height: 10px;
  1173. width: 10px;
  1174. }
  1175. .color1 {
  1176. font-weight: 400;
  1177. font-size: 13px;
  1178. color: #ffffff;
  1179. line-height: 14px;
  1180. text-align: left;
  1181. font-style: normal;
  1182. text-transform: none;
  1183. }
  1184. .jc_padding .el-table tr {
  1185. height: 40px;
  1186. background-color: none;
  1187. }
  1188. .jc_padding .el-table .cell {
  1189. font-weight: 400;
  1190. font-size: 13px;
  1191. color: #ffffff;
  1192. line-height: 14px;
  1193. text-align: left;
  1194. font-style: normal;
  1195. text-transform: none;
  1196. }
  1197. .tianjia .el-dialog__body {
  1198. padding: 20px !important;
  1199. }
  1200. .tianjia .el-form-item__label {
  1201. color: #fff;
  1202. }
  1203. .tianjia .el-input__inner {
  1204. color: #fff;
  1205. font-size: 14px;
  1206. font-weight: 400;
  1207. text-align: left;
  1208. padding: 20px 0;
  1209. height: 30px;
  1210. line-height: 47px;
  1211. }
  1212. .ddd_div .el-input__inner {
  1213. color: #fff;
  1214. }
  1215. .pagination {
  1216. margin-top: 30px;
  1217. display: flex;
  1218. justify-content: center;
  1219. }
  1220. .pagination .el-pagination__total {
  1221. color: #fff;
  1222. }
  1223. .el-pagination.is-background .btn-next.is-disabled,
  1224. .el-pagination.is-background .btn-next:disabled,
  1225. .el-pagination.is-background .btn-prev.is-disabled,
  1226. .el-pagination.is-background .btn-prev:disabled,
  1227. .el-pagination.is-background .el-pager li.is-disabled,
  1228. .el-pagination.is-background .el-pager li:disabled {
  1229. background: rgba(104, 173, 255, 0.3) !important;
  1230. box-shadow: inset 0px 0px 17px 5px rgba(12, 97, 197, 0.2) !important;
  1231. border-radius: 0px 0px 0px 0px;
  1232. border: 1px solid;
  1233. border-image: linear-gradient(180deg, rgba(31, 107, 255, 1), rgba(31, 107, 255, 0.48)) 1
  1234. 1;
  1235. }
  1236. .delecttitle {
  1237. font-size: 22px;
  1238. font-weight: bold;
  1239. color: #fff;
  1240. }
  1241. </style>