| | |
| | | style="margin-right: 6px;"> |
| | | <Delete /> |
| | | </el-icon>清空</el-button> |
| | | <el-button type="danger" @click="refresh()">重置表格</el-button> |
| | | <el-button type="danger" @click="refresh()">返回目录</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | | |
| | | <template #name="{ row }"> |
| | | <span>{{ row.name }}</span> |
| | | <el-tag v-if="row.nodeType == 60" size="mini" effect="plain">v{{ row.versionNumber }}</el-tag> |
| | | <el-tag v-if="row.nodeType == 60" style="margin-left:5px" size="mini" effect="plain">v{{ row.versionNumber }}</el-tag> |
| | | <el-button icon="el-icon-download" @click="handleDownload(row)" class="treebtn" v-if="row.nodeType == 70" :size="size" text title="下载"></el-button> |
| | | <el-button class="treebtn" :size="size" text v-if="permission.replace_button && row.nodeType == 60 && row.parentIds.indexOf('0,1,') > -1" |
| | | icon="el-icon-switch" type="primary" @click="replacement(row)" placeholder="替换" title="替换"></el-button> |
| | |
| | | style="margin-right: 6px;"> |
| | | <Delete /> |
| | | </el-icon>清空</el-button> |
| | | <el-button type="danger" @click="refresh()">重置表格</el-button> |
| | | <el-button type="danger" @click="refresh()">返回目录</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | |
| | | </template> --> |
| | | <template #name="{ row }"> |
| | | <span>{{ row.name }}</span> |
| | | <el-tag v-if="row.nodeType == 60" size="mini" effect="plain">v{{ row.versionNumber }}</el-tag> |
| | | <el-tag v-if="row.nodeType == 60" style="margin-left:5px" size="mini" effect="plain">v{{ row.versionNumber }}</el-tag> |
| | | <el-button icon="el-icon-download" @click="handleDownload(row)" class="treebtn" v-if="row.nodeType == 70" :size="size" text title="下载"></el-button> |
| | | <!-- 替换 v-if="permission.auto_dispatch"--> |
| | | <el-button class="treebtn" :size="size" text v-if="permission.replace_button && row.nodeType == 60 && row.parentIds.indexOf('0,1,') > -1" |
| | |
| | | handleDownload(row){ |
| | | NProgress.start(); |
| | | exportBlob( |
| | | `/blade-mdm/program/node/download-by-nodeid?nodeId=${row.id}` |
| | | `/blade-mdm/program/nodehis/download-by-nodeid?nodeId=${row.id}` |
| | | ).then(res => { |
| | | if (res.status !== 200) { |
| | | return this.$message.error(res.msg); |
| | |
| | | res => { |
| | | |
| | | if(res.data.code === 200) { |
| | | this.hisFileTableData = res.data.data |
| | | this.hisFileTableData = res.data.data; |
| | | if(this.hisFileTableData.length > 0){ |
| | | this.showHisContent(this.hisFileTableData[0]) |
| | | this.$refs.hisFilesTable.setCurrentRow(this.hisFileTableData[0]); |
| | | } |
| | | |
| | | } else { |
| | | this.$message.error('程序内容加载失败'); |
| | | } |
| | |
| | | params: {nodeId: row.id} |
| | | }).then( |
| | | res => { |
| | | console.log(res) |
| | | |
| | | if(res.data.code === 200) { |
| | | this.hisFileContent = res.data.data; |
| | | } else { |