去除日志,表格宽度
This commit is contained in:
@@ -299,7 +299,7 @@ watch(
|
||||
if (props.formControl.scriptId != '') {
|
||||
nextTick(async () => {
|
||||
await getTree()
|
||||
console.log('props.formControl.scriptId')
|
||||
|
||||
treeRef.value.checkTree()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -129,11 +129,9 @@ function findFirstLeafNode(node: any): any {
|
||||
}
|
||||
|
||||
const checkTree = () => {
|
||||
console.log('checkTree11')
|
||||
console.log('checkTree22',props.treeData.length)
|
||||
console.log('checkTree33',treeRef.value)
|
||||
|
||||
if (props.treeData.length > 0 && treeRef.value) {
|
||||
console.log('checkTree44')
|
||||
|
||||
const firstNode = props.treeData[0];
|
||||
const firstLeafNode = findFirstLeafNode(firstNode);
|
||||
const firstLeafNodeId = firstLeafNode.id;
|
||||
@@ -143,7 +141,7 @@ const checkTree = () => {
|
||||
|
||||
// 确保在组件挂载后也执行一次
|
||||
onMounted(() => {
|
||||
console.log('onMounted',props.treeData);
|
||||
|
||||
nextTick(() => {
|
||||
checkTree()
|
||||
});
|
||||
|
||||
@@ -184,7 +184,7 @@ onMounted(async () => {
|
||||
})
|
||||
|
||||
watch(webMsgSend, function (newValue, oldValue) {
|
||||
console.log('webMsgSend:', newValue)
|
||||
|
||||
if (newValue.requestId.includes('formal_real&&') && newValue.operateCode === 'OPER_GATHER') {
|
||||
if (newValue.code === 10200) {
|
||||
ElMessage.success('启动成功!')
|
||||
@@ -195,7 +195,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
ElMessage.error('启动失败!')
|
||||
startDisabeld.value = false
|
||||
pauseDisabled.value = true
|
||||
console.log('错误信息:',webMsgSend)
|
||||
|
||||
}
|
||||
}
|
||||
if (newValue.requestId.includes('close_source') && newValue.operateCode === 'CLOSE_GATHER') {
|
||||
@@ -211,7 +211,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
ElMessage.error('停止失败!')
|
||||
startDisabeld.value = true
|
||||
pauseDisabled.value = false
|
||||
console.log('错误信息:',webMsgSend)
|
||||
|
||||
}
|
||||
}
|
||||
switch (newValue.requestId) {
|
||||
|
||||
Reference in New Issue
Block a user