Loading src/views/algorithm/camera/index.vue +12 −3 Original line number Diff line number Diff line Loading @@ -103,8 +103,8 @@ /> <!-- 添加或修改算法摄像头对话框 --> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form-item label="摄像头名" prop="cameraName"> <el-input v-model="form.cameraName" placeholder="请输入摄像头名" /> </el-form-item> Loading Loading @@ -243,7 +243,8 @@ createTime: null, updateBy: null, updateTime: null, remark: null remark: null, algorithmType : null }; this.resetForm("form"); }, Loading Loading @@ -276,6 +277,10 @@ const id = row.id || this.ids getBase(id).then(response => { this.form = response.data; if( this.form.algorithmType){ const algorithmType = this.form.algorithmType; this.form.algorithmType = algorithmType.split(','); } this.open = true; this.title = "修改算法摄像头"; }); Loading @@ -284,6 +289,10 @@ submitForm() { this.$refs["form"].validate(valid => { if (valid) { if(this.form.algorithmType){ const algorithmType = this.form.algorithmType; this.form.algorithmType = algorithmType.join(','); } if (this.form.id != null) { updateBase(this.form).then(response => { this.$modal.msgSuccess("修改成功"); Loading Loading
src/views/algorithm/camera/index.vue +12 −3 Original line number Diff line number Diff line Loading @@ -103,8 +103,8 @@ /> <!-- 添加或修改算法摄像头对话框 --> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form-item label="摄像头名" prop="cameraName"> <el-input v-model="form.cameraName" placeholder="请输入摄像头名" /> </el-form-item> Loading Loading @@ -243,7 +243,8 @@ createTime: null, updateBy: null, updateTime: null, remark: null remark: null, algorithmType : null }; this.resetForm("form"); }, Loading Loading @@ -276,6 +277,10 @@ const id = row.id || this.ids getBase(id).then(response => { this.form = response.data; if( this.form.algorithmType){ const algorithmType = this.form.algorithmType; this.form.algorithmType = algorithmType.split(','); } this.open = true; this.title = "修改算法摄像头"; }); Loading @@ -284,6 +289,10 @@ submitForm() { this.$refs["form"].validate(valid => { if (valid) { if(this.form.algorithmType){ const algorithmType = this.form.algorithmType; this.form.algorithmType = algorithmType.join(','); } if (this.form.id != null) { updateBase(this.form).then(response => { this.$modal.msgSuccess("修改成功"); Loading