|
|
@@ -19,23 +19,28 @@
|
|
|
<el-card style="min-height: 700px ;border-radius: 15px">
|
|
|
<el-table max-height="700" :data="channelList" :header-cell-style="{ background:'#FFFFFF',color:'#000000'}">
|
|
|
<!--<el-table-column type="selection" width="55" align="center" />-->
|
|
|
- <el-table-column :label="this.$t('sbmc')" prop="productName" />
|
|
|
- <el-table-column label="产品ID" v-if="false" prop="productId" />
|
|
|
- <el-table-column :label="this.$t('sbbh')" prop="productNumber" />
|
|
|
- <el-table-column :label="this.$t('sblx')" prop="productType" :show-overflow-tooltip="true" >
|
|
|
+ <el-table-column align="center" :label="this.$t('sbmc')" prop="productName" />
|
|
|
+ <el-table-column align="center" label="产品ID" v-if="false" prop="productId" />
|
|
|
+ <el-table-column align="center" :label="this.$t('sbbh')" prop="productNumber" />
|
|
|
+ <el-table-column align="center" :label="this.$t('sblx')" prop="productType" :show-overflow-tooltip="true" >
|
|
|
<template slot-scope="scope">
|
|
|
<span >{{getDity(scope.row,'productType')}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="this.$t('bbh')" prop="productVersion" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" :label="this.$t('gjbbh')" prop="productVersion" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column align="center" :label="this.$t('gjrq')" prop="firmwareDate" :show-overflow-tooltip="true" />
|
|
|
<el-table-column :label="this.$t('cz')" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope" >
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- icon="el-icon-setting"
|
|
|
@click="handleImport(scope.row)"
|
|
|
>{{$t('gjsj')}}</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleHis(scope.row)"
|
|
|
+ >{{$t('bbls')}}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -76,7 +81,18 @@
|
|
|
<el-button @click="cancel">{{$t('qx')}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog :title="title" class="dialogClass" style="overflow-y: auto;" :visible.sync="open" width="500px" :close-on-click-modal="false" :close-on-press-escape="false" append-to-body>
|
|
|
+ <el-col style="height: 500px;overflow-y: auto;" >
|
|
|
+ <el-card >
|
|
|
+ <el-collapse accordion v-model="activeNames">
|
|
|
+ <el-collapse-item v-for="(item, index) in hisData" :name="index" :title="item.productVersion+' - '+item.versionDate">
|
|
|
+ <li>{{item.updateContent}}</li>
|
|
|
+ </el-collapse-item>
|
|
|
+ </el-collapse>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -130,6 +146,8 @@
|
|
|
url: window.location.origin+"/pdu/equipmentMintenanceUpload" // todo
|
|
|
},
|
|
|
productChTypes:[{"id":"1","name":"sblx1"},{"id":"2","name":"sblx2"},{"id":"3","name":"sblx3"},{"id":"4","name":"sblx4"},{"id":"5","name":"sblx5"}],
|
|
|
+ hisData:[],
|
|
|
+ activeNames:[]
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -264,11 +282,25 @@
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
- /** 修改按钮操作 */
|
|
|
- handleUpdate(row) {
|
|
|
+ /** 版本历史 */
|
|
|
+ handleHis(row) {
|
|
|
this.form =row;
|
|
|
+ const params={};
|
|
|
+ params.token=this.usertoken;
|
|
|
+ params.type="listRtHisQuery";
|
|
|
+ params.productId=row.productId;
|
|
|
+ this.loading = true;
|
|
|
+ // console.log(this.queryParams)
|
|
|
+ equipmentMintenance(params).then(response => {
|
|
|
+ if(response.data!=null){
|
|
|
+ this.hisData=response.data;
|
|
|
+ }
|
|
|
+ // this.channelList = response.data;
|
|
|
+ }).catch(() => {});
|
|
|
+ this.loading = false;
|
|
|
this.open = true;
|
|
|
- this.title = this.$t('gjsj');
|
|
|
+ this.title = this.$t('bbls');
|
|
|
+ this.activeNames=[0];
|
|
|
},
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
@@ -326,5 +358,19 @@
|
|
|
.left-align-form .el-form-item {
|
|
|
margin-bottom: 0; /* 根据需要可以去掉或调整间距 */
|
|
|
}
|
|
|
+ .update-log {
|
|
|
+ ol {
|
|
|
+ display: block;
|
|
|
+ list-style-type: decimal;
|
|
|
+ margin-block-start: 1em;
|
|
|
+ margin-block-end: 1em;
|
|
|
+ margin-inline-start: 0;
|
|
|
+ margin-inline-end: 0;
|
|
|
+ padding-inline-start: 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .dialogClass .el-dialog{
|
|
|
+ height: 600px;
|
|
|
+ }
|
|
|
</style>
|
|
|
|