Procházet zdrojové kódy

fix(division.vue): 修复获取节点名称配置时缺少projectId参数的问题

duy před 4 měsíci
rodič
revize
fc22f53096
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/views/data-fill/division.vue

+ 2 - 2
src/views/data-fill/division.vue

@@ -2731,7 +2731,7 @@ const titleOptions = ref([])
 const inputVal = ref('')
 
 const getNodeNameConfigData = async () => {
-  const { data } = await divisionApi.getNodeNameConfig({ pKeyId:treeItemInfo.value?.primaryKeyId })
+  const { data } = await divisionApi.getNodeNameConfig({ pKeyId:treeItemInfo.value?.primaryKeyId, projectId: projectId.value })
   titleSetValue.value = getArrValue(data)
   if (titleSetValue.value.length > 0) {
     refreshName() //
@@ -2748,7 +2748,7 @@ const refreshName = async ()=>{
     const { code, error, msg, data } = await divisionApi.getNameRuleByRule({
         nameRule:titleSetValue.value.join('-'),
         pkeyId:  treeItemInfo.value?.primaryKeyId,
-        projectId: projectId.value,
+  
     })
     if (code === 200 && !error) {
      window.$message.success(msg)