|  |  | 
 |  |  |               <el-form-item label="SIP认证用户名" prop="username"> | 
 |  |  |                 <el-input v-model="platform.username"></el-input> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="行政区划" prop="administrativeDivision"> | 
 |  |  |                 <el-input v-model="platform.administrativeDivision" clearable></el-input> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="SIP认证密码" prop="password"> | 
 |  |  |                 <el-input v-model="platform.password" ></el-input> | 
 |  |  |               </el-form-item> | 
 |  |  | 
 |  |  |         shareAllLiveStream: false, | 
 |  |  |         startOfflinePush: false, | 
 |  |  |         catalogGroup: 1, | 
 |  |  |         administrativeDivision: null, | 
 |  |  |       }, | 
 |  |  |       rules: { | 
 |  |  |         name: [{ required: true, message: "请输入平台名称", trigger: "blur" }], | 
 |  |  | 
 |  |  |           that.platform.devicePort = res.data.devicePort; | 
 |  |  |           that.platform.username = res.data.username; | 
 |  |  |           that.platform.password = res.data.password; | 
 |  |  |           that.platform.administrativeDivision = res.data.username.substr(0, 6); | 
 |  |  |         }).catch(function (error) { | 
 |  |  |           console.log(error); | 
 |  |  |         }); | 
 |  |  | 
 |  |  |         this.platform.catalogId = platform.catalogId; | 
 |  |  |         this.platform.startOfflinePush = platform.startOfflinePush; | 
 |  |  |         this.platform.catalogGroup = platform.catalogGroup; | 
 |  |  |         this.platform.administrativeDivision = platform.administrativeDivision; | 
 |  |  |         this.onSubmit_text = "保存"; | 
 |  |  |         this.saveUrl = "/api/platform/save"; | 
 |  |  |       } | 
 |  |  | 
 |  |  |     deviceGBIdChange: function () { | 
 |  |  |  | 
 |  |  |       this.platform.username = this.platform.deviceGBId ; | 
 |  |  |       if (this.platform.administrativeDivision == null) { | 
 |  |  |         this.platform.administrativeDivision = this.platform.deviceGBId.substr(0, 6); | 
 |  |  |       } | 
 |  |  |  | 
 |  |  |     }, | 
 |  |  |     onSubmit: function () { | 
 |  |  |       var that = this; | 
 |  |  | 
 |  |  |         rtcp: false, | 
 |  |  |         name: null, | 
 |  |  |         serverGBId: null, | 
 |  |  |         administrativeDivision: null, | 
 |  |  |         serverGBDomain: null, | 
 |  |  |         serverIP: null, | 
 |  |  |         serverPort: null, |