alarm-center-1.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. <template>
  2. <div class="alarm-center-1">
  3. <div class="action-bar">
  4. <div class="query mg-b-16">
  5. <div class="query-items">
  6. <div class="query-item">
  7. <div class="lable">风场:</div>
  8. <div class="search-input">
  9. <el-select
  10. v-model="wpvalue"
  11. clearable
  12. placeholder="请选择"
  13. popper-class="select"
  14. >
  15. <el-option
  16. v-for="item in wpoptions"
  17. :key="item.id"
  18. :label="item.name"
  19. :value="item.id"
  20. >
  21. </el-option>
  22. </el-select>
  23. </div>
  24. </div>
  25. <div class="query-item">
  26. <div class="lable">开始日期:</div>
  27. <div class="search-input">
  28. <el-date-picker
  29. v-model="startdate"
  30. type="date"
  31. placeholder="选择日期"
  32. popper-class="date-select"
  33. >
  34. </el-date-picker>
  35. </div>
  36. </div>
  37. <div class="query-item">
  38. <div class="lable">结束日期:</div>
  39. <div class="search-input">
  40. <el-date-picker
  41. v-model="enddate"
  42. type="date"
  43. placeholder="选择日期"
  44. popper-class="date-select"
  45. >
  46. </el-date-picker>
  47. </div>
  48. </div>
  49. <div class="query-item">
  50. <div class="lable">规则:</div>
  51. <el-cascader
  52. style="width: 240px"
  53. size="mini"
  54. popper-class="search-select"
  55. :options="cascaderOptions"
  56. :props="cascaderProps"
  57. v-model="cascaderSel"
  58. collapse-tags
  59. :clearable="true"
  60. ></el-cascader>
  61. </div>
  62. </div>
  63. <div class="query-actions">
  64. <button class="btn green" @click="searchData">搜索</button>
  65. <button class="btn green" @click="searchTree">筛选</button>
  66. </div>
  67. </div>
  68. </div>
  69. <panel-3 class="table-panel">
  70. <table-3 :data="tableData" :height="'85vh'">
  71. <template v-for="(item, i) in column" :key="i" #[item]="scope">
  72. <div class="bar">
  73. <div
  74. class="bar-percent"
  75. @click="showChart(scope)"
  76. :style="{
  77. width:
  78. (scope.data.count &&
  79. scope.data.count / (scope.data.count + scope.data.time)) *
  80. 100 +
  81. 'px',
  82. }"
  83. ></div>
  84. <span class="value"
  85. >{{ scope.data.count && scope.data.count }} 次数</span
  86. >
  87. </div>
  88. <div class="bar">
  89. <div
  90. class="bar-percent"
  91. @click="showChart(scope)"
  92. :style="{
  93. width:
  94. (scope.data.count &&
  95. scope.data.time / (scope.data.count + scope.data.time)) *
  96. 100 +
  97. 'px',
  98. }"
  99. ></div>
  100. <span class="value"
  101. >{{ scope.data.count && scope.data.time }} 分钟</span
  102. >
  103. </div>
  104. </template>
  105. </table-3>
  106. </panel-3>
  107. <el-dialog
  108. :title="dialogTitle"
  109. v-model="dialogVisible"
  110. width="70%"
  111. top="10vh"
  112. custom-class="modal"
  113. :close-on-click-modal="false"
  114. >
  115. <div class="searchForm">
  116. <el-select
  117. @change="searchTime(selectValue)"
  118. class="inputs"
  119. v-model="selectValue"
  120. placeholder="请选择"
  121. >
  122. <el-option
  123. v-for="item in timeoptions"
  124. :key="item.value"
  125. :label="item.label"
  126. :value="item.value"
  127. >
  128. </el-option>
  129. </el-select>
  130. <div class="choose">
  131. <button class="btn"
  132. @click="switchChange(60)"
  133. >
  134. 等间隔
  135. </button>
  136. <button class="btn"
  137. @click="switchChange(0)"
  138. >
  139. 原始数据
  140. </button>
  141. </div>
  142. </div>
  143. <multiple-y-line-chart-normal
  144. height="500px"
  145. :list="Analysis"
  146. :yAxises="AnalysisYAxises"
  147. :showLegend="true"
  148. />
  149. </el-dialog>
  150. </div>
  151. </template>
  152. <script>
  153. import Panel3 from "../../components/coms/panel/panel3.vue";
  154. import Table3 from "../../components/coms/table/table3.vue";
  155. import MultipleYLineChartNormal from "./multiple-y-line-chart-normal.vue";
  156. export default {
  157. components: { Panel3, Table3, MultipleYLineChartNormal },
  158. data() {
  159. return {
  160. dialogTitle: "",
  161. dialogVisible: false,
  162. switchFlag: false,
  163. chooseTime: [],
  164. wpvalue: "",
  165. wpid: "",
  166. wtId:"",
  167. descName:"",
  168. AnalysisName: "",
  169. AnalysisUnit: "",
  170. Analysis: [
  171. {
  172. title: "",
  173. yAxisIndex: 0, // 使用单位
  174. value: [],
  175. },
  176. ],
  177. AnalysisYAxises: [
  178. {
  179. name: "",
  180. min: "",
  181. max: "",
  182. unit: "",
  183. position: "left",
  184. },
  185. {
  186. name: "",
  187. min: "",
  188. max: "",
  189. unit: "",
  190. position: "right",
  191. },
  192. ],
  193. selectValue: "60",
  194. timeoptions: [
  195. {
  196. value: "60",
  197. label: "一分钟",
  198. },
  199. {
  200. value: "300",
  201. label: "五分钟",
  202. },
  203. {
  204. value: "600",
  205. label: "十分钟",
  206. },
  207. {
  208. value: "1800",
  209. label: "三十分钟",
  210. },
  211. {
  212. value: "3600",
  213. label: "一小时",
  214. },
  215. {
  216. value: "86400",
  217. label: "一天",
  218. },
  219. ],
  220. wpoptions: "",
  221. options: [],
  222. cascaderOptions: [],
  223. cascaderSel: [],
  224. cascaderProps: { multiple: true },
  225. column: [
  226. "风机偏航过程震动",
  227. "齿轮箱轴承温升超过40度",
  228. "三相电流不平衡",
  229. "断轴或联轴器打滑",
  230. "风速突变",
  231. ],
  232. columnObj: [
  233. {
  234. name: "风机编号",
  235. field: "name",
  236. width: "100px",
  237. minWidth: "100px",
  238. },
  239. {
  240. name: "风机偏航过程震动",
  241. field: "风机偏航过程震动",
  242. align: "left",
  243. slot: true,
  244. sortable: true,
  245. minWidth: "200px",
  246. },
  247. {
  248. name: "齿轮箱轴承温升超过40度",
  249. field: "齿轮箱轴承温升超过40度",
  250. align: "left",
  251. slot: true,
  252. sortable: true,
  253. minWidth: "200px",
  254. },
  255. {
  256. name: "三相电流不平衡",
  257. field: "三相电流不平衡",
  258. align: "left",
  259. slot: true,
  260. sortable: true,
  261. minWidth: "200px",
  262. },
  263. {
  264. name: "断轴或联轴器打滑",
  265. field: "断轴或联轴器打滑",
  266. align: "left",
  267. slot: true,
  268. sortable: true,
  269. minWidth: "200px",
  270. },
  271. {
  272. name: "风速突变",
  273. align: "left",
  274. field: "风速突变",
  275. slot: true,
  276. sortable: true,
  277. minWidth: "200px",
  278. },
  279. ],
  280. startdate: new Date(
  281. new Date(new Date().setDate(new Date().getDate() - 1))
  282. ).formatDate("yyyy-MM-dd"),
  283. enddate: new Date(new Date()).formatDate("yyyy-MM-dd"),
  284. tableData: {
  285. column: [
  286. {
  287. name: "风机编号",
  288. field: "name",
  289. },
  290. {
  291. name: "主轴温度温差大于8度",
  292. field: "v1",
  293. align: "left",
  294. slot: true,
  295. },
  296. {
  297. name: "浆叶角过小",
  298. field: "v2",
  299. align: "left",
  300. slot: true,
  301. },
  302. ],
  303. data: [
  304. {
  305. name: "MG01_01",
  306. v1: {
  307. count: 12,
  308. time: 0,
  309. },
  310. },
  311. ],
  312. },
  313. };
  314. },
  315. created() {
  316. this.$nextTick(() => {
  317. this.search();
  318. });
  319. },
  320. methods: {
  321. //对比
  322. showChart(column) {
  323. let that = this;
  324. that.dialogTitle = column.column.name;
  325. that.wtId = column.row.name;
  326. that.descName = column.column.name;
  327. // console.log('column:',column)
  328. // console.log('name:',column.column.name)
  329. // console.log('wtid:',column.row.name)
  330. // console.log('starttime:',new Date(that.startdate).getTime())
  331. // console.log('endtime:',new Date(that.enddate).getTime())
  332. that.dialogVisible = true;
  333. that.requestDetailData(
  334. that.wpvalue,
  335. that.startdate,
  336. that.enddate,
  337. 0,
  338. column.row.name,
  339. column.column.name
  340. );
  341. },
  342. requestDetailData(station, startTs, endTs, interval, wtId, name) {
  343. let that = this;
  344. that.API.requestData({
  345. method: "GET",
  346. subUrl: "/analysis/detail",
  347. data: {
  348. // station: that.wpvalue,
  349. // startTs: new Date(that.startdate).getTime(),
  350. // endTs: new Date(that.enddate).getTime(),
  351. // // interval: 360,
  352. // interval:1,
  353. // wtId: column.row.name,
  354. // name: column.column.name,
  355. station: station,
  356. startTs: new Date(startTs).getTime(),
  357. endTs: new Date(endTs).getTime(),
  358. interval: interval,
  359. wtId: wtId,
  360. name: name,
  361. },
  362. success(res) {
  363. console.log("resAnalysis:", res);
  364. let anKey = ["doubleValue"];
  365. if (res.data.length == 1) {
  366. let yaxises = [
  367. {
  368. name: "",
  369. min: 0,
  370. max: null,
  371. unit: "",
  372. position: "left",
  373. },
  374. ];
  375. // yaxises.name = res.data[0].name;
  376. yaxises.unit = res.data[0].unit;
  377. that.AnalysisYAxises = yaxises;
  378. console.log("AnalysisYAxises:", that.AnalysisYAxises);
  379. let aKey1 = ["doubleValue"];
  380. let aList1 = [
  381. {
  382. title: "",
  383. // yAxisIndex:"",
  384. smooth: true,
  385. value: [],
  386. },
  387. ];
  388. aKey1.forEach((keyEle,keyIndex)=>{
  389. // console.log('keyindex:',res.data[keyIndex]);
  390. aList1[keyIndex].title = res.data[keyIndex].name;
  391. res.data[keyIndex].data.forEach((rEle)=>{
  392. aList1[keyIndex].value.push({
  393. text:new Date(rEle.ts).formatDate("hh:mm"),
  394. value:rEle.doubleValue
  395. })
  396. })
  397. })
  398. // aKey1.forEach((keyEle, keyIndex) => {
  399. // res.data.forEach((rEle) => {
  400. // rEle.data.forEach((tEle) => {
  401. // alist1[keyIndex].yAxisIndex = keyIndex;
  402. // aList1[keyIndex].title = res.data[0].name;
  403. // aList1[keyIndex].value.push({
  404. // text: new Date(tEle.ts).formatDate("hh:mm"),
  405. // value: tEle[keyEle],
  406. // });
  407. // });
  408. // });
  409. // });
  410. that.Analysis = aList1;
  411. console.log("that.Analysis1:", that.Analysis);
  412. } else if (res.data.length == 2) {
  413. let aKey2 = ["doubleValue", "doubleValue"];
  414. let aList2 = [
  415. {
  416. title: "",
  417. // yAxisIndex:"",
  418. smooth: true,
  419. value: [],
  420. },
  421. {
  422. title: "",
  423. // yAxisIndex:"",
  424. smooth: true,
  425. value: [],
  426. },
  427. ];
  428. let yaxises1 = [
  429. {
  430. name: "",
  431. min: 0,
  432. max: null,
  433. unit: "",
  434. position: "left",
  435. },
  436. {
  437. name: "",
  438. min: 0,
  439. max: null,
  440. unit: "",
  441. position: "right",
  442. },
  443. ];
  444. yaxises1.forEach((aEle, aIndex) => {
  445. res.data.forEach((rEle) => {
  446. // console.log('rEleName:',rEle.name)
  447. // console.log('rEle.unit:',rEle.unit)
  448. // aEle.name = rEle.name;
  449. aEle.unit = rEle.unit;
  450. });
  451. });
  452. that.AnalysisYAxises = yaxises1;
  453. console.log("AnalysisYAxises:", that.AnalysisYAxises);
  454. aKey2.forEach((keyEle,keyIndex)=>{
  455. // console.log('keyindex:',res.data[keyIndex]);
  456. aList2[keyIndex].title = res.data[keyIndex].name;
  457. res.data[keyIndex].data.forEach((rEle)=>{
  458. aList2[keyIndex].value.push({
  459. text:new Date(rEle.ts).formatDate("hh:mm"),
  460. value:rEle.doubleValue
  461. })
  462. })
  463. })
  464. // res.data.forEach((rEle,rIndex)=>{
  465. // console.log('rele:',rEle)
  466. // })
  467. // aKey2.forEach((keyEle, keyIndex) => {
  468. // res.data.forEach((rEle) => {
  469. // // alist2[keyIndex].yAxisIndex = keyIndex;
  470. // aList2[keyIndex].title = res.data[keyIndex].name;
  471. // rEle.data.forEach((tEle,tIndex) => {
  472. // console.log('res.data[keyIndex].data[tIndex].doubleValue2:',res.data)
  473. // aList2[keyIndex].value.push({
  474. // text: new Date(tEle.ts).formatDate("hh:mm"),
  475. // // value: tEle[keyEle],
  476. // // value:res.data[keyIndex].data[tIndex].doubleValue
  477. // });
  478. // });
  479. // });
  480. // });
  481. that.Analysis = aList2;
  482. console.log("that.Analysis2:", that.Analysis);
  483. } else if (res.data.length == 4) {
  484. let aKey4 = [
  485. "doubleValue",
  486. "doubleValue",
  487. "doubleValue",
  488. "doubleValue",
  489. ];
  490. let aList4 = [
  491. {
  492. title: "",
  493. // yAxisIndex:"",
  494. smooth: true,
  495. value: [],
  496. },
  497. {
  498. title: "",
  499. // yAxisIndex:"",
  500. smooth: true,
  501. value: [],
  502. },
  503. {
  504. title: "",
  505. // yAxisIndex:"",
  506. smooth: true,
  507. value: [],
  508. },
  509. {
  510. title: "",
  511. // yAxisIndex:"",
  512. smooth: true,
  513. value: [],
  514. },
  515. ];
  516. let yaxises2 = [
  517. {
  518. name: "",
  519. min: 0,
  520. max: null,
  521. unit: "",
  522. position: "left",
  523. },
  524. {
  525. name: "",
  526. min: 0,
  527. max: null,
  528. unit: "",
  529. position: "right",
  530. },
  531. ];
  532. yaxises2.forEach((aEle, aIndex) => {
  533. res.data.forEach((rEle) => {
  534. // console.log('rEleName:',rEle.name)
  535. // console.log('rEle.unit:',rEle.unit)
  536. // aEle.name = rEle.name;
  537. aEle.unit = rEle.unit;
  538. });
  539. });
  540. that.AnalysisYAxises = yaxises2;
  541. console.log("AnalysisYAxises:", that.AnalysisYAxises);
  542. aKey4.forEach((keyEle,keyIndex)=>{
  543. // console.log('keyindex:',res.data[keyIndex]);
  544. aList4[keyIndex].title = res.data[keyIndex].name;
  545. res.data[keyIndex].data.forEach((rEle)=>{
  546. aList4[keyIndex].value.push({
  547. text:new Date(rEle.ts).formatDate("hh:mm"),
  548. value:rEle.doubleValue
  549. })
  550. })
  551. })
  552. // aKey4.forEach((keyEle, keyIndex) => {
  553. // res.data.forEach((rEle) => {
  554. // // aList4[keyIndex].yAxisIndex = keyIndex;
  555. // aList4[keyIndex].title = res.data[keyIndex].name;
  556. // rEle.data.forEach((tEle,tIndex) => {
  557. // console.log('res.data[keyIndex].data[tIndex].doubleValue4:',res.data)
  558. // aList4[keyIndex].value.push({
  559. // text: new Date(tEle.ts).formatDate("hh:mm"),
  560. // // value: tEle[keyEle],
  561. // // value:res.data[keyIndex].data[tIndex].doubleValue
  562. // });
  563. // });
  564. // });
  565. // });
  566. that.Analysis = aList4;
  567. console.log("that.Analysis4:", that.Analysis);
  568. }else if (res.data.length == 0) {
  569. that.dialogVisible = false;
  570. that.BASE.showMsg({
  571. type: "warning",
  572. msg: "暂无数据",
  573. });
  574. }
  575. },
  576. });
  577. },
  578. //切换数据类型
  579. switchChange(interval) {
  580. if(interval == 0){
  581. this.requestDetailData(this.wpvalue,this.startdate,this.enddate,0,this.wtId,this.descName)
  582. }
  583. else if(interval == 60){
  584. this.requestDetailData(this.wpvalue,this.startdate,this.enddate,60,this.wtId,this.descName)
  585. }
  586. // this.switchFlag = !this.switchFlag;
  587. // this.selectValue = "60";
  588. // this.searchTime();
  589. // const loading = this.$loading({
  590. // lock: true,
  591. // text: "数据加载中",
  592. // spinner: "el-icon-loading",
  593. // background: "rgba(0, 0, 0, 0.7)",
  594. // });
  595. // setTimeout(() => {
  596. // loading.close();
  597. // }, 1000);
  598. },
  599. searchTime(values) {
  600. console.log("values:", values);
  601. this.requestDetailData(this.wpvalue,this.startdate,this.enddate,values,this.wtId,this.descName)
  602. // let times = [];
  603. // this.chooseTime.forEach((item) => {
  604. // times.push(dayjs(item).valueOf());
  605. // });
  606. // times.length > 0
  607. // ? this.switchFlag
  608. // ? this.$emit("original-data", times)
  609. // : this.$emit("search-data", times, Number(this.selectValue))
  610. // : this.$message({
  611. // showClose: true,
  612. // message: "请选择查询日期",
  613. // center: true,
  614. // type: "error",
  615. // });
  616. // if (values) {
  617. // this.$message({
  618. // showClose: true,
  619. // center: true,
  620. // message: '下载中'
  621. // });
  622. // setTimeout(() => {
  623. // this.export()
  624. // }, 2000)
  625. // }
  626. },
  627. tabSelect(tab) {},
  628. async search() {
  629. const { data } = await this.API.requestData({
  630. subUrl: "powercompare/windfarmAjax",
  631. });
  632. this.wpoptions = data.data;
  633. this.wpvalue = data.data[0].id;
  634. this.searchData();
  635. },
  636. async searchTree() {
  637. let arr = [];
  638. let columnObj = [
  639. {
  640. name: "风机编号",
  641. field: "name",
  642. minWidth: "100px",
  643. },
  644. ];
  645. this.cascaderSel.forEach((e) => {
  646. let obj = {
  647. name: e[1],
  648. field: e[1],
  649. align: "left",
  650. slot: true,
  651. sortable: true,
  652. minWidth: "200px",
  653. };
  654. columnObj.push(obj);
  655. arr.push(e[1]);
  656. });
  657. this.columnObj = columnObj;
  658. this.column = arr;
  659. this.searchData();
  660. },
  661. async searchData() {
  662. const { data } = await this.API.requestData({
  663. baseURL: "http://192.168.1.18:8075/",
  664. subUrl: "alarm/count/query/new",
  665. data: {
  666. stationid: this.wpvalue,
  667. startdate: new Date(this.startdate).formatDate("yyyy-MM-dd"),
  668. enddate: new Date(this.enddate).formatDate("yyyy-MM-dd"),
  669. },
  670. });
  671. ////////
  672. const resData = data.data;
  673. // console.log("resData:", resData);
  674. // const resData =this.resdata;
  675. const column = this.columnObj;
  676. let dataAll = []; // 总数据集合
  677. resData.forEach((e) => {
  678. let obj = {
  679. name: Object.keys(e)[0],
  680. };
  681. let wpid = Object.keys(e)[0];
  682. this.wpid = wpid;
  683. e[wpid].forEach((k) => {
  684. column.forEach((c) => {
  685. if (k.alertText == c.name) {
  686. let obj1 = {
  687. count: k.count,
  688. time: k.time,
  689. };
  690. obj[k.alertText] = obj1;
  691. }
  692. });
  693. });
  694. dataAll.push(obj);
  695. });
  696. // console.log('wpid:',this.wpid)
  697. this.tableData.column = column;
  698. // console.log('column:',column)
  699. this.tableData.data = dataAll;
  700. // console.log('dataAll:',dataAll)
  701. ///////////////////// 获取规则list
  702. const map = {};
  703. var windNum = [];
  704. for (let i in resData) {
  705. for (let k in resData[i]) {
  706. map[k] = resData[i][k];
  707. }
  708. }
  709. // nmap为新的map 整理数据结构
  710. const nmap = {};
  711. for (let kv in map) {
  712. var nchildMap = {};
  713. var childrenMap = map[kv];
  714. for (var ckv in childrenMap) {
  715. var cckey = childrenMap[ckv].alertText;
  716. var ccvalue = childrenMap[ckv];
  717. nchildMap[cckey] = ccvalue;
  718. }
  719. nmap[kv] = nchildMap;
  720. }
  721. windNum = Object.keys(nmap);
  722. var cascaderOptions = [];
  723. var root = {}; // 原始根节点
  724. var clumnsOnes = nmap[windNum[0]];
  725. for (let k in clumnsOnes) {
  726. let f = clumnsOnes[k].relatePartsText
  727. ? clumnsOnes[k].relatePartsText
  728. : "其他";
  729. let fvalue = clumnsOnes[k].relateParts ? clumnsOnes[k].relateParts : "";
  730. if (root[f]) {
  731. // 已经存在此子节点
  732. if (!root[f].children[k]) {
  733. // 不存在子节点
  734. root[f].children[k] = {};
  735. root[f].children[k].value = root[f].children[k].label = k;
  736. root[f].fobj.children.push(root[f].children[k]);
  737. }
  738. } // 不存在子节点
  739. else {
  740. root[f] = {};
  741. // root[f].value = fvalue;
  742. // root[f].label = f;
  743. root[f].children = {};
  744. root[f].children[k] = {};
  745. root[f].children[k].value = root[f].children[k].label = k;
  746. // 将对象放入 cascaderOptions
  747. let childrenArray = [];
  748. childrenArray.push(root[f].children[k]);
  749. let fobj = {};
  750. fobj.value = fvalue;
  751. fobj.label = f;
  752. fobj.children = childrenArray;
  753. cascaderOptions.push(fobj);
  754. root[f].fobj = fobj;
  755. }
  756. }
  757. // console.log("cascaderOptions:", cascaderOptions);
  758. this.cascaderOptions = cascaderOptions;
  759. },
  760. },
  761. };
  762. </script>
  763. <style lang="less">
  764. .alarm-center-1 {
  765. .action-bar {
  766. display: flex;
  767. .query {
  768. justify-content: flex-start;
  769. }
  770. }
  771. .table-panel {
  772. width: 100%;
  773. background: transparent;
  774. padding: 0;
  775. .bar {
  776. display: flex;
  777. align-items: center;
  778. height: 16px;
  779. margin: 8px 0;
  780. .bar-percent {
  781. height: 100%;
  782. background: @green;
  783. margin-right: 8px;
  784. }
  785. }
  786. }
  787. .searchForm{
  788. display: flex;
  789. margin-left: 36px;
  790. .inputs{
  791. width: 15%;
  792. margin-right: 18px;
  793. }
  794. }
  795. }
  796. </style>