|
@@ -4,20 +4,20 @@
|
|
|
<el-table-column type="index" label="序号" align="center" width="50"></el-table-column>
|
|
|
<el-table-column property="Name" label="名称" show-overflow-tooltip align="center"></el-table-column>
|
|
|
<el-table-column property="address" label="软件" align="center" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="text" @click="handleDown(scope.$index,scope.row)">下载</el-button>
|
|
|
+ <template slot-scope="scope" v-if="scope.row.Application">
|
|
|
+ <el-button type="text" @click="handleDown(scope.$index,scope.row,'Application')">下载</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column property="Remark" label="特殊说明" align="center"></el-table-column>
|
|
|
<el-table-column property="Scope" label="适用厂家" align="center"></el-table-column>
|
|
|
<el-table-column property="Manual" label="使用说明" align="center" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="text" @click="handleDown(scope.$index,scope.row)">下载</el-button>
|
|
|
+ <template slot-scope="scope" v-if="scope.row.Manual">
|
|
|
+ <el-button type="text" @click="handleDown(scope.$index,scope.row,'Manual')">下载</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column property="Eg" label="配置示例" align="center" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="text" @click="handleDown(scope.$index,scope.row)">下载</el-button>
|
|
|
+ <template slot-scope="scope" v-if="scope.row.Eg">
|
|
|
+ <el-button type="text" @click="handleDown(scope.$index,scope.row,'Eg')">下载</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -67,11 +67,24 @@
|
|
|
this.gridData = res.Content
|
|
|
})
|
|
|
},
|
|
|
- handleDown(index, row) {
|
|
|
+ handleDown(index, row,name) {
|
|
|
+ let params
|
|
|
console.log(row)
|
|
|
- let params = {
|
|
|
- Property: "string",
|
|
|
- ProtocolId: "string"
|
|
|
+ if(name=='Application'){
|
|
|
+ params = {
|
|
|
+ Property: 'Application',
|
|
|
+ ProtocolId: row.Id
|
|
|
+ }
|
|
|
+ }else if(name=='Manual'){
|
|
|
+ params = {
|
|
|
+ Property: 'Manual',
|
|
|
+ ProtocolId: row.Id
|
|
|
+ }
|
|
|
+ }else if(name=='Eg'){
|
|
|
+ params = {
|
|
|
+ Property: 'Eg',
|
|
|
+ ProtocolId: row.Id
|
|
|
+ }
|
|
|
}
|
|
|
dowloadProtocol(params,res=>{
|
|
|
})
|