qushiDialog.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. <template>
  2. <div>
  3. <el-dialog
  4. class="dialogs"
  5. width="85%"
  6. top="8vh"
  7. v-model="dialogCurveVisible"
  8. :show-close="true"
  9. @close="handleClose"
  10. >
  11. <template #title>
  12. <div class="dialog-title">
  13. <img class="dialog-title-img" src="@assets/imgs/dialog-title.png" />
  14. <div class="title">{{ chartName }}</div>
  15. <!-- <i class="el-icon-full-screen" @click="c"></i>-->
  16. </div>
  17. </template>
  18. <div class="dialog-body" style="height: 51vh; width: 100%">
  19. <div style="margin-top: -20px; margin-bottom: 20px">
  20. <div
  21. style="
  22. height: 5vh;
  23. line-height: 5vh;
  24. flex-direction: row;
  25. align-items: center;
  26. display: flex;
  27. "
  28. >
  29. <div class="qushi-form">
  30. <div class="station">
  31. 开始时间
  32. <div style="margin-left: 5px; margin-right: 10px">
  33. <el-date-picker
  34. v-model="starttime"
  35. type="datetime"
  36. placeholder="选择日期"
  37. format="YYYY-MM-DD HH:mm:ss"
  38. >
  39. </el-date-picker>
  40. </div>
  41. </div>
  42. <div class="station">
  43. 结束时间
  44. <div style="margin-left: 5px; margin-right: 10px">
  45. <el-date-picker
  46. v-model="endtime"
  47. type="datetime"
  48. placeholder="选择日期"
  49. format="YYYY-MM-DD HH:mm:ss"
  50. >
  51. </el-date-picker>
  52. </div>
  53. </div>
  54. <div class="station">
  55. 时间间隔(秒)
  56. <div>
  57. <el-input-number
  58. size="medium"
  59. v-model="numgap"
  60. :precision="0"
  61. ></el-input-number>
  62. </div>
  63. </div>
  64. <el-button
  65. style="margin-left: 15px"
  66. round
  67. :disabled="timerFlag"
  68. size="mini"
  69. class="searchColor"
  70. @click="throttleSearch"
  71. >查询
  72. </el-button>
  73. </div>
  74. <div class="qushi-tools">
  75. <el-button
  76. class="customColor"
  77. round
  78. size="mini"
  79. type="primary"
  80. @click="showYsetDialog"
  81. icon="el-icon-edit"
  82. >自定义多坐标
  83. </el-button>
  84. <el-tooltip
  85. class="item"
  86. effect="dark"
  87. content="导出"
  88. placement="bottom"
  89. >
  90. <el-button
  91. class="updownTit"
  92. round
  93. size="mini"
  94. type="primary"
  95. @click="exportDatas"
  96. >
  97. <i class="svg-icon svg-icon-sm svg-icon-white">
  98. <SvgIcon svgid="svg-dataout"></SvgIcon
  99. ></i>
  100. </el-button>
  101. </el-tooltip>
  102. </div>
  103. </div>
  104. </div>
  105. <img
  106. class="dialog-img"
  107. style="bottom: -166px"
  108. src="@assets/imgs/dialog.png"
  109. />
  110. <windChartCom
  111. ref="windChartCom"
  112. :height="chartHeight"
  113. :list="chartsData"
  114. :interval="intervalgap"
  115. :units="units"
  116. :unitDatas="unitDatas"
  117. :showLegend="false"
  118. :showXdata="false"
  119. :animate="false"
  120. :ratio="1000"
  121. />
  122. </div>
  123. <div class="economicTable1 mentues met" style="margin-top: 10px">
  124. <el-table
  125. :data="detailsValue"
  126. class="table-fixed tables"
  127. ref="multipleTable"
  128. :cell-style="tagCellStyle"
  129. height="23vh"
  130. fit
  131. stripe
  132. >
  133. <el-table-column
  134. align="center"
  135. prop="name"
  136. label="指标名称"
  137. width="500"
  138. show-overflow-tooltip
  139. >
  140. </el-table-column>
  141. <el-table-column
  142. align="center"
  143. prop="tagName"
  144. label="描述"
  145. width="400"
  146. show-overflow-tooltip
  147. >
  148. </el-table-column>
  149. <el-table-column
  150. align="center"
  151. prop="dateTime"
  152. label="快照时间"
  153. width="200"
  154. >
  155. </el-table-column>
  156. <el-table-column align="center" prop="value" label="快照值">
  157. </el-table-column>
  158. <el-table-column align="center" prop="minvalue" label="最大值">
  159. </el-table-column>
  160. <el-table-column align="center" prop="maxvalue" label="最小值">
  161. </el-table-column>
  162. <el-table-column align="center" prop="avgvalue" label="平均值">
  163. </el-table-column>
  164. <el-table-column
  165. prop="showy"
  166. label="操作"
  167. align="center"
  168. width="110"
  169. style="cursor: pointer"
  170. >
  171. <template v-slot="scoped">
  172. <i
  173. style="cursor: pointer"
  174. class="svg-icon svg-icon-sm svg-icon-gray checkIcon"
  175. >
  176. <SvgIcon
  177. :svgid="scoped.row.showy ? 'svg-show' : 'svg-hide'"
  178. ></SvgIcon
  179. ></i>
  180. <el-switch
  181. v-model="scoped.row.showy"
  182. @change="curveSwitchData(scoped.row)"
  183. inactive-color="rgba(0,0,0,0)"
  184. active-color="rgba(0,0,0,0)"
  185. >
  186. </el-switch>
  187. </template>
  188. </el-table-column>
  189. </el-table>
  190. </div>
  191. </el-dialog>
  192. <el-dialog
  193. class="ysetDialog"
  194. width="43%"
  195. v-model="ysetDialogVisible"
  196. :show-close="true"
  197. >
  198. <template #title>
  199. <div class="dialog-title">
  200. <img class="dialog-title-img" src="@assets/imgs/dialog-title.png" />
  201. <div class="title">{{ ysetName }}</div>
  202. </div>
  203. </template>
  204. <div class="dialog-body mentuese metse" style="height: 35vh">
  205. <el-table
  206. :data="tagDatas"
  207. class="table-fixed tables"
  208. ref="multipleTable"
  209. :cell-style="tagCellStyle2"
  210. height="100%"
  211. style="width: 100%"
  212. fit
  213. empty-text="暂无数据"
  214. stripe
  215. >
  216. <el-table-column
  217. prop="tagName"
  218. label="指标名称"
  219. align="center"
  220. fixed
  221. width="420"
  222. >
  223. </el-table-column>
  224. <el-table-column
  225. prop="minvalue"
  226. label="最小值"
  227. align="center"
  228. fixed
  229. width="180"
  230. >
  231. <template v-slot="scoped">
  232. <el-input-number
  233. size="small"
  234. v-model="scoped.row.min"
  235. controls-position="right"
  236. ></el-input-number>
  237. </template>
  238. </el-table-column>
  239. <el-table-column
  240. prop="maxvalue"
  241. label="最大值"
  242. align="center"
  243. fixed
  244. width="180"
  245. >
  246. <template v-slot="scoped">
  247. <el-input-number
  248. size="small"
  249. v-model="scoped.row.max"
  250. controls-position="right"
  251. ></el-input-number>
  252. </template>
  253. </el-table-column>
  254. </el-table>
  255. </div>
  256. <img
  257. class="dialog-img"
  258. style="position: absolute; bottom: 50px; right: 0"
  259. src="@assets/imgs/dialog.png"
  260. />
  261. <el-row
  262. class="footerButton changeButton"
  263. style="text-align: center; margin-top: 20px"
  264. >
  265. <el-button
  266. size="medium"
  267. style="width: 125px"
  268. round
  269. @click="cancelMultiys()"
  270. >取消多坐标</el-button
  271. >
  272. <el-button type="primary" size="medium" round @click="saveEditTagInfo()"
  273. >确定</el-button
  274. >
  275. </el-row>
  276. </el-dialog>
  277. </div>
  278. </template>
  279. <script>
  280. import {
  281. GetWtPoints,
  282. GetWpPoints,
  283. GetPointFitting,
  284. GetSubPoints,
  285. GetProPoints,
  286. } from "@/api/points/index.js";
  287. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  288. import dayjs from "dayjs";
  289. import windChartCom from "./lineCharts.vue";
  290. export default {
  291. name: "changeCheck", //趋势对比
  292. components: {
  293. windChartCom,
  294. SvgIcon,
  295. },
  296. props: {
  297. data: {
  298. type: String,
  299. required: true,
  300. },
  301. chartName: {
  302. type: String,
  303. default: "对比曲线",
  304. },
  305. index: {
  306. type: String,
  307. required: true,
  308. },
  309. title: {
  310. type: String,
  311. required: true,
  312. },
  313. },
  314. data() {
  315. return {
  316. value: true,
  317. dialogVisibles: false,
  318. stse: [],
  319. sts: [],
  320. statiomName: [],
  321. leng: "",
  322. x: 500,
  323. y: 250,
  324. starttime: new Date(),
  325. endtime: "",
  326. stationTit: null,
  327. dragging: false,
  328. currentX: 50,
  329. currentY: 0,
  330. initialX: 0,
  331. initialY: 0,
  332. tableShow: true,
  333. tmp: [],
  334. detailsValue: [],
  335. numgap: 900,
  336. intervalgap: 7,
  337. tmpData: "",
  338. units: [],
  339. color: [
  340. "#1985de",
  341. "#ff8300",
  342. "#06a746",
  343. "#3eede7",
  344. "#eb0f7c",
  345. "#dfdc0a",
  346. "#de0feb",
  347. "#cca4e3",
  348. ],
  349. unitDatas: [{ flag: false, min: 0, max: 0, codex: 0 }],
  350. tagDatas: [],
  351. handleSwitch: false,
  352. chartsData: [],
  353. chartsDataAll: [],
  354. dialogCurveVisible: false,
  355. ysetDialogVisible: false,
  356. ysetName: "自定义多坐标",
  357. visibles: "",
  358. cilent: "",
  359. dialogFull: false,
  360. chartHeight: "43vh",
  361. tagNames: "",
  362. pointIds: "",
  363. searchFlag: false, //判断是否重置多坐标
  364. changeYset: false, //是否设置过多坐标
  365. ined: 1, //查询测点类型
  366. timerFlag: false,
  367. };
  368. },
  369. created() {
  370. this.starttime = new Date(new Date().setHours(0, 0, 0, 0));
  371. this.endtime = new Date();
  372. },
  373. methods: {
  374. // 防止按钮频繁点击
  375. throttleSearch() {
  376. this.timerFlag = true;
  377. setTimeout(() => {
  378. this.searchChartData();
  379. this.timerFlag = false;
  380. }, 2000);
  381. },
  382. // 指标样式
  383. tagCellStyle({ row, column, rowIndex, columnIndex }) {
  384. if (!row.showy) {
  385. return { color: "#525252", fontSize: "11px" };
  386. }
  387. if ((columnIndex == 0 || columnIndex == 1) && row.showy) {
  388. return { color: this.color[rowIndex], fontSize: "13px" };
  389. } else {
  390. return { padding: "6px 0px" };
  391. }
  392. },
  393. // 指标样式
  394. tagCellStyle2({ row, column, rowIndex, columnIndex }) {
  395. if (columnIndex == 0) {
  396. return { color: this.color[rowIndex] + "!important", fontSize: "13px" };
  397. } else {
  398. return { padding: "6px 0px" };
  399. }
  400. },
  401. // 取消多坐标
  402. cancelMultiys() {
  403. this.searchFlag = false;
  404. this.units = [];
  405. this.unitDatas = [];
  406. this.tagDatas.forEach((value, index) => {
  407. if (index == 0) {
  408. this.units.push(this.chartsData[0].title);
  409. this.unitDatas.push({ flag: false, min: 0, max: 0, codex: 0 });
  410. }
  411. });
  412. this.chartsData.forEach((value2, index2) => {
  413. value2.yAxisIndex = 0;
  414. });
  415. this.ysetDialogVisible = false;
  416. this.changeYset = false;
  417. },
  418. // 展示多坐标弹窗
  419. showYsetDialog() {
  420. var maxy = this.$refs.windChartCom.childMethod(0);
  421. this.tagDatas.forEach((value, index) => {
  422. if (value.showy) {
  423. value.max = this.$refs.windChartCom.childMethod(index);
  424. } else {
  425. value.max = maxy;
  426. }
  427. });
  428. this.ysetDialogVisible = true;
  429. this.changeYset = true;
  430. },
  431. // 保存多坐标信息
  432. saveEditTagInfo() {
  433. if (this.changeYset) {
  434. this.units = [];
  435. this.unitDatas = [];
  436. this.chartsData.forEach((value, index) => {
  437. value.yAxisIndex = 0;
  438. });
  439. this.tagDatas.forEach((value, index) => {
  440. if (index == 0) {
  441. this.units.push(this.chartsData[0].title);
  442. this.unitDatas.push({
  443. flag: true,
  444. min: value.min,
  445. max: value.max,
  446. codex: 0,
  447. });
  448. }
  449. if (index > 0) {
  450. this.units.push(value.tagName);
  451. this.unitDatas.push({
  452. flag: true,
  453. min: value.min,
  454. max: value.max,
  455. codex: index,
  456. });
  457. this.chartsData.forEach((value2, index2) => {
  458. if (value2.title == value.tagName) {
  459. value2.yAxisIndex = index;
  460. }
  461. });
  462. }
  463. });
  464. this.changeYset = true;
  465. } else {
  466. this.changeYset = false;
  467. }
  468. this.ysetDialogVisible = false;
  469. },
  470. exportDatas() {},
  471. c() {
  472. this.dialogFull ? (this.dialogFull = false) : (this.dialogFull = true);
  473. },
  474. curveSwitchData(e) {
  475. this.value = e.showy;
  476. var option = "{";
  477. this.detailsValue.forEach((value, index) => {
  478. option += "'" + value.tagName + "'" + ":" + value.showy + ",";
  479. });
  480. option = option.substring(0, option.length - 1);
  481. option += "}";
  482. var json = eval("(" + option + ")");
  483. this.$refs.windChartCom.changDateVisible(json);
  484. },
  485. // 弹窗首次加载对比曲线
  486. openCurvDatas(valse, ined, wtid) {
  487. this.ined = ined;
  488. this.searchFlag = false;
  489. this.changeYset = false;
  490. this.wtid = wtid;
  491. this.dialogCurveVisible = true;
  492. this.detailsValue = [];
  493. this.tagDatas = [];
  494. this.units = [];
  495. this.unitDatas = [];
  496. this.numgap = 900;
  497. this.intervalgap = 7;
  498. let tagNames = "";
  499. this.tmpData = valse;
  500. this.tmpData.forEach((value, index) => {
  501. tagNames += value.sts + ",";
  502. });
  503. this.tagNames = tagNames.substring(0, tagNames.length - 1);
  504. if (ined == 1) {
  505. this.getWpPoints(wtid);
  506. } else if (ined == 2) {
  507. this.getWtPoints(wtid);
  508. } else if (ined == 3) {
  509. this.getPoints(this.tagNames);
  510. } else if (ined == 4) {
  511. this.getSubPoints(wtid);
  512. } else if (ined == 5) {
  513. this.getProPoints(wtid);
  514. }
  515. },
  516. // 查询设备测点
  517. getWtPoints(wtid) {
  518. GetWtPoints({
  519. wtid,
  520. uniformcodes: this.tagNames,
  521. }).then((res) => {
  522. this.tmpData.forEach((item) => {
  523. res.data.data.forEach((i) => {
  524. if (item.sts == i.uniformCode) {
  525. item.sts = i.nemCode;
  526. item.statiomName = i.name;
  527. }
  528. });
  529. // if()
  530. });
  531. let pointIds = "";
  532. res.data.data.forEach((value) => {
  533. pointIds += value.nemCode + ",";
  534. });
  535. pointIds = pointIds.substring(0, pointIds.length - 1);
  536. this.getPoints(pointIds);
  537. });
  538. },
  539. // 查询场站测点
  540. getWpPoints(wpid) {
  541. GetWpPoints({
  542. wpid,
  543. uniformcodes: this.tagNames,
  544. }).then((res) => {
  545. let resData = res.data.data.map((item) => {
  546. if (item == null) {
  547. return {};
  548. } else {
  549. return { ...item };
  550. }
  551. });
  552. let pointIds = "";
  553. this.tmpData.forEach((item) => {
  554. resData.forEach((i) => {
  555. if (Object.keys(i).length) {
  556. if (item.sts == i.uniformCode) {
  557. item.sts = i.nemCode;
  558. item.statiomName = i.name;
  559. }
  560. } else {
  561. item.sts = "";
  562. item.statiomName = "";
  563. }
  564. });
  565. });
  566. resData.forEach((value) => {
  567. if (!value) {
  568. value.nemCode = "";
  569. }
  570. pointIds += value.nemCode + ",";
  571. });
  572. pointIds = pointIds.substring(0, pointIds.length - 1);
  573. this.getPoints(pointIds);
  574. });
  575. },
  576. // 查询调度场站测点
  577. getSubPoints(wpid) {
  578. GetSubPoints({
  579. wpid,
  580. uniformcodes: this.tagNames,
  581. }).then((res) => {
  582. this.tmpData.forEach((item) => {
  583. res.data.data.forEach((i) => {
  584. if (item.sts == i.uniformCode) {
  585. item.sts = i.nemCode;
  586. item.statiomName = i.name;
  587. }
  588. });
  589. });
  590. let pointIds = "";
  591. res.data.data.forEach((value) => {
  592. pointIds += value.nemCode + ",";
  593. });
  594. pointIds = pointIds.substring(0, pointIds.length - 1);
  595. this.getPoints(pointIds);
  596. });
  597. },
  598. // 查询场站期次测点
  599. getProPoints(wpid) {
  600. GetProPoints({
  601. wpid,
  602. uniformcodes: this.tagNames,
  603. }).then((res) => {
  604. this.tmpData.forEach((item) => {
  605. res.data.data.forEach((i) => {
  606. if (item.sts == i.uniformCode) {
  607. item.sts = i.nemCode;
  608. item.statiomName = i.name;
  609. }
  610. });
  611. });
  612. let pointIds = "";
  613. res.data.data.forEach((value) => {
  614. pointIds += value.nemCode + ",";
  615. });
  616. pointIds = pointIds.substring(0, pointIds.length - 1);
  617. this.getPoints(pointIds);
  618. });
  619. },
  620. // 查询测点
  621. getPoints(pointIds) {
  622. GetPointFitting({
  623. begin: dayjs(this.starttime).format("YYYY-MM-DD HH:mm:ss"),
  624. end: dayjs(this.endtime).format("YYYY-MM-DD HH:mm:ss"),
  625. interval: this.numgap,
  626. pointIds,
  627. }).then((res) => {
  628. if (res.data.data.length) {
  629. let powerLineChartData = [];
  630. let resData = res.data.data;
  631. resData.forEach((value, index) => {
  632. var option = {
  633. title:
  634. this.ined == 3
  635. ? this.tmpData[index].stse + this.tmpData[index].statiomName
  636. : this.tmpData[index].statiomName,
  637. tagName: this.tmpData[index].sts,
  638. yAxisIndex: 0,
  639. value: value
  640. ? value.map((item) => {
  641. return {
  642. dateTime: item.pointTime,
  643. value: item.pointValueInDouble,
  644. };
  645. })
  646. : [],
  647. noRatio: true,
  648. };
  649. powerLineChartData.push(option);
  650. });
  651. this.chartsData = powerLineChartData;
  652. this.chartsDataAll = JSON.parse(JSON.stringify(this.chartsData));
  653. this.dialogCurveVisible = true;
  654. let tagDatas = [];
  655. resData.forEach((value, index) => {
  656. var option = {
  657. tagName:
  658. this.ined == 3
  659. ? this.tmpData[index].stse + this.tmpData[index].statiomName
  660. : this.tmpData[index].statiomName,
  661. min: 0,
  662. max: 0,
  663. showy: false,
  664. };
  665. tagDatas.push(option);
  666. });
  667. tagDatas[0].showy = true;
  668. if (!this.searchFlag) {
  669. this.units = [this.chartsData[0].title];
  670. this.unitDatas.push({ flag: false, min: 0, max: 0, codex: 0 });
  671. this.tagDatas = tagDatas;
  672. } else {
  673. this.saveEditTagInfo();
  674. }
  675. resData.forEach((value, index) => {
  676. var option;
  677. if (value != null && value.length > 0) {
  678. let dateTime = null;
  679. let dateValue = null;
  680. let vals = [];
  681. for (var i = value.length - 1; i >= 0; i--) {
  682. if (value[i].pointValueInDouble !== "") {
  683. dateTime = dayjs(value[i].pointTime).format(
  684. "YYYY-MM-DD HH:mm:ss"
  685. );
  686. dateValue = Number(value[i].pointValueInDouble).toFixed(2);
  687. break;
  688. }
  689. }
  690. for (var j = value.length - 1; j >= 0; j--) {
  691. if (value[j].pointValueInDouble !== "") {
  692. vals.push(value[j].pointValueInDouble);
  693. }
  694. }
  695. let maxValue = vals.sort()[0].toFixed(2);
  696. let minValue = vals.sort().reverse()[0].toFixed(2);
  697. let totalValue = 0;
  698. for (var k = 0; k < vals.length; k++) {
  699. totalValue += vals[k];
  700. }
  701. let avgValue = (totalValue / vals.length).toFixed(2);
  702. option = {
  703. name: this.tmpData[index].sts,
  704. tagName:
  705. this.ined == 3
  706. ? this.tmpData[index].stse + this.tmpData[index].statiomName
  707. : this.tmpData[index].statiomName,
  708. showy: true,
  709. dateTime: dateTime,
  710. value: dateValue,
  711. maxvalue: maxValue,
  712. minvalue: minValue,
  713. avgvalue: avgValue,
  714. };
  715. } else {
  716. option = {
  717. name: this.tmpData[index].sts,
  718. tagName:
  719. this.ined == 3
  720. ? this.tmpData[index].stse + this.tmpData[index].statiomName
  721. : this.tmpData[index].statiomName,
  722. showy: true,
  723. dateTime: "-",
  724. value: "-",
  725. maxvalue: "-",
  726. minvalue: "-",
  727. avgvalue: "-",
  728. };
  729. }
  730. this.detailsValue.push(option);
  731. });
  732. }
  733. });
  734. },
  735. // 点击查询按钮查询对比曲线
  736. searchChartData() {
  737. this.searchFlag = true;
  738. this.chartsData = [];
  739. this.detailsValue = [];
  740. if (this.ined == 1) {
  741. this.getWpPoints(this.wtid);
  742. } else if (this.ined == 2) {
  743. this.getWtPoints(this.wtid);
  744. } else if (this.ined == 3) {
  745. this.getPoints(this.tagNames);
  746. } else if (this.ined == 4) {
  747. this.getSubPoints(this.wtid);
  748. } else if (this.ined == 5) {
  749. this.getProbPoints(this.wtid);
  750. }
  751. },
  752. // 关闭弹窗事件
  753. handleClose() {
  754. this.tmpData = [];
  755. this.tagNames = "";
  756. this.searchFlag = false;
  757. this.changeYset = false;
  758. this.tagDatas = [];
  759. this.chartsData = [];
  760. this.detailsValue = [];
  761. this.starttime = new Date(new Date().setHours(0, 0, 0, 0));
  762. this.endtime = new Date();
  763. this.numgap = 900;
  764. },
  765. },
  766. mounted() {},
  767. computed: {},
  768. };
  769. </script>
  770. <style lang="less" scoped>
  771. .footerButton {
  772. justify-content: right;
  773. .el-button:first-child {
  774. width: 108px;
  775. background-color: rgba(0, 70, 199, 0.2) !important;
  776. color: #b3b3b3;
  777. border-color: transparent;
  778. }
  779. .el-button:last-of-type {
  780. width: 108px;
  781. background: rgba(0, 70, 199, 0.4) !important;
  782. }
  783. }
  784. .checkIcon {
  785. position: absolute;
  786. left: 45px;
  787. top: 8px;
  788. font-size: 20px;
  789. color: #929396;
  790. }
  791. .searchColor {
  792. background: rgba(0, 70, 199, 0.4);
  793. color: #b3b3b3;
  794. font-size: 14px;
  795. border: none;
  796. width: 108px;
  797. min-height: 25px !important;
  798. &:hover {
  799. background-color: rgba(0, 70, 199, 0.5);
  800. color: #ffffff;
  801. }
  802. }
  803. .qushi-form {
  804. flex: 0 0 auto;
  805. display: flex;
  806. align-items: center;
  807. .station {
  808. display: flex;
  809. flex-direction: row;
  810. align-items: center;
  811. font-size: 14px;
  812. font-family: Microsoft YaHei;
  813. font-weight: 400;
  814. color: #b3b3b3;
  815. margin-left: 40px;
  816. /deep/ .el-input__suffix {
  817. right: -68px;
  818. }
  819. /deep/ .el-input__prefix {
  820. left: 0;
  821. }
  822. /deep/ .el-input__inner {
  823. width: 190px;
  824. }
  825. .el-input-number {
  826. width: 190px;
  827. /deep/ .el-input-number__decrease,
  828. /deep/ .el-input-number__increase {
  829. position: absolute;
  830. z-index: 10;
  831. border: 0;
  832. height: 25px;
  833. line-height: 25px;
  834. top: 5px;
  835. }
  836. }
  837. }
  838. }
  839. .qushi-tools {
  840. flex: 1;
  841. display: flex;
  842. justify-content: flex-end;
  843. .customColor {
  844. border-radius: 0 !important;
  845. background: url("../../assets/imgs/buttonBack.png") no-repeat;
  846. background-position: 7px;
  847. }
  848. .updownTit {
  849. padding: 0 !important;
  850. width: 30px !important;
  851. min-height: 28px !important;
  852. border-radius: 4px;
  853. border: 1px solid rgba(225, 225, 225, 0.3) !important;
  854. border-top: 1px solid #ffffff !important;
  855. border-bottom: 0;
  856. box-shadow: 0 0 22px rgba(255, 255, 255, 0.2) inset !important;
  857. //border-image: linear-gradient(321deg, rgba(225, 225, 225,2 ), rgba(5, 187, 76, 0.5)) 1 1 !important;
  858. background: linear-gradient(
  859. 180deg,
  860. rgba(255, 255, 255, 0.5),
  861. rgba(0, 0, 0, 0.5),
  862. rgba(0, 0, 0, 1)
  863. );
  864. }
  865. }
  866. </style>