|
@@ -67,11 +67,16 @@
|
|
{{ item.engineeringProductName }}
|
|
{{ item.engineeringProductName }}
|
|
</div>
|
|
</div>
|
|
<div class="list-item-switch">
|
|
<div class="list-item-switch">
|
|
- <span class="item-gray">发布</span
|
|
|
|
- ><el-switch
|
|
|
|
- v-model="item.publishStatus"
|
|
|
|
- @change="changeProjectStatus(item)"
|
|
|
|
- />
|
|
|
|
|
|
+ <span class="item-gray">发布</span>
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ width="220"
|
|
|
|
+ @confirm="changeProjectStatus(item)"
|
|
|
|
+ title="确定要修改发布状态吗?"
|
|
|
|
+ >
|
|
|
|
+ <template #reference>
|
|
|
|
+ <el-switch :model-value="item.publishStatus" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-popconfirm>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="list-item-flex">
|
|
<div class="list-item-flex">
|
|
@@ -225,8 +230,13 @@ const toEdit = (row) => {
|
|
};
|
|
};
|
|
|
|
|
|
// 发布
|
|
// 发布
|
|
|
|
+const isLoading = ref(false);
|
|
const changeProjectStatus = async (item: VersionItem) => {
|
|
const changeProjectStatus = async (item: VersionItem) => {
|
|
- await updateProject(item);
|
|
|
|
|
|
+ let p = {
|
|
|
|
+ ...item,
|
|
|
|
+ };
|
|
|
|
+ p.publishStatus = !p.publishStatus;
|
|
|
|
+ await updateProject(p);
|
|
getEngineeringList(false);
|
|
getEngineeringList(false);
|
|
};
|
|
};
|
|
|
|
|