|
@@ -114,7 +114,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="tabsKey === '2'">
|
|
<div v-if="tabsKey === '2'">
|
|
- <entryConfig></entryConfig>
|
|
|
|
|
|
+ <entryConfig :rightData="rightData"></entryConfig>
|
|
</div>
|
|
</div>
|
|
</hc-tab-card>
|
|
</hc-tab-card>
|
|
<!-- 设置最高层级 -->
|
|
<!-- 设置最高层级 -->
|
|
@@ -186,6 +186,7 @@ import wbsApi from "~api/desk/wbs";
|
|
import mainApi from "~api/project/tree";
|
|
import mainApi from "~api/project/tree";
|
|
import archiveApi from "~api/desk/archiveTree";
|
|
import archiveApi from "~api/desk/archiveTree";
|
|
import { getArrValue } from "js-fast-way";
|
|
import { getArrValue } from "js-fast-way";
|
|
|
|
+import { HcDelMsg } from "hc-vue3-ui";
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getPublictreeoptions();
|
|
getPublictreeoptions();
|
|
getTesttreeOptions();
|
|
getTesttreeOptions();
|
|
@@ -210,6 +211,7 @@ const testtreeValue = ref("");
|
|
const treeSelectId = ref("");
|
|
const treeSelectId = ref("");
|
|
const treeIdChange = (val) => {
|
|
const treeIdChange = (val) => {
|
|
getSecondTreeData(val);
|
|
getSecondTreeData(val);
|
|
|
|
+ getRightData(val);
|
|
treeSelectId.value = val;
|
|
treeSelectId.value = val;
|
|
if (testtreeValue.value) {
|
|
if (testtreeValue.value) {
|
|
testtreeValue.value = "";
|
|
testtreeValue.value = "";
|
|
@@ -292,6 +294,18 @@ const secondTreeMenuClick = async ({ key, data, node }) => {
|
|
}
|
|
}
|
|
configVisible.value = true;
|
|
configVisible.value = true;
|
|
}
|
|
}
|
|
|
|
+ } else if (key === "del") {
|
|
|
|
+ HcDelMsg(async (resolve) => {
|
|
|
|
+ const { code } = await archiveApi.removeArchiveAutoRule({
|
|
|
|
+ nodeId: data.id,
|
|
|
|
+ iswbsNode: data.iswbsNode, //是否是wbs节点 flase 不是 true 是 (先false,具体怎么区分后面再看)
|
|
|
|
+ projectId: 0, // 系统级为0 项目级为项目id
|
|
|
|
+ });
|
|
|
|
+ resolve(); //关闭弹窗的回调
|
|
|
|
+ if (code !== 200) return;
|
|
|
|
+ window.$message.success("删除成功");
|
|
|
|
+ getSecondTreeData(treeSelectId.value);
|
|
|
|
+ }).then();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
const titleName = ref("");
|
|
const titleName = ref("");
|
|
@@ -390,6 +404,18 @@ const configInfo = ref({});
|
|
const checkedKeys = ref([]);
|
|
const checkedKeys = ref([]);
|
|
const configCheckChange = () => {};
|
|
const configCheckChange = () => {};
|
|
const changeConfig = () => {};
|
|
const changeConfig = () => {};
|
|
|
|
+
|
|
|
|
+//工程文件入口配置
|
|
|
|
+const rightData = ref([]);
|
|
|
|
+const getRightData = async (id) => {
|
|
|
|
+ const { data, code } = await archiveApi.archiveTreetree({
|
|
|
|
+ projectId: 0,
|
|
|
|
+ wbsId: id,
|
|
|
|
+ });
|
|
|
|
+ if (code == 200) {
|
|
|
|
+ rightData.value = data;
|
|
|
|
+ }
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|