| | |
| | | <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>--> |
| | |
| | | <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> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | gb28181: {}, |
| | | |
| | | gb28181: { |
| | | |
| | | }, |
| | | idType: 1, |
| | | rules: { |
| | | ip: [ |
| | | { |
| | |
| | | }; |
| | | }, |
| | | 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 => { |
| | |
| | | height: 100%; |
| | | padding: 0 30px; |
| | | .el-form { |
| | | width: 1000px; |
| | | margin-top: 30px; |
| | | // margin-left: -80px; |
| | | .el-form-item { |