Merge branch 'xy-ly' into fly

hn2.0
fanluyan 2 years ago
commit 03bd9d5749

@ -102,6 +102,7 @@
v-model="setForm.preset" v-model="setForm.preset"
:min="1" :min="1"
:max="255" :max="255"
:disabled="true"
></el-input-number> ></el-input-number>
</el-form-item> </el-form-item>
<el-form-item label="录制时长 s(秒)" prop="videoTime"> <el-form-item label="录制时长 s(秒)" prop="videoTime">
@ -140,7 +141,9 @@ export default {
ratiolist: [], // ratiolist: [], //
selaccess: "", // selaccess: "", //
capturenr: {}, // capturenr: {}, //
setForm: {}, // setForm: {
preset: 255
}, //
rules: { rules: {
channelId: [{ required: true, message: "请选择通道", trigger: "blur" }], channelId: [{ required: true, message: "请选择通道", trigger: "blur" }],
videoTime: [ videoTime: [
@ -165,7 +168,9 @@ export default {
}, },
// //
getSingleAccess(val) { getSingleAccess(val) {
this.setForm = {}; this.setForm = {
preset: 255
};
console.log(val); console.log(val);
this.seltermid = val.id; this.seltermid = val.id;
this.selcmdId = val.cmdId; this.selcmdId = val.cmdId;
@ -254,6 +259,7 @@ export default {
// //
submitbtn(setForm) { submitbtn(setForm) {
this.$set(this.setForm, "cmdId", this.selcmdId); this.$set(this.setForm, "cmdId", this.selcmdId);
// this.$set(this.setForm, "preset", 255);
// this.$set(this.setForm, "termId", this.seltermid); // this.$set(this.setForm, "termId", this.seltermid);
this.$refs[setForm].validate((valid) => { this.$refs[setForm].validate((valid) => {
if (valid) { if (valid) {

@ -51,7 +51,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit"></el-button> <el-button type="primary" @click="onSubmit"></el-button>
<el-button type="primary" @click="onSubmit"></el-button> <!-- <el-button type="primary" @click="onReset"></el-button> -->
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -489,6 +489,7 @@ export default {
getSearchdy() { getSearchdy() {
getSearchInfo({ type: 1 }) getSearchInfo({ type: 1 })
.then((res) => { .then((res) => {
this.dyOptions = [{ id: -1, name: "全部" }];
this.dyOptions = this.dyOptions.concat(res.data.list); this.dyOptions = this.dyOptions.concat(res.data.list);
this.formdata.dyId = this.dyOptions[0].id; this.formdata.dyId = this.dyOptions[0].id;
this.getSearchxl(); this.getSearchxl();
@ -520,6 +521,13 @@ export default {
onSubmit() { onSubmit() {
this.terminalList(); this.terminalList();
}, },
//
onReset(){
this.getSearchdy();
this.page = 1
this.pageSize = 20
this.terminalList();
},
//// ////
terminalList() { terminalList() {
this.loading = true; this.loading = true;

Loading…
Cancel
Save