role1.0
fanluyan 1 year ago
parent b3a60b2240
commit 3a527fbb18

@ -154,7 +154,7 @@ export default {
created() {
getdyListJoggle().then((res) => {
console.log(res);
this.dyOptions = res.data.list;
this.dyOptions = res.data;
console.log(this.dyOptions);
});
},

@ -48,7 +48,7 @@
</el-table-column>
<el-table-column
prop="dyLevelname"
prop="dyLevelName"
label="电压等级名称"
show-overflow-tooltip
min-width="120"

@ -39,8 +39,8 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="装置ID" prop="cmdId">
<el-input v-model="formInfo.cmdId" autocomplete="on"></el-input>
<el-form-item label="装置ID" prop="cmdid">
<el-input v-model="formInfo.cmdid" autocomplete="on"></el-input>
</el-form-item>
<el-form-item label="装置类型:" prop="devType">
<el-select v-model="formInfo.devType" placeholder="请选择">
@ -274,7 +274,7 @@ export default {
],
protocolOptions: [], //
rules: {
cmdId: [
cmdid: [
{ required: true, message: "请输入装置ID", trigger: "blur" },
{ validator: validCmid, trigger: "blur" },
],
@ -306,7 +306,7 @@ export default {
return (this.formInfo = {
lineId: "",
towerId: "",
cmdId: "",
cmdid: "",
equipName: "",
devType: this.devTypeOptions[0].id,
hasPan: this.hasPanOptions[0].id,
@ -399,7 +399,7 @@ export default {
// displayName: this.formInfo.cmdId,
// };
this.$set(this.formInfo, "workingDate", new Date().getTime());
this.$set(this.formInfo, "displayName", this.formInfo.cmdId);
this.$set(this.formInfo, "displayName", this.formInfo.cmdid);
console.log(this.formInfo);
addTerminalJoggle(this.formInfo)
.then((res) => {

@ -130,7 +130,7 @@
>
</el-table-column>
<el-table-column
prop="cmdId"
prop="cmdid"
label="设备编号"
show-overflow-tooltip
min-width="150"
@ -263,13 +263,6 @@
@click.native.stop="handleDelete(scope.row)"
>删除</el-button
>
<!-- <el-button
type="text"
class="deleteText"
@click.native.stop="handleOpen(scope.row)"
v-if="scope.row.status == 0"
>打开</el-button
> -->
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="180" v-else>
@ -607,7 +600,7 @@ export default {
this.$message({
duration: 1500,
type: "success",
message: "关闭成功!",
message: "删除成功!",
showClose: true,
});
})

@ -18,6 +18,7 @@
type="date"
placeholder="选择日期"
format="yyyy 年 MM 月 dd 日"
value-format="timestamp"
:picker-options="pickerOptions"
@change="changedate"
@focus="handleDateFocus"
@ -291,7 +292,7 @@ export default {
},
//
changedate() {
console.log(this.dateValue.getTime());
console.log(this.dateValue);
this.$parent.getPhotoList(
this.selectChannelValue,
this.dateValue,

@ -266,6 +266,7 @@ export default {
"starttime",
new Date(new Date().toLocaleDateString()).getTime()
);
this.getSearchdy();
} else {
this.getSearchdy();
@ -274,7 +275,7 @@ export default {
this.formdata.towerid = this.$route.query.towerId;
this.formdata.channelid = this.$route.query.channelId;
this.formdata.termid = this.$route.query.termId;
this.$set(this.formdata, "starttime", this.$route.query.date);
this.$set(this.formdata, "starttime", Number(this.$route.query.date));
}
},
methods: {
@ -370,7 +371,7 @@ export default {
this.loading = true;
this.$set(this.formdata, "pageindex", this.page);
this.$set(this.formdata, "pagesize", this.pageSize);
console.log(this.formdata);
getRealtimePhoto(this.formdata)
.then((res) => {
this.picList = [];

Loading…
Cancel
Save