xtpz.vue 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <template>
  2. <div class="table-wrapper">
  3. <div class="table-box">
  4. <div class="title"
  5. style="font-family: AliMaMa;font-size: 30px;font-weight: 1000;text-align: left;height: 40px">
  6. <span style="position: absolute;top:-3px;left: 70px">风电</span>
  7. </div>
  8. <el-row :gutter="20">
  9. <el-button
  10. id="message_btn1"
  11. class="el-icon-blue-left"
  12. >断面</el-button>
  13. <el-button
  14. id="message_btn2"
  15. class="el-icon-blue-left"
  16. >联络线</el-button>
  17. <el-button
  18. id="message_btn3"
  19. class="el-icon-blue-right"
  20. >刷新
  21. </el-button>
  22. <el-button
  23. id="message_btn4"
  24. class="el-icon-red-right"
  25. >
  26. 删除
  27. </el-button>
  28. <el-button
  29. id="message_btn4"
  30. class="el-icon-yellow-right"
  31. >
  32. 修改
  33. </el-button>
  34. <el-button
  35. id="message_btn4"
  36. class="el-icon-green-right"
  37. @click="sendmessage()"
  38. >
  39. 新增
  40. </el-button>
  41. </el-row>
  42. <el-table
  43. :cell-style="{border:0,color:'#fff'}"
  44. :data="tableData"
  45. :header-cell-style="{color:'#fff'}"
  46. :row-style="{backgroundColor:'rgb(4,66,115,0.3)'}"
  47. size="mini"
  48. style="width: 1429px;font-size: 17px;background: none"
  49. >
  50. <el-table-column
  51. align="center"
  52. label="断面名称"
  53. prop="xtpzName"
  54. width="270px"
  55. >
  56. </el-table-column>
  57. <el-table-column
  58. align="center"
  59. label="状态"
  60. prop="xtpzStatus"
  61. >
  62. </el-table-column>
  63. <el-table-column
  64. align="center"
  65. label="from节点"
  66. prop="from">
  67. </el-table-column>
  68. <el-table-column
  69. align="center"
  70. label="to节点"
  71. prop="to">
  72. </el-table-column>
  73. <el-table-column
  74. align="center"
  75. label="负限"
  76. prop="low">
  77. </el-table-column>
  78. <el-table-column
  79. align="center"
  80. label="正限"
  81. prop="height">
  82. </el-table-column>
  83. </el-table>
  84. </div>
  85. <!-- 弹出的页面内容 -->
  86. <el-dialog :visible.sync="getmessage" class="tanchuang-dialog" title="新增数据" :center="true" :show-close="false">
  87. <div slot="title" class="header-title">
  88. <span style="font-weight:bold;font-size: 20px;"> 新增数据 </span>
  89. </div>
  90. <el-form ref="ruleForm" :model="ruleForm" label-position="center"
  91. label-width="130px"
  92. size="mini">
  93. <el-row>
  94. <el-col :span="12" style="width: 40%; float: left;">
  95. <el-form-item label="断面名称:" style="width: 100%; float: left;color: white">
  96. <el-input v-model="xtpzName" placeholder="汗海-庆云断面" style="width: 100%;">启用</el-input>
  97. </el-form-item>
  98. </el-col>
  99. <el-col :span="12" style="width: 40%; float: left;">
  100. <el-form-item label="状态:" style="width: 100%; float: right;">
  101. <el-input v-model="xtpzStatus" placeholder="状态"
  102. style="width: 100%; text-align: center;"></el-input>
  103. </el-form-item>
  104. </el-col>
  105. </el-row>
  106. <el-row>
  107. <el-col :span="12" style="width: 40%; float: left;">
  108. <el-form-item label="from节点:" style="width: 100%; float: left;">
  109. <el-input v-model="from" placeholder="汗海"
  110. style="width: 100%;float: left;">汗海
  111. </el-input>
  112. </el-form-item>
  113. </el-col>
  114. <el-col :span="12" style="width: 40%; float: left;">
  115. <el-form-item label="to节点:" style="width: 100%; float: left;">
  116. <el-input v-model="to" placeholder="庆云" style="width: 100%;float: left;">庆云</el-input>
  117. </el-form-item>
  118. </el-col>
  119. </el-row>
  120. <el-row>
  121. <el-col :span="12" style="width: 40%; float: left;">
  122. <el-form-item label="负限:" style="width: 100%; float: left;">
  123. <el-input v-model="low" placeholder="250" style="width: 100%;">250</el-input>
  124. </el-form-item>
  125. </el-col>
  126. <el-col :span="12" style="width: 40%; float: left;">
  127. <el-form-item label="正限:" style="width: 100%; float: right;">
  128. <el-input v-model="height" placeholder="200" style="width: 100%;">200</el-input>
  129. </el-form-item>
  130. </el-col>
  131. </el-row>
  132. </el-form>
  133. <el-row class="hengxianimg">
  134. <el-divider/>
  135. </el-row>
  136. <el-row :gutter="20" id="tijiao_btn">
  137. <el-button
  138. id="form_btn1"
  139. class="el-icon-blue-left2"
  140. @click="cancelForm()"
  141. >
  142. 保存
  143. </el-button>
  144. <el-button
  145. id="form_btn2"
  146. class="el-icon-yellow-right2"
  147. @click="cancelForm()"
  148. >取消</el-button>
  149. </el-row>
  150. </el-dialog>
  151. </div>
  152. </template>
  153. <script>
  154. export default {
  155. name: 'Xtpz',
  156. data() {
  157. return {
  158. tableData: [],
  159. //弹框
  160. getmessage: false,
  161. ruleForm: {
  162. xtpzName: '',
  163. xtpzStatus: '',
  164. from: '',
  165. to: '',
  166. low: '',
  167. height: '',
  168. }
  169. }
  170. },
  171. methods: {
  172. //弹框
  173. sendmessage() {
  174. this.getmessage = true
  175. },
  176. //弹框
  177. cancelForm() {
  178. this.getmessage = false
  179. }
  180. },
  181. mounted() {
  182. const tableDataList = require('./xtpzdata.json');
  183. this.tableData = tableDataList.xtpzDataList
  184. }
  185. }
  186. </script>
  187. <style lang="less" scoped>
  188. @font-face {
  189. font-family: AliMaMa;//自定义字体名称
  190. src: url("../Articles/font/AlimamaDaoLiTi.ttf")
  191. }
  192. body {
  193. border: 0;
  194. background-image: url(./img/beijing.png)
  195. }
  196. /deep/ .el-table__header tr {
  197. background: url(./img/tableTitlebg.png);
  198. height: 49px;
  199. }
  200. .el-divider--horizontal {
  201. margin: 8px 0;
  202. background: 0 0;
  203. border-top: 1px dashed #e8eaec;
  204. width: 90%;
  205. text-align: center;
  206. left: 5%;
  207. }
  208. .el-icon-blue-left {
  209. background: url("./img/bluebtn.png");
  210. width: 100px;
  211. height: 40px;
  212. padding-top: 8px;
  213. font-size: 25px;
  214. color: whitesmoke;
  215. border: 0px dashed;
  216. background-repeat: no-repeat;
  217. float: left;
  218. }
  219. .el-icon-red-right {
  220. background: url("./img/redbtn.png");
  221. width: 100px;
  222. height: 40px;
  223. padding-top: 8px;
  224. font-size: 25px;
  225. color: whitesmoke;
  226. border: 0px dashed;
  227. background-repeat: no-repeat;
  228. float: right;
  229. }
  230. .el-icon-blue-right {
  231. background: url("./img/bluebtn.png");
  232. width: 100px;
  233. height: 40px;
  234. padding-top: 8px;
  235. font-size: 25px;
  236. color: whitesmoke;
  237. border: 0px dashed;
  238. background-repeat: no-repeat;
  239. float: right;
  240. }
  241. .el-icon-yellow-right {
  242. background: url("./img/yellowbtn.png");
  243. width: 100px;
  244. height: 40px;
  245. padding-top: 8px;
  246. font-size: 25px;
  247. color: whitesmoke;
  248. border: 0px dashed;
  249. background-repeat: no-repeat;
  250. float: right;
  251. }
  252. .el-icon-green-right {
  253. background: url("./img/greenbtn.png");
  254. width: 100px;
  255. height: 40px;
  256. padding-top: 8px;
  257. font-size: 25px;
  258. color: whitesmoke;
  259. border: 0px dashed;
  260. background-repeat: no-repeat;
  261. float: right;
  262. }
  263. .el-icon-blue-left2 {
  264. background: url("./img/submitbtn.png");
  265. width: 145px;
  266. height: 42px;
  267. border: 0px dashed;
  268. padding-top: 8px;
  269. background-repeat: no-repeat;
  270. float: left;
  271. text-align: center;
  272. left: 10%;
  273. font-size: 25px;
  274. color: whitesmoke;
  275. }
  276. #tijiao_btn {
  277. float: left;
  278. text-align: center;
  279. left: 30%;
  280. }
  281. .el-icon-yellow-right2 {
  282. background: url("./img/cancelbtn.png");
  283. width: 145px;
  284. height: 42px;
  285. border: 0px dashed;
  286. background-repeat: no-repeat;
  287. float: left;
  288. margin-left: 50px;
  289. font-size: 25px;
  290. padding-top: 8px;
  291. color: whitesmoke;
  292. }
  293. /deep/ .header-title {
  294. background: url("./img/m.png");
  295. background-position: 50% 20%;
  296. background-repeat: no-repeat;
  297. background-size: 50% 130%;
  298. text-align: center;
  299. height: 40px;
  300. margin-top: 10px;
  301. }
  302. /deep/ .el-dialog {
  303. background-color: rgba(255, 0, 0, 0.0);
  304. color: #FFFFFF;
  305. background-image: url("./img/tanchuangbg.png");
  306. background-repeat: no-repeat;
  307. background-size: 100% 100%;
  308. isplay: flex;
  309. flex-direction: column;
  310. margin: 0 !important;
  311. position: absolute;
  312. top: 50%;
  313. left: 50%;
  314. transform: translate(-50%, -50%);
  315. /*height:600px;*/
  316. max-height: calc(100% - 100px);
  317. max-width: calc(100% - 70px);
  318. }
  319. /deep/ .el-dialog .el-dialog__body {
  320. flex: 1;
  321. overflow: auto;
  322. }
  323. /deep/ .el-input__inner {
  324. background-image: url("./img/inputbg.png");
  325. background-color: rgba(255, 0, 0, 0.0);
  326. color: white;
  327. background-repeat: no-repeat;
  328. background-size: 100% 100%;
  329. font-weight: bold;
  330. }
  331. /deep/ .el-form-item__label {
  332. color: white;
  333. }
  334. .table-wrapper {
  335. width: 1483px;
  336. padding-left: 20px;
  337. .table-box {
  338. min-height: 600px;
  339. background-size: cover;
  340. }
  341. .title {
  342. margin-bottom: 20px;
  343. margin-left: 60px;
  344. font-size: 18px;
  345. color: #fff;
  346. }
  347. /deep/ .el-table__header {
  348. background: url(./img/tableTitlebg.png);
  349. }
  350. /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td {
  351. background-color: rgb(103, 118, 49) !important
  352. }
  353. /deep/ .el-col {
  354. padding: 0;
  355. display: inline-block;
  356. position: relative;
  357. }
  358. /deep/ .el-col:nth-child(1) {
  359. width: 19%;
  360. }
  361. /deep/ .el-col:nth-child(2) {
  362. width: 22%;
  363. }
  364. /deep/ .el-col:nth-child(3) {
  365. width: 19%;
  366. }
  367. /deep/ .el-col:nth-child(4) {
  368. width: 19%;
  369. }
  370. /deep/ .el-col:nth-child(5) {
  371. width: 15%;
  372. }
  373. /deep/ .el-icon-arrow-up {
  374. transform: rotateZ(0deg);
  375. }
  376. /deep/ .el-input__prefix {
  377. right: -60px;
  378. padding-top: 3px;
  379. }
  380. /deep/ .el-table th.el-table__cell {
  381. background: none;
  382. }
  383. /deep/ .el-table__body {
  384. -webkit-border-vertical-spacing: 13px; // 垂直间距
  385. }
  386. /deep/ .el-form-item__content {
  387. text-align: left;
  388. }
  389. /deep/ .el-table, .el-table__expanded-cell {
  390. background-color: rgb(1, 40, 81);
  391. }
  392. }
  393. </style>