<template>
  <div class="flex bg-white p-10  datapanel" v-show="(!echarts)&&(!isActiveTotalForm)">
    <criteria-paged :model="model" :pager='true' v-ref:paged>
      <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
        <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
          <div class="row" width="100%">
            <div class="col-sm-3 form-group form-input-group">
              <label class="control-label">表&nbsp;钢&nbsp;号&nbsp;</label>
              <input type="text" class="form-control"
                     v-model="model.f_meternumber" placeholder='表钢号'
                     condition="f.f_meternumber like '%{}%'"
                     v-next-el='meternumber' v-el:meternumber>
            </div>
            <div v-if="$parent.$parent.searchshow">
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">组织机构</label>
                <right-tree :userid.sync='$parent.$parent.obj.userid'
                            :source.sync='$parent.$parent.obj.source'
                            :multiple="true"
                            @re-res="$parent.$parent.getRes"></right-tree>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">用户姓名</label>
                <input type="text" class="form-control"
                       v-model="model.f_user_name"
                       placeholder='用户姓名'
                       condition="u.f_user_name like '%{}%'"
                       v-el:xq v-next-el='username'
                       v-el:username>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">用&nbsp;户&nbsp;号&nbsp;</label>
                <input type="text" class="form-control"
                       v-model="model.f_userinfo_code"
                       placeholder='用户号'
                       condition="u.f_userinfo_code like '%{}%'"
                       v-el:xq v-next-el='f_userinfo_code'
                       v-el:username>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">用气地址</label>
                <input type="text" class="form-control"
                       v-model="model.f_area" placeholder='用气地址'
                       condition="a.f_address like '%{}%'"
                       v-el:xq v-next-el='address' v-el:area
                >
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">用户类型</label>
                <v-select
                  v-model="model.f_user_type"
                  placeholder='用户类型'
                  value-single="true"
                  :value.sync="model.f_user_type"
                  :options='$parent.$parent.Gasusertype'
                  condition="f.f_user_type  {}"
                  close-on-select>
                </v-select>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">用气性质</label>
                <v-select
                  v-model="model.f_gasproperties"
                  placeholder='用气性质'
                  value-single="true"
                  :value.sync="model.f_gasproperties"
                  :options='$parent.$parent.Gasproperties'
                  condition="f.f_gasproperties {}"
                  close-on-select>
                </v-select>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">气表状态</label>
                <v-select
                  placeholder='气表状态'
                  :value.sync="model.f_table_state"
                  v-model="model.f_table_state"
                  :options='$parent.$parent.TableStates'
                  close-on-select
                  condition="f_table_state='{}'">
                </v-select>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">异常区间</label>
                <datepicker placeholder="开始时间"
                            v-model="model.startDate"
                            :value.sync="model.startDate"
                            :disabled-days-of-Week="[]"
                            :format="'yyyy-MM-dd HH:mm:ss'"
                            condition="e.f_insert_date >='{}'"
                            :show-reset-button="reset">
                </datepicker>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label" style="word-break:keep-all;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;</label>
                <datepicker placeholder="结束日期"
                            v-model="model.endDate"
                            :value.sync="model.endDate"
                            :format="'yyyy-MM-dd HH:mm:ss'"
                            :disabled-days-of-Week="[]"
                            condition="e.f_insert_date <='{}'"
                            :show-reset-button="reset">
                </datepicker>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">异常级别</label>
                <v-select v-model="model.f_error_level"
                          placeholder='异常级别'
                          :value.sync="model.f_error_level"
                          :options='$parent.$parent.GetErrorLevel'
                          @change="$parent.$parent.getErrorInfo('f_error_type')"
                          condition="e.f_error_level='{}'"
                          :value-single="true"
                          close-on-select>
                </v-select>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">异常类型</label>
                <v-select v-model="model.f_error_type"
                          placeholder='异常类型'
                          :value.sync="model.f_error_type"
                          :options='$parent.$parent.GetErrorTypePara'
                          condition="e.f_error_type like '%{}%'"
                          close-on-select>
                </v-select>
              </div>
              <div class="col-sm-3 form-group form-input-group">
                <label class="control-label">处理状态</label>
                <v-select v-model="model.f_hand_state"
                          placeholder='异常处理状态'
                          :value.sync="model.f_hand_state"
                          :options='$parent.$parent.handState'
                          condition="e.f_hand_state='{}'"
                          close-on-select>
                </v-select>
              </div>
              <div class="col-sm-2 form-group form-input-group">
                <label class="control-label">微小流量</label>
                <v-select :value.sync="model.f_gas_leakage" v-model="model.f_gas_leakage"
                          placeholder='微小流量'
                          :options='$parent.$parent.leakage'
                          condition="f_gas_leakage in {}"></v-select>
              </div>

              <!--<div class="col-sm-3 form-group form-input-group" >
                <label class="control-label">气表型号</label>
                <v-select
                  placeholder='气表型号'
                  :value.sync="model.f_meter_style"
                  v-model="model.f_meter_style"
                  :options='$parent.$parent.Warningstyle'
                  close-on-select
                  condition="f_meter_style='{}'">
                </v-select>
              </div>-->
            </div>
            <div class="col-sm-3 form-group ">
              <label class="control-label"></label>
              <button class="btn btn-success width-50" @click="search()">查询</button>
              <label class="control-label"></label>
              <button class="btn btn-default width-100" @click="$parent.$parent.clearmsg">清空</button>
              <label class="control-label" v-if="!$parent.$parent.excelTable">超过十万条限制导出</label>
              <export-excel v-if="$parent.$parent.excelTable"
                            :data="{condition: $parent.$parent.condition}"
                            :field="$parent.$parent.getfield"
                            sqlurl="rs/logic/webmeter_exportfile" sql-name="DrillErrorByUserinfo"
                            template-name='TotalExceptionByMeter'
                            :choose-col="true"></export-excel>
            </div>
           <!-- <div class="col-sm-3 form-group ">
              <label class="control-label"></label>
              <button class="btn btn-success width-50" @click="$parent.$parent.showTotalForm()">显示汇总</button>
              <label class="control-label"></label>
              <button class="btn btn-success width-50" @click="$parent.$parent.showEcharts()">显示图表</button>
            </div>-->
            <div v-show="!$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
                 style="position: relative;float: right;margin-right: 1%;">
              <img src="../../../../static/webMeter/shousuo.png"><span>展开</span>
            </div>
            <div v-show="$parent.$parent.searchshow" @click="$parent.$parent.clickshow"
                 style="position: relative;float: right;margin-right: 1%;">
              <img src="../../../../static/webMeter/shangsheng.png"><span>收缩</span>
            </div>
          </div>
        </div>
      </criteria>
      <data-grid id="lostuserlist" :model="model" partial='list' v-ref:grid>
        <template partial='head'>
          <tr>
            <!--<th style="text-align:center">
              <nobr>序号</nobr>
            </th>-->
            <th style="text-align:center">
              <nobr>组织机构</nobr>
            </th>
            <th style="text-align:center">
              <nobr>用户号</nobr>
            </th>
            <th style="text-align:center">
              <nobr>用户类型</nobr>
            </th>
            <th style="text-align:center">
              <nobr>用气性质</nobr>
            </th>
            <th style="text-align:center">
              <nobr>用户姓名</nobr>
            </th>
            <th style="text-align:center">
              <nobr>用气地址</nobr>
            </th>
            <th style="text-align:center">
              <nobr>表钢号</nobr>
            </th>
            <th style="text-align:center">
              <nobr>气表状态</nobr>
            </th>
            <th style="text-align:center">
              <nobr>异常时间</nobr>
            </th>
            <th style="text-align:center">
              <nobr>异常级别</nobr>
            </th>
            <th style="text-align:center">
              <nobr>异常类型</nobr>
            </th>
            <th style="text-align:center">
              <nobr>异常描述</nobr>
            </th>
            <th style="text-align:center">
              <nobr>异常处理状态</nobr>
            </th>
            <th style="text-align:center">
              <nobr>操作</nobr>
            </th>
            <th style="text-align:center"><nobr>微小流量</nobr></th>
          </tr>

        </template>
        <template partial='body'>
          <!--<td style="text-align:center">
            <nobr>{{$index+1}}</nobr>
          </td>-->
          <td style="text-align:center">
            <nobr>{{row.f_filiale}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_userinfo_code}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_user_type}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_gasproperties}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_user_name}}</nobr>
          </td>
          <td>
            <nobr>{{row.f_address}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_meternumber}}</nobr>
          </td>
          <!--<td style="text-align:center">
            <nobr>{{row.f_meter_style}}</nobr>
          </td>-->
          <td style="text-align:center"><nobr>{{row.f_table_state}}</nobr></td>
          <td style="text-align:center">
            <nobr>{{row.f_insert_date}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_error_level}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_error_type}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_error_msg}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>{{row.f_hand_state}}</nobr>
          </td>
          <td style="text-align:center">
            <nobr>
              <button type="button"
                      class="btn btn-link"
                      v-show="row.f_hand_state != '已处理'"
                      @click.stop="$parent.$parent.$parent.operate(row)">
                标记为已处理
              </button>
            </nobr>
          </td>
          <td style="text-align:center"><nobr>{{row.f_gas_leakage}}</nobr></td>
        </template>
      </data-grid>
    </criteria-paged>
    <modal :show.sync="modalShow" v-ref:modal backdrop="false">
      <header slot="modal-header" class="modal-header">
        <button type="button" class="close" @click="modalClose()"><span>&times;</span></button>
        <h3 class="modal-title" style="text-align: center;">异常处理</h3>
      </header>
      <article slot="modal-body" class="modal-body">
        <validator name='v'>
          <form class="form-horizontal  select-overspread">
            <div class="row" width="100%">
              <div class="form-group form-input-group" style="padding-left: 8px" :class="[$v.f_operate_reson.required ? 'has-error' : '']">
                <label class="font_normal_body">处理备注</label>
                <textarea class="form-control" style="width:80%"
                          v-model="f_operate_reson"
                          v-validate:f_operate_reson='{required: true }'
                          placeholder="请填写备注">
              </textarea>
              </div>
            </div>
          </form>
        </validator>
      </article>
      <footer slot="modal-footer" class="modal-footer">
        <button  type="button" class="btn btn-info btn-ln fr" :disabled='!$v.valid' @click='exceptionHand()'>确定</button>
        <button  type="button" class="btn btn-info btn-ln fr"  @click='modalClose()'>取消</button>
      </footer>
    </modal>
  </div>
 <!-- <div style="height: 6%;width: 100%;" v-show="echarts||isActiveTotalForm">
    <div style="display: inline-block;width: 20%;">
      <button class="btn btn-success width-50" v-show="echarts" @click="notShowEcharts()">隐藏图表</button>
      <button class="btn btn-success width-50" v-show="isActiveTotalForm" @click="notShowTotalForm()">隐藏汇总</button>
    </div>
    &lt;!&ndash;异常类型&ndash;&gt;
    <div class="mystyle1" style="display: inline-block;">
      <label class="control-label">异常类型</label>
      <v-select  v-model="grouptype"
                placeholder='抄表异常'
                value-single="true"
                :value.sync="grouptype"
                :options='getgrouptype'
                close-on-select></v-select>
    </div>
    &lt;!&ndash;图显示模板&ndash;&gt;
    <div class="mystyle" style="display: inline-block;" v-show="echarts">
      <label class="control-label">图表统计项</label>
      <v-select v-model="groupname"
                placeholder='分组项'
                value-single="true"
                :value.sync="groupname"
                :options='getgroupname'
                close-on-select></v-select>
    </div>
  </div>
  <div v-show="echarts" style="width: 100%;height: 90%;">
    <cr-new-exception-echars-total :condition="condition" :startdate="startDate" :groupname="groupname[0]"
                           :enddate="endDate" :echarts="echarts" :grouptype="grouptype[0]"></cr-new-exception-echars-total>
  </div>
  <div v-show="isActiveTotalForm" style="width: 100%;height: 90%;">
    <cr-new-exception-eform-total :condition="condition" :startdate="startDate" :grouptype="grouptype[0]"
                               :enddate="endDate"></cr-new-exception-eform-total>
  </div>-->
</template>

<script>
  import {PagedList, HttpResetClass} from 'vue-client'
  import * as Util from '../../../Util'
  import getLodop from '../../../plugins/LodopFuncs'
  import Vue from 'vue'

  export default {
    title: '异常分析',
    props: ['data'],
    data() {
      return {
        model: new PagedList('rs/sql/DrillErrorByUserinfo', 20),
        reportStr: null,
        show: false,
        startDate: '',
        endDate: '',
        groupname: ['year'],
        getgroupname: [
          {label: '年份', value: 'year'},
          {label: '月份', value: 'month'},
          {label: '周', value: 'week'},
          {label: '日', value: 'day'}
        ],
        leakage: [
          {label: '有报警微小流量', value: '1'},
          {label: '正常', value: '0'},
          {label: '没有上传数据', value: ''}
        ],
        grouptype: ['type1'],
        getgrouptype: [
          {label: '抄表异常', value: 'type1'},
          {label: '信号质量差', value: 'type2'},
          {label: '电压低', value: 'type3'},
          {label: '磁干扰', value: 'type4'},
          {label: '报警关阀', value: 'type5'},
          {label: '周期关阀', value: 'type6'},
          {label: '过流保护关阀', value: 'type7'},
          {label: '关阀走气', value: 'type8'},
          {label: '拆表报警', value: 'type9'},
          {label: 'E-7单干簧管故障', value: 'type10'},
          {label: 'E-8双干簧管故障', value: 'type11'},
          {label: 'E-16周期关阀', value: 'type12'},
          {label: 'E-17过流报警', value: 'type13'},
          {label: 'E-21透支关阀', value: 'type14'},
          {label: 'E-23透支过气', value: 'type15'}
        ],
        outlets: [],
        operator: [],
        filename: '',
        echarts: false,
        searchshow: false,
        modalShow: false,
        handObj: null,
        f_operate_reson: '',
        GetErrorLevel: [],
        GetErrorType: [],
        GetErrorTypePara: [],
        isActiveTotalForm: false,
        condition: '1=1',
        filialeCodeStr: '',
        excelTable: true,
        getfield: {
          'f_filiale': '组织机构',
          'f_userinfo_code': '用户号',
          'f_user_type': '用户类型',
          'f_gasproperties': '用气性质',
          'f_user_name': '用户姓名',
          'f_address': '用气地址',
          'f_meternumber': '表钢号',
          'f_table_state': '气表状态',
          'f_insert_date': '异常时间',
          'f_error_level': '异常级别',
          'f_error_type': '异常类型',
          'f_error_msg': '异常描述',
          'f_gas_leakage': '微小流量'
        },
        obj: {
          userid: this.$login.f.id,
          source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
          res: this.$login.f.f_fengongsi,
          resids: this.$login.f.f_orgids
        }
      }
    },
    ready() {
      this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
      this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
      this.getdata()
      console.log("=========")
      console.log(Vue.$login.f.f_orgids)
      console.log(Vue.$login.f)
      //初始化用户类型，用气性质下拉框
      this.getErrorInfo('f_error_level')
      this.getErrorTypeParam()
    },
    methods: {
      getErrorInfo (items) {
        try {
          let self = this
          self.$refs.paged.$refs.cri.model.f_error_type = ''
          console.log("self.model.f_error_type=''", self.model.f_error_type)
          let errorlevel = ''
          if (items != 'f_error_level') {
            if (this.$refs.paged.$refs.cri.model.f_error_level) {
              errorlevel = this.$refs.paged.$refs.cri.model.f_error_level
            }
          }
          if (items == 'f_error_type' && !this.$refs.paged.$refs.cri.model.f_error_level) {
            if( this.$refs.paged.$refs.cri.model.f_error_level !== 0) {
              return
            }
          }
          let load = new HttpResetClass()
          load.load('POST', 'rs/sql/singleTable_OrderBy', {
            data: {
              items: items + ' f_type',
              tablename: 't_exception',
              condition: items == 'f_error_level' ? '1=1 group by ' + items : `f_error_level='${errorlevel}' group by ` + items,
              orderitem: items
            }
          }, {warnMsg: '', resolveMsg: ''}).then((res) => {
            let rows = res.data
            let array1 = []
            array1.push({label: '全部', value: ''})
            for (let i = 0; i < rows.length; i++) {
              array1.push({label: rows[i].f_type, value: rows[i].f_type})
            }
            console.log('array1========', array1)
            if (items == 'f_error_level') {
              self.GetErrorLevel = array1
            } else {
              self.GetErrorType = array1
            }
          })
        } catch (e) {
          console.log(e)
        }
      },
      getErrorTypeParam () {
        try {
          let load = new HttpResetClass()
          load.load('POST', 'rs/sql/singleTable_OrderBy', {
            data: {
              items: 'name',
              tablename: 't_paramvalue',
              condition: 'processid = \'3657\'',
              orderitem: 'processid'
            }
          }, {warnMsg: '', resolveMsg: ''}).then((res) => {
            console.log('rows========', res.data)
            let rows = res.data
            let array1 = []
            array1.push({label: '全部', value: ''})
            for (let i = 0; i < rows.length; i++) {
              array1.push({label: rows[i].name, value: rows[i].name})
            }
            this.GetErrorTypePara = array1
          })
        } catch (e) {
          console.log(e)
        }
      },
      operate (row) {
        if (!this.$login.r.includes('异常处理')) {
          this.$showMessage('您没有异常处理的权限，请联系管理员!')
          return
        }
        this.handObj = row
        this.modalShow = true
      },
      exceptionHand () {
        let date = Util.toStandardTimeString()
        let sql = `update t_exception set f_hand_state = '已处理',
                    f_hand_date = '${date}',
                    f_hand_person = '${this.$login.f.name}',
                    f_hand_person_id = '${this.$login.f.id}',
                    f_hand_comments = '${this.f_operate_reson}'
                    where id = '${this.handObj.id}'`
        console.log('看下sql', sql)
        this.$resetpost('/rs/logic/runSQL', {data: {sql: sql}}, {resolveMsg: '异常处理成功！！！', rejectMsg: '异常处理失败！！！'})
        this.modalClose()
      },
      modalClose () {
        this.modalShow = false
        this.f_operate_reson = ''
        this.handObj = null
      },
      clickshow() {
        this.searchshow = !this.searchshow
      },
      search(args) {
        let start = this.$refs.paged.$refs.cri.model.startDate
        let end = this.$refs.paged.$refs.cri.model.endDate
        /*if (start == null || start == '' || end == null || end == '') {
          return this.$showMessage("异常区间的开始和结束时间不能为空！")
        }*/
        this.startDate = start
        this.endDate = end
        const filialeCondition = this.filialeCodeStr || this.getDefaultOrgCondition()
        if (filialeCondition) {
          args.condition = `${args.condition} and ${filialeCondition}`
        }
        this.condition = args.condition
        this.model.search(args.condition, args.model)
      },
      getdata() {
        this.startDate = this.$refs.paged.$refs.cri.model.startDate
        this.endDate = this.$refs.paged.$refs.cri.model.endDate
        this.$refs.paged.$refs.cri.search()
        this.condition = this.$refs.paged.$refs.cri.condition
      },
      getRes(obj) {
        this.obj.res = obj.res
        this.obj.resids = obj.resids
        const ids = (obj.resids || '').split(',').map(item => item.trim()).filter(item => item)
        if (ids.length <= 1) {
          this.filialeCodeStr = ids[0] ? `u.f_filialeids like '${ids[0]}%'` : ''
        } else {
          const parts = ids.map(code => `u.f_filialeids like '${code}%'`)
          this.filialeCodeStr = `(${parts.join(' or ')})`
        }
      },
      getDefaultOrgCondition () {
        const defaultOrg = this.$login.f.f_orgids || ''
        return defaultOrg ? `u.f_filialeids like '${defaultOrg}%'` : ''
      },
      SaveAsFile(str) {
        this.$showMessage('您是否需要导出本页数据？', ['confirm', 'cancel']).then((res) => {
          if (res === 'confirm') {
            let style = '<style>' +
              'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;}  .tdcenter{text-align: center;}</style>';
            let strHtml = style + document.getElementById(str).innerHTML;
            console.log(strHtml);
            let LODOP = getLodop();
            LODOP.PRINT_INIT('');
            LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
            LODOP.SAVE_TO_FILE('异常分析(表统计).xls')
          }
        })
      },
      clearmsg() {
        this.$refs.paged.$refs.cri.model = {}
      },
      close() {
        this.show = false
      },
      // 显示柱状图
      showEcharts() {
        this.echarts = true
        this.isActiveTotalForm = false
      },
      notShowTotalForm() {
        this.echarts = false
        this.isActiveTotalForm = false
      },
      // 不显示柱状图
      notShowEcharts() {
        this.echarts = false
        this.isActiveTotalForm = false
      },
      // 显示汇总数据表格
      showTotalForm() {
        this.echarts = false
        this.isActiveTotalForm = true
      },
      uniq(array) {
        array.sort();
        let arraytype = [{label: '全部', value: ''}]
        let dr = {label: '', value: ''}
        if (array[0] == 'n') {
          dr = {label: '空值', value: 'is null'}
        } else {
          dr = {label: array[0], value: "='" + array[0] + "'"}
        }
        arraytype.push(dr)
        let temp = [array[0]];
        console.log(array[0] + "array[0]")
        for (var i = 1; i < array.length; i++) {
          if (array[i] !== temp[temp.length - 1]) {
            if (array[i] == 'n') {
              dr = {label: '空值', value: 'is null'}
            } else {
              dr = {label: array[i], value: "='" + array[i] + "'"}
            }
            arraytype.push(dr);
            temp.push(array[i]);
          }
        }
        /*console.log(arraytype[1].label + "label")
        console.log(arraytype[1].value + "value")*/
        return arraytype;
      }
    },
    watch: {
      'data'(val) {
        if (val.f_files_path) {
          this.getFileContent(val.f_files_path)
        } else {
          this.reportStr = null
        }
      }
    },
    computed: {
      handState () {
        return [{label: '全部', value: ''}, ...this.$appdata.getParam('异常处理状态')]
      },
      Warningstyle() {
        return [{label: '全部', value: ''}, ...this.$appdata.getParam('燃气表型号')]
      },
      TableStates() {
        return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
      },
      Gasusertype () {
        return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
      },
      Gasproperties () {
        return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
      }
    }
  }
</script>
<style>
  .form-input-group label {
    text-align: right;
    width: auto;
  }

  .mystyle {
    float: right;
    padding-right: 10%;
  }

  .datapanel {
    color: #333;
    background-color: white;
    box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
    padding: 10px 30px 10px 30px;
    border-radius: 15px;
  }
</style>
