|
@@ -15,8 +15,8 @@
|
|
|
|
|
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<el-card style="min-height: 700px ;border-radius: 15px">
|
|
<el-card style="min-height: 700px ;border-radius: 15px">
|
|
|
- <el-table max-height="700" ref="multipleTable" :data="channelList" @selection-change="handleSelectionChange" :header-cell-style="{ background:'#FFFFFF',color:'#000000'}">
|
|
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
|
+ <el-table max-height="700" ref="multipleTable" :data="channelList" :row-key="rowKey" @selection-change="handleSelectionChange" :header-cell-style="{ background:'#FFFFFF',color:'#000000'}">
|
|
|
|
|
+ <el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
|
|
|
<el-table-column align="center" :label="this.$t('sbmc')" prop="productName" />
|
|
<el-table-column align="center" :label="this.$t('sbmc')" prop="productName" />
|
|
|
<el-table-column align="center" label="产品ID" prop="productId" />
|
|
<el-table-column align="center" label="产品ID" prop="productId" />
|
|
|
<el-table-column align="center" :label="this.$t('kzbh')" prop="productNumber" />
|
|
<el-table-column align="center" :label="this.$t('kzbh')" prop="productNumber" />
|
|
@@ -140,7 +140,7 @@
|
|
|
// 是否禁用上传
|
|
// 是否禁用上传
|
|
|
isUploading: false,
|
|
isUploading: false,
|
|
|
// 上传的地址
|
|
// 上传的地址
|
|
|
- url: window.location.origin+"/pdu/controlBoardUpgradeUpload" // todo
|
|
|
|
|
|
|
+ url: (window.location.origin)+"/pdu/controlBoardUpgradeUpload" // todo
|
|
|
},
|
|
},
|
|
|
productChTypes:[{"id":"1","name":"sblx1"},{"id":"2","name":"sblx2"},{"id":"3","name":"sblx3"},{"id":"4","name":"sblx4"},{"id":"5","name":"sblx5"}],
|
|
productChTypes:[{"id":"1","name":"sblx1"},{"id":"2","name":"sblx2"},{"id":"3","name":"sblx3"},{"id":"4","name":"sblx4"},{"id":"5","name":"sblx5"}],
|
|
|
statuss:[{"id":"0","name":"lix"},{"id":"1","name":"zx"},{"id":"2","name":"sjz"},{"id":"3","name":"sjcg"},{"id":"4","name":"sjsb"}],
|
|
statuss:[{"id":"0","name":"lix"},{"id":"1","name":"zx"},{"id":"2","name":"sjz"},{"id":"3","name":"sjcg"},{"id":"4","name":"sjsb"}],
|
|
@@ -161,9 +161,23 @@
|
|
|
console.log(window.location.origin)
|
|
console.log(window.location.origin)
|
|
|
this.usertoken= this.$store.state.user.usertoken;
|
|
this.usertoken= this.$store.state.user.usertoken;
|
|
|
// this.queryProductList();
|
|
// this.queryProductList();
|
|
|
- this.handleQuery();
|
|
|
|
|
|
|
+ // this.handleQuery();
|
|
|
|
|
+ this.dataRefreh();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ rowKey (row) {
|
|
|
|
|
+ return row.productId;
|
|
|
|
|
+ },
|
|
|
|
|
+ dataRefreh(){
|
|
|
|
|
+ // 计时器为空,操作
|
|
|
|
|
+ setInterval(() => {
|
|
|
|
|
+ var resultData=[{"productVersion":"V0.0.41","productId":"2024245-1","productChNumber":"33","productNumber":1,"upgradeDate":"2024.09.24","productName":"PDU","status":Math.random() < 0.5 ? 0 : 1},
|
|
|
|
|
+ {"productVersion":"V0.0.42","productId":"2024245-2","productChNumber":"33","productNumber":2,"upgradeDate":"2024.09.24","productName":"PDU","status":"4"},
|
|
|
|
|
+ {"productVersion":"V0.0.40","productId":"2024245-3","productChNumber":"33","productNumber":3,"upgradeDate":"2024.09.24","productName":"PDU","status":"1"}];
|
|
|
|
|
+ this.channelList = resultData;
|
|
|
|
|
+ console.log("执行成功")
|
|
|
|
|
+ }, 1000);
|
|
|
|
|
+ },
|
|
|
//推送通道状态
|
|
//推送通道状态
|
|
|
onSocketMessageToUpgrade(recvMessage) {
|
|
onSocketMessageToUpgrade(recvMessage) {
|
|
|
if (recvMessage.success) {
|
|
if (recvMessage.success) {
|