diff --git a/src/components/page/articleAdd - 副本.vue b/src/components/page/articleAdd - 副本.vue new file mode 100644 index 0000000..142f6c3 --- /dev/null +++ b/src/components/page/articleAdd - 副本.vue @@ -0,0 +1,3398 @@ + + + + + + + diff --git a/src/components/page/articleListEditor_A.vue b/src/components/page/articleListEditor_A.vue index b68410b..19f883b 100644 --- a/src/components/page/articleListEditor_A.vue +++ b/src/components/page/articleListEditor_A.vue @@ -961,7 +961,7 @@ " > {{ $t('citeList.save') }} - {{ $t('citeList.cancel') }} + {{ $t('citeList.cancel') }} diff --git a/src/components/page/components/major/list.vue b/src/components/page/components/major/list.vue new file mode 100644 index 0000000..1057eb1 --- /dev/null +++ b/src/components/page/components/major/list.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/src/components/page/components/table/word.vue b/src/components/page/components/table/word.vue index bc45beb..d677b35 100644 --- a/src/components/page/components/table/word.vue +++ b/src/components/page/components/table/word.vue @@ -41,7 +41,7 @@ :key="item.am_id" id="drop-target" :class="highlightImg(item.ami_id, item.checks ? item.checks : [])" - :comment-Id="highlightImgCommentId(item.ami_id, item.checks)" + :comment-Id="highlightImgCommentId(item.ami_id, item.checks ? item.checks : [])" @dragover="handleDragOver" @dragenter="handleDragEnter" @dragleave="handleDragLeave" @@ -1063,12 +1063,16 @@ export default { } }, highlightImgCommentId(imgId, annotations) { - const emptyContentIndexes = annotations + + const emptyContentIndexes = annotations .map((annotation, index) => (annotation.content === '' ? annotation.amc_id : -1)) // 找到内容为空的批注项的索引,其他项返回 -1 .filter((index) => index !== -1) // 过滤掉值为 -1 的项 .join(','); // 以逗号连接索引 + return emptyContentIndexes; + + - return emptyContentIndexes; + }, escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); diff --git a/src/main.js b/src/main.js index 19281cb..2e9696a 100644 --- a/src/main.js +++ b/src/main.js @@ -75,6 +75,8 @@ import commonTable from '@/components/page/components/table/table.vue' Vue.component('common-table', commonTable); import commonMajor from '@/components/page/components/major/index.vue' Vue.component('common-major', commonMajor); +import commonMajorList from '@/components/page/components/major/list.vue' +Vue.component('common-major-list', commonMajorList); import commonPayPalButton from '@/components/page/components/pendingPayment/PayPalButton.vue' Vue.component('common-paypal-button', commonPayPalButton); import commonTiff from '@/components/page/components/table/tiff.vue'