gasImgIdentify.vue 107 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245
  1. <template>
  2. <view class="gas-fill">
  3. <!-- 瓦斯上报列表 -->
  4. <view v-if="!isShowAdd">
  5. <view class="top-gas-list">
  6. <u-button type="primary" icon="camera-fill" size="small" @click="chooseImage"
  7. style="margin: 2px 0px;">图片选取</u-button>
  8. <!-- 图片预览 -->
  9. <view class="imgView">
  10. <image v-if="imageSrc" style="width:150px" :src="imageSrc" mode="widthFix" @click="getPreview">
  11. </image>
  12. </view>
  13. <view>
  14. <u-modal :show="imgPreShow" @confirm="closePreImg">
  15. <view class="slot-content">
  16. <image style="width:200px" :src="imageSrc" mode="heightFix"></image>
  17. </view>
  18. </u-modal>
  19. </view>
  20. <view style="width:100%;display: flex;justify-content: space-between;margin: 2px 0px;">
  21. <u-button icon="eye" type="primary" size="small" :loading="loading" loadingText="识别中"
  22. style="width:49%;margin:0" @click="getGasIdentify">识别</u-button>
  23. <u-button icon="trash" type="primary" size="small" style="width:49%;margin:0"
  24. @click="delSb">删除</u-button>
  25. </view>
  26. </view>
  27. <!-- 识别列表 -->
  28. <view class="sb-list" v-if="indexList.length != 0">
  29. <u-list :preLoadScreen="0.5">
  30. <u-list-item v-for="(item, index) in indexList" :key="index">
  31. <u-cell :title="item['检查地点']" center>
  32. <view slot="value" class="u-slot-title">
  33. <u-tag text="选择" plain size="mini" type="warning" @click="choiceSb(item)">
  34. </u-tag>
  35. </view>
  36. <view slot="label" style="font-size: 12px;" class="u-slot-contents">
  37. <text style="margin-right:5px">班次:{{ item['班次'] }}</text>
  38. <!-- <text style="margin:0px 10px">日期:{{ item['日期'] }}</text> -->
  39. <text style="margin-left:5px">检查时间:{{ item['检查时间'] }}</text>
  40. </view>
  41. </u-cell>
  42. </u-list-item>
  43. </u-list>
  44. </view>
  45. <view :class="indexList.length != 0 ? 'bot-gas-list1' : 'bot-gas-list'">
  46. <view class="top-title">
  47. <view style="font-weight: bold;">瓦斯填报列表</view>
  48. <view style="width:80px;height:20px;display: flex;justify-content: center;align-items: center;font-size: 12px;">
  49. <text style="margin-right:5px" @click="getAll">显示全部</text>
  50. <text>
  51. <u-icon name="arrow-right-double" size="12" top="2px" color="#000"></u-icon>
  52. </text>
  53. </view>
  54. </view>
  55. <view class="top-content" v-for="(item, index) in gasList" :key="index">
  56. <view class="content-title-gas">
  57. <text>
  58. {{ item.strInstallPos || '--' }}
  59. </text>
  60. </view>
  61. <view class="content-item-box">
  62. <view class="content-item">
  63. <view class="item-l">
  64. <view class="item-value">
  65. <text>
  66. {{ item.timeNight1 || '--' }}
  67. </text>
  68. <text>
  69. <u-icon name="edit-pen" size="16" color="#0eb4fc"
  70. @click="getEdits('夜班一', item)"></u-icon>
  71. </text>
  72. </view>
  73. <view class="item-label">夜班监测时间一</view>
  74. </view>
  75. <view class="item-c"></view>
  76. <view class="item-r">
  77. <view class="item-value">
  78. <text>
  79. {{ item.timeNight2 || '--' }}
  80. </text>
  81. <text>
  82. <u-icon name="edit-pen" size="16" color="#0eb4fc"
  83. @click="getEdits('夜班二', item)"></u-icon>
  84. </text>
  85. </view>
  86. <view class="item-label">夜班监测时间二</view>
  87. </view>
  88. </view>
  89. <view class="content-item">
  90. <view class="item-l">
  91. <view class="item-value">
  92. <text>
  93. {{ item.timeEarly1 || '--' }}
  94. </text>
  95. <text>
  96. <u-icon name="edit-pen" size="16" color="#0eb4fc"
  97. @click="getEdits('早班一', item)"></u-icon>
  98. </text>
  99. </view>
  100. <view class="item-label">早班监测时间一</view>
  101. </view>
  102. <view class="item-c"></view>
  103. <view class="item-r">
  104. <view class="item-value">
  105. <text>
  106. {{ item.timeEarly2 || '--' }}
  107. </text>
  108. <text>
  109. <u-icon name="edit-pen" size="16" color="#0eb4fc"
  110. @click="getEdits('早班二', item)"></u-icon>
  111. </text>
  112. </view>
  113. <view class="item-label">早班监测时间二</view>
  114. </view>
  115. </view>
  116. <view class="content-item">
  117. <view class="item-l">
  118. <view class="item-value">
  119. <text>
  120. {{ item.timeNoon1 || '--' }}
  121. </text>
  122. <text>
  123. <u-icon name="edit-pen" size="16" color="#0eb4fc"
  124. @click="getEdits('中班一', item)"></u-icon>
  125. </text>
  126. </view>
  127. <view class="item-label">中班监测时间一</view>
  128. </view>
  129. <view class="item-c"></view>
  130. <view class="item-r">
  131. <view class="item-value">
  132. <text>
  133. {{ item.timeNoon2 || '--' }}
  134. </text>
  135. <text>
  136. <u-icon name="edit-pen" size="16" color="#0eb4fc"
  137. @click="getEdits('中班二', item)"></u-icon>
  138. </text>
  139. </view>
  140. <view class="item-label">中班监测时间二</view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. <!-- 新增弹窗 -->
  148. <view v-if="isShowAdd">
  149. <view class="top-dialog-area">
  150. <view class="dialog-item">
  151. <text class="dialog-label">班次:</text>
  152. <uni-data-select placeholder="请选择班次" disabled align="center" :clear="true" v-model="formState.bc"
  153. :localdata="rangeBc"></uni-data-select>
  154. </view>
  155. <view class="dialog-item">
  156. <text class="dialog-label">检测次数:</text>
  157. <uni-data-select placeholder="请选择检测次数" align="center" :clear="true" v-model="formState.count"
  158. :disabled="statusShow == 'edit'" :localdata="rangeCount"
  159. @change="changeCount"></uni-data-select>
  160. </view>
  161. <view class="dialog-item">
  162. <text class="dialog-label">检测地点:</text>
  163. <uni-data-select placeholder="请选择检测地点" align="center" :clear="true" v-model="formState.jcdd"
  164. :disabled="statusShow == 'edit'" :localdata="rangeJcdd" @change="changeJc"></uni-data-select>
  165. </view>
  166. <view class="dialog-item" @click="getChangeTime">
  167. <text class="dialog-label">检测时间:</text>
  168. <u--input v-model="formState.time" placeholder="请选择检测时间" inputAlign="center"
  169. :disabled="statusShow == 'edit'" suffixIcon="arrow-right"></u--input>
  170. <u-datetime-picker :show="showCalendar" v-model="timeRan" mode="datetime" closeOnClickOverlay
  171. @confirm="showCalendar = false" @cancel="showCalendar = false" @change="change"
  172. @close="showCalendar = false"></u-datetime-picker>
  173. </view>
  174. <view class="dialog-item">
  175. <text class="dialog-label">填报日期:</text>
  176. <u--input inputAlign="center" v-model="formState.tbrq" placeholder="请选择填报日期"
  177. :disabled="statusShow == 'edit'"></u--input>
  178. </view>
  179. <view class="dialog-item">
  180. <text class="dialog-label">瓦斯检查工:</text>
  181. <u--input inputAlign="center" disabled v-model="formState.jcy" placeholder="请输入"></u--input>
  182. </view>
  183. </view>
  184. <view>
  185. <view class="center-dialog-area">
  186. <div class="dialog-title">气体检测数据</div>
  187. <view class="dialog-item">
  188. <text class="dialog-label">CH₄(%):</text>
  189. <u--input inputAlign="center" v-model="formState.ch4" :placeholder="isRule2 ? '请输入' : '数据有误'"
  190. type="number" @blur="getBlurCH4" @input="changeInput($event, 'ch4')" clearable
  191. :placeholderStyle="isRule2 ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  192. </view>
  193. <view class="dialog-item">
  194. <text class="dialog-label">CO₂(%):</text>
  195. <u--input inputAlign="center" v-model="formState.co2" :placeholder="isRule ? '请输入' : '数据有误'"
  196. type="number" @blur="getBlurCO2" @input="changeInput($event, 'co2')" clearable
  197. :placeholderStyle="isRule ? 'color:#c0c4cc' : 'color:#ff0000'"></u--input>
  198. </view>
  199. <view class="dialog-item">
  200. <text class="dialog-label">CO(ppm):</text>
  201. <u--input inputAlign="center" v-model="formState.co" :placeholder="isRule14 ? '请输入' : '数据有误'"
  202. clearable :placeholderStyle="isRule14 ? 'color:#c0c4cc' : 'color:#ff0000'" type="number"
  203. @blur="getBlurCO" @input="changeInput($event, 'co')"></u--input>
  204. </view>
  205. <view class="dialog-item">
  206. <text class="dialog-label">O₂(%):</text>
  207. <u--input inputAlign="center" clearable type="number" v-model="formState.o2" placeholder="请输入"
  208. @input="changeInput($event, 'o2')"></u--input>
  209. </view>
  210. <view class="dialog-item">
  211. <text class="dialog-label">T(℃):</text>
  212. <u--input inputAlign="center" clearable type="number" @input="changeInput($event, 'temp')"
  213. v-model="formState.temp" placeholder="请输入"></u--input>
  214. </view>
  215. </view>
  216. <view class="bottom-dialog-area">
  217. <div class="dialog-title">三对照数据</div>
  218. <view class="dialog-item">
  219. <text class="dialog-label">甲烷传感器:</text>
  220. <uni-data-select placeholder="请选择检测地点" align="center" :clear="true" v-model="formState.jw"
  221. :localdata="rangeJw" @change="changeJw"></uni-data-select>
  222. </view>
  223. <view class="dialog-item">
  224. <text class="dialog-label">光瓦测量数据:</text>
  225. <u--input inputAlign="center" type="number" v-model="formState.ch4" placeholder="请输入" clearable
  226. @input="changeInput($event, 'ch4')"></u--input>
  227. </view>
  228. <view class="dialog-item">
  229. <text class="dialog-label">便携仪测量数据:</text>
  230. <u--input inputAlign="center" :placeholderStyle="isRule3 ? 'color:#c0c4cc' : 'color:#ff0000'"
  231. :placeholder="isRule3 ? '请输入' : '数据有误'" type="number" v-model="formState.bxy" clearable
  232. @blur="getBlurBxy" @input="changeInput($event, 'bxy')"></u--input>
  233. </view>
  234. </view>
  235. </view>
  236. <view class="dialog-btn">
  237. <u-button type="success" size="small" v-if="statusShow == 'add'" @click="getConfirm">保存</u-button>
  238. <u-button type="success" size="small" v-if="statusShow == 'edit'" @click="getConfirm">保存</u-button>
  239. <u-button type="primary" size="small" @click="getCancel">取消</u-button>
  240. </view>
  241. </view>
  242. </view>
  243. </template>
  244. <script>
  245. import api from "@/api/api";
  246. import moment from 'moment'
  247. import configService from '@/common/service/config.service.js'
  248. import stringSimilarity from 'string-similarity'
  249. export default {
  250. name: 'gasFill',
  251. props: {},
  252. data() {
  253. return {
  254. tableData:[],
  255. loading: false,
  256. imgPreShow: false,
  257. paramData: {},
  258. statusShow: '',
  259. editData: {},
  260. indexList: [],//识别数据
  261. indexParam: {},//当前选中识别的数据
  262. imageSrc: '',
  263. imageSrcList: [],
  264. deviceId: '',
  265. rangeBc: [
  266. { value: '夜班', text: "夜班" },
  267. { value: '早班', text: "早班" },
  268. { value: '中班', text: "中班" },
  269. ],
  270. // rangeMcgzm: [],
  271. rangeJcdd: [],
  272. rangeCount: [
  273. { value: '第一次', text: '第一次' },
  274. { value: '第二次', text: '第二次' },
  275. ],
  276. rangeJw: [
  277. { value: '0', text: '0' },
  278. { value: '-', text: '-' },
  279. ],
  280. isRule: true,
  281. isRule1: true,
  282. isRule14: true,
  283. isRule2: true,
  284. isRule3: true,
  285. //新增参数信息
  286. isShowAdd: false,//是否显示新增弹窗
  287. showCalendar: false,//控制日期选型下拉开启
  288. timeRan: Number(new Date()),
  289. gasList: [],//瓦斯填报列表数据
  290. tbTime: moment(new Date()).format('YYYY-MM-DD'),//查询条件-填报时间
  291. // showCalendarTb: false,//控制填报时间组件弹出
  292. saveShowList: {},
  293. formState: {
  294. id: '',
  295. bc: '',
  296. count: '第一次',
  297. jcdd: '',
  298. jcy: '',
  299. time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  300. ch4: '',
  301. co2: '',
  302. co: '',
  303. o2: '',
  304. jw: '',
  305. gw: '',
  306. bxy: '',
  307. tbrq: moment(new Date()).format('YYYY-MM-DD'),
  308. temp: '',
  309. // mcgzm: '',
  310. },
  311. };
  312. },
  313. computed: {
  314. username: function () {
  315. return uni.getStorageSync('login_user_info')['realname']
  316. },
  317. },
  318. mounted() {
  319. this.getGasList()
  320. this.getSelectList()
  321. },
  322. methods: {
  323. hasPermission(param) {
  324. let permission = uni.getStorageSync('btnPermission')
  325. return permission.filter(v => v.action == param).length != 0 ? true : false
  326. },
  327. //显示全部
  328. getAll(){
  329. let that=this
  330. that.gasList=that.tableData
  331. },
  332. //图片点击
  333. getPreview() {
  334. this.imgPreShow = true
  335. },
  336. closePreImg() {
  337. this.imgPreShow = false
  338. },
  339. //获取图片识别数据
  340. getGasIdentify() {
  341. let that = this
  342. that.loading = true
  343. let apiUrlImg = `${configService.apiUrlP.substring(0, configService.apiUrlP.lastIndexOf(':'))}:6006`
  344. uni.uploadFile({
  345. url: `${apiUrlImg}/gasIdentify`,
  346. filePath: that.imageSrcList[0].path,
  347. name: 'img',
  348. formData: {
  349. 'user': that.username,
  350. },
  351. success: (res) => {
  352. if (res) {
  353. that.indexList = JSON.parse(res.data).data || []
  354. uni.showToast({
  355. title: '识别成功!',
  356. icon: 'none' // 可选图标,'success', 'loading', 'none'
  357. });
  358. that.loading = false
  359. }
  360. },
  361. fail: (errpr) => {
  362. uni.showToast({
  363. title: '识别失败!',
  364. icon: 'none' // 可选图标,'success', 'loading', 'none'
  365. });
  366. }
  367. });
  368. },
  369. // 选择图片的方法
  370. chooseImage() {
  371. uni.chooseImage({
  372. count: 1, // 默认9,设置图片的最大选择数
  373. sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
  374. sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
  375. success: (res) => {
  376. console.log(res, 'res===')
  377. // 获取选中的图片路径,这里我们只取第一张图进行预览
  378. this.imageSrc = res.tempFilePaths[0];
  379. this.imageSrcList = res.tempFiles
  380. },
  381. fail: (err) => {
  382. console.error('选择图片失败:', err);
  383. }
  384. });
  385. },
  386. //进行选择识别
  387. choiceSb(item) {
  388. let that=this
  389. console.log(item, '选择识别---')
  390. this.indexParam = Object.assign({}, item)
  391. that.isShowAdd = true
  392. that.statusShow = 'add'
  393. let jcddList=that.rangeJcdd.map(el=>el.text)
  394. let addressName= that.indexParam['检查地点']
  395. let jcddData=stringSimilarity.findBestMatch(addressName,jcddList)
  396. that.formState = {
  397. id: '',
  398. bc: that.indexParam['班次'],
  399. count: that.formState.count,
  400. jcdd: jcddData.bestMatch.target,
  401. jcy: that.indexParam['检查人'],
  402. time: that.indexParam['检查时间'],
  403. ch4: that.indexParam['CH4%'],
  404. co2: that.indexParam['CO2%'],
  405. co: that.indexParam['CO(ppm)'],
  406. o2: that.indexParam['O2%'],
  407. jw: '0',
  408. gw: that.indexParam['CH4%'],
  409. bxy: '0',
  410. tbrq: that.indexParam['检查时间'].substring(0, that.indexParam['检查时间'].indexOf(' ')),
  411. temp: that.indexParam['温度(℃)'],
  412. // mcgzm: '',
  413. }
  414. },
  415. //删除
  416. delSb() {
  417. this.indexList = []
  418. this.indexParam = {}
  419. this.imageSrc = ''
  420. },
  421. //班次下拉选项切换
  422. // changeBc(e) {
  423. // let that = this
  424. // console.log(e, '班次----------')
  425. // this.formState.bc = e
  426. // if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  427. // if (that.saveShowList.bxySdzEarly1 || that.saveShowList.ch4Early1 || that.saveShowList.co2Early1 || that.saveShowList.coEarly1 || that.saveShowList.gwSdzEarly1 || that.saveShowList.jwSdzEarly1 || that.saveShowList.o2Early1 || that.saveShowList.tearly1) {
  428. // that.formState = {
  429. // id: that.saveShowList.id || '',
  430. // bc: that.formState.bc,
  431. // count: that.formState.count,
  432. // jcdd: that.formState.jcdd,
  433. // jcy: that.formState.jcy,
  434. // time: that.formState.time,
  435. // ch4: that.saveShowList.ch4Early1 || '',
  436. // co2: that.saveShowList.co2Early1 || '',
  437. // co: that.saveShowList.coEarly1 || '',
  438. // o2: that.saveShowList.o2Early1 || '',
  439. // jw: that.saveShowList.jwSdzEarly1 || '',
  440. // gw: that.saveShowList.gwSdzEarly1 || '',
  441. // bxy: that.saveShowList.bxySdzEarly1 || '',
  442. // tbrq: that.formState.tbrq,
  443. // temp: that.saveShowList.tearly1 || '',
  444. // // mcgzm: that.formState.mcgzm,
  445. // }
  446. //
  447. // } else {
  448. //
  449. // }
  450. // } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  451. // if (that.saveShowList.bxySdzEarly2 || that.saveShowList.ch4Early2 || that.saveShowList.co2Early2 || that.saveShowList.coEarly2 || that.saveShowList.gwSdzEarly2 || that.saveShowList.jwSdzEarly2 || that.saveShowList.o2Early2 || that.saveShowList.tearly2) {
  452. // that.formState = {
  453. // id: that.saveShowList.id || '',
  454. // bc: that.formState.bc,
  455. // count: that.formState.count,
  456. // jcdd: that.formState.jcdd,
  457. // jcy: that.formState.jcy,
  458. // time: that.formState.time,
  459. // ch4: that.saveShowList.ch4Early2 || '',
  460. // co2: that.saveShowList.co2Early2 || '',
  461. // co: that.saveShowList.coEarly2 || '',
  462. // o2: that.saveShowList.o2Early2 || '',
  463. // jw: that.saveShowList.jwSdzEarly2 || '',
  464. // gw: that.saveShowList.gwSdzEarly2 || '',
  465. // bxy: that.saveShowList.bxySdzEarly2 || '',
  466. // tbrq: that.formState.tbrq,
  467. // temp: that.saveShowList.tearly2 || '',
  468. // // mcgzm: that.formState.mcgzm,
  469. // }
  470. //
  471. // } else {
  472. //
  473. // }
  474. // } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  475. // if (that.saveShowList.bxySdzNoon1 || that.saveShowList.ch4Noon1 || that.saveShowList.co2Noon1 || that.saveShowList.coNoon1 || that.saveShowList.gwSdzNoon1 || that.saveShowList.jwSdzNoon1 || that.saveShowList.o2Noon1 || that.saveShowList.tnoon1) {
  476. // that.formState = {
  477. // id: that.saveShowList.id || '',
  478. // bc: that.formState.bc,
  479. // count: that.formState.count,
  480. // jcdd: that.formState.jcdd,
  481. // jcy: that.formState.jcy,
  482. // time: that.formState.time,
  483. // ch4: that.saveShowList.bxySdzNoon1 || '',
  484. // co2: that.saveShowList.co2Noon1 || '',
  485. // co: that.saveShowList.coNoon1 || '',
  486. // o2: that.saveShowList.o2Noon1 || '',
  487. // jw: that.saveShowList.jwSdzNoon1 || '',
  488. // gw: that.saveShowList.gwSdzNoon1 || '',
  489. // bxy: that.saveShowList.bxySdzNoon1 || '',
  490. // tbrq: that.formState.tbrq,
  491. // temp: that.saveShowList.tnoon1 || '',
  492. // // mcgzm: that.formState.mcgzm,
  493. // }
  494. //
  495. // } else {
  496. //
  497. // }
  498. // } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  499. // if (that.saveShowList.bxySdzNoon2 || that.saveShowList.ch4Noon2 || that.saveShowList.co2Noon2 || that.saveShowList.coNoon2 || that.saveShowList.gwSdzNoon2 || that.saveShowList.jwSdzNoon2 || that.saveShowList.o2Noon2 || that.saveShowList.tnoon2) {
  500. // that.formState = {
  501. // id: that.saveShowList.id || '',
  502. // bc: that.formState.bc,
  503. // count: that.formState.count,
  504. // jcdd: that.formState.jcdd,
  505. // jcy: that.formState.jcy,
  506. // time: that.formState.time,
  507. // ch4: that.saveShowList.bxySdzNoon2 || '',
  508. // co2: that.saveShowList.co2Noon2 || '',
  509. // co: that.saveShowList.coNoon2 || '',
  510. // o2: that.saveShowList.o2Noon2 || '',
  511. // jw: that.saveShowList.jwSdzNoon2 || '',
  512. // gw: that.saveShowList.gwSdzNoon2 || '',
  513. // bxy: that.saveShowList.bxySdzNoon2 || '',
  514. // tbrq: that.formState.tbrq,
  515. // temp: that.saveShowList.tnoon2 || '',
  516. // // mcgzm: that.formState.mcgzm,
  517. // }
  518. //
  519. // } else {
  520. //
  521. // }
  522. // } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  523. // if (that.saveShowList.bxySdzNight1 || that.saveShowList.ch4Night1 || that.saveShowList.co2Night1 || that.saveShowList.coNight1 || that.saveShowList.gwSdzNight1 || that.saveShowList.jwSdzNight1 || that.saveShowList.o2Night1 || that.saveShowList.tnight1) {
  524. // that.formState = {
  525. // id: that.saveShowList.id || '',
  526. // bc: that.formState.bc,
  527. // count: that.formState.count,
  528. // jcdd: that.formState.jcdd,
  529. // jcy: that.formState.jcy,
  530. // time: that.formState.time,
  531. // ch4: that.saveShowList.ch4Night1 || '',
  532. // co2: that.saveShowList.co2Night1 || '',
  533. // co: that.saveShowList.coNight1 || '',
  534. // o2: that.saveShowList.o2Night1 || '',
  535. // jw: that.saveShowList.jwSdzNight1 || '',
  536. // gw: that.saveShowList.gwSdzNight1 || '',
  537. // bxy: that.saveShowList.bxySdzNight1 || '',
  538. // tbrq: that.formState.tbrq,
  539. // temp: that.saveShowList.tnight1 || '',
  540. // // mcgzm: that.formState.mcgzm,
  541. // }
  542. //
  543. // } else {
  544. //
  545. // }
  546. // } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  547. // if (that.saveShowList.bxySdzNight2 || that.saveShowList.ch4Night2 || that.saveShowList.co2Night2 || that.saveShowList.coNight2 || that.saveShowList.gwSdzNight2 || that.saveShowList.jwSdzNight2 || that.saveShowList.o2Night2 || that.saveShowList.tnight2) {
  548. // that.formState = {
  549. // id: that.saveShowList.id || '',
  550. // bc: that.formState.bc,
  551. // count: that.formState.count,
  552. // jcdd: that.formState.jcdd,
  553. // jcy: that.formState.jcy,
  554. // time: that.formState.time,
  555. // ch4: that.saveShowList.ch4Night2 || '',
  556. // co2: that.saveShowList.co2Night2 || '',
  557. // co: that.saveShowList.coNight2 || '',
  558. // o2: that.saveShowList.o2Night2 || '',
  559. // jw: that.saveShowList.jwSdzNight2 || '',
  560. // gw: that.saveShowList.gwSdzNight2 || '',
  561. // bxy: that.saveShowList.bxySdzNight2 || '',
  562. // tbrq: that.formState.tbrq,
  563. // temp: that.saveShowList.tnight2 || '',
  564. // // mcgzm: that.formState.mcgzm,
  565. // }
  566. //
  567. // } else {
  568. //
  569. // }
  570. // }
  571. // },
  572. //监测次数选项切换
  573. changeCount(e) {
  574. let that = this
  575. that.formState.count = e
  576. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  577. let param = {
  578. // deviceId: that.deviceId,
  579. bxySdzEarly1: that.formState.bxy,
  580. ch4Early1: that.formState.ch4,
  581. checkPersonEarly: that.formState.jcy,
  582. co2Early1: that.formState.co2,
  583. coEarly1: that.formState.co,
  584. gwSdzEarly1: that.formState.gw,
  585. jwSdzEarly1: that.formState.jw,
  586. o2Early1: that.formState.o2,
  587. strInstallPos: that.formState.jcdd,
  588. timeEarly1: that.formState.time,
  589. reportTime: that.formState.tbrq,
  590. tearly1: that.formState.temp,
  591. }
  592. that.paramData = Object.assign({}, that.saveShowList, param)
  593. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  594. let param = {
  595. // deviceId: that.deviceId,
  596. bxySdzEarly2: that.formState.bxy,
  597. ch4Early2: that.formState.ch4,
  598. checkPersonEarly: that.formState.jcy,
  599. co2Early2: that.formState.co2,
  600. coEarly2: that.formState.co,
  601. gwSdzEarly2: that.formState.gw,
  602. jwSdzEarly2: that.formState.jw,
  603. o2Early2: that.formState.o2,
  604. strInstallPos: that.formState.jcdd,
  605. timeEarly2: that.formState.time,
  606. reportTime: that.formState.tbrq,
  607. tearly2: that.formState.temp,
  608. }
  609. that.paramData = Object.assign({}, that.saveShowList, param)
  610. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  611. let param = {
  612. // deviceId: that.deviceId,
  613. bxySdzNoon1: that.formState.bxy,
  614. ch4Noon1: that.formState.ch4,
  615. checkPersonNoon: that.formState.jcy,
  616. co2Noon1: that.formState.co2,
  617. coNoon1: that.formState.co,
  618. gwSdzNoon1: that.formState.gw,
  619. jwSdzNoon1: that.formState.jw,
  620. o2Noon1: that.formState.o2,
  621. strInstallPos: that.formState.jcdd,
  622. timeNoon1: that.formState.time,
  623. reportTime: that.formState.tbrq,
  624. tnoon1: that.formState.temp,
  625. }
  626. that.paramData = Object.assign({}, that.saveShowList, param)
  627. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  628. let param = {
  629. // deviceId: that.deviceId,
  630. bxySdzNoon2: that.formState.bxy,
  631. ch4Noon2: that.formState.ch4,
  632. checkPersonNoon: that.formState.jcy,
  633. co2Noon2: that.formState.co2,
  634. coNoon2: that.formState.co,
  635. gwSdzNoon2: that.formState.gw,
  636. jwSdzNoon2: that.formState.jw,
  637. o2Noon2: that.formState.o2,
  638. strInstallPos: that.formState.jcdd,
  639. timeNoon2: that.formState.time,
  640. reportTime: that.formState.tbrq,
  641. tnoon2: that.formState.temp,
  642. }
  643. that.paramData = Object.assign({}, that.saveShowList, param)
  644. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  645. let param = {
  646. // deviceId: that.deviceId,
  647. bxySdzNight1: that.formState.bxy,
  648. ch4Night1: that.formState.ch4,
  649. checkPersonNight: that.formState.jcy,
  650. co2Night1: that.formState.co2,
  651. coNight1: that.formState.co,
  652. gwSdzNight1: that.formState.gw,
  653. jwSdzNight1: that.formState.jw,
  654. o2Night1: that.formState.o2,
  655. strInstallPos: that.formState.jcdd,
  656. timeNight1: that.formState.time,
  657. reportTime: that.formState.tbrq,
  658. tnight1: that.formState.temp,
  659. }
  660. that.paramData = Object.assign({}, that.saveShowList, param)
  661. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  662. let param = {
  663. // deviceId: that.deviceId,
  664. bxySdzNight2: that.formState.bxy,
  665. ch4Night2: that.formState.ch4,
  666. checkPersonNight: that.formState.jcy,
  667. co2Night2: that.formState.co2,
  668. coNight2: that.formState.co,
  669. gwSdzNight2: that.formState.gw,
  670. jwSdzNight2: that.formState.jw,
  671. o2Night2: that.formState.o2,
  672. strInstallPos: that.formState.jcdd,
  673. timeNight2: that.formState.time,
  674. reportTime: that.formState.tbrq,
  675. tnight2: that.formState.temp,
  676. }
  677. that.paramData = Object.assign({}, that.saveShowList, param)
  678. }
  679. },
  680. //甲烷三对照选项切换
  681. changeJw(e) {
  682. this.formState.jw = e
  683. },
  684. //检测地点拉选项切换
  685. changeJc(e) {
  686. let that = this
  687. that.formState.jcdd = e
  688. that.deviceId = that.rangeJcdd.filter(v => v.text == e)[0].deviceId
  689. new Promise((resolve, reject) => {
  690. api
  691. .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
  692. .then((response) => {
  693. if (response.data.code == 200) {
  694. let data = response.data.result.records
  695. if (data.length != 0) {
  696. that.saveShowList = data[0]
  697. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  698. // that.formState = {
  699. // id: '',
  700. // bc: that.indexParam['班次'],
  701. // count: that.formState.count || '',
  702. // jcdd: that.formState.jcdd || '',
  703. // jcy: that.indexParam['检查人'],
  704. // time: that.indexParam['检查时间'],
  705. // ch4: that.indexParam['CH4%'],
  706. // co2: that.indexParam['CO2%'],
  707. // co: that.indexParam['CO(ppm)'],
  708. // o2: that.indexParam['O2%'],
  709. // jw: '0',
  710. // gw: that.indexParam['CH4%'],
  711. // bxy: '0',
  712. // tbrq: that.indexParam['检查时间'].substring(0, that.indexParam['检查时间'].indexOf(' ')),
  713. // temp: that.indexParam['温度(℃)'],
  714. // // mcgzm: '',
  715. // }
  716. let param = {
  717. // deviceId: that.deviceId,
  718. bxySdzEarly1: that.formState.bxy,
  719. ch4Early1: that.formState.ch4,
  720. checkPersonEarly: that.formState.jcy,
  721. co2Early1: that.formState.co2,
  722. coEarly1: that.formState.co,
  723. gwSdzEarly1: that.formState.gw,
  724. jwSdzEarly1: that.formState.jw,
  725. o2Early1: that.formState.o2,
  726. strInstallPos: that.formState.jcdd,
  727. timeEarly1: that.formState.time,
  728. reportTime: that.formState.tbrq,
  729. tearly1: that.formState.temp,
  730. }
  731. that.paramData = Object.assign({}, that.saveShowList, param)
  732. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  733. let param = {
  734. // deviceId: that.deviceId,
  735. bxySdzEarly2: that.formState.bxy,
  736. ch4Early2: that.formState.ch4,
  737. checkPersonEarly: that.formState.jcy,
  738. co2Early2: that.formState.co2,
  739. coEarly2: that.formState.co,
  740. gwSdzEarly2: that.formState.gw,
  741. jwSdzEarly2: that.formState.jw,
  742. o2Early2: that.formState.o2,
  743. strInstallPos: that.formState.jcdd,
  744. timeEarly2: that.formState.time,
  745. reportTime: that.formState.tbrq,
  746. tearly2: that.formState.temp,
  747. }
  748. that.paramData = Object.assign({}, that.saveShowList, param)
  749. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  750. let param = {
  751. // deviceId: that.deviceId,
  752. bxySdzNoon1: that.formState.bxy,
  753. ch4Noon1: that.formState.ch4,
  754. checkPersonNoon: that.formState.jcy,
  755. co2Noon1: that.formState.co2,
  756. coNoon1: that.formState.co,
  757. gwSdzNoon1: that.formState.gw,
  758. jwSdzNoon1: that.formState.jw,
  759. o2Noon1: that.formState.o2,
  760. strInstallPos: that.formState.jcdd,
  761. timeNoon1: that.formState.time,
  762. reportTime: that.formState.tbrq,
  763. tnoon1: that.formState.temp,
  764. }
  765. that.paramData = Object.assign({}, that.saveShowList, param)
  766. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  767. let param = {
  768. // deviceId: that.deviceId,
  769. bxySdzNoon2: that.formState.bxy,
  770. ch4Noon2: that.formState.ch4,
  771. checkPersonNoon: that.formState.jcy,
  772. co2Noon2: that.formState.co2,
  773. coNoon2: that.formState.co,
  774. gwSdzNoon2: that.formState.gw,
  775. jwSdzNoon2: that.formState.jw,
  776. o2Noon2: that.formState.o2,
  777. strInstallPos: that.formState.jcdd,
  778. timeNoon2: that.formState.time,
  779. reportTime: that.formState.tbrq,
  780. tnoon2: that.formState.temp,
  781. }
  782. that.paramData = Object.assign({}, that.saveShowList, param)
  783. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  784. let param = {
  785. // deviceId: that.deviceId,
  786. bxySdzNight1: that.formState.bxy,
  787. ch4Night1: that.formState.ch4,
  788. checkPersonNight: that.formState.jcy,
  789. co2Night1: that.formState.co2,
  790. coNight1: that.formState.co,
  791. gwSdzNight1: that.formState.gw,
  792. jwSdzNight1: that.formState.jw,
  793. o2Night1: that.formState.o2,
  794. strInstallPos: that.formState.jcdd,
  795. timeNight1: that.formState.time,
  796. reportTime: that.formState.tbrq,
  797. tnight1: that.formState.temp,
  798. }
  799. that.paramData = Object.assign({}, that.saveShowList, param)
  800. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  801. let param = {
  802. // deviceId: that.deviceId,
  803. bxySdzNight2: that.formState.bxy,
  804. ch4Night2: that.formState.ch4,
  805. checkPersonNight: that.formState.jcy,
  806. co2Night2: that.formState.co2,
  807. coNight2: that.formState.co,
  808. gwSdzNight2: that.formState.gw,
  809. jwSdzNight2: that.formState.jw,
  810. o2Night2: that.formState.o2,
  811. strInstallPos: that.formState.jcdd,
  812. timeNight2: that.formState.time,
  813. reportTime: that.formState.tbrq,
  814. tnight2: that.formState.temp,
  815. }
  816. that.paramData = Object.assign({}, that.saveShowList, param)
  817. }
  818. } else {
  819. that.saveShowList = {}
  820. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  821. let param = {
  822. deviceId: that.deviceId,
  823. bxySdzEarly1: that.formState.bxy,
  824. ch4Early1: that.formState.ch4,
  825. checkPersonEarly: that.formState.jcy,
  826. co2Early1: that.formState.co2,
  827. coEarly1: that.formState.co,
  828. gwSdzEarly1: that.formState.gw,
  829. jwSdzEarly1: that.formState.jw,
  830. o2Early1: that.formState.o2,
  831. strInstallPos: that.formState.jcdd,
  832. timeEarly1: that.formState.time,
  833. reportTime: that.formState.tbrq,
  834. tearly1: that.formState.temp,
  835. }
  836. that.paramData = Object.assign({}, that.saveShowList, param)
  837. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  838. let param = {
  839. deviceId: that.deviceId,
  840. bxySdzEarly2: that.formState.bxy,
  841. ch4Early2: that.formState.ch4,
  842. checkPersonEarly: that.formState.jcy,
  843. co2Early2: that.formState.co2,
  844. coEarly2: that.formState.co,
  845. gwSdzEarly2: that.formState.gw,
  846. jwSdzEarly2: that.formState.jw,
  847. o2Early2: that.formState.o2,
  848. strInstallPos: that.formState.jcdd,
  849. timeEarly2: that.formState.time,
  850. reportTime: that.formState.tbrq,
  851. tearly2: that.formState.temp,
  852. }
  853. that.paramData = Object.assign({}, that.saveShowList, param)
  854. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  855. let param = {
  856. deviceId: that.deviceId,
  857. bxySdzNoon1: that.formState.bxy,
  858. ch4Noon1: that.formState.ch4,
  859. checkPersonNoon: that.formState.jcy,
  860. co2Noon1: that.formState.co2,
  861. coNoon1: that.formState.co,
  862. gwSdzNoon1: that.formState.gw,
  863. jwSdzNoon1: that.formState.jw,
  864. o2Noon1: that.formState.o2,
  865. strInstallPos: that.formState.jcdd,
  866. timeNoon1: that.formState.time,
  867. reportTime: that.formState.tbrq,
  868. tnoon1: that.formState.temp,
  869. }
  870. that.paramData = Object.assign({}, that.saveShowList, param)
  871. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  872. let param = {
  873. deviceId: that.deviceId,
  874. bxySdzNoon2: that.formState.bxy,
  875. ch4Noon2: that.formState.ch4,
  876. checkPersonNoon: that.formState.jcy,
  877. co2Noon2: that.formState.co2,
  878. coNoon2: that.formState.co,
  879. gwSdzNoon2: that.formState.gw,
  880. jwSdzNoon2: that.formState.jw,
  881. o2Noon2: that.formState.o2,
  882. strInstallPos: that.formState.jcdd,
  883. timeNoon2: that.formState.time,
  884. reportTime: that.formState.tbrq,
  885. tnoon2: that.formState.temp,
  886. }
  887. that.paramData = Object.assign({}, that.saveShowList, param)
  888. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  889. let param = {
  890. deviceId: that.deviceId,
  891. bxySdzNight1: that.formState.bxy,
  892. ch4Night1: that.formState.ch4,
  893. checkPersonNight: that.formState.jcy,
  894. co2Night1: that.formState.co2,
  895. coNight1: that.formState.co,
  896. gwSdzNight1: that.formState.gw,
  897. jwSdzNight1: that.formState.jw,
  898. o2Night1: that.formState.o2,
  899. strInstallPos: that.formState.jcdd,
  900. timeNight1: that.formState.time,
  901. reportTime: that.formState.tbrq,
  902. tnight1: that.formState.temp,
  903. }
  904. that.paramData = Object.assign({}, that.saveShowList, param)
  905. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  906. let param = {
  907. deviceId: that.deviceId,
  908. bxySdzNight2: that.formState.bxy,
  909. ch4Night2: that.formState.ch4,
  910. checkPersonNight: that.formState.jcy,
  911. co2Night2: that.formState.co2,
  912. coNight2: that.formState.co,
  913. gwSdzNight2: that.formState.gw,
  914. jwSdzNight2: that.formState.jw,
  915. o2Night2: that.formState.o2,
  916. strInstallPos: that.formState.jcdd,
  917. timeNight2: that.formState.time,
  918. reportTime: that.formState.tbrq,
  919. tnight2: that.formState.temp,
  920. }
  921. that.paramData = Object.assign({}, that.saveShowList, param)
  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. change(e) {
  936. let that = this
  937. that.formState.time = moment(e.value).format('YYYY-MM-DD HH:mm:ss')
  938. that.formState.tbrq = moment(e.value).format('YYYY-MM-DD')
  939. new Promise((resolve, reject) => {
  940. api
  941. .getGas({ reportTime: that.formState.tbrq, deviceId: that.deviceId })
  942. .then((response) => {
  943. if (response.data.code == 200) {
  944. let data = response.data.result.records
  945. if (data.length != 0) {
  946. that.saveShowList = data[0]
  947. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  948. let param = {
  949. // deviceId: that.deviceId,
  950. bxySdzEarly1: that.formState.bxy,
  951. ch4Early1: that.formState.ch4,
  952. checkPersonEarly: that.formState.jcy,
  953. co2Early1: that.formState.co2,
  954. coEarly1: that.formState.co,
  955. gwSdzEarly1: that.formState.gw,
  956. jwSdzEarly1: that.formState.jw,
  957. o2Early1: that.formState.o2,
  958. strInstallPos: that.formState.jcdd,
  959. timeEarly1: that.formState.time,
  960. reportTime: that.formState.tbrq,
  961. tearly1: that.formState.temp,
  962. }
  963. that.paramData = Object.assign({}, that.saveShowList, param)
  964. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  965. let param = {
  966. // deviceId: that.deviceId,
  967. bxySdzEarly2: that.formState.bxy,
  968. ch4Early2: that.formState.ch4,
  969. checkPersonEarly: that.formState.jcy,
  970. co2Early2: that.formState.co2,
  971. coEarly2: that.formState.co,
  972. gwSdzEarly2: that.formState.gw,
  973. jwSdzEarly2: that.formState.jw,
  974. o2Early2: that.formState.o2,
  975. strInstallPos: that.formState.jcdd,
  976. timeEarly2: that.formState.time,
  977. reportTime: that.formState.tbrq,
  978. tearly2: that.formState.temp,
  979. }
  980. that.paramData = Object.assign({}, that.saveShowList, param)
  981. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  982. let param = {
  983. // deviceId: that.deviceId,
  984. bxySdzNoon1: that.formState.bxy,
  985. ch4Noon1: that.formState.ch4,
  986. checkPersonNoon: that.formState.jcy,
  987. co2Noon1: that.formState.co2,
  988. coNoon1: that.formState.co,
  989. gwSdzNoon1: that.formState.gw,
  990. jwSdzNoon1: that.formState.jw,
  991. o2Noon1: that.formState.o2,
  992. strInstallPos: that.formState.jcdd,
  993. timeNoon1: that.formState.time,
  994. reportTime: that.formState.tbrq,
  995. tnoon1: that.formState.temp,
  996. }
  997. that.paramData = Object.assign({}, that.saveShowList, param)
  998. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  999. let param = {
  1000. // deviceId: that.deviceId,
  1001. bxySdzNoon2: that.formState.bxy,
  1002. ch4Noon2: that.formState.ch4,
  1003. checkPersonNoon: that.formState.jcy,
  1004. co2Noon2: that.formState.co2,
  1005. coNoon2: that.formState.co,
  1006. gwSdzNoon2: that.formState.gw,
  1007. jwSdzNoon2: that.formState.jw,
  1008. o2Noon2: that.formState.o2,
  1009. strInstallPos: that.formState.jcdd,
  1010. timeNoon2: that.formState.time,
  1011. reportTime: that.formState.tbrq,
  1012. tnoon2: that.formState.temp,
  1013. }
  1014. that.paramData = Object.assign({}, that.saveShowList, param)
  1015. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  1016. let param = {
  1017. // deviceId: that.deviceId,
  1018. bxySdzNight1: that.formState.bxy,
  1019. ch4Night1: that.formState.ch4,
  1020. checkPersonNight: that.formState.jcy,
  1021. co2Night1: that.formState.co2,
  1022. coNight1: that.formState.co,
  1023. gwSdzNight1: that.formState.gw,
  1024. jwSdzNight1: that.formState.jw,
  1025. o2Night1: that.formState.o2,
  1026. strInstallPos: that.formState.jcdd,
  1027. timeNight1: that.formState.time,
  1028. reportTime: that.formState.tbrq,
  1029. tnight1: that.formState.temp,
  1030. }
  1031. that.paramData = Object.assign({}, that.saveShowList, param)
  1032. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  1033. let param = {
  1034. // deviceId: that.deviceId,
  1035. bxySdzNight2: that.formState.bxy,
  1036. ch4Night2: that.formState.ch4,
  1037. checkPersonNight: that.formState.jcy,
  1038. co2Night2: that.formState.co2,
  1039. coNight2: that.formState.co,
  1040. gwSdzNight2: that.formState.gw,
  1041. jwSdzNight2: that.formState.jw,
  1042. o2Night2: that.formState.o2,
  1043. strInstallPos: that.formState.jcdd,
  1044. timeNight2: that.formState.time,
  1045. reportTime: that.formState.tbrq,
  1046. tnight2: that.formState.temp,
  1047. }
  1048. that.paramData = Object.assign({}, that.saveShowList, param)
  1049. }
  1050. } else {
  1051. that.saveShowList = {}
  1052. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  1053. let param = {
  1054. deviceId: that.deviceId,
  1055. bxySdzEarly1: that.formState.bxy,
  1056. ch4Early1: that.formState.ch4,
  1057. checkPersonEarly: that.formState.jcy,
  1058. co2Early1: that.formState.co2,
  1059. coEarly1: that.formState.co,
  1060. gwSdzEarly1: that.formState.gw,
  1061. jwSdzEarly1: that.formState.jw,
  1062. o2Early1: that.formState.o2,
  1063. strInstallPos: that.formState.jcdd,
  1064. timeEarly1: that.formState.time,
  1065. reportTime: that.formState.tbrq,
  1066. tearly1: that.formState.temp,
  1067. }
  1068. that.paramData = Object.assign({}, that.saveShowList, param)
  1069. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  1070. let param = {
  1071. deviceId: that.deviceId,
  1072. bxySdzEarly2: that.formState.bxy,
  1073. ch4Early2: that.formState.ch4,
  1074. checkPersonEarly: that.formState.jcy,
  1075. co2Early2: that.formState.co2,
  1076. coEarly2: that.formState.co,
  1077. gwSdzEarly2: that.formState.gw,
  1078. jwSdzEarly2: that.formState.jw,
  1079. o2Early2: that.formState.o2,
  1080. strInstallPos: that.formState.jcdd,
  1081. timeEarly2: that.formState.time,
  1082. reportTime: that.formState.tbrq,
  1083. tearly2: that.formState.temp,
  1084. }
  1085. that.paramData = Object.assign({}, that.saveShowList, param)
  1086. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  1087. let param = {
  1088. deviceId: that.deviceId,
  1089. bxySdzNoon1: that.formState.bxy,
  1090. ch4Noon1: that.formState.ch4,
  1091. checkPersonNoon: that.formState.jcy,
  1092. co2Noon1: that.formState.co2,
  1093. coNoon1: that.formState.co,
  1094. gwSdzNoon1: that.formState.gw,
  1095. jwSdzNoon1: that.formState.jw,
  1096. o2Noon1: that.formState.o2,
  1097. strInstallPos: that.formState.jcdd,
  1098. timeNoon1: that.formState.time,
  1099. reportTime: that.formState.tbrq,
  1100. tnoon1: that.formState.temp,
  1101. }
  1102. that.paramData = Object.assign({}, that.saveShowList, param)
  1103. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  1104. let param = {
  1105. deviceId: that.deviceId,
  1106. bxySdzNoon2: that.formState.bxy,
  1107. ch4Noon2: that.formState.ch4,
  1108. checkPersonNoon: that.formState.jcy,
  1109. co2Noon2: that.formState.co2,
  1110. coNoon2: that.formState.co,
  1111. gwSdzNoon2: that.formState.gw,
  1112. jwSdzNoon2: that.formState.jw,
  1113. o2Noon2: that.formState.o2,
  1114. strInstallPos: that.formState.jcdd,
  1115. timeNoon2: that.formState.time,
  1116. reportTime: that.formState.tbrq,
  1117. tnoon2: that.formState.temp,
  1118. }
  1119. that.paramData = Object.assign({}, that.saveShowList, param)
  1120. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  1121. let param = {
  1122. deviceId: that.deviceId,
  1123. bxySdzNight1: that.formState.bxy,
  1124. ch4Night1: that.formState.ch4,
  1125. checkPersonNight: that.formState.jcy,
  1126. co2Night1: that.formState.co2,
  1127. coNight1: that.formState.co,
  1128. gwSdzNight1: that.formState.gw,
  1129. jwSdzNight1: that.formState.jw,
  1130. o2Night1: that.formState.o2,
  1131. strInstallPos: that.formState.jcdd,
  1132. timeNight1: that.formState.time,
  1133. reportTime: that.formState.tbrq,
  1134. tnight1: that.formState.temp,
  1135. }
  1136. that.paramData = Object.assign({}, that.saveShowList, param)
  1137. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  1138. let param = {
  1139. deviceId: that.deviceId,
  1140. bxySdzNight2: that.formState.bxy,
  1141. ch4Night2: that.formState.ch4,
  1142. checkPersonNight: that.formState.jcy,
  1143. co2Night2: that.formState.co2,
  1144. coNight2: that.formState.co,
  1145. gwSdzNight2: that.formState.gw,
  1146. jwSdzNight2: that.formState.jw,
  1147. o2Night2: that.formState.o2,
  1148. strInstallPos: that.formState.jcdd,
  1149. timeNight2: that.formState.time,
  1150. reportTime: that.formState.tbrq,
  1151. tnight2: that.formState.temp,
  1152. }
  1153. that.paramData = Object.assign({}, that.saveShowList, param)
  1154. }
  1155. }
  1156. } else {
  1157. reject(response);
  1158. }
  1159. })
  1160. .catch((error) => {
  1161. console.log("catch===>response", response);
  1162. reject(error);
  1163. });
  1164. });
  1165. },
  1166. //点击弹出日期下拉选项
  1167. getChangeTime() {
  1168. this.showCalendar = true
  1169. },
  1170. //输入框内容变换
  1171. changeInput(val, data) {
  1172. if (/^00/.test(val)) {
  1173. this.formState[data] = val.replace(/^00/, '0');
  1174. } else {
  1175. this.formState[data] = val
  1176. }
  1177. },
  1178. //便携仪失去焦点时参数校验
  1179. getBlurBxy(val) {
  1180. let str = val.substring(val.indexOf('.') + 1).split('')
  1181. if (/^(\-|\+)?\d+$/.test(val)) {
  1182. this.formState.bxy = val
  1183. this.isRule3 = true
  1184. } else if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) && str.length <= 2) {
  1185. this.formState.bxy = val
  1186. this.isRule3 = true
  1187. } else {
  1188. this.formState.bxy = ''
  1189. this.isRule3 = false
  1190. }
  1191. },
  1192. //新增光瓦失去焦点时参数校验
  1193. getBlur(val) {
  1194. let str = val.substring(val.indexOf('.') + 1).split('')
  1195. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1196. if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
  1197. if (str.length <= 2) {
  1198. this.formState.gw = val
  1199. this.isRule1 = true
  1200. } else {
  1201. this.formState.gw = ''
  1202. this.isRule1 = false
  1203. }
  1204. } else {
  1205. this.formState.gw = val
  1206. this.isRule1 = true
  1207. }
  1208. } else {
  1209. this.formState.gw = ''
  1210. this.isRule1 = false
  1211. }
  1212. },
  1213. //新增CO2失去焦点时参数校验
  1214. getBlurCO2(val) {
  1215. let str = val.substring(val.indexOf('.') + 1).split('')
  1216. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1217. if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
  1218. if (str.length <= 2) {
  1219. this.formState.co2 = val
  1220. this.isRule = true
  1221. } else {
  1222. this.formState.co2 = ''
  1223. this.isRule = false
  1224. }
  1225. } else {
  1226. this.formState.co2 = val
  1227. this.isRule = true
  1228. }
  1229. } else {
  1230. this.formState.co2 = ''
  1231. this.isRule = false
  1232. }
  1233. },
  1234. //新增CH4失去焦点时参数校验
  1235. getBlurCH4(val) {
  1236. let str = val.substring(val.indexOf('.') + 1).split('')
  1237. if (val.slice(-1) == '0' || val.slice(-1) == '2' || val.slice(-1) == '4' || val.slice(-1) == '6' || val.slice(-1) == '8') {
  1238. if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val)) {
  1239. if (str.length <= 2) {
  1240. this.formState.ch4 = val
  1241. this.isRule2 = true
  1242. } else {
  1243. this.formState.ch4 = ''
  1244. this.isRule2 = false
  1245. }
  1246. } else {
  1247. this.formState.ch4 = val
  1248. this.isRule2 = true
  1249. }
  1250. } else {
  1251. this.formState.ch4 = ''
  1252. this.isRule2 = false
  1253. }
  1254. },
  1255. getBlurCO(val) {
  1256. let str = val.substring(val.indexOf('.') + 1).split('')
  1257. if (/^(\-|\+)?\d+$/.test(val) && parseFloat(val) <= 24) {
  1258. this.formState.co = val
  1259. this.isRule14 = true
  1260. } else if (/^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$/.test(val) && str.length <= 2 && parseFloat(val) <= 24) {
  1261. this.formState.co = val
  1262. this.isRule14 = true
  1263. } else {
  1264. this.formState.co = ''
  1265. this.isRule14 = false
  1266. }
  1267. },
  1268. //编辑
  1269. getEdits(param, item) {
  1270. let that = this
  1271. that.isShowAdd = true
  1272. that.statusShow = 'edit'
  1273. that.editData = Object.assign({}, item)
  1274. if (param == '夜班一') {
  1275. that.formState = {
  1276. id: item.id || '',
  1277. bc: '夜班',
  1278. count: '第一次',
  1279. jcdd: item.strInstallPos || '',
  1280. jcy: item.checkPersonNight || '',
  1281. time: item.timeNight1 || '',
  1282. ch4: item.ch4Night1 || '',
  1283. co2: item.co2Night1 || '',
  1284. co: item.coNight1 || '',
  1285. o2: item.o2Night1 || '',
  1286. jw: '0',
  1287. gw: item.gwSdzNight1 || '',
  1288. bxy: item.bxySdzNight1 || '',
  1289. tbrq: item.reportTime,
  1290. temp: item.tnight1 || '',
  1291. // mcgzm: that.formState.mcgzm,
  1292. }
  1293. } else if (param == '夜班二') {
  1294. that.formState = {
  1295. id: item.id || '',
  1296. bc: '夜班',
  1297. count: '第二次',
  1298. jcdd: item.strInstallPos || '',
  1299. jcy: item.checkPersonNight || '',
  1300. time: item.timeNight2 || '',
  1301. ch4: item.ch4Night2 || '',
  1302. co2: item.co2Night2 || '',
  1303. co: item.coNight2 || '',
  1304. o2: item.o2Night2 || '',
  1305. jw: '0',
  1306. gw: item.gwSdzNight2 || '',
  1307. bxy: item.bxySdzNight2 || '',
  1308. tbrq: item.reportTime,
  1309. temp: item.tnight2 || '',
  1310. // mcgzm: that.formState.mcgzm,
  1311. }
  1312. } else if (param == '早班一') {
  1313. that.formState = {
  1314. id: item.id || '',
  1315. bc: '早班',
  1316. count: '第一次',
  1317. jcdd: item.strInstallPos || '',
  1318. jcy: item.checkPersonEarly || '',
  1319. time: item.timeEarly1 || '',
  1320. ch4: item.ch4Early1 || '',
  1321. co2: item.co2Early1 || '',
  1322. co: item.coEarly1 || '',
  1323. o2: item.o2Early1 || '',
  1324. jw: '0',
  1325. gw: item.gwSdzEarly1 || '',
  1326. bxy: item.bxySdzEarly1 || '',
  1327. tbrq: item.reportTime,
  1328. temp: item.tearly1 || '',
  1329. // mcgzm: that.formState.mcgzm,
  1330. }
  1331. } else if (param == '早班二') {
  1332. that.formState = {
  1333. id: item.id || '',
  1334. bc: '早班',
  1335. count: '第二次',
  1336. jcdd: item.strInstallPos || '',
  1337. jcy: item.checkPersonEarly || '',
  1338. time: item.timeEarly2 || '',
  1339. ch4: item.ch4Early2 || '',
  1340. co2: item.co2Early2 || '',
  1341. co: item.coEarly2 || '',
  1342. o2: item.o2Early2 || '',
  1343. jw: '0',
  1344. gw: item.gwSdzEarly2 || '',
  1345. bxy: item.bxySdzEarly2 || '',
  1346. tbrq: item.reportTime,
  1347. temp: item.tearly2 || '',
  1348. // mcgzm: that.formState.mcgzm,
  1349. }
  1350. } else if (param == '中班一') {
  1351. that.formState = {
  1352. id: item.id || '',
  1353. bc: '中班',
  1354. count: '第一次',
  1355. jcdd: item.strInstallPos || '',
  1356. jcy: item.checkPersonNoon || '',
  1357. time: item.timeNoon1 || '',
  1358. ch4: item.ch4Noon1 || '',
  1359. co2: item.co2Noon1 || '',
  1360. co: item.coNoon1 || '',
  1361. o2: item.o2Noon1 || '',
  1362. jw: '0',
  1363. gw: item.gwSdzNoon1 || '',
  1364. bxy: item.bxySdzNoon1 || '',
  1365. tbrq: item.reportTime,
  1366. temp: item.tnoon1 || '',
  1367. // mcgzm: that.formState.mcgzm,
  1368. }
  1369. } else if (param == '中班二') {
  1370. that.formState = {
  1371. id: item.id || '',
  1372. bc: '中班',
  1373. count: '第二次',
  1374. jcdd: item.strInstallPos || '',
  1375. jcy: item.checkPersonNoon || '',
  1376. time: item.timeNoon2 || '',
  1377. ch4: item.ch4Noon2 || '',
  1378. co2: item.co2Noon2 || '',
  1379. co: item.coNoon2 || '',
  1380. o2: item.o2Noon2 || '',
  1381. jw: '0',
  1382. gw: item.gwSdzNoon2 || '',
  1383. bxy: item.bxySdzNoon2 || '',
  1384. tbrq: item.reportTime,
  1385. temp: item.tnoon2 || '',
  1386. // mcgzm: that.formState.mcgzm,
  1387. }
  1388. }
  1389. },
  1390. getAddSave() {
  1391. let that = this
  1392. console.log(that.paramData, 'paramData---------')
  1393. new Promise((resolve, reject) => {
  1394. api
  1395. .getAdd({ ...that.paramData })
  1396. .then((response) => {
  1397. if (response.data.code == 200) {
  1398. that.getGasList()
  1399. that.isShowAdd = false
  1400. that.saveShowList = {}
  1401. that.clearData()
  1402. } else {
  1403. reject(response);
  1404. }
  1405. })
  1406. .catch((error) => {
  1407. console.log("catch===>response", response);
  1408. reject(error);
  1409. });
  1410. });
  1411. },
  1412. getEditSave() {
  1413. let that = this
  1414. let param = {}
  1415. if (that.formState.bc == '早班' && that.formState.count == '第一次') {
  1416. param = {
  1417. id: that.formState.id,
  1418. bxySdzEarly1: that.formState.bxy,
  1419. ch4Early1: that.formState.ch4,
  1420. checkPersonEarly: that.formState.jcy,
  1421. co2Early1: that.formState.co2,
  1422. coEarly1: that.formState.co,
  1423. gwSdzEarly1: that.formState.gw,
  1424. jwSdzEarly1: that.formState.ch4,
  1425. o2Early1: that.formState.o2,
  1426. strInstallPos: that.formState.jcdd,
  1427. timeEarly1: that.formState.time,
  1428. tearly1: that.formState.temp,
  1429. bxySdzEarly2: that.editData.bxySdzEarly2,
  1430. ch4Early2: that.editData.ch4Early2,
  1431. co2Early2: that.editData.co2Early2,
  1432. coEarly2: that.editData.coEarly2,
  1433. gwSdzEarly2: that.editData.gwSdzEarly2,
  1434. jwSdzEarly2: that.editData.jwSdzEarly2,
  1435. o2Early2: that.editData.o2Early2,
  1436. timeEarly2: that.editData.timeEarly2,
  1437. tearly2: that.editData.tearly2,
  1438. bxySdzNoon1: that.editData.bxySdzNoon1,
  1439. ch4Noon1: that.editData.ch4Noon1,
  1440. checkPersonNoon: that.editData.checkPersonNoon,
  1441. co2Noon1: that.editData.co2Noon1,
  1442. coNoon1: that.editData.coNoon1,
  1443. gwSdzNoon1: that.editData.gwSdzNoon1,
  1444. jwSdzNoon1: that.editData.jwSdzNoon1,
  1445. o2Noon1: that.editData.o2Noon1,
  1446. strInstallPos: that.editData.strInstallPos,
  1447. timeNoon1: that.editData.timeNoon1,
  1448. tnoon1: that.editData.tnoon1,
  1449. bxySdzNoon2: that.editData.bxySdzNoon2,
  1450. ch4Noon2: that.editData.ch4Noon2,
  1451. co2Noon2: that.editData.co2Noon2,
  1452. coNoon2: that.editData.coNoon2,
  1453. gwSdzNoon2: that.editData.gwSdzNoon2,
  1454. jwSdzNoon2: that.editData.jwSdzNoon2,
  1455. o2Noon2: that.editData.o2Noon2,
  1456. timeNoon2: that.editData.timeNoon2,
  1457. tnoon2: that.editData.tnoon2,
  1458. bxySdzNight1: that.editData.bxySdzNight1,
  1459. ch4Night1: that.editData.ch4Night1,
  1460. checkPersonNight: that.editData.checkPersonNight,
  1461. co2Night1: that.editData.co2Night1,
  1462. coNight1: that.editData.coNight1,
  1463. gwSdzNight1: that.editData.gwSdzNight1,
  1464. jwSdzNight1: that.editData.jwSdzNight1,
  1465. o2Night1: that.editData.o2Night1,
  1466. strInstallPos: that.editData.strInstallPos,
  1467. timeNight1: that.editData.timeNight1,
  1468. tnight1: that.editData.tnight1,
  1469. bxySdzNight2: that.editData.bxySdzNight2,
  1470. ch4Night2: that.editData.ch4Night2,
  1471. co2Night2: that.editData.co2Night2,
  1472. coNight2: that.editData.coNight2,
  1473. gwSdzNight2: that.editData.gwSdzNight2,
  1474. jwSdzNight2: that.editData.jwSdzNight2,
  1475. o2Night2: that.editData.o2Night2,
  1476. timeNight2: that.editData.timeNight2,
  1477. tnight2: that.editData.tnight2,
  1478. }
  1479. } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
  1480. param = {
  1481. id: that.editData.id,
  1482. bxySdzEarly1: that.editData.bxySdzEarly1,
  1483. ch4Early1: that.editData.ch4Early1,
  1484. co2Early1: that.editData.co2Early1,
  1485. coEarly1: that.editData.coEarly1,
  1486. gwSdzEarly1: that.editData.gwSdzEarly1,
  1487. jwSdzEarly1: that.editData.jwSdzEarly1,
  1488. o2Early1: that.editData.o2Early1,
  1489. timeEarly1: that.editData.timeEarly1,
  1490. tearly1: that.editData.tearly1,
  1491. bxySdzEarly2: that.formState.bxy,
  1492. ch4Early2: that.formState.ch4,
  1493. checkPersonEarly: that.formState.jcy,
  1494. co2Early2: that.formState.co2,
  1495. coEarly2: that.formState.co,
  1496. gwSdzEarly2: that.formState.gw,
  1497. jwSdzEarly2: that.formState.ch4,
  1498. o2Early2: that.formState.o2,
  1499. strInstallPos: that.formState.jcdd,
  1500. timeEarly2: that.formState.time,
  1501. tearly2: that.formState.temp,
  1502. bxySdzNoon1: that.editData.bxySdzNoon1,
  1503. ch4Noon1: that.editData.ch4Noon1,
  1504. checkPersonNoon: that.editData.checkPersonNoon,
  1505. co2Noon1: that.editData.co2Noon1,
  1506. coNoon1: that.editData.coNoon1,
  1507. gwSdzNoon1: that.editData.gwSdzNoon1,
  1508. jwSdzNoon1: that.editData.jwSdzNoon1,
  1509. o2Noon1: that.editData.o2Noon1,
  1510. strInstallPos: that.editData.strInstallPos,
  1511. timeNoon1: that.editData.timeNoon1,
  1512. tnoon1: that.editData.tnoon1,
  1513. bxySdzNoon2: that.editData.bxySdzNoon2,
  1514. ch4Noon2: that.editData.ch4Noon2,
  1515. co2Noon2: that.editData.co2Noon2,
  1516. coNoon2: that.editData.coNoon2,
  1517. gwSdzNoon2: that.editData.gwSdzNoon2,
  1518. jwSdzNoon2: that.editData.jwSdzNoon2,
  1519. o2Noon2: that.editData.o2Noon2,
  1520. timeNoon2: that.editData.timeNoon2,
  1521. tnoon2: that.editData.tnoon2,
  1522. bxySdzNight1: that.editData.bxySdzNight1,
  1523. ch4Night1: that.editData.ch4Night1,
  1524. checkPersonNight: that.editData.checkPersonNight,
  1525. co2Night1: that.editData.co2Night1,
  1526. coNight1: that.editData.coNight1,
  1527. gwSdzNight1: that.editData.gwSdzNight1,
  1528. jwSdzNight1: that.editData.jwSdzNight1,
  1529. o2Night1: that.editData.o2Night1,
  1530. strInstallPos: that.editData.strInstallPos,
  1531. timeNight1: that.editData.timeNight1,
  1532. tnight1: that.editData.tnight1,
  1533. bxySdzNight2: that.editData.bxySdzNight2,
  1534. ch4Night2: that.editData.ch4Night2,
  1535. co2Night2: that.editData.co2Night2,
  1536. coNight2: that.editData.coNight2,
  1537. gwSdzNight2: that.editData.gwSdzNight2,
  1538. jwSdzNight2: that.editData.jwSdzNight2,
  1539. o2Night2: that.editData.o2Night2,
  1540. timeNight2: that.editData.timeNight2,
  1541. tnight2: that.editData.tnight2,
  1542. }
  1543. } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
  1544. param = {
  1545. id: that.editData.id,
  1546. bxySdzEarly1: that.editData.bxySdzEarly1,
  1547. ch4Early1: that.editData.ch4Early1,
  1548. co2Early1: that.editData.co2Early1,
  1549. coEarly1: that.editData.coEarly1,
  1550. gwSdzEarly1: that.editData.gwSdzEarly1,
  1551. jwSdzEarly1: that.editData.jwSdzEarly1,
  1552. o2Early1: that.editData.o2Early1,
  1553. timeEarly1: that.editData.timeEarly1,
  1554. checkPersonEarly: that.editData.checkPersonEarly,
  1555. strInstallPos: that.editData.strInstallPos,
  1556. tearly1: that.editData.tearly1,
  1557. bxySdzEarly2: that.editData.bxySdzEarly2,
  1558. ch4Early2: that.editData.ch4Early2,
  1559. co2Early2: that.editData.co2Early2,
  1560. coEarly2: that.editData.coEarly2,
  1561. gwSdzEarly2: that.editData.gwSdzEarly2,
  1562. jwSdzEarly2: that.editData.jwSdzEarly2,
  1563. o2Early2: that.editData.o2Early2,
  1564. timeEarly2: that.editData.timeEarly2,
  1565. tearly2: that.editData.tearly2,
  1566. bxySdzNoon1: that.formState.bxy,
  1567. ch4Noon1: that.formState.ch4,
  1568. checkPersonNoon: that.formState.jcy,
  1569. co2Noon1: that.formState.co2,
  1570. coNoon1: that.formState.co,
  1571. gwSdzNoon1: that.formState.gw,
  1572. jwSdzNoon1: that.formState.ch4,
  1573. o2Noon1: that.formState.o2,
  1574. strInstallPos: that.formState.jcdd,
  1575. timeNoon1: that.formState.time,
  1576. tnoon1: that.formState.temp,
  1577. bxySdzNoon2: that.editData.bxySdzNoon2,
  1578. ch4Noon2: that.editData.ch4Noon2,
  1579. co2Noon2: that.editData.co2Noon2,
  1580. coNoon2: that.editData.coNoon2,
  1581. gwSdzNoon2: that.editData.gwSdzNoon2,
  1582. jwSdzNoon2: that.editData.jwSdzNoon2,
  1583. o2Noon2: that.editData.o2Noon2,
  1584. timeNoon2: that.editData.timeNoon2,
  1585. tnoon2: that.editData.tnoon2,
  1586. bxySdzNight1: that.editData.bxySdzNight1,
  1587. ch4Night1: that.editData.ch4Night1,
  1588. checkPersonNight: that.editData.checkPersonNight,
  1589. co2Night1: that.editData.co2Night1,
  1590. coNight1: that.editData.coNight1,
  1591. gwSdzNight1: that.editData.gwSdzNight1,
  1592. jwSdzNight1: that.editData.jwSdzNight1,
  1593. o2Night1: that.editData.o2Night1,
  1594. strInstallPos: that.editData.strInstallPos,
  1595. timeNight1: that.editData.timeNight1,
  1596. tnight1: that.editData.tnight1,
  1597. bxySdzNight2: that.editData.bxySdzNight2,
  1598. ch4Night2: that.editData.ch4Night2,
  1599. co2Night2: that.editData.co2Night2,
  1600. coNight2: that.editData.coNight2,
  1601. gwSdzNight2: that.editData.gwSdzNight2,
  1602. jwSdzNight2: that.editData.jwSdzNight2,
  1603. o2Night2: that.editData.o2Night2,
  1604. timeNight2: that.editData.timeNight2,
  1605. tnight2: that.editData.tnight2,
  1606. }
  1607. } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
  1608. param = {
  1609. id: that.editData.id,
  1610. bxySdzEarly1: that.editData.bxySdzEarly1,
  1611. ch4Early1: that.editData.ch4Early1,
  1612. co2Early1: that.editData.co2Early1,
  1613. coEarly1: that.editData.coEarly1,
  1614. gwSdzEarly1: that.editData.gwSdzEarly1,
  1615. jwSdzEarly1: that.editData.jwSdzEarly1,
  1616. o2Early1: that.editData.o2Early1,
  1617. timeEarly1: that.editData.timeEarly1,
  1618. checkPersonEarly: that.editData.checkPersonEarly,
  1619. strInstallPos: that.editData.strInstallPos,
  1620. tearly1: that.editData.tearly1,
  1621. bxySdzEarly2: that.editData.bxySdzEarly2,
  1622. ch4Early2: that.editData.ch4Early2,
  1623. co2Early2: that.editData.co2Early2,
  1624. coEarly2: that.editData.coEarly2,
  1625. gwSdzEarly2: that.editData.gwSdzEarly2,
  1626. jwSdzEarly2: that.editData.jwSdzEarly2,
  1627. o2Early2: that.editData.o2Early2,
  1628. timeEarly2: that.editData.timeEarly2,
  1629. tearly2: that.editData.tearly2,
  1630. bxySdzNoon1: that.editData.bxySdzNoon1,
  1631. ch4Noon1: that.editData.ch4Noon1,
  1632. co2Noon1: that.editData.co2Noon1,
  1633. coNoon1: that.editData.coNoon1,
  1634. gwSdzNoon1: that.editData.gwSdzNoon1,
  1635. jwSdzNoon1: that.editData.jwSdzNoon1,
  1636. o2Noon1: that.editData.o2Noon1,
  1637. timeNoon1: that.editData.timeNoon1,
  1638. tnoon1: that.editData.tnoon1,
  1639. bxySdzNoon2: that.formState.bxy,
  1640. ch4Noon2: that.formState.ch4,
  1641. checkPersonNoon: that.formState.jcy,
  1642. co2Noon2: that.formState.co2,
  1643. coNoon2: that.formState.co,
  1644. gwSdzNoon2: that.formState.gw,
  1645. jwSdzNoon2: that.formState.ch4,
  1646. o2Noon2: that.formState.o2,
  1647. strInstallPos: that.formState.jcdd,
  1648. timeNoon2: that.formState.time,
  1649. tnoon2: that.formState.temp,
  1650. bxySdzNight1: that.editData.bxySdzNight1,
  1651. ch4Night1: that.editData.ch4Night1,
  1652. checkPersonNight: that.editData.checkPersonNight,
  1653. co2Night1: that.editData.co2Night1,
  1654. coNight1: that.editData.coNight1,
  1655. gwSdzNight1: that.editData.gwSdzNight1,
  1656. jwSdzNight1: that.editData.jwSdzNight1,
  1657. o2Night1: that.editData.o2Night1,
  1658. strInstallPos: that.editData.strInstallPos,
  1659. timeNight1: that.editData.timeNight1,
  1660. tnight1: that.editData.tnight1,
  1661. bxySdzNight2: that.editData.bxySdzNight2,
  1662. ch4Night2: that.editData.ch4Night2,
  1663. co2Night2: that.editData.co2Night2,
  1664. coNight2: that.editData.coNight2,
  1665. gwSdzNight2: that.editData.gwSdzNight2,
  1666. jwSdzNight2: that.editData.jwSdzNight2,
  1667. o2Night2: that.editData.o2Night2,
  1668. timeNight2: that.editData.timeNight2,
  1669. tnight2: that.editData.tnight2,
  1670. }
  1671. } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
  1672. param = {
  1673. id: that.editData.id,
  1674. bxySdzEarly1: that.editData.bxySdzEarly1,
  1675. ch4Early1: that.editData.ch4Early1,
  1676. co2Early1: that.editData.co2Early1,
  1677. coEarly1: that.editData.coEarly1,
  1678. gwSdzEarly1: that.editData.gwSdzEarly1,
  1679. jwSdzEarly1: that.editData.jwSdzEarly1,
  1680. o2Early1: that.editData.o2Early1,
  1681. timeEarly1: that.editData.timeEarly1,
  1682. checkPersonEarly: that.editData.checkPersonEarly,
  1683. strInstallPos: that.editData.strInstallPos,
  1684. tearly1: that.editData.tearly1,
  1685. bxySdzEarly2: that.editData.bxySdzEarly2,
  1686. ch4Early2: that.editData.ch4Early2,
  1687. co2Early2: that.editData.co2Early2,
  1688. coEarly2: that.editData.coEarly2,
  1689. gwSdzEarly2: that.editData.gwSdzEarly2,
  1690. jwSdzEarly2: that.editData.jwSdzEarly2,
  1691. o2Early2: that.editData.o2Early2,
  1692. timeEarly2: that.editData.timeEarly2,
  1693. tearly2: that.editData.tearly2,
  1694. bxySdzNoon1: that.editData.bxySdzNoon1,
  1695. ch4Noon1: that.editData.ch4Noon1,
  1696. co2Noon1: that.editData.co2Noon1,
  1697. coNoon1: that.editData.coNoon1,
  1698. gwSdzNoon1: that.editData.gwSdzNoon1,
  1699. jwSdzNoon1: that.editData.jwSdzNoon1,
  1700. o2Noon1: that.editData.o2Noon1,
  1701. timeNoon1: that.editData.timeNoon1,
  1702. tnoon1: that.editData.tnoon1,
  1703. bxySdzNoon2: that.editData.bxySdzNoon2,
  1704. ch4Noon2: that.editData.ch4Noon2,
  1705. checkPersonNoon: that.editData.checkPersonNoon,
  1706. co2Noon2: that.editData.co2Noon2,
  1707. coNoon2: that.editData.coNoon2,
  1708. gwSdzNoon2: that.editData.gwSdzNoon2,
  1709. jwSdzNoon2: that.editData.jwSdzNoon2,
  1710. o2Noon2: that.editData.o2Noon2,
  1711. strInstallPos: that.editData.strInstallPos,
  1712. timeNoon2: that.editData.timeNoon2,
  1713. tnoon2: that.editData.tnoon2,
  1714. bxySdzNight1: that.formState.bxy,
  1715. ch4Night1: that.formState.ch4,
  1716. checkPersonNight: that.formState.jcy,
  1717. co2Night1: that.formState.co2,
  1718. coNight1: that.formState.co,
  1719. gwSdzNight1: that.formState.gw,
  1720. jwSdzNight1: that.formState.ch4,
  1721. o2Night1: that.formState.o2,
  1722. strInstallPos: that.formState.jcdd,
  1723. timeNight1: that.formState.time,
  1724. tnight1: that.formState.temp,
  1725. bxySdzNight2: that.editData.bxySdzNight2,
  1726. ch4Night2: that.editData.ch4Night2,
  1727. co2Night2: that.editData.co2Night2,
  1728. coNight2: that.editData.coNight2,
  1729. gwSdzNight2: that.editData.gwSdzNight2,
  1730. jwSdzNight2: that.editData.jwSdzNight2,
  1731. o2Night2: that.editData.o2Night2,
  1732. timeNight2: that.editData.timeNight2,
  1733. tnight2: that.editData.tnight2,
  1734. }
  1735. } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
  1736. param = {
  1737. id: that.editData.id,
  1738. bxySdzEarly1: that.editData.bxySdzEarly1,
  1739. ch4Early1: that.editData.ch4Early1,
  1740. co2Early1: that.editData.co2Early1,
  1741. coEarly1: that.editData.coEarly1,
  1742. gwSdzEarly1: that.editData.gwSdzEarly1,
  1743. jwSdzEarly1: that.editData.jwSdzEarly1,
  1744. o2Early1: that.editData.o2Early1,
  1745. timeEarly1: that.editData.timeEarly1,
  1746. checkPersonEarly: that.editData.checkPersonEarly,
  1747. strInstallPos: that.editData.strInstallPos,
  1748. tearly1: that.editData.tearly1,
  1749. bxySdzEarly2: that.editData.bxySdzEarly2,
  1750. ch4Early2: that.editData.ch4Early2,
  1751. co2Early2: that.editData.co2Early2,
  1752. coEarly2: that.editData.coEarly2,
  1753. gwSdzEarly2: that.editData.gwSdzEarly2,
  1754. jwSdzEarly2: that.editData.jwSdzEarly2,
  1755. o2Early2: that.editData.o2Early2,
  1756. timeEarly2: that.editData.timeEarly2,
  1757. tearly2: that.editData.tearly2,
  1758. bxySdzNoon1: that.editData.bxySdzNoon1,
  1759. ch4Noon1: that.editData.ch4Noon1,
  1760. co2Noon1: that.editData.co2Noon1,
  1761. coNoon1: that.editData.coNoon1,
  1762. gwSdzNoon1: that.editData.gwSdzNoon1,
  1763. jwSdzNoon1: that.editData.jwSdzNoon1,
  1764. o2Noon1: that.editData.o2Noon1,
  1765. timeNoon1: that.editData.timeNoon1,
  1766. tnoon1: that.editData.tnoon1,
  1767. bxySdzNoon2: that.editData.bxySdzNoon2,
  1768. ch4Noon2: that.editData.ch4Noon2,
  1769. checkPersonNoon: that.editData.checkPersonNoon,
  1770. co2Noon2: that.editData.co2Noon2,
  1771. coNoon2: that.editData.coNoon2,
  1772. gwSdzNoon2: that.editData.gwSdzNoon2,
  1773. jwSdzNoon2: that.editData.jwSdzNoon2,
  1774. o2Noon2: that.editData.o2Noon2,
  1775. strInstallPos: that.editData.strInstallPos,
  1776. timeNoon2: that.editData.timeNoon2,
  1777. tnoon2: that.editData.tnoon2,
  1778. bxySdzNight1: that.editData.bxySdzNight1,
  1779. ch4Night1: that.editData.ch4Night1,
  1780. co2Night1: that.editData.co2Night1,
  1781. coNight1: that.editData.coNight1,
  1782. gwSdzNight1: that.editData.gwSdzNight1,
  1783. jwSdzNight1: that.editData.jwSdzNight1,
  1784. o2Night1: that.editData.o2Night1,
  1785. timeNight1: that.editData.timeNight1,
  1786. tnight1: that.editData.tnight1,
  1787. bxySdzNight2: that.formState.bxy,
  1788. ch4Night2: that.formState.ch4,
  1789. checkPersonNight: that.formState.jcy,
  1790. co2Night2: that.formState.co2,
  1791. coNight2: that.formState.co,
  1792. gwSdzNight2: that.formState.gw,
  1793. jwSdzNight2: that.formState.ch4,
  1794. o2Night2: that.formState.o2,
  1795. strInstallPos: that.formState.jcdd,
  1796. timeNight2: that.formState.time,
  1797. tnight2: that.formState.temp,
  1798. }
  1799. }
  1800. new Promise((resolve, reject) => {
  1801. api
  1802. .getEdit({ ...param })
  1803. .then((response) => {
  1804. if (response.data.code == 200) {
  1805. that.getGasList()
  1806. that.isShowAdd = false
  1807. that.editData = {}
  1808. that.clearData()
  1809. } else {
  1810. reject(response);
  1811. }
  1812. })
  1813. .catch((error) => {
  1814. console.log("catch===>response", response);
  1815. reject(error);
  1816. });
  1817. });
  1818. },
  1819. //新增保存
  1820. getConfirm() {
  1821. let that = this
  1822. if (that.statusShow == 'add') {
  1823. that.getAddSave()
  1824. } else {
  1825. that.getEditSave()
  1826. }
  1827. },
  1828. clearData() {
  1829. this.formState = {
  1830. id: '',
  1831. bc: '',
  1832. count: '',
  1833. jcdd: '',
  1834. // mcgzm: '',
  1835. jcy: '',
  1836. time: '',
  1837. ch4: '',
  1838. co2: '',
  1839. co: '',
  1840. o2: '',
  1841. jw: '',
  1842. gw: '',
  1843. bxy: '',
  1844. tbrq: '',
  1845. temp: '',
  1846. }
  1847. this.isRule = true
  1848. this.isRule2 = true
  1849. this.isRule1 = true
  1850. this.isRule3 = true
  1851. this.isRule14 = true
  1852. },
  1853. //新增取消
  1854. getCancel() {
  1855. this.isShowAdd = false
  1856. this.saveShowList = {}
  1857. this.indexParam = {}
  1858. this.clearData()
  1859. },
  1860. //获取瓦斯上报列表数据
  1861. getGasList() {
  1862. let that = this
  1863. new Promise((resolve, reject) => {
  1864. api
  1865. .getGas({ reportTime: that.tbTime, })
  1866. .then((response) => {
  1867. if (response.data.code == 200) {
  1868. that.tableData= response.data.result.records
  1869. that.gasList = that.tableData.slice(that.tableData.length-1)
  1870. } else {
  1871. reject(response);
  1872. }
  1873. })
  1874. .catch((error) => {
  1875. console.log("catch===>response", response);
  1876. reject(error);
  1877. });
  1878. });
  1879. },
  1880. //获取安装位置下拉选项
  1881. getSelectList() {
  1882. new Promise((resolve, reject) => {
  1883. api
  1884. .getSelect({ coalseam: '', devicekind: 'gasDayReport' })
  1885. .then((response) => {
  1886. if (response.data.code == 200) {
  1887. let data = response.data.result
  1888. this.rangeJcdd = data.map(v => {
  1889. return {
  1890. text: v.strinstallpos,
  1891. value: v.strinstallpos,
  1892. deviceId: v.id,
  1893. }
  1894. })
  1895. } else {
  1896. reject(response);
  1897. }
  1898. })
  1899. .catch((error) => {
  1900. console.log("catch===>response", response);
  1901. reject(error);
  1902. });
  1903. });
  1904. },
  1905. },
  1906. };
  1907. </script>
  1908. <style lang="scss" scoped>
  1909. .gas-fill {
  1910. position: relative;
  1911. width: 100%;
  1912. height: 100%;
  1913. .top-title {
  1914. height: 28px;
  1915. margin-bottom: 5px;
  1916. display: flex;
  1917. justify-content: space-between;
  1918. align-items: center;
  1919. }
  1920. .top-content {
  1921. .content-title {
  1922. height: 26px;
  1923. line-height: 26px;
  1924. padding: 0px 20px;
  1925. font-size: 12px;
  1926. background: url('/static/warndata/title.png') no-repeat;
  1927. background-size: 100% 100%;
  1928. }
  1929. .content-item-box {
  1930. padding: 10px 0px;
  1931. .content-item {
  1932. height: 50px;
  1933. display: flex;
  1934. justify-content: space-between;
  1935. align-items: center;
  1936. background: linear-gradient(to right, rgba(55, 135, 254, 0.08), rgba(4, 184, 255, 0.08), rgba(60, 161, 237, 0.08));
  1937. border-radius: 10px;
  1938. margin-bottom: 5px;
  1939. .item-l {
  1940. width: calc(50% - 2px);
  1941. height: 100%;
  1942. display: flex;
  1943. flex-direction: column;
  1944. justify-content: center;
  1945. // align-items: center;
  1946. align-items: flex-start;
  1947. padding: 0px 5px 0px 10px;
  1948. box-sizing: border-box;
  1949. }
  1950. .item-c {
  1951. width: 4px;
  1952. height: 70%;
  1953. border-left: 2px solid;
  1954. border-image: linear-gradient(to bottom, transparent, rgba(140, 203, 254, 1), transparent) 1 1 1;
  1955. }
  1956. .item-r {
  1957. width: calc(50% - 2px);
  1958. height: 100%;
  1959. display: flex;
  1960. flex-direction: column;
  1961. justify-content: center;
  1962. // align-items: center;
  1963. align-items: flex-start;
  1964. padding: 0px 5px 0px 10px;
  1965. box-sizing: border-box;
  1966. }
  1967. }
  1968. }
  1969. }
  1970. .item-value {
  1971. display: flex;
  1972. justify-content: space-between;
  1973. align-items: center;
  1974. width: 100%;
  1975. height: 20px;
  1976. line-height: 20px;
  1977. color: #0eb4fc;
  1978. font-weight: bold;
  1979. }
  1980. .item-label {
  1981. font-size: 12px;
  1982. }
  1983. .top-dialog-area,
  1984. .center-dialog-area,
  1985. .bottom-dialog-area {
  1986. width: 100%;
  1987. padding: 10px;
  1988. box-sizing: border-box;
  1989. background-color: #FFF;
  1990. margin-bottom: 2px;
  1991. }
  1992. .top-gas-list {
  1993. display: flex;
  1994. flex-direction: column;
  1995. align-items: center;
  1996. width: 100%;
  1997. padding: 10px 20px;
  1998. box-sizing: border-box;
  1999. background-color: #FFF;
  2000. margin-bottom: 2px;
  2001. }
  2002. .sb-list {
  2003. width: 100%;
  2004. height: 150px;
  2005. padding: 10px;
  2006. box-sizing: border-box;
  2007. background-color: #FFF;
  2008. margin-bottom: 2px;
  2009. overflow-y: auto;
  2010. }
  2011. .bot-gas-list {
  2012. width: 100%;
  2013. height: calc(100% - 94px);
  2014. padding: 10px;
  2015. box-sizing: border-box;
  2016. background-color: #FFF;
  2017. margin-bottom: 2px;
  2018. overflow-y: auto;
  2019. }
  2020. .bot-gas-list1 {
  2021. width: 100%;
  2022. height: calc(100% - 244px);
  2023. padding: 10px;
  2024. box-sizing: border-box;
  2025. background-color: #FFF;
  2026. margin-bottom: 2px;
  2027. overflow-y: auto;
  2028. }
  2029. .dialog-btn {
  2030. display: flex;
  2031. width: 100%;
  2032. padding: 8px 10px;
  2033. box-sizing: border-box;
  2034. background-color: #FFF;
  2035. // margin-bottom: 2px;
  2036. .u-button {
  2037. margin: 0px 10px;
  2038. }
  2039. }
  2040. .dialog-title {
  2041. height: 26px;
  2042. line-height: 26px;
  2043. padding: 0px 20px;
  2044. margin-bottom: 10px;
  2045. font-size: 12px;
  2046. background: url('/static/warndata/title.png') no-repeat;
  2047. background-size: 100% 100%;
  2048. }
  2049. .dialog-item {
  2050. display: flex;
  2051. align-items: center;
  2052. justify-content: center;
  2053. margin-bottom: 10px;
  2054. .dialog-label {
  2055. width: 120px;
  2056. text-align: right;
  2057. }
  2058. }
  2059. .content-title-gas {
  2060. position: relative;
  2061. height: 26px;
  2062. line-height: 26px;
  2063. padding-left: 20px;
  2064. font-size: 12px;
  2065. background: url('/static/warndata/title.png') no-repeat;
  2066. background-size: 100% 100%;
  2067. }
  2068. .icon-gas-edit {
  2069. position: absolute;
  2070. right: 35px;
  2071. top: 0;
  2072. cursor: pointer;
  2073. }
  2074. .icon-gas-del {
  2075. position: absolute;
  2076. right: 10px;
  2077. top: 0;
  2078. cursor: pointer;
  2079. }
  2080. }
  2081. ::v-deep .u-input {
  2082. padding: 2px 6px !important;
  2083. }
  2084. ::v-deep .u-popup {
  2085. flex: 0;
  2086. }
  2087. ::v-deep .uni-select {
  2088. height: 30px;
  2089. border: 1px solid #dadbde;
  2090. }
  2091. ::v-deep .uni-select__input-box {
  2092. height: 30px;
  2093. }
  2094. ::v-deep .uni-select__input-placeholder {
  2095. font-size: 14px;
  2096. text-align: center;
  2097. color: rgb(192, 196, 204);
  2098. }
  2099. ::v-deep .u-modal__title {
  2100. font-size: 16px;
  2101. font-weight: bold;
  2102. color: #606266;
  2103. text-align: center;
  2104. padding-top: 10px;
  2105. }
  2106. ::v-deep .u-modal__content {
  2107. padding: 12px 25px 20px 25px;
  2108. }
  2109. ::v-deep .u-modal__button-group__wrapper {
  2110. height: 36px;
  2111. }
  2112. </style>