gasImgIdentify.vue 91 KB

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