hanbaoshan
2020-08-04 51f8540633fe9eaa9c2c9b5ff439f2bf9bf9094e
src/pages/gb28181/index/App.vue
@@ -1,7 +1,7 @@
<template>
  <div class="s-basic-setting">
    <!-- GB28181设置 -->
    <el-form :model="gb28181" :rules="rules" label-width="140px" class="alarmSetting" ref="gb28181">
    <el-form :model="gb28181" :rules="rules" label-width="130px" class="alarmSetting" ref="gb28181">
      <!-- <el-form-item label="国际服务器IP" prop="ServerIp">
            <ip-input :ip="gb28181.ServerIp" @on-blur="gb28181.ServerIp = arguments[0]"></ip-input>
      </el-form-item>-->
@@ -84,11 +84,9 @@
        <el-input v-model="gb28181.Password" placeholder="请输入" size="small"></el-input>
      </el-form-item>
      <el-col :span="12">
        <el-form-item>
          <el-button type="primary" @click="submitGB28281" size="small">保存</el-button>
        </el-form-item>
      </el-col>
      <el-form-item>
        <el-button type="primary" @click="submitGB28281" size="small">保存</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
@@ -114,8 +112,10 @@
  },
  data() {
    return {
      gb28181: {},
      gb28181: {
      },
      idType: 1,
      rules: {
        ip: [
          {
@@ -161,16 +161,17 @@
    };
  },
  mounted() {
    this.$nextTick(() => {
    //this.$nextTick(()=>{
      this.initGB28181Conf();
    });
    //})
  },
  methods: {
    initGB28181Conf() {
      getGB28181Config().then(rsp => {
        if (rsp && rsp.success) {
          this.gb28181 = rsp.data;
          this.gb28181.idType = 0;
          //this.gb28181.idType = 0;
          this.$set(this.gb28181,'idType',0);
        }
      });
      getGb28181AreaList().then(rsp => {
@@ -231,7 +232,6 @@
  height: 100%;
  padding: 0 30px;
  .el-form {
    width: 1000px;
    margin-top: 30px;
    // margin-left: -80px;
    .el-form-item {