|
@@ -2668,17 +2668,30 @@ const confirmTap = ()=>{
|
|
//节点命名配置
|
|
//节点命名配置
|
|
const nodeNameDialogShow = ref(false)
|
|
const nodeNameDialogShow = ref(false)
|
|
const editNamingConfigClick = async ()=>{
|
|
const editNamingConfigClick = async ()=>{
|
|
|
|
+ const { primaryKeyId } = treeItemInfo.value
|
|
|
|
+ if (!primaryKeyId) {
|
|
|
|
+ window.$message.warning('请先选择一个节点')
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+ titleSetValue.value = []
|
|
getTitleOptionsData().then()
|
|
getTitleOptionsData().then()
|
|
|
|
+ getNodeNameConfigData().then()
|
|
await nextTick()
|
|
await nextTick()
|
|
nodeNameDialogShow.value = true
|
|
nodeNameDialogShow.value = true
|
|
}
|
|
}
|
|
|
|
+//获取节点命名配置
|
|
|
|
+const getTitleOptionsData = async () => {
|
|
|
|
+ const { data } = await getDictionary({ code:'name_rule' })
|
|
|
|
+ titleOptions.value = getArrValue(data)
|
|
|
|
+
|
|
|
|
+}
|
|
const titleSetValue = ref('')
|
|
const titleSetValue = ref('')
|
|
const titleOptions = ref([])
|
|
const titleOptions = ref([])
|
|
const inputVal = ref('')
|
|
const inputVal = ref('')
|
|
|
|
|
|
-const getTitleOptionsData = async () => {
|
|
|
|
- const { data } = await getDictionary({ code:'name_rule' })
|
|
|
|
- titleOptions.value = getArrValue(data)
|
|
|
|
|
|
+const getNodeNameConfigData = async () => {
|
|
|
|
+ const { data } = await divisionApi.getNodeNameConfig({ pKeyId:treeItemInfo.value?.primaryKeyId })
|
|
|
|
+ inputVal.value = getArrValue(data)
|
|
|
|
|
|
}
|
|
}
|
|
// 添加 firstTree ref
|
|
// 添加 firstTree ref
|