gasreport.vue 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765
  1. <template>
  2. <view class="gas-report" name="gasreport">
  3. <u-navbar title="瓦斯上报" :safeAreaInsetTop="true" leftIcon=""> </u-navbar>
  4. <view class="gas-content">
  5. <!-- 瓦斯上报列表 -->
  6. <view v-if="!isShowAdd && !isShowEdit">
  7. <view class="top-gas-list">
  8. <view class="search-box" @click="getChangeTimeTb">
  9. <text class="dialog-label">填报时间:</text>
  10. <u--input v-model="tbTime" placeholder="请选择填报时间" inputAlign="center"
  11. suffixIcon="arrow-right"></u--input>
  12. <u-datetime-picker :show="showCalendarTb" v-model="timeRan" mode="date" closeOnClickOverlay
  13. @confirm="confirmTb" @cancel="showCalendarTb = false" @change="changeTb"
  14. @close="showCalendarTb = false"></u-datetime-picker>
  15. </view>
  16. <u-button type="primary" size="small" style="margin: 2px 0px;" @click="getAdd">新增</u-button>
  17. </view>
  18. <view class="bot-gas-list">
  19. <view class="top-title">
  20. <view style="font-weight: bold;">瓦斯填报列表</view>
  21. </view>
  22. <view class="top-content" v-for="(item, index) in gasList" :key="index">
  23. <view class="content-title-gas">
  24. <text>
  25. {{ item.strInstallPos || '--' }}
  26. </text>
  27. <!-- <u-icon class="icon-gas-edit" name="edit-pen-fill" color="#0eb4fc" size="16"
  28. @click="getEdit(item)"></u-icon>
  29. <u-icon class="icon-gas-del" name="trash" color="#0eb4fc" size="16"
  30. @click="getDel(item)"></u-icon> -->
  31. </view>
  32. <view class="content-item-box">
  33. <view class="content-item">
  34. <view class="item-l">
  35. <view class="item-value">{{ item.timeEarly1 || '--' }}</view>
  36. <view class="item-label">早班测量时间一</view>
  37. </view>
  38. <view class="item-c"></view>
  39. <view class="item-r">
  40. <view class="item-value">{{ item.timeEarly2 || '--' }}</view>
  41. <view class="item-label">早班测量时间二</view>
  42. </view>
  43. </view>
  44. <view class="content-item">
  45. <view class="item-l">
  46. <view class="item-value">{{ item.timeNoon1 || '--' }}</view>
  47. <view class="item-label">午班测量时间一</view>
  48. </view>
  49. <view class="item-c"></view>
  50. <view class="item-r">
  51. <view class="item-value">{{ item.timeNoon2 || '--' }}</view>
  52. <view class="item-label">午班测量时间二</view>
  53. </view>
  54. </view>
  55. <view class="content-item">
  56. <view class="item-l">
  57. <view class="item-value">{{ item.timeNight1 || '--' }}</view>
  58. <view class="item-label">晚班测量时间一</view>
  59. </view>
  60. <view class="item-c"></view>
  61. <view class="item-r">
  62. <view class="item-value">{{ item.timeNight2 || '--' }}</view>
  63. <view class="item-label">晚班测量时间二</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 新增弹窗 -->
  71. <view v-if="isShowAdd">
  72. <view class="top-dialog-area">
  73. <view class="dialog-item">
  74. <text class="dialog-label">班次:</text>
  75. <uni-data-select placeholder="请选择班次" align="center" :clear="true" v-model="formState.bc"
  76. :localdata="rangeBc" @change="changeBc"></uni-data-select>
  77. </view>
  78. <view class="dialog-item">
  79. <text class="dialog-label">煤层工作面:</text>
  80. <uni-data-select placeholder="请选择煤层工作面" align="center" :clear="true" v-model="formState.mcgzm"
  81. :localdata="rangeMcgzm" @change="changeMc"></uni-data-select>
  82. </view>
  83. <view class="dialog-item">
  84. <text class="dialog-label">检测地点:</text>
  85. <uni-data-select placeholder="请选择检测地点" align="center" :clear="true" v-model="formState.jcdd"
  86. :localdata="rangeJcdd" @change="changeJc"></uni-data-select>
  87. </view>
  88. <view class="dialog-item">
  89. <text class="dialog-label">检测次数:</text>
  90. <uni-data-select placeholder="请选择检测次数" align="center" :clear="true" v-model="formState.count"
  91. :localdata="rangeCount" @change="changeCount"></uni-data-select>
  92. </view>
  93. <view class="dialog-item" @click="getChangeTime">
  94. <text class="dialog-label">检测时间:</text>
  95. <u--input v-model="formState.time" placeholder="请选择检测时间" inputAlign="center"
  96. suffixIcon="arrow-right"></u--input>
  97. <u-datetime-picker :show="showCalendar" v-model="timeRan" mode="datetime" closeOnClickOverlay
  98. @confirm="showCalendar = false" @cancel="showCalendar = false" @change="change"
  99. @close="showCalendar = false"></u-datetime-picker>
  100. </view>
  101. <view class="dialog-item">
  102. <text class="dialog-label">填报日期:</text>
  103. <u--input inputAlign="center" v-model="formState.tbrq" placeholder="请选择填报日期"></u--input>
  104. </view>
  105. <view class="dialog-item">
  106. <text class="dialog-label">瓦斯检查工:</text>
  107. <u--input inputAlign="center" disabled v-model="formState.jcy" placeholder="请输入"></u--input>
  108. </view>
  109. </view>
  110. <view>
  111. <view class="center-dialog-area">
  112. <div class="dialog-title">气体监测数据</div>
  113. <view class="dialog-item">
  114. <text class="dialog-label">CH₄:</text>
  115. <u--input inputAlign="center" v-model="formState.ch4" placeholder="请输入"></u--input>
  116. </view>
  117. <view class="dialog-item">
  118. <text class="dialog-label">CO₂:</text>
  119. <u--input inputAlign="center" v-model="formState.co2"
  120. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurCO2"
  121. :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  122. </view>
  123. <view class="dialog-item">
  124. <text class="dialog-label">CO:</text>
  125. <u--input inputAlign="center" v-model="formState.co"
  126. :placeholder="isRule14 ? '请输入' : '最大可输入值为24'"
  127. :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  128. @blur="getBlurCO"></u--input>
  129. </view>
  130. <view class="dialog-item">
  131. <text class="dialog-label">O₂:</text>
  132. <u--input inputAlign="center" v-model="formState.o2" placeholder="请输入"></u--input>
  133. </view>
  134. <view class="dialog-item">
  135. <text class="dialog-label">温度:</text>
  136. <u--input inputAlign="center" v-model="formState.temp" placeholder="请输入"></u--input>
  137. </view>
  138. </view>
  139. <view class="bottom-dialog-area">
  140. <div class="dialog-title">三对照数据</div>
  141. <view class="dialog-item">
  142. <text class="dialog-label">甲烷传感器:</text>
  143. <u--input inputAlign="center" v-model="formState.jw" placeholder="请输入"></u--input>
  144. </view>
  145. <view class="dialog-item">
  146. <text class="dialog-label">光瓦测量数据:</text>
  147. <u--input inputAlign="center" v-model="formState.gw"
  148. :placeholder="isRule1 ? '请输入' : '请输入偶数'" type="number" @blur="getBlur"
  149. :placeholderStyle="isRule1 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  150. </view>
  151. <view class="dialog-item">
  152. <text class="dialog-label">便携仪测量数据:</text>
  153. <u--input inputAlign="center" v-model="formState.bxy" placeholder="请输入"></u--input>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="dialog-btn">
  158. <u-button type="success" size="small" @click="getConfirm">保存</u-button>
  159. <u-button type="primary" size="small" @click="getCancel">取消</u-button>
  160. </view>
  161. </view>
  162. <!-- 预览弹窗 -->
  163. <view v-if="isShowEdit">
  164. <view class="center-dialog-area">
  165. <div class="dialog-title">早班第一次检测数据</div>
  166. <view class="dialog-item" @click="getChangeZb1">
  167. <text class="dialog-label">检测时间:</text>
  168. <u--input v-model="formStateEdit.timeEarly1"
  169. placeholder="请选择检测时间" inputAlign="center" suffixIcon="arrow-right"></u--input>
  170. </view>
  171. <view class="dialog-item">
  172. <text class="dialog-label">瓦斯检查工:</text>
  173. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonEarly"
  174. placeholder="请输入"></u--input>
  175. <u-datetime-picker :show="showZb1" v-model="timeRan" mode="datetime" closeOnClickOverlay
  176. @confirm="showZb1 = false" @cancel="showZb1 = false" @change="changeZb1"
  177. @close="showZb1 = false"></u-datetime-picker>
  178. </view>
  179. <view class="dialog-item">
  180. <text class="dialog-label">CH₄:</text>
  181. <u--input inputAlign="center" v-model="formStateEdit.ch4Early1" placeholder="请输入"
  182. ></u--input>
  183. </view>
  184. <view class="dialog-item">
  185. <text class="dialog-label">CO₂:</text>
  186. <u--input inputAlign="center" v-model="formStateEdit.co2Early1"
  187. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurFCo2"
  188. :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"
  189. ></u--input>
  190. </view>
  191. <view class="dialog-item">
  192. <text class="dialog-label">CO:</text>
  193. <u--input inputAlign="center" v-model="formStateEdit.coEarly1"
  194. :placeholder="isRule15 ? '请输入' : '最大可输入值为24'"
  195. :placeholderStyle="isRule15 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  196. @blur="getBlurCO1"></u--input>
  197. </view>
  198. <view class="dialog-item">
  199. <text class="dialog-label">O₂:</text>
  200. <u--input inputAlign="center" v-model="formStateEdit.o2Early1" placeholder="请输入"
  201. ></u--input>
  202. </view>
  203. <view class="dialog-item">
  204. <text class="dialog-label">温度:</text>
  205. <u--input inputAlign="center" v-model="formStateEdit.tEarly1" placeholder="请输入"
  206. ></u--input>
  207. </view>
  208. <view class="dialog-item">
  209. <text class="dialog-label">甲烷传感器:</text>
  210. <u--input inputAlign="center" v-model="formStateEdit.jwSdzEarly1" placeholder="请输入"
  211. ></u--input>
  212. </view>
  213. <view class="dialog-item">
  214. <text class="dialog-label">光瓦测量数据:</text>
  215. <u--input inputAlign="center" v-model="formStateEdit.gwSdzEarly1"
  216. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurF"
  217. :placeholderStyle="isRule3 ? 'color:#c0c4cc' : 'color:#ff0000'"
  218. ></u--input>
  219. </view>
  220. <view class="dialog-item">
  221. <text class="dialog-label">便携仪测量数据:</text>
  222. <u--input inputAlign="center" v-model="formStateEdit.bxySdzEarly1" placeholder="请输入"
  223. ></u--input>
  224. </view>
  225. </view>
  226. <view class="center-dialog-area">
  227. <div class="dialog-title">早班第二次检测数据</div>
  228. <view class="dialog-item" @click="getChangeZb2">
  229. <text class="dialog-label">检测时间:</text>
  230. <u--input v-model="formStateEdit.timeEarly2" placeholder="请选择检测时间" inputAlign="center"
  231. suffixIcon="arrow-right" ></u--input>
  232. <u-datetime-picker :show="showZb2" v-model="timeRan" mode="datetime" closeOnClickOverlay
  233. @confirm="showZb2 = false" @cancel="showZb2 = false" @change="changeZb2"
  234. @close="showZb2 = false"></u-datetime-picker>
  235. </view>
  236. <view class="dialog-item">
  237. <text class="dialog-label">瓦斯检查工:</text>
  238. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonEarly"
  239. placeholder="请输入"></u--input>
  240. </view>
  241. <view class="dialog-item">
  242. <text class="dialog-label">CH₄:</text>
  243. <u--input inputAlign="center" v-model="formStateEdit.ch4Early2" placeholder="请输入"
  244. ></u--input>
  245. </view>
  246. <view class="dialog-item">
  247. <text class="dialog-label">CO₂:</text>
  248. <u--input inputAlign="center" v-model="formStateEdit.co2Early2"
  249. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurSCo2"
  250. :placeholderStyle="isRule4 ? 'color:#c0c4cc' : 'color:#ff0000'"
  251. ></u--input>
  252. </view>
  253. <view class="dialog-item">
  254. <text class="dialog-label">CO:</text>
  255. <u--input inputAlign="center" v-model="formStateEdit.coEarly2"
  256. :placeholder="isRule16 ? '请输入' : '最大可输入值为24'"
  257. :placeholderStyle="isRule16 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  258. @blur="getBlurC2" ></u--input>
  259. </view>
  260. <view class="dialog-item">
  261. <text class="dialog-label">O₂:</text>
  262. <u--input inputAlign="center" v-model="formStateEdit.o2Early2" placeholder="请输入"
  263. ></u--input>
  264. </view>
  265. <view class="dialog-item">
  266. <text class="dialog-label">温度:</text>
  267. <u--input inputAlign="center" v-model="formStateEdit.tEarly2" placeholder="请输入"
  268. ></u--input>
  269. </view>
  270. <view class="dialog-item">
  271. <text class="dialog-label">甲烷传感器:</text>
  272. <u--input inputAlign="center" v-model="formStateEdit.jwSdzEarly2" placeholder="请输入"
  273. ></u--input>
  274. </view>
  275. <view class="dialog-item">
  276. <text class="dialog-label">光瓦测量数据:</text>
  277. <u--input inputAlign="center" v-model="formStateEdit.gwSdzEarly2"
  278. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurS"
  279. :placeholderStyle="isRule5 ? 'color:#c0c4cc' : 'color:#ff0000'"
  280. ></u--input>
  281. </view>
  282. <view class="dialog-item">
  283. <text class="dialog-label">便携仪测量数据:</text>
  284. <u--input inputAlign="center" v-model="formStateEdit.bxySdzEarly2" placeholder="请输入"
  285. ></u--input>
  286. </view>
  287. </view>
  288. <view class="center-dialog-area">
  289. <div class="dialog-title">午班第一次检测数据</div>
  290. <view class="dialog-item" @click="getChangeWb1">
  291. <text class="dialog-label">检测时间:</text>
  292. <u--input v-model="formStateEdit.timeNoon1" placeholder="请选择检测时间" inputAlign="center"
  293. suffixIcon="arrow-right" ></u--input>
  294. <u-datetime-picker :show="showWb1" v-model="timeRan" mode="datetime" closeOnClickOverlay
  295. @confirm="showWb1 = false" @cancel="showWb1 = false" @change="changeWb1"
  296. @close="showWb1 = false"></u-datetime-picker>
  297. </view>
  298. <view class="dialog-item">
  299. <text class="dialog-label">瓦斯检查工:</text>
  300. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNoon"
  301. placeholder="请输入"></u--input>
  302. </view>
  303. <view class="dialog-item">
  304. <text class="dialog-label">CH₄:</text>
  305. <u--input inputAlign="center" v-model="formStateEdit.ch4Noon1" placeholder="请输入"
  306. ></u--input>
  307. </view>
  308. <view class="dialog-item">
  309. <text class="dialog-label">CO₂:</text>
  310. <u--input inputAlign="center" v-model="formStateEdit.co2Noon1"
  311. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurF1"
  312. :placeholderStyle="isRule6 ? 'color:#c0c4cc' : 'color:#ff0000'"
  313. ></u--input>
  314. </view>
  315. <view class="dialog-item">
  316. <text class="dialog-label">CO:</text>
  317. <u--input inputAlign="center" v-model="formStateEdit.coNoon1"
  318. :placeholder="isRule17 ? '请输入' : '最大可输入值为24'"
  319. :placeholderStyle="isRule17 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  320. @blur="getBlurCO3" ></u--input>
  321. </view>
  322. <view class="dialog-item">
  323. <text class="dialog-label">O₂:</text>
  324. <u--input inputAlign="center" v-model="formStateEdit.o2Noon1" placeholder="请输入"
  325. ></u--input>
  326. </view>
  327. <view class="dialog-item">
  328. <text class="dialog-label">温度:</text>
  329. <u--input inputAlign="center" v-model="formStateEdit.tNoon1" placeholder="请输入"
  330. ></u--input>
  331. </view>
  332. <view class="dialog-item">
  333. <text class="dialog-label">甲烷传感器:</text>
  334. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNoon1" placeholder="请输入"
  335. ></u--input>
  336. </view>
  337. <view class="dialog-item">
  338. <text class="dialog-label">光瓦测量数据:</text>
  339. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNoon1"
  340. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurG1"
  341. :placeholderStyle="isRule7 ? 'color:#c0c4cc' : 'color:#ff0000'"
  342. ></u--input>
  343. </view>
  344. <view class="dialog-item">
  345. <text class="dialog-label">便携仪测量数据:</text>
  346. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNoon1" placeholder="请输入"
  347. ></u--input>
  348. </view>
  349. </view>
  350. <view class="center-dialog-area">
  351. <div class="dialog-title">午班第二次检测数据</div>
  352. <view class="dialog-item" @click="getChangeWb2">
  353. <text class="dialog-label">检测时间:</text>
  354. <u--input v-model="formStateEdit.timeNoon2" placeholder="请选择检测时间" inputAlign="center"
  355. suffixIcon="arrow-right" ></u--input>
  356. <u-datetime-picker :show="showWb2" v-model="timeRan" mode="datetime" closeOnClickOverlay
  357. @confirm="showWb2 = false" @cancel="showWb2 = false" @change="changeWb2"
  358. @close="showWb2 = false"></u-datetime-picker>
  359. </view>
  360. <view class="dialog-item">
  361. <text class="dialog-label">瓦斯检查工:</text>
  362. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNoon"
  363. placeholder="请输入"></u--input>
  364. </view>
  365. <view class="dialog-item">
  366. <text class="dialog-label">CH₄:</text>
  367. <u--input inputAlign="center" v-model="formStateEdit.ch4Noon2" placeholder="请输入"
  368. ></u--input>
  369. </view>
  370. <view class="dialog-item">
  371. <text class="dialog-label">CO₂:</text>
  372. <u--input inputAlign="center" v-model="formStateEdit.co2Noon2"
  373. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurF2"
  374. :placeholderStyle="isRule8 ? 'color:#c0c4cc' : 'color:#ff0000'"
  375. ></u--input>
  376. </view>
  377. <view class="dialog-item">
  378. <text class="dialog-label">CO:</text>
  379. <u--input inputAlign="center" v-model="formStateEdit.coNoon2"
  380. :placeholder="isRule18 ? '请输入' : '最大可输入值为24'"
  381. :placeholderStyle="isRule18 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  382. @blur="getBlurCO4" ></u--input>
  383. </view>
  384. <view class="dialog-item">
  385. <text class="dialog-label">O₂:</text>
  386. <u--input inputAlign="center" v-model="formStateEdit.o2Noon2" placeholder="请输入"
  387. ></u--input>
  388. </view>
  389. <view class="dialog-item">
  390. <text class="dialog-label">温度:</text>
  391. <u--input inputAlign="center" v-model="formStateEdit.tNoon2" placeholder="请输入"
  392. ></u--input>
  393. </view>
  394. <view class="dialog-item">
  395. <text class="dialog-label">甲烷传感器:</text>
  396. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNoon2" placeholder="请输入"
  397. ></u--input>
  398. </view>
  399. <view class="dialog-item">
  400. <text class="dialog-label">光瓦测量数据:</text>
  401. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNoon2"
  402. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurG2"
  403. :placeholderStyle="isRule9 ? 'color:#c0c4cc' : 'color:#ff0000'"
  404. ></u--input>
  405. </view>
  406. <view class="dialog-item">
  407. <text class="dialog-label">便携仪测量数据:</text>
  408. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNoon2" placeholder="请输入"
  409. ></u--input>
  410. </view>
  411. </view>
  412. <view class="center-dialog-area">
  413. <div class="dialog-title">晚班第一次检测数据</div>
  414. <view class="dialog-item" @click="getChangeNb1">
  415. <text class="dialog-label">检测时间:</text>
  416. <u--input v-model="formStateEdit.timeNight1" placeholder="请选择检测时间" inputAlign="center"
  417. suffixIcon="arrow-right" ></u--input>
  418. <u-datetime-picker :show="showNb1" v-model="timeRan" mode="datetime" closeOnClickOverlay
  419. @confirm="showNb1 = false" @cancel="showNb1 = false" @change="changeNb1"
  420. @close="showNb1 = false"></u-datetime-picker>
  421. </view>
  422. <view class="dialog-item">
  423. <text class="dialog-label">瓦斯检查工:</text>
  424. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNight"
  425. placeholder="请输入"></u--input>
  426. </view>
  427. <view class="dialog-item">
  428. <text class="dialog-label">CH₄:</text>
  429. <u--input inputAlign="center" v-model="formStateEdit.ch4Night1" placeholder="请输入"
  430. ></u--input>
  431. </view>
  432. <view class="dialog-item">
  433. <text class="dialog-label">CO₂:</text>
  434. <u--input inputAlign="center" v-model="formStateEdit.co2Night1"
  435. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurN1"
  436. :placeholderStyle="isRule10 ? 'color:#c0c4cc' : 'color:#ff0000'"
  437. ></u--input>
  438. </view>
  439. <view class="dialog-item">
  440. <text class="dialog-label">CO:</text>
  441. <u--input inputAlign="center" v-model="formStateEdit.coNight1"
  442. :placeholder="isRule19 ? '请输入' : '最大可输入值为24'"
  443. :placeholderStyle="isRule19 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  444. @blur="getBlurCO5"></u--input>
  445. </view>
  446. <view class="dialog-item">
  447. <text class="dialog-label">O₂:</text>
  448. <u--input inputAlign="center" v-model="formStateEdit.o2Night1" placeholder="请输入"
  449. ></u--input>
  450. </view>
  451. <view class="dialog-item">
  452. <text class="dialog-label">温度:</text>
  453. <u--input inputAlign="center" v-model="formStateEdit.tNight1" placeholder="请输入"
  454. ></u--input>
  455. </view>
  456. <view class="dialog-item">
  457. <text class="dialog-label">甲烷传感器:</text>
  458. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNight1" placeholder="请输入"
  459. ></u--input>
  460. </view>
  461. <view class="dialog-item">
  462. <text class="dialog-label">光瓦测量数据:</text>
  463. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNight1"
  464. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurNG1"
  465. :placeholderStyle="isRule11 ? 'color:#c0c4cc' : 'color:#ff0000'"
  466. ></u--input>
  467. </view>
  468. <view class="dialog-item">
  469. <text class="dialog-label">便携仪测量数据:</text>
  470. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNight1" placeholder="请输入"
  471. ></u--input>
  472. </view>
  473. </view>
  474. <view class="center-dialog-area">
  475. <div class="dialog-title">晚班第二次检测数据</div>
  476. <view class="dialog-item" @click="getChangeNb2">
  477. <text class="dialog-label">检测时间:</text>
  478. <u--input v-model="formStateEdit.timeNight2" placeholder="请选择检测时间" inputAlign="center"
  479. suffixIcon="arrow-right" ></u--input>
  480. <u-datetime-picker :show="showNb2" v-model="timeRan" mode="datetime" closeOnClickOverlay
  481. @confirm="showNb2 = false" @cancel="showNb2 = false" @change="changeNb2"
  482. @close="showNb2 = false"></u-datetime-picker>
  483. </view>
  484. <view class="dialog-item">
  485. <text class="dialog-label">瓦斯检查工:</text>
  486. <u--input inputAlign="center" disabled v-model="formStateEdit.checkPersonNight"
  487. placeholder="请输入"></u--input>
  488. </view>
  489. <view class="dialog-item">
  490. <text class="dialog-label">CH₄:</text>
  491. <u--input inputAlign="center" v-model="formStateEdit.ch4Night2" placeholder="请输入"
  492. ></u--input>
  493. </view>
  494. <view class="dialog-item">
  495. <text class="dialog-label">CO₂:</text>
  496. <u--input inputAlign="center" v-model="formStateEdit.co2Night2"
  497. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurN2"
  498. :placeholderStyle="isRule12 ? 'color:#c0c4cc' : 'color:#ff0000'"
  499. ></u--input>
  500. </view>
  501. <view class="dialog-item">
  502. <text class="dialog-label">CO:</text>
  503. <u--input inputAlign="center" v-model="formStateEdit.coNight2"
  504. :placeholder="isRule20 ? '请输入' : '最大可输入值为24'"
  505. :placeholderStyle="isRule20 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  506. @blur="getBlurCO6" ></u--input>
  507. </view>
  508. <view class="dialog-item">
  509. <text class="dialog-label">O₂:</text>
  510. <u--input inputAlign="center" v-model="formStateEdit.o2Night2" placeholder="请输入"
  511. ></u--input>
  512. </view>
  513. <view class="dialog-item">
  514. <text class="dialog-label">温度:</text>
  515. <u--input inputAlign="center" v-model="formStateEdit.tNight2" placeholder="请输入"
  516. ></u--input>
  517. </view>
  518. <view class="dialog-item">
  519. <text class="dialog-label">甲烷传感器:</text>
  520. <u--input inputAlign="center" v-model="formStateEdit.jwSdzNight2" placeholder="请输入"
  521. ></u--input>
  522. </view>
  523. <view class="dialog-item">
  524. <text class="dialog-label">光瓦测量数据:</text>
  525. <u--input inputAlign="center" v-model="formStateEdit.gwSdzNight2"
  526. :placeholder="isRule ? '请输入' : '请输入偶数'" type="number" @blur="getBlurNG2"
  527. :placeholderStyle="isRule13 ? 'color:#c0c4cc' : 'color:#ff0000'"
  528. ></u--input>
  529. </view>
  530. <view class="dialog-item">
  531. <text class="dialog-label">便携仪测量数据:</text>
  532. <u--input inputAlign="center" v-model="formStateEdit.bxySdzNight2" placeholder="请输入"
  533. ></u--input>
  534. </view>
  535. </view>
  536. <view class="dialog-btn">
  537. <u-button type="success" size="small" v-if="isSaveEdit.length != 0 ? true : false"
  538. @click="confirmEdit">保存</u-button>
  539. <u-button type="primary" size="small" @click="cancelEdit">取消</u-button>
  540. </view>
  541. </view>
  542. </view>
  543. </view>
  544. </template>
  545. <script>
  546. import api from "@/api/api";
  547. import moment from 'moment'
  548. import { mapGetters } from "vuex";
  549. export default {
  550. name: 'gasreport',
  551. props: {},
  552. watch: {},
  553. data() {
  554. return {
  555. inputDisabled: false,
  556. deviceId: '',
  557. rangeBc: [
  558. { value: '夜班', text: "夜班" },
  559. { value: '早班', text: "早班" },
  560. { value: '中班', text: "中班" },
  561. ],
  562. rangeMcgzm: [],
  563. rangeJcdd: [],
  564. rangeCount: [
  565. { value: '第一次', text: '第一次' },
  566. { value: '第二次', text: '第二次' },
  567. ],
  568. isRule: true,
  569. isRule1: true,
  570. isRule2: true,
  571. isRule3: true,
  572. isRule4: true,
  573. isRule5: true,
  574. isRule6: true,
  575. isRule7: true,
  576. isRule8: true,
  577. isRule9: true,
  578. isRule10: true,
  579. isRule11: true,
  580. isRule12: true,
  581. isRule13: true,
  582. isRule14: true,
  583. isRule15: true,
  584. isRule16: true,
  585. isRule17: true,
  586. isRule18: true,
  587. isRule19: true,
  588. isRule20: true,
  589. //新增参数信息
  590. isShowAdd: false,//是否显示新增弹窗
  591. isShowEdit: false,
  592. dialogAction: [],//下拉选项列表
  593. showCalendar: false,//控制日期选型下拉开启
  594. showCalendar1: false,
  595. timeRan: Number(new Date()),
  596. gasList: [],//瓦斯填报列表数据
  597. tbTime: null,//查询条件-填报时间
  598. showCalendarTb: false,//控制填报时间组件弹出
  599. saveShow: '',
  600. saveShowList: {},
  601. formState: {
  602. id: '',
  603. bc: '',
  604. count: '',
  605. jcdd: '',
  606. jcy: '',
  607. time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  608. ch4: '',
  609. co2: '',
  610. co: '',
  611. o2: '',
  612. jw: '',
  613. gw: '',
  614. bxy: '',
  615. tbrq: moment(new Date()).format('YYYY-MM-DD'),
  616. temp: '',
  617. mcgzm: '',
  618. },
  619. formStateEdit: {
  620. id: '',
  621. bxySdzEarly1: '',
  622. ch4Early1: '',
  623. checkPersonEarly: '',
  624. co2Early1: '',
  625. coEarly1: '',
  626. gwSdzEarly1: '',
  627. jwSdzEarly1: '',
  628. o2Early1: '',
  629. timeEarly1: '',
  630. tEarly1: '',
  631. bxySdzEarly2: '',
  632. ch4Early2: '',
  633. co2Early2: '',
  634. coEarly2: '',
  635. gwSdzEarly2: '',
  636. jwSdzEarly2: '',
  637. o2Early2: '',
  638. timeEarly2: '',
  639. tEarly2: '',
  640. bxySdzNoon1: '',
  641. ch4Noon1: '',
  642. checkPersonNoon: '',
  643. co2Noon1: '',
  644. coNoon1: '',
  645. gwSdzNoon1: '',
  646. jwSdzNoon1: '',
  647. o2Noon1: '',
  648. timeNoon1: '',
  649. tNoon1: '',
  650. bxySdzNoon2: '',
  651. ch4Noon2: '',
  652. co2Noon2: '',
  653. coNoon2: '',
  654. gwSdzNoon2: '',
  655. jwSdzNoon2: '',
  656. o2Noon2: '',
  657. timeNoon2: '',
  658. tNoon2: '',
  659. bxySdzNight1: '',
  660. ch4Night1: '',
  661. checkPersonNight: '',
  662. co2Night1: '',
  663. coNight1: '',
  664. gwSdzNight1: '',
  665. jwSdzNight1: '',
  666. o2Night1: '',
  667. timeNight1: '',
  668. tNight1: '',
  669. bxySdzNight2: '',
  670. ch4Night2: '',
  671. co2Night2: '',
  672. coNight2: '',
  673. gwSdzNight2: '',
  674. jwSdzNight2: '',
  675. o2Night2: '',
  676. timeNight2: '',
  677. tNight2: '',
  678. },
  679. showZb1: false,
  680. showZb2: false,
  681. showWb1: false,
  682. showWb2: false,
  683. showNb1: false,
  684. showNb2: false,
  685. isSaveEdit: []
  686. };
  687. },
  688. computed: {
  689. username: function () {
  690. return uni.getStorageSync('login_user_info')['realname']
  691. }
  692. },
  693. mounted() {
  694. console.log(uni.getStorageSync('login_user_info'), 'ceshi00-----------')
  695. this.getGasList()
  696. this.getMcList()
  697. },
  698. methods: {
  699. //班次下拉选项切换
  700. changeBc(e) {
  701. console.log(e, '班次----------')
  702. this.formState.bc = e
  703. },
  704. //监测次数选项切换
  705. changeCount(e) {
  706. this.formState.count = e
  707. },
  708. //检测地点拉选项切换
  709. changeJc(e) {
  710. let that = this
  711. that.formState.jcdd = e
  712. that.deviceId = that.rangeJcdd.filter(v => v.text == e)[0].deviceId
  713. new Promise((resolve, reject) => {
  714. api
  715. .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
  716. .then((response) => {
  717. console.log(response, '9999999999=======')
  718. if (response.data.code == 200) {
  719. let data = response.data.result.records
  720. if (data.length != 0) {
  721. that.isShowEdit = true
  722. that.isShowAdd = false
  723. that.formState.jcy = that.username
  724. that.saveShowList = data[0]
  725. that.formStateEdit = {
  726. id: that.saveShowList.id || '',
  727. bxySdzEarly1: that.saveShowList.bxySdzEarly1 || '',
  728. ch4Early1: that.saveShowList.ch4Early1 || '',
  729. checkPersonEarly: that.formState.jcy,
  730. co2Early1: that.saveShowList.co2Early1 || '',
  731. coEarly1: that.saveShowList.coEarly1 || '',
  732. gwSdzEarly1: that.saveShowList.gwSdzEarly1 || '',
  733. jwSdzEarly1: that.saveShowList.jwSdzEarly1 || '',
  734. o2Early1: that.saveShowList.o2Early1 || '',
  735. timeEarly1: that.saveShowList.timeEarly1 || '',
  736. tEarly1: that.saveShowList.tEarly1 || '',
  737. bxySdzEarly2: that.saveShowList.bxySdzEarly2 || '',
  738. ch4Early2: that.saveShowList.ch4Early2 || '',
  739. co2Early2: that.saveShowList.co2Early2 || '',
  740. coEarly2: that.saveShowList.coEarly2 || '',
  741. gwSdzEarly2: that.saveShowList.gwSdzEarly2 || '',
  742. jwSdzEarly2: that.saveShowList.jwSdzEarly2 || '',
  743. o2Early2: that.saveShowList.o2Early2 || '',
  744. timeEarly2: that.saveShowList.timeEarly2 || '',
  745. tEarly2: that.saveShowList.tEarly2 || '',
  746. bxySdzNoon1: that.saveShowList.bxySdzNoon1 || '',
  747. ch4Noon1: that.saveShowList.ch4Noon1 || '',
  748. checkPersonNoon: that.formState.jcy,
  749. co2Noon1: that.saveShowList.co2Noon1 || '',
  750. coNoon1: that.saveShowList.coNoon1 || '',
  751. gwSdzNoon1: that.saveShowList.gwSdzNoon1 || '',
  752. jwSdzNoon1: that.saveShowList.jwSdzNoon1 || '',
  753. o2Noon1: that.saveShowList.o2Noon1 || '',
  754. timeNoon1: that.saveShowList.timeNoon1 || '',
  755. tNoon1: that.saveShowList.tNoon1 || '',
  756. bxySdzNoon2: that.saveShowList.bxySdzNoon2 || '',
  757. ch4Noon2: that.saveShowList.ch4Noon2 || '',
  758. co2Noon2: that.saveShowList.co2Noon2 || '',
  759. coNoon2: that.saveShowList.coNoon2 || '',
  760. gwSdzNoon2: that.saveShowList.gwSdzNoon2 || '',
  761. jwSdzNoon2: that.saveShowList.jwSdzNoon2 || '',
  762. o2Noon2: that.saveShowList.o2Noon2 || '',
  763. timeNoon2: that.saveShowList.timeNoon2 || '',
  764. tNoon2: that.saveShowList.tNoon2 || '',
  765. bxySdzNight1: that.saveShowList.bxySdzNight1 || '',
  766. ch4Night1: that.saveShowList.ch4Night1 || '',
  767. checkPersonNight: that.formState.jcy,
  768. co2Night1: that.saveShowList.co2Night1 || '',
  769. coNight1: that.saveShowList.coNight1 || '',
  770. gwSdzNight1: that.saveShowList.gwSdzNight1 || '',
  771. jwSdzNight1: that.saveShowList.jwSdzNight1 || '',
  772. o2Night1: that.saveShowList.o2Night1 || '',
  773. timeNight1: that.saveShowList.timeNight1 || '',
  774. tNight1: that.saveShowList.tNight1 || '',
  775. bxySdzNight2: that.saveShowList.bxySdzNight2 || '',
  776. ch4Night2: that.saveShowList.ch4Night2 || '',
  777. co2Night2: that.saveShowList.co2Night2 || '',
  778. coNight2: that.saveShowList.coNight2 || '',
  779. gwSdzNight2: that.saveShowList.gwSdzNight2 || '',
  780. jwSdzNight2: that.saveShowList.jwSdzNight2 || '',
  781. o2Night2: that.saveShowList.o2Night2 || '',
  782. timeNight2: that.saveShowList.timeNight2 || '',
  783. tNight2: that.saveShowList.tNight2 || '',
  784. }
  785. that.isSaveEdit = Object.keys(that.formStateEdit).filter(v => that.formStateEdit[v] == '')
  786. } else {
  787. that.isShowEdit = false
  788. that.isShowAdd = true
  789. that.isSaveEdit = []
  790. that.formState = {
  791. id: '',
  792. bc: that.formState.bc || '',
  793. count: that.formState.count || '',
  794. jcdd: that.formState.jcdd || '',
  795. mcgzm: that.formState.mcgzm || '',
  796. jcy: that.username,
  797. time: that.formState.time,
  798. tbrq: that.formState.tbrq,
  799. ch4: '',
  800. co2: '',
  801. co: '',
  802. o2: '',
  803. jw: '',
  804. gw: '',
  805. bxy: '',
  806. temp: '',
  807. }
  808. }
  809. } else {
  810. reject(response);
  811. }
  812. })
  813. .catch((error) => {
  814. console.log("catch===>response", response);
  815. reject(error);
  816. });
  817. });
  818. },
  819. //工作面煤层选项切换
  820. changeMc(e) {
  821. this.formState.mcgzm = e
  822. this.getSelectList()
  823. },
  824. //检测时间下拉选项切换
  825. change(e) {
  826. let that = this
  827. that.formState.time = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  828. that.formState.tbrq = moment(e.value).format('YYYY-MM-DD')
  829. new Promise((resolve, reject) => {
  830. api
  831. .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
  832. .then((response) => {
  833. if (response.data.code == 200) {
  834. let data = response.data.result.records
  835. if (data.length != 0) {
  836. that.isShowEdit = true
  837. that.isShowAdd = false
  838. that.formState.jcy = that.username
  839. that.saveShowList = data[0]
  840. that.formStateEdit = {
  841. id: that.formStateEdit.id || '',
  842. bxySdzEarly1: that.formStateEdit.bxySdzEarly1 || '',
  843. ch4Early1: that.formStateEdit.ch4Early1 || '',
  844. checkPersonEarly: that.formState.jcy,
  845. co2Early1: that.formStateEdit.co2Early1 || '',
  846. coEarly1: that.formStateEdit.coEarly1 || '',
  847. gwSdzEarly1: that.formStateEdit.gwSdzEarly1 || '',
  848. jwSdzEarly1: that.formStateEdit.jwSdzEarly1 || '',
  849. o2Early1: that.formStateEdit.o2Early1 || '',
  850. timeEarly1: that.formStateEdit.timeEarly1 || '',
  851. tEarly1: that.formStateEdit.tEarly1 || '',
  852. bxySdzEarly2: that.formStateEdit.bxySdzEarly2 || '',
  853. ch4Early2: that.formStateEdit.ch4Early2 || '',
  854. co2Early2: that.formStateEdit.co2Early2 || '',
  855. coEarly2: that.formStateEdit.coEarly2 || '',
  856. gwSdzEarly2: that.formStateEdit.gwSdzEarly2 || '',
  857. jwSdzEarly2: that.formStateEdit.jwSdzEarly2 || '',
  858. o2Early2: that.formStateEdit.o2Early2 || '',
  859. timeEarly2: that.formStateEdit.timeEarly2 || '',
  860. tEarly2: that.formStateEdit.tEarly2 || '',
  861. bxySdzNoon1: that.formStateEdit.bxySdzNoon1 || '',
  862. ch4Noon1: that.formStateEdit.ch4Noon1 || '',
  863. checkPersonNoon: that.formState.jcy,
  864. co2Noon1: that.formStateEdit.co2Noon1 || '',
  865. coNoon1: that.formStateEdit.coNoon1 || '',
  866. gwSdzNoon1: that.formStateEdit.gwSdzNoon1 || '',
  867. jwSdzNoon1: that.formStateEdit.jwSdzNoon1 || '',
  868. o2Noon1: that.formStateEdit.o2Noon1 || '',
  869. timeNoon1: that.formStateEdit.timeNoon1 || '',
  870. tNoon1: that.formStateEdit.tNoon1 || '',
  871. bxySdzNoon2: that.formStateEdit.bxySdzNoon2 || '',
  872. ch4Noon2: that.formStateEdit.ch4Noon2 || '',
  873. co2Noon2: that.formStateEdit.co2Noon2 || '',
  874. coNoon2: that.formStateEdit.coNoon2 || '',
  875. gwSdzNoon2: that.formStateEdit.gwSdzNoon2 || '',
  876. jwSdzNoon2: that.formStateEdit.jwSdzNoon2 || '',
  877. o2Noon2: that.formStateEdit.o2Noon2 || '',
  878. timeNoon2: that.formStateEdit.timeNoon2 || '',
  879. tNoon2: that.formStateEdit.tNoon2 || '',
  880. bxySdzNight1: that.formStateEdit.bxySdzNight1 || '',
  881. ch4Night1: that.formStateEdit.ch4Night1 || '',
  882. checkPersonNight: that.formState.jcy,
  883. co2Night1: that.formStateEdit.co2Night1 || '',
  884. coNight1: that.formStateEdit.coNight1 || '',
  885. gwSdzNight1: that.formStateEdit.gwSdzNight1 || '',
  886. jwSdzNight1: that.formStateEdit.jwSdzNight1 || '',
  887. o2Night1: that.formStateEdit.o2Night1 || '',
  888. timeNight1: that.formStateEdit.timeNight1 || '',
  889. tNight1: that.formStateEdit.tNight1 || '',
  890. bxySdzNight2: that.formStateEdit.bxySdzNight2 || '',
  891. ch4Night2: that.formStateEdit.ch4Night2 || '',
  892. co2Night2: that.formStateEdit.co2Night2 || '',
  893. coNight2: that.formStateEdit.coNight2 || '',
  894. gwSdzNight2: that.formStateEdit.gwSdzNight2 || '',
  895. jwSdzNight2: that.formStateEdit.jwSdzNight2 || '',
  896. o2Night2: that.formStateEdit.o2Night2 || '',
  897. timeNight2: that.formStateEdit.timeNight2 || '',
  898. tNight2: that.formStateEdit.tNight2 || '',
  899. }
  900. that.isSaveEdit = Object.keys(that.formStateEdit).filter(v => that.formStateEdit[v] == '')
  901. } else {
  902. that.isShowEdit = false
  903. that.isShowAdd = true
  904. that.isSaveEdit = []
  905. that.formState = {
  906. id: '',
  907. bc: that.formState.bc || '',
  908. count: that.formState.count || '',
  909. jcdd: that.formState.jcdd || '',
  910. mcgzm: that.formState.mcgzm || '',
  911. jcy: that.username,
  912. time: that.formState.time,
  913. tbrq: that.formState.tbrq,
  914. ch4: '',
  915. co2: '',
  916. co: '',
  917. o2: '',
  918. jw: '',
  919. gw: '',
  920. bxy: '',
  921. temp: '',
  922. }
  923. }
  924. } else {
  925. reject(response);
  926. }
  927. })
  928. .catch((error) => {
  929. console.log("catch===>response", response);
  930. reject(error);
  931. });
  932. });
  933. },
  934. //编辑-早班第一次编辑选项切换
  935. getChangeZb1() {
  936. this.showZb1 = true
  937. },
  938. //编辑-早班第一次编辑选项切换
  939. changeZb1(e) {
  940. this.formStateEdit.timeEarly1 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  941. },
  942. //编辑-早班第二次编辑选项切换
  943. getChangeZb2() {
  944. this.showZb2 = true
  945. },
  946. //编辑-早班第二次编辑选项切换
  947. changeZb2(e) {
  948. this.formStateEdit.timeEarly2 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  949. },
  950. //编辑-午班第一次编辑选项切换
  951. getChangeWb1() {
  952. this.showWb1 = true
  953. },
  954. //编辑-午班第一次编辑选项切换
  955. changeWb1(e) {
  956. this.formStateEdit.timeNoon1 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  957. },
  958. //编辑-午班第二次编辑选项切换
  959. getChangeWb2() {
  960. this.showWb2 = true
  961. },
  962. //编辑-午班第二次编辑选项切换
  963. changeWb2(e) {
  964. this.formStateEdit.timeNoon2 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  965. },
  966. //编辑-晚班第一次编辑选项切换
  967. getChangeNb1() {
  968. this.showNb1 = true
  969. },
  970. //编辑-晚班第一次编辑选项切换
  971. changeNb1(e) {
  972. this.formStateEdit.timeNight1 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  973. },
  974. //编辑-晚班第二次编辑选型切换
  975. getChangeNb2() {
  976. this.showNb2 = true
  977. },
  978. //编辑-晚班第二次编辑选项切换
  979. changeNb2(e) {
  980. this.formStateEdit.timeNight2 = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  981. },
  982. changeTb(e) {
  983. this.tbTime = moment(e.value).format('YYYY-MM-DD')
  984. },
  985. //点击弹出日期下拉选项
  986. getChangeTime() {
  987. this.showCalendar = true
  988. },
  989. getChangeTimeTb() {
  990. this.showCalendarTb = true
  991. },
  992. confirmTb() {
  993. this.showCalendarTb = false
  994. this.getGasList()
  995. },
  996. //新增光瓦失去焦点时参数校验
  997. getBlur(val) {
  998. if (val.slice(-1) === '0' || val.slice(-1) === '2' || val.slice(-1) === '4' || val.slice(-1) === '6' || val.slice(-1) === '8') {
  999. this.formState.gw = val
  1000. this.isRule1 = true
  1001. } else {
  1002. this.formState.gw = ''
  1003. this.isRule1 = false
  1004. }
  1005. },
  1006. //新增CO2失去焦点时参数校验
  1007. getBlurCO2(val) {
  1008. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1009. this.formState.co2 = val
  1010. this.isRule = true
  1011. } else {
  1012. this.formState.co2 = ''
  1013. this.isRule = false
  1014. }
  1015. },
  1016. getBlurCO(val) {
  1017. if (parseFloat(val) <= 24) {
  1018. this.formState.co = val
  1019. this.isRule14 = true
  1020. } else {
  1021. this.formState.co = ''
  1022. this.isRule14 = false
  1023. }
  1024. },
  1025. //编辑第一次CO2失去焦点时参数校验
  1026. getBlurFCo2(val) {
  1027. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1028. this.formStateEdit.co2Early1 = val
  1029. this.isRule2 = true
  1030. } else {
  1031. this.formStateEdit.co2Early1 = ''
  1032. this.isRule2 = false
  1033. }
  1034. },
  1035. getBlurCO1(val) {
  1036. if (parseFloat(val) <= 24) {
  1037. this.formStateEdit.coEarly1 = val
  1038. this.isRule15 = true
  1039. } else {
  1040. this.formStateEdit.coEarly1 = ''
  1041. this.isRule15 = false
  1042. }
  1043. },
  1044. //编辑第一次光瓦失去焦点时参数校验
  1045. getBlurF(val) {
  1046. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1047. this.formStateEdit.gwSdzEarly1 = val
  1048. this.isRule3 = true
  1049. } else {
  1050. this.formStateEdit.gwSdzEarly1 = ''
  1051. this.isRule3 = false
  1052. }
  1053. },
  1054. //编辑第二次CO2失去焦点时参数校验
  1055. getBlurSCo2(val) {
  1056. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1057. this.formStateEdit.co2Early2 = val
  1058. this.isRule4 = true
  1059. } else {
  1060. this.formStateEdit.co2Early2 = ''
  1061. this.isRule4 = false
  1062. }
  1063. },
  1064. getBlurC2(val) {
  1065. if (parseFloat(val) <= 24) {
  1066. this.formStateEdit.coEarly2 = val
  1067. this.isRule16 = true
  1068. } else {
  1069. this.formStateEdit.coEarly2 = ''
  1070. this.isRule16 = false
  1071. }
  1072. },
  1073. //编辑第二次光瓦失去焦点时参数校验
  1074. getBlurS(val) {
  1075. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1076. this.formStateEdit.gwSdzEarly2 = val
  1077. this.isRule5 = true
  1078. } else {
  1079. this.formStateEdit.gwSdzEarly2 = ''
  1080. this.isRule5 = false
  1081. }
  1082. },
  1083. getBlurF1(val) {
  1084. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1085. this.formStateEdit.co2Noon1 = val
  1086. this.isRule6 = true
  1087. } else {
  1088. this.formStateEdit.co2Noon1 = ''
  1089. this.isRule6 = false
  1090. }
  1091. },
  1092. getBlurCO3(val) {
  1093. if (parseFloat(val) <= 24) {
  1094. this.formStateEdit.coNoon1 = val
  1095. this.isRule17 = true
  1096. } else {
  1097. this.formStateEdit.coNoon1 = ''
  1098. this.isRule17 = false
  1099. }
  1100. },
  1101. getBlurG1(val) {
  1102. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1103. this.formStateEdit.gwSdzNoon1 = val
  1104. this.isRule7 = true
  1105. } else {
  1106. this.formStateEdit.gwSdzNoon1 = ''
  1107. this.isRule7 = false
  1108. }
  1109. },
  1110. getBlurF2(val) {
  1111. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1112. this.formStateEdit.co2Noon2 = val
  1113. this.isRule8 = true
  1114. } else {
  1115. this.formStateEdit.co2Noon2 = ''
  1116. this.isRule8 = false
  1117. }
  1118. },
  1119. getBlurCO4(val) {
  1120. if (parseFloat(val) <= 24) {
  1121. this.formStateEdit.coNoon2 = val
  1122. this.isRule18 = true
  1123. } else {
  1124. this.formStateEdit.coNoon2 = ''
  1125. this.isRule18 = false
  1126. }
  1127. },
  1128. getBlurG2(val) {
  1129. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1130. this.formStateEdit.gwSdzNoon2 = val
  1131. this.isRule9 = true
  1132. } else {
  1133. this.formStateEdit.gwSdzNoon2 = ''
  1134. this.isRule9 = false
  1135. }
  1136. },
  1137. getBlurN1(val) {
  1138. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1139. this.formStateEdit.co2Night1 = val
  1140. this.isRule10 = true
  1141. } else {
  1142. this.formStateEdit.co2Night1 = ''
  1143. this.isRule10 = false
  1144. }
  1145. },
  1146. getBlurCO5(val) {
  1147. if (parseFloat(val) <= 24) {
  1148. this.formStateEdit.coNight1 = val
  1149. this.isRule19 = true
  1150. } else {
  1151. this.formStateEdit.coNight1 = ''
  1152. this.isRule19 = false
  1153. }
  1154. },
  1155. getBlurNG1(val) {
  1156. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1157. this.formStateEdit.gwSdzNoon2 = val
  1158. this.isRule11 = true
  1159. } else {
  1160. this.formStateEdit.gwSdzNoon2 = ''
  1161. this.isRule11 = false
  1162. }
  1163. },
  1164. getBlurN2(val) {
  1165. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1166. this.formStateEdit.co2Night2 = val
  1167. this.isRule12 = true
  1168. } else {
  1169. this.formStateEdit.co2Night2 = ''
  1170. this.isRule12 = false
  1171. }
  1172. },
  1173. getBlurCO6(val) {
  1174. if (parseFloat(val) <= 24) {
  1175. this.formStateEdit.coNight2 = val
  1176. this.isRule20 = true
  1177. } else {
  1178. this.formStateEdit.coNight2 = ''
  1179. this.isRule20 = false
  1180. }
  1181. },
  1182. getBlurNG2(val) {
  1183. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1184. this.formStateEdit.gwSdzNight2 = val
  1185. this.isRule13 = true
  1186. } else {
  1187. this.formStateEdit.gwSdzNight2 = ''
  1188. this.isRule13 = false
  1189. }
  1190. },
  1191. //瓦斯新增
  1192. getAdd() {
  1193. let that = this
  1194. that.isShowAdd = true
  1195. that.isShowEdit = false
  1196. that.formState.jcy = this.username
  1197. },
  1198. getAddSave() {
  1199. let that = this
  1200. let param = {}
  1201. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  1202. param = {
  1203. id: that.formState.id,
  1204. deviceId: that.deviceId,
  1205. bxySdzEarly1: that.formState.bxy,
  1206. ch4Early1: that.formState.ch4,
  1207. checkPersonEarly: that.formState.jcy,
  1208. co2Early1: that.formState.co2,
  1209. coEarly1: that.formState.co,
  1210. gwSdzEarly1: that.formState.gw,
  1211. jwSdzEarly1: that.formState.jw,
  1212. o2Early1: that.formState.o2,
  1213. strInstallPos: that.formState.jcdd,
  1214. timeEarly1: that.formState.time,
  1215. reportTime: that.formState.tbrq,
  1216. tEarly1: that.formState.temp
  1217. }
  1218. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  1219. param = {
  1220. deviceId: that.deviceId,
  1221. id: that.formState.id,
  1222. bxySdzEarly2: that.formState.bxy,
  1223. ch4Early2: that.formState.ch4,
  1224. checkPersonEarly: that.formState.jcy,
  1225. co2Early2: that.formState.co2,
  1226. coEarly2: that.formState.co,
  1227. gwSdzEarly2: that.formState.gw,
  1228. jwSdzEarly2: that.formState.jw,
  1229. o2Early2: that.formState.o2,
  1230. strInstallPos: that.formState.jcdd,
  1231. timeEarly2: that.formState.time,
  1232. reportTime: that.formState.tbrq,
  1233. tEarly2: that.formState.temp
  1234. }
  1235. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  1236. param = {
  1237. deviceId: that.deviceId,
  1238. id: that.formState.id,
  1239. bxySdzNoon1: that.formState.bxy,
  1240. ch4Noon1: that.formState.ch4,
  1241. checkPersonNoon: that.formState.jcy,
  1242. co2Noon1: that.formState.co2,
  1243. coNoon1: that.formState.co,
  1244. gwSdzNoon1: that.formState.gw,
  1245. jwSdzNoon1: that.formState.jw,
  1246. o2Noon1: that.formState.o2,
  1247. strInstallPos: that.formState.jcdd,
  1248. timeNoon1: that.formState.time,
  1249. reportTime: that.formState.tbrq,
  1250. tNoon1: that.formState.temp
  1251. }
  1252. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  1253. param = {
  1254. deviceId: that.deviceId,
  1255. id: that.formState.id,
  1256. bxySdzNoon2: that.formState.bxy,
  1257. ch4Noon2: that.formState.ch4,
  1258. checkPersonNoon: that.formState.jcy,
  1259. co2Noon2: that.formState.co2,
  1260. coNoon2: that.formState.co,
  1261. gwSdzNoon2: that.formState.gw,
  1262. jwSdzNoon2: that.formState.jw,
  1263. o2Noon2: that.formState.o2,
  1264. strInstallPos: that.formState.jcdd,
  1265. timeNoon2: that.formState.time,
  1266. reportTime: that.formState.tbrq,
  1267. tNoon2: that.formState.temp
  1268. }
  1269. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  1270. param = {
  1271. deviceId: that.deviceId,
  1272. id: that.formState.id,
  1273. bxySdzNight1: that.formState.bxy,
  1274. ch4Night1: that.formState.ch4,
  1275. checkPersonNight: that.formState.jcy,
  1276. co2Night1: that.formState.co2,
  1277. coNight1: that.formState.co,
  1278. gwSdzNight1: that.formState.gw,
  1279. jwSdzNight1: that.formState.jw,
  1280. o2Night1: that.formState.o2,
  1281. strInstallPos: that.formState.jcdd,
  1282. timeNight1: that.formState.time,
  1283. reportTime: that.formState.tbrq,
  1284. tNight1: that.formState.temp
  1285. }
  1286. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  1287. param = {
  1288. deviceId: that.deviceId,
  1289. id: that.formState.id,
  1290. bxySdzNight2: that.formState.bxy,
  1291. ch4Night2: that.formState.ch4,
  1292. checkPersonNoon: that.formState.jcy,
  1293. co2Night2: that.formState.co2,
  1294. coNight2: that.formState.co,
  1295. gwSdzNight2: that.formState.gw,
  1296. jwSdzNight2: that.formState.jw,
  1297. o2Night2: that.formState.o2,
  1298. strInstallPos: that.formState.jcdd,
  1299. timeNight2: that.formState.time,
  1300. reportTime: that.formState.tbrq,
  1301. tNight2: that.formState.temp
  1302. }
  1303. }
  1304. new Promise((resolve, reject) => {
  1305. api
  1306. .getAdd({ ...param })
  1307. .then((response) => {
  1308. if (response.data.code == 200) {
  1309. that.getGasList()
  1310. that.isShowAdd = false
  1311. that.isShowEdit = false
  1312. that.clearData()
  1313. } else {
  1314. reject(response);
  1315. }
  1316. })
  1317. .catch((error) => {
  1318. console.log("catch===>response", response);
  1319. reject(error);
  1320. });
  1321. });
  1322. },
  1323. //新增保存
  1324. getConfirm() {
  1325. let that = this
  1326. that.getAddSave()
  1327. },
  1328. clearData() {
  1329. this.formState = {
  1330. id: '',
  1331. bc: '',
  1332. count: '',
  1333. jcdd: '',
  1334. mcgzm: '',
  1335. jcy: this.username,
  1336. time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  1337. ch4: '',
  1338. co2: '',
  1339. co: '',
  1340. o2: '',
  1341. jw: '',
  1342. gw: '',
  1343. bxy: '',
  1344. tbrq: moment(new Date()).format('YYYY-MM-DD'),
  1345. temp: '',
  1346. }
  1347. this.isRule = true
  1348. this.isRule1 = true
  1349. this.isRule2 = true
  1350. this.isRule3 = true
  1351. this.isRule4 = true
  1352. this.isRule5 = true
  1353. this.isRule6 = true
  1354. this.isRule7 = true
  1355. this.isRule8 = true
  1356. this.isRule9 = true
  1357. this.isRule10 = true
  1358. this.isRule11 = true
  1359. this.isRule12 = true
  1360. this.isRule13 = true
  1361. this.isRule14 = true
  1362. this.isRule15 = true
  1363. this.isRule16 = true
  1364. this.isRule17 = true
  1365. this.isRule18 = true
  1366. this.isRule19 = true
  1367. this.isRule20 = true
  1368. },
  1369. //新增取消
  1370. getCancel() {
  1371. this.isShowAdd = false
  1372. this.isShowEdit = false
  1373. this.clearData()
  1374. },
  1375. //编辑保存
  1376. confirmEdit() {
  1377. let that = this
  1378. new Promise((resolve, reject) => {
  1379. api
  1380. .getEdit({ ...that.formStateEdit })
  1381. .then((response) => {
  1382. if (response.data.code == 200) {
  1383. that.getGasList()
  1384. that.isShowAdd = false
  1385. that.isShowEdit = false
  1386. that.isSaveEdit = []
  1387. that.clearData()
  1388. } else {
  1389. reject(response);
  1390. }
  1391. })
  1392. .catch((error) => {
  1393. console.log("catch===>response", response);
  1394. reject(error);
  1395. });
  1396. });
  1397. },
  1398. // 编辑关闭
  1399. cancelEdit() {
  1400. this.isShowAdd = false
  1401. this.isShowEdit = false
  1402. this.clearData()
  1403. },
  1404. convertToTimestamp(datetime) {
  1405. const datetimeArr = datetime.split(' '); // 根据空格将字符串分割为日期和时间部分
  1406. const dateArr = datetimeArr[0].split('-'); // 分割日期部分
  1407. const timeArr = datetimeArr[1].split(':'); // 分割时间部分
  1408. const year = parseInt(dateArr[0]);
  1409. const month = parseInt(dateArr[1]) - 1; // 月份从0开始
  1410. const day = parseInt(dateArr[2]);
  1411. const hour = parseInt(timeArr[0]);
  1412. const minute = parseInt(timeArr[1]);
  1413. const second = parseInt(timeArr[2]);
  1414. const timestamp = new Date(year, month, day, hour, minute, second).getTime();
  1415. return timestamp;
  1416. },
  1417. filterToday(timestamps) {
  1418. const today = new Date();
  1419. today.setHours(0, 0, 0, 0); // 设置到今天的凌晨
  1420. const todayTimestamp = today.getTime(); // 获取今天的时间戳
  1421. return timestamps.filter(timestamp => {
  1422. const date = new Date(timestamp);
  1423. return date.getTime() >= todayTimestamp && date.getTime() < todayTimestamp + 24 * 60 * 60 * 1000;
  1424. });
  1425. },
  1426. //获取瓦斯上报列表数据
  1427. getGasList() {
  1428. let that = this
  1429. new Promise((resolve, reject) => {
  1430. api
  1431. .getGas({ reportTime: that.tbTime, })
  1432. .then((response) => {
  1433. if (response.data.code == 200) {
  1434. let data = response.data.result.records
  1435. let tableList = []
  1436. data.forEach(el => {
  1437. tableList.push(that.convertToTimestamp(el.createTime))
  1438. })
  1439. let todayData = that.filterToday(tableList)
  1440. that.gasList = []
  1441. todayData.forEach(v => {
  1442. let itemData = data.filter(m => that.convertToTimestamp(m.createTime) == v)[0]
  1443. that.gasList.push(itemData)
  1444. })
  1445. } else {
  1446. reject(response);
  1447. }
  1448. })
  1449. .catch((error) => {
  1450. console.log("catch===>response", response);
  1451. reject(error);
  1452. });
  1453. });
  1454. },
  1455. //获取煤层工作面列表数据
  1456. getMcList() {
  1457. new Promise((resolve, reject) => {
  1458. api
  1459. .getDictItems({ dictCode: 'coalseam' })
  1460. .then((response) => {
  1461. let data = response.data
  1462. this.rangeMcgzm = data.map(el => {
  1463. return {
  1464. text: el.label,
  1465. value: el.value,
  1466. }
  1467. })
  1468. })
  1469. .catch((error) => {
  1470. console.log("catch===>response", response);
  1471. reject(error);
  1472. });
  1473. });
  1474. },
  1475. //获取安装位置下拉选项
  1476. getSelectList() {
  1477. let param = this.rangeMcgzm.filter(v => this.formState.mcgzm == v.value)[0].value
  1478. new Promise((resolve, reject) => {
  1479. api
  1480. .getSelect({ coalseam: param, devicekind: 'gasDayReport' })
  1481. .then((response) => {
  1482. if (response.data.code == 200) {
  1483. let data = response.data.result
  1484. this.rangeJcdd = data.map(v => {
  1485. return {
  1486. text: v.strinstallpos,
  1487. value: v.strinstallpos,
  1488. deviceId: v.id,
  1489. }
  1490. })
  1491. } else {
  1492. reject(response);
  1493. }
  1494. })
  1495. .catch((error) => {
  1496. console.log("catch===>response", response);
  1497. reject(error);
  1498. });
  1499. });
  1500. },
  1501. },
  1502. };
  1503. </script>
  1504. <style lang="scss" scoped>
  1505. .gas-report {
  1506. position: relative;
  1507. box-sizing: border-box;
  1508. .gas-content {
  1509. height: 708px;
  1510. margin-top: 85px;
  1511. box-sizing: border-box;
  1512. overflow-y: auto;
  1513. .top-title {
  1514. height: 28px;
  1515. margin-bottom: 5px;
  1516. display: flex;
  1517. justify-content: space-between;
  1518. align-items: center;
  1519. }
  1520. .top-content {
  1521. .content-title {
  1522. height: 26px;
  1523. line-height: 26px;
  1524. padding: 0px 20px;
  1525. font-size: 12px;
  1526. background: url('/static/warndata/title.png') no-repeat;
  1527. background-size: 100% 100%;
  1528. }
  1529. .content-item-box {
  1530. padding: 10px 0px;
  1531. .content-item {
  1532. height: 50px;
  1533. display: flex;
  1534. justify-content: space-between;
  1535. align-items: center;
  1536. background: linear-gradient(to right, rgba(55, 135, 254, 0.08), rgba(4, 184, 255, 0.08), rgba(60, 161, 237, 0.08));
  1537. border-radius: 10px;
  1538. margin-bottom: 5px;
  1539. .item-l {
  1540. width: calc(50% - 2px);
  1541. height: 100%;
  1542. display: flex;
  1543. flex-direction: column;
  1544. justify-content: center;
  1545. align-items: center;
  1546. }
  1547. .item-c {
  1548. width: 4px;
  1549. height: 70%;
  1550. border-left: 2px solid;
  1551. border-image: linear-gradient(to bottom, transparent, rgba(140, 203, 254, 1), transparent) 1 1 1;
  1552. }
  1553. .item-r {
  1554. width: calc(50% - 2px);
  1555. height: 100%;
  1556. display: flex;
  1557. flex-direction: column;
  1558. justify-content: center;
  1559. align-items: center;
  1560. }
  1561. }
  1562. }
  1563. }
  1564. .item-value {
  1565. height: 20px;
  1566. line-height: 20px;
  1567. color: #0eb4fc;
  1568. font-weight: bold;
  1569. }
  1570. .item-label {
  1571. font-size: 12px;
  1572. }
  1573. .top-dialog-area,
  1574. .center-dialog-area,
  1575. .bottom-dialog-area {
  1576. width: 100%;
  1577. padding: 10px;
  1578. box-sizing: border-box;
  1579. background-color: #FFF;
  1580. margin-bottom: 2px;
  1581. }
  1582. .top-gas-list {
  1583. display: flex;
  1584. flex-direction: column;
  1585. align-items: center;
  1586. width: 100%;
  1587. padding: 10px 20px;
  1588. box-sizing: border-box;
  1589. background-color: #FFF;
  1590. margin-bottom: 2px;
  1591. }
  1592. .bot-gas-list {
  1593. width: 100%;
  1594. height: calc(100% - 94px);
  1595. padding: 10px;
  1596. box-sizing: border-box;
  1597. background-color: #FFF;
  1598. margin-bottom: 2px;
  1599. overflow-y: auto;
  1600. }
  1601. .dialog-btn {
  1602. display: flex;
  1603. width: 100%;
  1604. padding: 8px 10px;
  1605. box-sizing: border-box;
  1606. background-color: #FFF;
  1607. // margin-bottom: 2px;
  1608. .u-button {
  1609. margin: 0px 10px;
  1610. }
  1611. }
  1612. .dialog-title {
  1613. height: 26px;
  1614. line-height: 26px;
  1615. padding: 0px 20px;
  1616. margin-bottom: 10px;
  1617. font-size: 12px;
  1618. background: url('/static/warndata/title.png') no-repeat;
  1619. background-size: 100% 100%;
  1620. }
  1621. .dialog-item {
  1622. display: flex;
  1623. align-items: center;
  1624. justify-content: center;
  1625. margin-bottom: 10px;
  1626. .dialog-label {
  1627. width: 120px;
  1628. text-align: right;
  1629. }
  1630. }
  1631. .search-box {
  1632. display: flex;
  1633. align-items: center;
  1634. justify-content: center;
  1635. margin-bottom: 10px;
  1636. .dialog-label {
  1637. width: 80px;
  1638. text-align: right;
  1639. }
  1640. }
  1641. .content-title-gas {
  1642. position: relative;
  1643. height: 26px;
  1644. line-height: 26px;
  1645. padding-left: 20px;
  1646. font-size: 12px;
  1647. background: url('/static/warndata/title.png') no-repeat;
  1648. background-size: 100% 100%;
  1649. }
  1650. .icon-gas-edit {
  1651. position: absolute;
  1652. right: 35px;
  1653. top: 0;
  1654. cursor: pointer;
  1655. }
  1656. .icon-gas-del {
  1657. position: absolute;
  1658. right: 10px;
  1659. top: 0;
  1660. cursor: pointer;
  1661. }
  1662. }
  1663. }
  1664. ::v-deep .u-input {
  1665. padding: 2px 6px !important;
  1666. }
  1667. ::v-deep .u-popup {
  1668. flex: 0;
  1669. }
  1670. ::v-deep .uni-select {
  1671. height: 30px;
  1672. border: 1px solid #dadbde;
  1673. }
  1674. ::v-deep .uni-select__input-box {
  1675. height: 30px;
  1676. }
  1677. ::v-deep .uni-select__input-placeholder {
  1678. font-size: 14px;
  1679. text-align: center;
  1680. color: rgb(192, 196, 204);
  1681. }
  1682. </style>