|
|
@@ -305,7 +305,8 @@
|
|
|
<el-table :data="groupTableData" style="width: 100%">
|
|
|
<el-table-column label="组名">
|
|
|
<template #default="scope">
|
|
|
- <span :style="isGroupExisted && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: #67C23A':''">
|
|
|
+ <span
|
|
|
+ :style="isGroupExisted && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: #67C23A':''">
|
|
|
{{ scope.row['groupVO'].name }}
|
|
|
</span>
|
|
|
</template>
|
|
|
@@ -313,7 +314,8 @@
|
|
|
<el-table-column label="组员">
|
|
|
<template #default="scope">
|
|
|
<div v-for="item of scope.row.members" :key="'member'+item.id">
|
|
|
- <span :style="isGroupExisted && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: #67C23A':''">
|
|
|
+ <span
|
|
|
+ :style="isGroupExisted && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: #67C23A':''">
|
|
|
{{ item.username }}
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -1081,10 +1083,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- async handleForkProject(id) {
|
|
|
+ handleForkProject(id) {
|
|
|
const _this = this;
|
|
|
- const res = (await _this.$apis.forkProject(id)).data;
|
|
|
- ElMessage.success(JSON.stringify(res));
|
|
|
+ ElMessageBox.prompt("请输入新项目名称", "Fork", {
|
|
|
+ confirmButtonText: "确认",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ inputPlaceholder: "默认为项目Id-用户Username",
|
|
|
+ })
|
|
|
+ .then(async ({value}) => {
|
|
|
+ const res = (await _this.$apis.forkProject(id, value)).data;
|
|
|
+ if (!res.code) {
|
|
|
+ _this.projects.private.push(res.data);
|
|
|
+ _this.projectTabName = "private";
|
|
|
+ ElMessage.success("Fork完成");
|
|
|
+ } else {
|
|
|
+ ElMessage.error(res.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ ElMessage({
|
|
|
+ type: "info",
|
|
|
+ message: "取消输入",
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
// group rule
|