diff --git a/web/src/views/testdata/datamanagement/index.vue b/web/src/views/testdata/datamanagement/index.vue
index abef814..0a79192 100644
--- a/web/src/views/testdata/datamanagement/index.vue
+++ b/web/src/views/testdata/datamanagement/index.vue
@@ -115,7 +115,7 @@ function getProject() {
projectId.value = projectArr.value[0].id
storageKey.value = projectArr.value[0].key
localStorageId.value = projectArr.value[0].localStorageId
- taskName.value = projectArr.value[0].taskName
+ // taskName.value = projectArr.value[0].taskName
ws1 = new WebSocket(userStore.WebSocketUrl + '/websocket/' + 'taskId_' + projectId.value)
setupWebSocket()
gettreedata()
@@ -170,6 +170,7 @@ function gettreedata() {
treeloading.value = false
if (treedata.value[0]) {
pathid.value = treedata.value[0].nodeId
+ nodename.value = res.data[0].nodeName
filepath.value = res.data[0].path + res.data[0].nodeName + '/'
nextTick(() => {
treeRef.value?.setCurrentKey(pathid.value);
@@ -183,12 +184,15 @@ function gettreedata() {
})
}
const pathid = ref()
+const nodename = ref('')
function handleNodeClick(data: any, node: any) {
pathid.value = data.nodeId
filepath.value = data.path + data.nodeName + '/'
creatform.value.parentId = ''
patharr.value.length = 0
getdata()
+ nodename.value = data.nodeName
+ creatform.value.workPath = ''
}
//子项目配置
const frame = ref(false)
@@ -218,7 +222,8 @@ function addSubItem(row: any) {
projectForme.value.taskId = projectId.value
projectForme.value.parentId = row.nodeId
if (row.nodeId == '00') {
- projectForme.value.path = '/' + taskName.value + '/'
+ const item = projectArr.value.find(item => item.id === projectId.value);
+ projectForme.value.path = '/' + item.taskName + '/'
} else {
projectForme.value.path = filepath.value
}
@@ -877,12 +882,13 @@ function paste() {
newFileName: [],
rename: '',
type: '',
- taskId:projectId.value
+ taskId:projectId.value,
+ nodeId: pathid.value
}
+ // debugger
repeatObj.newPath = creatform.value.workPath ? creatform.value.workPath : filepath.value
repeatObj.parentId = creatform.value.parentId ? creatform.value.parentId : '00'
repeatObj.type = '0'
-
copytable.value.length = 0
if (tableData.value.length > 0) {
tableData.value.forEach((item: any) => {
@@ -992,7 +998,8 @@ function copycover(row: any) {
newFileName: [],
rename: '',
type: '',
- taskId:projectId.value
+ taskId:projectId.value,
+ nodeId: pathid.value
}
repeatObj.newPath = creatform.value.workPath ? creatform.value.workPath : filepath.value
repeatObj.parentId = creatform.value.parentId ? creatform.value.parentId : '00'
@@ -1041,7 +1048,7 @@ function copyClose() {
})
} else {
copyjudge.value = false
- copyarr.value.length = 0
+ copyarr.value.length = 0
pasteing.value = false
getdata()
}
@@ -1068,7 +1075,8 @@ function copysomefile() {
newFileName: [],
rename: '',
type: '',
- taskId:projectId.value
+ taskId:projectId.value,
+ nodeId: pathid.value
}
repeatObj.newPath = creatform.value.workPath ? creatform.value.workPath : filepath.value
repeatObj.parentId = creatform.value.parentId ? creatform.value.parentId : '00'
@@ -1133,7 +1141,8 @@ async function submitrename(formEl: any) {
newFileName: [],
rename: '',
type: '',
- taskId:projectId.value
+ taskId:projectId.value,
+ nodeId: pathid.value
}
repeatObj.newPath = creatform.value.workPath ? creatform.value.workPath : filepath.value
repeatObj.parentId = creatform.value.parentId ? creatform.value.parentId : '00'
@@ -1226,7 +1235,6 @@ async function submitcreat(formEl: any) {
//路径导航条
const patharr = ref([])
function pathclick(row: any, index: any) {
-
patharr.value.splice(index + 1)
creatform.value.parentId = row.id
creatform.value.workPath = convertArrayToPath1(patharr.value)
@@ -1512,7 +1520,7 @@ function openMap(row: any) {
// }));
// }, 2000);
mapTrajectory.value = true
- maptime.value = 1
+ maptime.value = 300
}
function mapClose() {
mapTrajectory.value = false
@@ -1532,7 +1540,7 @@ const options = ref([
, id: 600
},
])
-const maptime: any = ref(1)
+const maptime: any = ref(300)
//频率
const qvehuan: any = ref(false)
const qvehuan1: any = ref(false)
@@ -1650,9 +1658,9 @@ function repstring(row: any) {
:props="defaultProps" v-loading="treeloading" @node-click="handleNodeClick"
class="silderLeft-default" style="height: calc(100vh - 280px); overflow: auto;margin-top: 10px;">
-
+
{{ data.nodeName }}
-
+
@@ -1689,23 +1697,23 @@ function repstring(row: any) {