增加筛选条件和下载部署包方法
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
<template #left>
|
||||
<el-button type="primary" icon="iconfont iconAdd" @click="dialog=true">增加</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="搜索项目/系统" v-model="search.name" clearable
|
||||
@change="page.current=1,getTableData()"/>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
||||
@@ -87,7 +91,19 @@ export default {
|
||||
})
|
||||
},
|
||||
handleDownload(row) {
|
||||
let loading = this.$loading({
|
||||
lock: true, text: "正在打包文件...",
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
}), {id} = row
|
||||
this.instance.post("/node/autodeploy/getZip", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
loading.close()
|
||||
if (res?.code == 0) {
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
handleEdit(row) {
|
||||
this.form = JSON.parse(JSON.stringify(row))
|
||||
|
||||
Reference in New Issue
Block a user