gasreport.vue 86 KB

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