添加通道配置

jcbranch
fanluyan 11 months ago
parent 9c5a4a48e9
commit df8d69b1bd

File diff suppressed because it is too large Load Diff

@ -0,0 +1,128 @@
<template>
<el-dialog
title="修改配置文件"
:visible.sync="configisShow"
:close-on-click-modal="false"
width="870px"
class="configDialog"
@close="handleclose"
>
<div class="msgTbale">
<div class="headmsg">
<span
>装置编号{{ terimMsg.towerName }} 规约{{
terimMsg.protocolName
}}</span
>
</div>
<div class="containConfig">
<div class="configHead">
<span class="configLabel">配置文件</span>
<el-select v-model="configValue" filterable placeholder="请选择">
<el-option
v-for="item in configOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
<div class="channelClass" v-if="configValue == 1">
<channelSet ref="setChannel_ref" :terimMsgid="terimMsg"></channelSet>
</div>
<div class="mappClass" v-if="configValue == 2">app</div>
<div class="masterClass" v-if="configValue == 3"></div>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="configisShow = false"> </el-button>
<el-button @click="comfirmClick" type="primary"> </el-button>
</div>
</el-dialog>
</template>
<script>
import { cmdSendApi } from "@/utils/api/index";
import channelSet from "./channelSet.vue";
export default {
props: ["multipleSelection"],
components: { channelSet },
data() {
return {
configisShow: false,
terimMsg: "",
configOptions: [
{
value: 1,
label: "通道配置",
},
{
value: 2,
label: "app配置",
},
{
value: 3,
label: "运维配置",
},
],
configValue: 1,
};
},
mounted() {},
computed: {},
watch: {},
created() {},
methods: {
display() {
console.log(this.multipleSelection);
this.terimMsg = this.multipleSelection[0];
this.configisShow = true;
},
//
comfirmClick() {
if (this.configValue == 1) {
this.$refs.setChannel_ref.handleConfim();
}
},
// //
// changeIssue(params) {
// cmdSendApi(params)
// .then((res) => {
// console.log(res);
// if (res.code == 200) {
// console.log("");
// this.configisShow = false;
// }
// })
// .catch((err) => {});
// },
//
handleclose() {
this.configisShow = false;
},
},
};
</script>
<style lang="less">
.configDialog {
.el-dialog__body {
padding: 12px;
}
.msgTbale {
.headmsg {
position: absolute;
top: 23px;
left: 156px;
}
.containConfig {
height: 500px;
.configHead {
margin-bottom: 12px;
.configLabel {
margin-right: 12px;
}
}
}
}
}
</style>

@ -1162,6 +1162,9 @@
:msgCompany="msgCompany"
:multipleSelection="multipleSelection"
></msgList>
<!-- 修改配置文件 -->
<config ref="configRef" :multipleSelection="multipleSelection"></config>
</div>
</template>
@ -1176,6 +1179,7 @@ import {
} from "@/utils/api/index";
import rowMsgDialog from "./rowMsgDialog.vue";
import msgList from "./msglist.vue";
import config from "./setConfig/config";
import htmlToExcel from "@/utils/htmlToExcel";
import { saveAs } from "file-saver";
import XLSX from "xlsx";
@ -1191,6 +1195,7 @@ export default {
components: {
rowMsgDialog,
msgList,
config,
},
data() {
//ip
@ -2129,9 +2134,19 @@ export default {
this.pushFileVisible = true;
return;
case 15:
console.log("推送大文件");
this.configVisible = true;
this.getconfigList();
console.log("修改配置文件");
// this.configVisible = true;
if (this.multipleSelection.length !== 1) {
this.$message({
duration: 1500,
showClose: true,
message: "只能选中一个设备",
type: "warning",
});
return;
}
this.$refs.configRef.display();
// this.getconfigList();
return;
}
},

@ -50,8 +50,13 @@
<b v-if="item.terminal && item.terminal.cmdid"
>设备ID{{ item.terminal.cmdid }}</b
>
<b v-if="item.cmdMap && item.cmdMap.fileName"
<b v-if="item.cmdMap && item.cmdMap.fileName && item.cmdMap.md5"
>apk版本{{ item.cmdMap.fileName }}</b
><b
v-else-if="
item.cmdMap && item.cmdMap.fileName && item.cmdMap.fileName
"
>配置路径{{ item.cmdMap.path }}{{ item.cmdMap.fileName }}</b
>
<b>命令{{ cmdCn[item.name] }}</b>
@ -130,7 +135,18 @@
>设备ID{{ item.terminal.cmdid }}</b
>
<b>命令{{ cmdCn[item.name] }}</b>
<b v-if="item.cmdMap && item.cmdMap.fileName"
<b
v-if="
item.cmdMap &&
item.cmdMap.fileName &&
item.cmdMap.packageName
"
>配置文件{{ item.cmdMap.path }}{{ item.cmdMap.fileName }}</b
>
<b
v-else-if="
item.cmdMap && item.cmdMap.fileName && item.cmdMap.md5
"
>apk版本{{ item.cmdMap.fileName }}</b
>
<b v-else>cmd{{ item.cmdMap }}</b>
@ -200,6 +216,7 @@ export default {
pull_files: "拉取文件",
push_file: "推送文件",
dl_file: "推送大文件",
upd_cfg: "修改配置文件",
},
cmdtimer: null,
endtimer: null,

Loading…
Cancel
Save