|
@@ -19,7 +19,7 @@
|
|
|
</el-dropdown>
|
|
|
<el-button v-if="isFormSet" class="ml-3" hc-btn type="primary" @click="setIsFormSetValue">表单设置</el-button>
|
|
|
<el-button v-else class="ml-3" hc-btn type="primary" @click="setIsFormSetValue">元素设置</el-button>
|
|
|
- <el-button v-yes-com:[dataSyncMenuClick] hc-btn type="danger" yes-com-text="你猜这是什么?">节点参数</el-button>
|
|
|
+ <el-button hc-btn type="danger" yes-com-text="你猜这是什么?">节点参数</el-button>
|
|
|
<el-button hc-btn color="#626aef">独立表单库</el-button>
|
|
|
<el-button hc-btn type="warning">归档文件时间</el-button>
|
|
|
</div>
|
|
@@ -104,9 +104,8 @@ import { useAppStore } from '~src/store'
|
|
|
import { getStore, setStore } from 'hc-vue3-ui'
|
|
|
import { getArrValue, getObjValue, isNullES } from 'js-fast-way'
|
|
|
import { getDictionaryData } from '~uti/tools'
|
|
|
-import mainApi from '~api/project/project'
|
|
|
import wbsTreeApi from '~api/wbs/tree'
|
|
|
-import wbsPrivateApi from '~api/wbs/private'
|
|
|
+import mainApi from '~api/wbs/private'
|
|
|
|
|
|
const props = defineProps({
|
|
|
type: {
|
|
@@ -277,7 +276,6 @@ const treeMenus = [
|
|
|
]
|
|
|
//菜单被点击
|
|
|
const treeMenuClick = ({ key, node, data, keys }) => {
|
|
|
- treeNodeClick({ node, data, keys })
|
|
|
if (key === 'edit') {
|
|
|
//编辑节点
|
|
|
} else if (key === 'sync1') {
|
|
@@ -296,7 +294,7 @@ const treeMenuClick = ({ key, node, data, keys }) => {
|
|
|
//懒加载树
|
|
|
const treeLoadNode = async ({ item, level }, resolve) => {
|
|
|
let pid = level !== 0 ? item.id : 0
|
|
|
- const { data } = await wbsPrivateApi.getLazytree({
|
|
|
+ const { data } = await mainApi.getLazytree({
|
|
|
wbsId: wbsId.value,
|
|
|
parentId: pid,
|
|
|
tenantId: store.tenantId,
|
|
@@ -336,7 +334,7 @@ const treeNodeClick = ({ node, data, keys }) => {
|
|
|
const treeInfo = ref({})
|
|
|
const getTreeDetail = async () => {
|
|
|
const { id, parentName } = treeItem.value
|
|
|
- const { data } = await wbsPrivateApi.detail({
|
|
|
+ const { data } = await mainApi.detail({
|
|
|
id,
|
|
|
wbsId: wbsId.value,
|
|
|
projectId: projectInfo.value.id,
|
|
@@ -361,7 +359,7 @@ const infoTableData = ref([])
|
|
|
const getInfoTableData = async () => {
|
|
|
const { id } = treeItem.value
|
|
|
infoTableLoading.value = true
|
|
|
- const { data } = await wbsPrivateApi.findNodeTableByCondition({
|
|
|
+ const { data } = await mainApi.findNodeTableByCondition({
|
|
|
parentId: id,
|
|
|
wbsId: wbsId.value,
|
|
|
projectId: projectInfo.value.id,
|
|
@@ -372,7 +370,7 @@ const getInfoTableData = async () => {
|
|
|
|
|
|
//当前项目信息表删除
|
|
|
const delInfoTableRow = async (item) => {
|
|
|
- const { error, code, msg } = await wbsPrivateApi.removeTableByCondition({
|
|
|
+ const { error, code, msg } = await mainApi.removeTableByCondition({
|
|
|
id: item.id,
|
|
|
wbsId: wbsId.value,
|
|
|
projectId: projectInfo.value.id,
|