From 871a4117e5d289183dfe92a64aad47d2e9dde46e Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Tue, 21 Feb 2023 08:02:14 +0000 Subject: [PATCH] =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E6=BA=90=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dong Xia --- src/pages/repository/source/index.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/pages/repository/source/index.vue b/src/pages/repository/source/index.vue index 727f71f..4407e95 100644 --- a/src/pages/repository/source/index.vue +++ b/src/pages/repository/source/index.vue @@ -315,7 +315,7 @@ export default { analysisData(data) { return data.split('\n').map(item => { let obj = {} - let urlPre = true // 该标记是否循环到http://或ssh://或ftp:// + let urlPre = true const reg = /^(http|ssh|ftp):\/\// item.split(' ').forEach((item, index) => { if (item) { @@ -347,6 +347,20 @@ export default { this.selectPlan.sourceList = this.analysisData(row.sourceList) this.editVisible = true }, + deleteSource(id) { + this.$confirm({ + title: '系统提示', + content: '确定删除该条软件源模板?', + onOk: () => { + deleteSource({ id }).then(res => { + if (res.code === 200) { + this.$notification.success({ message: '删除成功' }) + this.getPlanList() + } + }) + } + }) + }, } } \ No newline at end of file -- Gitee