清除时间表

jc
fanluyan 1 year ago
parent 83368b1f10
commit 0e377ce0c4

@ -509,31 +509,52 @@ export default {
console.log(res.data); console.log(res.data);
console.log(JSON.parse(res.data.data)); console.log(JSON.parse(res.data.data));
const resultData = JSON.parse(res.data.data); const resultData = JSON.parse(res.data.data);
const resultContent = JSON.parse( if (resultData.hasOwnProperty("content")) {
decodeURIComponent(escape(window.atob(resultData.content))) const resultContent = JSON.parse(
); decodeURIComponent(escape(window.atob(resultData.content)))
console.log(resultContent); );
console.log(resultContent);
this.appForm.channels = resultContent.channels; //,4 this.appForm.channels = resultContent.channels; //,4
this.appForm.packetSize = resultContent.packetSize; // this.appForm.packetSize = resultContent.packetSize; //
this.appForm.timeForKeepingLogs = this.appForm.timeForKeepingLogs =
resultContent.timeForKeepingLogs / 86400; //1*86400-45*86400 15*86400 resultContent.timeForKeepingLogs / 86400; //1*86400-45*86400 15*86400
this.appForm.timeForKeepingPhotos = this.appForm.timeForKeepingPhotos =
resultContent.timeForKeepingPhotos / 86400; //1*86400-45*86400 15*86400 resultContent.timeForKeepingPhotos / 86400; //1*86400-45*86400 15*86400
this.appForm.imgQuality = resultContent.imgQuality; // this.appForm.imgQuality = resultContent.imgQuality; //
this.appForm.heartbeat = resultContent.heartbeat; // this.appForm.heartbeat = resultContent.heartbeat; //
this.appForm.upgradePacketBase = resultContent.upgradePacketBase; // 01 this.appForm.upgradePacketBase = resultContent.upgradePacketBase; // 01
this.appForm.protocol = resultContent.protocol; // ... this.appForm.protocol = resultContent.protocol; // ...
this.appForm.networkProtocol = resultContent.networkProtocol; // 0: tcp 1 udp this.appForm.networkProtocol = resultContent.networkProtocol; // 0: tcp 1 udp
// this.appForm.network = resultContent.network; // 使 // this.appForm.network = resultContent.network; // 使
this.appForm.CMDID = resultContent.CMDID; // this.appForm.CMDID = resultContent.CMDID; //
this.appForm.server = resultContent.server; // CMA ip this.appForm.server = resultContent.server; // CMA ip
this.appForm.port = resultContent.port; // CMA 1025-65535 this.appForm.port = resultContent.port; // CMA 1025-65535
this.appForm.model = resultContent.model; // this.appForm.model = resultContent.model; //
this.appForm.equipName = resultContent.equipName; // this.appForm.equipName = resultContent.equipName; //
this.appForm.bsManufacturer = resultContent.bsManufacturer; // this.appForm.bsManufacturer = resultContent.bsManufacturer; //
this.appForm.productionDate = resultContent.productionDate * 1000; // this.appForm.productionDate = resultContent.productionDate * 1000; //
this.appForm.workStatusTimes = resultContent.workStatusTimes; // this.appForm.workStatusTimes = resultContent.workStatusTimes; //
} else {
this.appForm.channels = 4; //,4
this.appForm.packetSize = 2048; //
this.appForm.timeForKeepingLogs = 15; //1*86400-45*86400 15*86400
this.appForm.timeForKeepingPhotos = 15; //1*86400-45*86400 15*86400
this.appForm.imgQuality = ""; //
this.appForm.heartbeat = 10; //
this.appForm.upgradePacketBase = 0; // 01
this.appForm.protocol = this.areaData.protocol; // ...
this.appForm.networkProtocol = 0; // 0: tcp 1 udp
// this.appForm.network = resultContent.network; // 使
this.appForm.CMDID = this.areaData.cmdid; //
this.appForm.server = ""; // CMA ip
this.appForm.port = ""; // CMA 1025-65535
this.appForm.model = ""; //
this.appForm.equipName = ""; //
this.appForm.bsManufacturer = ""; //
this.appForm.productionDate = ""; //
this.appForm.productionDate = 3; //
}
this.$message({ this.$message({
duration: 1500, duration: 1500,

@ -37,7 +37,7 @@
> >
</el-radio-group> </el-radio-group>
<el-checkbox <el-checkbox
class="usbClass" class="usbClass"
label="USB接口" label="USB接口"
v-model="channelForm.usbchecked" v-model="channelForm.usbchecked"
></el-checkbox> ></el-checkbox>
@ -99,33 +99,30 @@
<el-option <el-option
v-for="item in compensationOptions" v-for="item in compensationOptions"
:key="item.value" :key="item.value"
:label="item.name " :label="item.name"
:value="item.value" :value="item.value"
> >
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<div class="isoDiv"> <div class="isoDiv">
<el-form-item label="参数设置"> <el-form-item label="参数设置">
<el-checkbox
<el-checkbox label="自动对焦"
label="自动对焦" v-model="channelForm.zzdjchecked"
v-model="channelForm.zzdjchecked" ></el-checkbox>
></el-checkbox> <el-checkbox
<el-checkbox label="自动曝光"
label="自动曝光" v-model="channelForm.zdbgchecked"
v-model="channelForm.zdbgchecked" @change="bgchange"
@change="bgchange" ></el-checkbox>
></el-checkbox> <el-checkbox
<el-checkbox label="光敏控制"
label="光敏控制" v-model="channelForm.gmkzchecked"
v-model="channelForm.gmkzchecked" ></el-checkbox>
></el-checkbox> </el-form-item>
</el-form-item>
<el-form-item label="曝光时间"> <el-form-item label="曝光时间">
<el-input v-model="channelForm.bgsj" :disabled="bgflag"></el-input> <el-input v-model="channelForm.bgsj" :disabled="bgflag"></el-input>
<span class="infoSpan">(毫秒)</span> <span class="infoSpan">(毫秒)</span>
@ -146,7 +143,7 @@
> >
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-checkbox <!-- <el-checkbox
label="HDR模式" label="HDR模式"
v-model="channelForm.hdrchecked" v-model="channelForm.hdrchecked"
></el-checkbox> ></el-checkbox>
@ -154,7 +151,7 @@
label="夜晚模式" label="夜晚模式"
v-model="channelForm.ywchecked" v-model="channelForm.ywchecked"
></el-checkbox> --> ></el-checkbox> -->
</el-form-item> </el-form-item>
<el-form-item label="旋转角度"> <el-form-item label="旋转角度">
<el-select v-model="channelForm.roteval" placeholder="请选择"> <el-select v-model="channelForm.roteval" placeholder="请选择">
<el-option <el-option
@ -179,30 +176,42 @@
</el-form-item> </el-form-item>
</div> </div>
<div class="textAreabox"> <div class="textAreabox">
<el-form-item label="左上OSD"> <el-form-item label="左上OSD">
<el-input type="textarea" rows="3" v-model="channelForm.ltosd"></el-input> <el-input
<!-- <span class="infoSpan">(多行使用\n换行)</span> --> type="textarea"
rows="3"
</el-form-item> v-model="channelForm.ltosd"
<el-form-item label="右上OSD"> ></el-input>
<el-input type="textarea" rows="3" v-model="channelForm.rtosd"></el-input> <!-- <span class="infoSpan">(多行使用\n换行)</span> -->
<!-- <span class="infoSpan">(多行使用\n换行)</span> --> </el-form-item>
<el-form-item label="右上OSD">
</el-form-item> <el-input
<el-form-item label="左下OSD"> type="textarea"
<el-input type="textarea" rows="3" v-model="channelForm.lbosd"></el-input> rows="3"
<!-- <span class="infoSpan">(多行使用\n换行)</span> --> v-model="channelForm.rtosd"
></el-input>
</el-form-item> <!-- <span class="infoSpan">(多行使用\n换行)</span> -->
<el-form-item label="右下OSD"> </el-form-item>
<el-input type="textarea" rows="3" v-model="channelForm.rbosd"></el-input> <el-form-item label="左下OSD">
<!-- <span class="infoSpan">(多行使用\n换行)</span> --> <el-input
</el-form-item> type="textarea"
</div> rows="3"
v-model="channelForm.lbosd"
></el-input>
<!-- <span class="infoSpan">(多行使用\n换行)</span> -->
</el-form-item>
<el-form-item label="右下OSD">
<el-input
type="textarea"
rows="3"
v-model="channelForm.rbosd"
></el-input>
<!-- <span class="infoSpan">(多行使用\n换行)</span> -->
</el-form-item>
</div>
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="handleclose" :disabled="channelsetLoading" <el-button @click="handleclose" :disabled="channelsetLoading"
> </el-button > </el-button
> >
@ -210,13 +219,12 @@
type="primary" type="primary"
:disabled="channelsetLoading" :disabled="channelsetLoading"
@click="handleConfim(false)" @click="handleConfim(false)"
> </el-button > </el-button
> <el-button >
<el-button
type="primary" type="primary"
:disabled="channelsetLoading" :disabled="channelsetLoading"
@click="handleConfim(true)" @click="handleConfim(true)"
>保存并关闭</el-button >保存并关闭</el-button
> >
<!-- :loading="channelLoading" --> <!-- :loading="channelLoading" -->
@ -253,10 +261,10 @@ export default {
usbchecked: "", usbchecked: "",
zzdjchecked: 1, zzdjchecked: 1,
zdbgchecked: 1, zdbgchecked: 1,
gmkzchecked:0, gmkzchecked: 0,
bgsj: "", bgsj: "",
iso: "", iso: "",
modelVal:"", modelVal: "",
hdrchecked: "", hdrchecked: "",
ywchecked: "", ywchecked: "",
roteval: "", roteval: "",
@ -267,98 +275,98 @@ export default {
rbosd: "", rbosd: "",
}, },
bgflag: false, bgflag: false,
modelOptions:[ modelOptions: [
{ {
"name": "DISABLED", name: "DISABLED",
"id": 0, id: 0,
"chName": "无场景" chName: "无场景",
}, },
{ {
"name": "FACE_PRIORITY", name: "FACE_PRIORITY",
"id": 1, id: 1,
"chName": "面部优先" chName: "面部优先",
}, },
{ {
"name": "ACTION", name: "ACTION",
"id": 2, id: 2,
"chName": "动作" chName: "动作",
}, },
{ {
"name": "PORTRAIT", name: "PORTRAIT",
"id": 3, id: 3,
"chName": "肖像" chName: "肖像",
}, },
{ {
"name": "LANDSCAPE", name: "LANDSCAPE",
"id": 4, id: 4,
"chName": "风景" chName: "风景",
}, },
{ {
"name": "NIGHT", name: "NIGHT",
"id": 5, id: 5,
"chName": "夜晚" chName: "夜晚",
}, },
{ {
"name": "NIGHT_PORTRAIT", name: "NIGHT_PORTRAIT",
"id": 6, id: 6,
"chName": "夜间肖像" chName: "夜间肖像",
}, },
{ {
"name": "THEATRE", name: "THEATRE",
"id": 7, id: 7,
"chName": "剧院" chName: "剧院",
}, },
{ {
"name": "BEACH", name: "BEACH",
"id": 8, id: 8,
"chName": "海滩" chName: "海滩",
}, },
{ {
"name": "SNOW", name: "SNOW",
"id": 9, id: 9,
"chName": "雪景" chName: "雪景",
}, },
{ {
"name": "SUNSET", name: "SUNSET",
"id": 10, id: 10,
"chName": "日落" chName: "日落",
}, },
{ {
"name": "STEADYPHOTO", name: "STEADYPHOTO",
"id": 11, id: 11,
"chName": "稳定照片" chName: "稳定照片",
}, },
{ {
"name": "FIREWORKS", name: "FIREWORKS",
"id": 12, id: 12,
"chName": "烟花" chName: "烟花",
}, },
{ {
"name": "SPORTS", name: "SPORTS",
"id": 13, id: 13,
"chName": "运动" chName: "运动",
}, },
{ {
"name": "PARTY", name: "PARTY",
"id": 14, id: 14,
"chName": "聚会" chName: "聚会",
}, },
{ {
"name": "CANDLELIGHT", name: "CANDLELIGHT",
"id": 15, id: 15,
"chName": "烛光" chName: "烛光",
}, },
{ {
"name": "BARCODE", name: "BARCODE",
"id": 16, id: 16,
"chName": "条形码" chName: "条形码",
}, },
{ {
"name": "HDR", name: "HDR",
"id": 18, id: 18,
"chName": "HDR" chName: "HDR",
} },
], ],
roteOptions: [ roteOptions: [
{ {
value: 0, value: 0,
@ -436,24 +444,16 @@ export default {
label: "1920X1080", label: "1920X1080",
}, },
], ],
compensationOptions:[{ name:-4, compensationOptions: [
value:-4}, { name: -4, value: -4 },
{ name:-3, { name: -3, value: -3 },
value:-3}, { name: -2, value: -2 },
{ name:-2, { name: -1, value: -1 },
value:-2}, { name: 0, value: 0 },
{ name:-1, { name: 1, value: 1 },
value:-1}, { name: 2, value: 2 },
{ name:0, { name: 3, value: 3 },
value:0}, { name: 4, value: 4 },
{ name:1,
value:1},
{ name:2,
value:2},
{ name:3,
value:3},
{ name:4,
value:4},
], ],
requestid: "", requestid: "",
searchNum: 0, searchNum: 0,
@ -480,11 +480,16 @@ export default {
getChannelListJoggle({ termid: this.areaData.id }) getChannelListJoggle({ termid: this.areaData.id })
.then((res) => { .then((res) => {
this.channelList = res.data.list; this.channelList = res.data.list;
if(Number(localStorage.getItem("channelId"))==1||Number(localStorage.getItem("channelId"))==-1||Number(localStorage.getItem("channelId"))==0){ if (
Number(localStorage.getItem("channelId")) == 1 ||
Number(localStorage.getItem("channelId")) == -1 ||
Number(localStorage.getItem("channelId")) == 0
) {
this.channelForm.selectChannel = this.channelList[0].channelid; this.channelForm.selectChannel = this.channelList[0].channelid;
}else{ } else {
this.channelForm.selectChannel = Number(localStorage.getItem("channelId")); this.channelForm.selectChannel = Number(
localStorage.getItem("channelId")
);
} }
//this.channelForm.selectChannel = this.channelList[0].channelid; //this.channelForm.selectChannel = this.channelList[0].channelid;
console.log(this.channelList); console.log(this.channelList);
@ -548,7 +553,6 @@ export default {
}, },
handleConfim(flag) { handleConfim(flag) {
console.log("点击了确定"); console.log("点击了确定");
console.log(this.channelForm); console.log(this.channelForm);
this.channelLoading = true; this.channelLoading = true;
@ -736,17 +740,17 @@ export default {
{ name: "name20", value: "zoomRatio" }, { name: "name20", value: "zoomRatio" },
{ name: "value20", value: this.channelForm.zoomVal }, { name: "value20", value: this.channelForm.zoomVal },
{ name: "type20", value: 0 }, { name: "type20", value: 0 },
//compensation //compensation
{ name: "name21", value: "compensation" }, { name: "name21", value: "compensation" },
{ name: "value21", value: this.channelForm.compensationVal }, { name: "value21", value: this.channelForm.compensationVal },
{ name: "type21", value: 0 }, { name: "type21", value: 0 },
// //
{ name: "name22", value: "gmkz" }, { name: "name22", value: "gmkz" },
{ name: "value22", value: this.channelForm.gmkzchecked ? 1 : 0 }, { name: "value22", value: this.channelForm.gmkzchecked ? 1 : 0 },
{ name: "type22", value: 0 }, { name: "type22", value: 0 },
]; ];
console.log(params); console.log(params);
this.setTermFn(params,flag); this.setTermFn(params, flag);
} else { } else {
this.$message({ this.$message({
duration: 1500, duration: 1500,
@ -757,7 +761,7 @@ export default {
} }
}); });
}, },
setTermFn(val,flag) { setTermFn(val, flag) {
setTermCamera({ setTermCamera({
termId: this.areaData.id, termId: this.areaData.id,
list: val, list: val,
@ -776,7 +780,7 @@ export default {
.catch((err) => {}); .catch((err) => {});
}, },
getTakechannelStatus(flag) { getTakechannelStatus(flag) {
console.log("aaaaaaaaaaaaaaaaaaaaaa",flag) console.log("aaaaaaaaaaaaaaaaaaaaaa", flag);
getTermCameraRequest({ requestid: this.requestid }) getTermCameraRequest({ requestid: this.requestid })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
@ -785,7 +789,7 @@ export default {
this.setTimer = null; this.setTimer = null;
this.setNum = 0; this.setNum = 0;
if(flag){ if (flag) {
this.isShow = false; this.isShow = false;
} }
//this.isShow = false; //this.isShow = false;
@ -798,7 +802,7 @@ export default {
}); });
} else if (this.setNum > 3) { } else if (this.setNum > 3) {
// this.isShow = false; // this.isShow = false;
if(flag){ if (flag) {
this.isShow = false; this.isShow = false;
} }
window.clearInterval(this.setTimer); window.clearInterval(this.setTimer);
@ -888,79 +892,117 @@ export default {
console.log(res.data); console.log(res.data);
console.log(JSON.parse(res.data.data)); console.log(JSON.parse(res.data.data));
const resultData = JSON.parse(res.data.data); const resultData = JSON.parse(res.data.data);
const resultContent = JSON.parse(
decodeURIComponent(escape(window.atob(resultData.content))) if (resultData.hasOwnProperty("content")) {
); const resultContent = JSON.parse(
console.log(resultContent); decodeURIComponent(escape(window.atob(resultData.content)))
this.channelForm.resolutionCX = resultContent.resolutionCX; );
this.channelForm.resolutionCY = resultContent.resolutionCY; console.log(resultContent);
this.channelForm.ysl = resultContent.quality; this.channelForm.resolutionCX = resultContent.resolutionCX;
this.channelForm.usbchecked = this.channelForm.resolutionCY = resultContent.resolutionCY;
resultContent.usbCamera == 1 ? true : false; this.channelForm.ysl = resultContent.quality;
this.channelForm.zzdjchecked = this.channelForm.usbchecked =
resultContent.autoFocus == 1 ? true : false; resultContent.usbCamera == 1 ? true : false;
this.channelForm.zdbgchecked = this.channelForm.zzdjchecked =
resultContent.autoExposure == 1 ? true : false; resultContent.autoFocus == 1 ? true : false;
this.channelForm.gmkzchecked = this.channelForm.zdbgchecked =
resultContent.gmkz == 1 ? true : false; resultContent.autoExposure == 1 ? true : false;
this.channelForm.bgsj = this.channelForm.gmkzchecked =
resultContent.exposureTime == 0 ? "" : resultContent.exposureTime; resultContent.gmkz == 1 ? true : false;
this.channelForm.iso = this.channelForm.bgsj =
resultContent.sensitivity == 0 ? "" : resultContent.sensitivity; resultContent.exposureTime == 0
? ""
: resultContent.exposureTime;
this.channelForm.iso =
resultContent.sensitivity == 0 ? "" : resultContent.sensitivity;
this.channelForm.modelVal = resultContent.sceneMode; this.channelForm.modelVal = resultContent.sceneMode;
// this.channelForm.hdrchecked = // this.channelForm.hdrchecked =
// resultContent.hdrMode == 1 ? true : false; // resultContent.hdrMode == 1 ? true : false;
// this.channelForm.ywchecked = // this.channelForm.ywchecked =
// resultContent.nightMode == 1 ? true : false; // resultContent.nightMode == 1 ? true : false;
this.channelForm.compensationVal = resultContent.compensation; this.channelForm.compensationVal = resultContent.compensation;
this.channelForm.aival = resultContent.recognization; this.channelForm.aival = resultContent.recognization;
this.channelForm.roteval = resultContent.orientation; this.channelForm.roteval = resultContent.orientation;
this.channelForm.rtosd = resultContent.osd.rightTop!="null"?resultContent.osd.rightTop:""; this.channelForm.rtosd =
this.channelForm.ltosd = resultContent.osd.leftTop!="null"?resultContent.osd.leftTop:""; resultContent.osd.rightTop != "null"
this.channelForm.lbosd = resultContent.osd.leftBottom!="null"?resultContent.osd.leftBottom:""; ? resultContent.osd.rightTop
this.channelForm.rbosd = resultContent.osd.rightBottom!="null"?resultContent.osd.rightBottom:""; : "";
// this.channelForm.videoSize = resultContent.; this.channelForm.ltosd =
this.channelForm.videoCX = resultContent.videoCX; resultContent.osd.leftTop != "null"
this.channelForm.videoCY = resultContent.videoCY; ? resultContent.osd.leftTop
if (this.channelForm.zdbgchecked) { : "";
this.bgflag = true; this.channelForm.lbosd =
resultContent.osd.leftBottom != "null"
? resultContent.osd.leftBottom
: "";
this.channelForm.rbosd =
resultContent.osd.rightBottom != "null"
? resultContent.osd.rightBottom
: "";
// this.channelForm.videoSize = resultContent.;
this.channelForm.videoCX = resultContent.videoCX;
this.channelForm.videoCY = resultContent.videoCY;
if (this.channelForm.zdbgchecked) {
this.bgflag = true;
this.channelForm.bgsj = "";
this.channelForm.iso = "";
} else {
this.bgflag = false;
}
if (
this.channelForm.videoCX == 720 &&
this.channelForm.videoCY == 480
) {
// this.channelForm.picSize = this.pictureSize[0].value;
this.channelForm.videoSize = 0;
} else if (
this.channelForm.videoCX == 320 &&
this.channelForm.videoCY == 240
) {
//this.channelForm.picSize = this.pictureSize[1].value;
this.channelForm.videoSize = 1;
} else if (
this.channelForm.videoCX == 640 &&
this.channelForm.videoCY == 480
) {
this.channelForm.videoSize = 2;
} else if (
this.channelForm.videoCX == 1280 &&
this.channelForm.videoCY == 720
) {
this.channelForm.videoSize = 3;
} else if (
this.channelForm.videoCX == 1920 &&
this.channelForm.videoCY == 1080
) {
//this.channelForm.picSize = this.pictureSize[2].value;
this.channelForm.videoSize = 4;
}
this.channelForm.videoDuration = resultContent.videoDuration;
} else {
this.channelForm.zzbh = "";
this.channelForm.ysl = 80;
this.channelForm.usbchecked = "";
this.channelForm.zzdjchecked = 1;
this.channelForm.zdbgchecked = 1;
this.channelForm.gmkzchecked = 0;
this.channelForm.bgsj = ""; this.channelForm.bgsj = "";
this.channelForm.iso = ""; this.channelForm.iso = "";
} else { this.channelForm.modelVal = "";
this.bgflag = false; this.channelForm.compensationVal = "";
// this.channelForm.hdrchecked = "";
// this.channelForm.ywchecked = "";
this.channelForm.rtosd = "";
this.channelForm.ltosd = "";
this.channelForm.lbosd = "";
this.channelForm.rbosd = "";
this.channelForm.videoSize = "";
this.channelForm.videoCX = "";
this.channelForm.videoCY = "";
this.channelForm.videoDuration = 15;
} }
if (
this.channelForm.videoCX == 720 &&
this.channelForm.videoCY == 480
) {
// this.channelForm.picSize = this.pictureSize[0].value;
this.channelForm.videoSize = 0;
} else if (
this.channelForm.videoCX == 320 &&
this.channelForm.videoCY == 240
) {
//this.channelForm.picSize = this.pictureSize[1].value;
this.channelForm.videoSize = 1;
} else if (
this.channelForm.videoCX == 640 &&
this.channelForm.videoCY == 480
) {
this.channelForm.videoSize = 2;
} else if (
this.channelForm.videoCX == 1280 &&
this.channelForm.videoCY == 720
) {
this.channelForm.videoSize = 3;
} else if (
this.channelForm.videoCX == 1920 &&
this.channelForm.videoCY == 1080
) {
//this.channelForm.picSize = this.pictureSize[2].value;
this.channelForm.videoSize = 4;
}
this.channelForm.videoDuration = resultContent.videoDuration;
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
@ -1000,11 +1042,11 @@ export default {
this.channelForm.usbchecked = ""; this.channelForm.usbchecked = "";
this.channelForm.zzdjchecked = 1; this.channelForm.zzdjchecked = 1;
this.channelForm.zdbgchecked = 1; this.channelForm.zdbgchecked = 1;
this.channelForm.gmkzchecked =0; this.channelForm.gmkzchecked = 0;
this.channelForm.bgsj = ""; this.channelForm.bgsj = "";
this.channelForm.iso = ""; this.channelForm.iso = "";
this.channelForm.modelVal=""; this.channelForm.modelVal = "";
this.channelForm.compensationVal=""; this.channelForm.compensationVal = "";
// this.channelForm.hdrchecked = ""; // this.channelForm.hdrchecked = "";
// this.channelForm.ywchecked = ""; // this.channelForm.ywchecked = "";
this.channelForm.rtosd = ""; this.channelForm.rtosd = "";
@ -1042,8 +1084,8 @@ export default {
.el-input { .el-input {
width: 300px; width: 300px;
} }
.usbClass{ .usbClass {
margin-left: 32px;; margin-left: 32px;
} }
} }
.infoSpan { .infoSpan {
@ -1117,21 +1159,21 @@ export default {
.el-input { .el-input {
width: 90px; width: 90px;
} }
.el-form-item{ .el-form-item {
&:last-child{ &:last-child {
.el-form-item__label{ .el-form-item__label {
width: 60px!important; width: 60px !important;
} }
.el-form-item__content{ .el-form-item__content {
margin-left: 60px!important; margin-left: 60px !important;
} }
} }
} }
} }
.textAreabox{ .textAreabox {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.el-textarea{ .el-textarea {
width: 298px; width: 298px;
} }
} }
@ -1145,7 +1187,7 @@ export default {
// } // }
// } // }
} }
.comclass{ .comclass {
margin-left: 8px; margin-left: 8px;
} }
} }

@ -885,7 +885,33 @@ export default {
getTermStatus({ termId: this.areaData.id }).then((res) => { getTermStatus({ termId: this.areaData.id }).then((res) => {
console.log(res); console.log(res);
if (res.data.isonline) { if (res.data.isonline) {
let params = [
{
name: "act",
value: "schedule",
},
{
name: "flag",
value: 1,
},
{
name: "channel",
value: this.selectChannel,
},
{
name: "group",
value: 0,
},
];
console.log(params);
this.setTermFnRule(params);
} else { } else {
this.$message({
duration: 1500,
showClose: true,
message: "装置下线,发送指令失败",
type: "error",
});
} }
}); });
}, },

Loading…
Cancel
Save