diff --git a/src/views/paper/question/WpsPptxForm.vue b/src/views/paper/question/WpsPptxForm.vue
index 6f4b6d5..8d7779a 100644
--- a/src/views/paper/question/WpsPptxForm.vue
+++ b/src/views/paper/question/WpsPptxForm.vue
@@ -439,9 +439,11 @@ const addPptxInfo = async () => {
if (filePath == '' || filePath == null) {
return
}
- const res = await PptxApi.getPptxInfo(filePath)
- pptxPointsList.value = []
- pptxPointsList.value.push(...handleTree(res))
+ if (pptxPointsList.value.length <= 0) {
+ const res = await PptxApi.getPptxInfo(filePath)
+ pptxPointsList.value = []
+ pptxPointsList.value.push(...handleTree(res))
+ }
dialogFormVisiblePptxInfo.value = true
}
const queryParams = reactive({
diff --git a/src/views/paper/question/WpsWordForm.vue b/src/views/paper/question/WpsWordForm.vue
index a0990b3..93e07e4 100644
--- a/src/views/paper/question/WpsWordForm.vue
+++ b/src/views/paper/question/WpsWordForm.vue
@@ -265,7 +265,7 @@
-
+
{
- if (checked || indeterminate) {
+ // if (checked || indeterminate) {
+ // wordPoints.value.belongTo = data.belongTo
+ // wordPoints.value.parameter = data.isboo
+ // wordPoints.value.type = data.type
+ // wordPointsFun.value = {
+ // chineseName: '',
+ // function: ''
+ // }
+ // wordPointsFun.value.chineseName = data.toChinese
+ // wordPointsFun.value.function = data.nodeFunction
+ // wordPoints.value.function.push(cloneDeep(wordPointsFun.value))
+ // console.log(wordPoints)
+ // }
+ if (data.titleType == '2') {
+ wordPoints.value.name = chineseName.value + data.toChinese
+ wordPoints.value.filePath = filePath.value
+ wordPoints.value.function = englishNames.value + data.nodeFunction
+ wordPoints.value.englishName = englishNames.value
wordPoints.value.belongTo = data.belongTo
- wordPoints.value.parameter = data.isboo
+ wordPoints.value.isboo = data.isboo
wordPoints.value.type = data.type
- wordPointsFun.value = {
- chineseName: '',
- function: ''
- }
- wordPointsFun.value.chineseName = data.name
- wordPointsFun.value.function = data.nodeFunction
- wordPoints.value.function.push(cloneDeep(wordPointsFun.value))
- console.log(wordPoints)
+ wordPointsInfosList.push(cloneDeep(wordPoints.value))
}
console.log(data, checked, indeterminate)
}
@@ -448,21 +454,26 @@ const addWordInfo = async () => {
}
dialogFormVisibleWordInfo.value = true
isLoading.value = true
- const res = await WordApi.getWordInfo(filePath)
- isLoading.value = false
- wordPointsList.value = []
- wordPointsList.value.push(...handleTree(res))
+ if (wordPointsList.value.length <= 0) {
+ const res = await WordApi.getWordInfo(filePath)
+ isLoading.value = false
+ wordPointsList.value = []
+ wordPointsList.value.push(...handleTree(res))
+ }
}
const queryParams = reactive({
nodeFunction: undefined
})
-
+const chineseName = ref('')
+const nodeFunctions = ref('')
+const englishNames = ref('')
const handleNodelClick = async (row: any) => {
+ console.log(row)
queryParams.nodeFunction = row.selectName
- wordPoints.value.chineseName = row.name.split(':')[0]
- wordPoints.value.englishName = row.englishName
- wordPoints.value.filePath = row.filePath
- wordPoints.value.id = row.id
+ chineseName.value = '【' + row.name + '】'
+ filePath.value = row.filePath
+ nodeFunctions.value = row.selectName
+ englishNames.value = row.englishName
const res = await WordApi.getWordInfos(queryParams)
wordPointsInfoList.value = []
wordPointsInfoList.value.push(...handleTree(res))
@@ -478,17 +489,15 @@ const handleDelete = (row) => {
}
const submitWordPoints = async () => {
- wordPointsInfosList.push(wordPoints.value)
const res = await WordApi.getWordListInfos(wordPointsInfosList)
wordPoints.value = {
- id: '',
- chineseName: '',
+ name: '',
englishName: '',
filePath: '',
type: '',
belongTo: '',
- parameter: '',
- function: []
+ isboo: '',
+ function: ''
}
wordPointsInfosList = []
for (let i = 0; i < res.length; i++) {
diff --git a/src/views/wps/pptx/index.vue b/src/views/wps/pptx/index.vue
index 81ce1a3..4bbaac2 100644
--- a/src/views/wps/pptx/index.vue
+++ b/src/views/wps/pptx/index.vue
@@ -76,7 +76,7 @@
-
+
diff --git a/src/views/wps/word/WordForm.vue b/src/views/wps/word/WordForm.vue
index fc14d74..5379750 100644
--- a/src/views/wps/word/WordForm.vue
+++ b/src/views/wps/word/WordForm.vue
@@ -69,6 +69,16 @@
/>
+
+
+
+
+
确 定
@@ -103,7 +113,8 @@ const formData = ref({
status: CommonStatusEnum.ENABLE,
type: CommonStatusEnum.ENABLE,
belongTo: CommonStatusEnum.ENABLE,
- isboo: CommonStatusEnum.ENABLE
+ isboo: CommonStatusEnum.ENABLE,
+ titleType: CommonStatusEnum.ENABLE
})
const formRules = reactive({
parentId: [{ required: true, message: '上级Word节点不能为空', trigger: 'blur' }],
@@ -173,7 +184,8 @@ const resetForm = () => {
status: CommonStatusEnum.ENABLE,
type: CommonStatusEnum.ENABLE,
belongTo: CommonStatusEnum.ENABLE,
- isboo: CommonStatusEnum.ENABLE
+ isboo: CommonStatusEnum.ENABLE,
+ titleType: CommonStatusEnum.ENABLE
}
formRef.value?.resetFields()
}
diff --git a/src/views/wps/word/index.vue b/src/views/wps/word/index.vue
index 23a28df..2b69efc 100644
--- a/src/views/wps/word/index.vue
+++ b/src/views/wps/word/index.vue
@@ -76,6 +76,11 @@
+
+
+
+
+