diff --git a/webs/ams-web/src/services/EnhancedRequestGet.ts b/webs/ams-web/src/services/EnhancedRequestGet.ts
index b7d9d98..106fced 100644
--- a/webs/ams-web/src/services/EnhancedRequestGet.ts
+++ b/webs/ams-web/src/services/EnhancedRequestGet.ts
@@ -1,5 +1,5 @@
import { request } from '@cmp/cmp-element'
-import { getSelectPosition } from '@/views/usePostion'
+import { getSelectPosition } from '@/views/usePosition'
// 封装原始的 request.get 方法
export default function enhancedRequestGet(url: string, config: any = {}) {
diff --git a/webs/ams-web/src/services/index.ts b/webs/ams-web/src/services/index.ts
index 50025b2..8d06e10 100644
--- a/webs/ams-web/src/services/index.ts
+++ b/webs/ams-web/src/services/index.ts
@@ -1,5 +1,5 @@
import { request } from '@cmp/cmp-element'
-import { getSelectPosition } from '@/views/usePostion'
+import { getSelectPosition } from '@/views/usePosition'
export function getValidateRules(type: string) {
return request.get('/ams/v1/regexps', {
diff --git a/webs/ams-web/src/services/resource/moduleInstance.ts b/webs/ams-web/src/services/resource/moduleInstance.ts
index 0dcd030..9d0a08d 100644
--- a/webs/ams-web/src/services/resource/moduleInstance.ts
+++ b/webs/ams-web/src/services/resource/moduleInstance.ts
@@ -1,5 +1,5 @@
import { request, downloadFile } from '@cmp/cmp-element'
-import { getSelectPosition } from '@/views/usePostion'
+import { getSelectPosition } from '@/views/usePosition'
const baseUrl = '/ams/v1/instances'
export function getInstance(params: Base.IListParams) {
diff --git a/webs/ams-web/src/views/data-collection/history/Example.vue b/webs/ams-web/src/views/data-collection/history/Example.vue
index 91bf3ab..ea7e5ed 100644
--- a/webs/ams-web/src/views/data-collection/history/Example.vue
+++ b/webs/ams-web/src/views/data-collection/history/Example.vue
@@ -2,12 +2,12 @@
-
+
批量更新
批量取消
-
+
{{ instanceUuid || '--' }}
@@ -33,6 +33,7 @@ import { getCollectionhistory, batchCollectionhistory } from 'services/data-coll
import { getCollectionHistoryBackup } from 'services/data-collection/backup'
import { exampleColumns, exampleSearchConfigs } from './config'
import { MessageBox, Message } from 'element-ui'
+import usePosition from '@/views/usePosition'
export default defineComponent({
components: { DataDialog },
@@ -58,6 +59,7 @@ export default defineComponent({
},
},
setup(props, context) {
+ const { isLeaderPosition } = usePosition()
const searchConfigs = ref([{ value: 'type', type: 'Const', initValue: props.type }, { value: 'taskInstanceId', type: 'Const', initValue: props.id }, ...exampleSearchConfigs, { value: 'tableName', type: 'Const', initValue: props.tableName }])
const statusOptions = { RECONCILED: '未调和', SUCCESS: '执行成功', FAILED: '执行失败' }
const statusColor = { RECONCILED: 'primary', SUCCESS: 'success', FAILED: 'danger' }
@@ -149,6 +151,7 @@ export default defineComponent({
getDetail,
getList,
handleUpdate,
+ isLeaderPosition,
}
},
})
diff --git a/webs/ams-web/src/views/data-collection/history/index.vue b/webs/ams-web/src/views/data-collection/history/index.vue
index 9395af5..4be65b8 100644
--- a/webs/ams-web/src/views/data-collection/history/index.vue
+++ b/webs/ams-web/src/views/data-collection/history/index.vue
@@ -27,7 +27,7 @@ import { columns, searchConfigs } from './config'
import { taskExeStatusFilter } from '@/filters/index'
import { cloneDeep } from 'lodash-es'
import { useRoute } from '@cmp/cmp-core'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
import AmsPosition from '@/views/AmsPosition.vue'
export default defineComponent({
components: { HistoryDetail, AmsPosition },
diff --git a/webs/ams-web/src/views/data-collection/plugins/List.vue b/webs/ams-web/src/views/data-collection/plugins/List.vue
index fed1f46..7f4cb98 100644
--- a/webs/ams-web/src/views/data-collection/plugins/List.vue
+++ b/webs/ams-web/src/views/data-collection/plugins/List.vue
@@ -21,7 +21,7 @@ import { defineComponent, reactive, watch, toRefs } from 'vue'
import { useTable } from '@cmp/cmp-element'
import { searchConfigs, columns } from './config'
import { getCollectionPlugins, removeCollectionPlugin, getUser } from 'services/data-collection/plugins'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
export default defineComponent({
props: {
diff --git a/webs/ams-web/src/views/data-collection/plugins/index.vue b/webs/ams-web/src/views/data-collection/plugins/index.vue
index 5c56904..0accd4e 100644
--- a/webs/ams-web/src/views/data-collection/plugins/index.vue
+++ b/webs/ams-web/src/views/data-collection/plugins/index.vue
@@ -23,7 +23,7 @@ import AddData from './AddData/index.vue'
import { getCollectionPluginDetail } from 'services/data-collection/plugins'
import Detail from './detail/index.vue'
import { decrypt } from '@cmp/cmp-element'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
import AmsPosition from '@/views/AmsPosition.vue'
export default defineComponent({
components: {
diff --git a/webs/ams-web/src/views/data-collection/task/content/normal/index.vue b/webs/ams-web/src/views/data-collection/task/content/normal/index.vue
index 0177993..2427418 100644
--- a/webs/ams-web/src/views/data-collection/task/content/normal/index.vue
+++ b/webs/ams-web/src/views/data-collection/task/content/normal/index.vue
@@ -43,7 +43,7 @@ import { getCollectionTasks, removeCollectionTask, patchCollectionTask } from 's
import { MessageBox, Message } from 'element-ui'
import { jumpRouter } from '../utils'
import { decrypt } from '@cmp/cmp-element'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
export default defineComponent({
components: {
diff --git a/webs/ams-web/src/views/data-collection/task/content/settime/index.vue b/webs/ams-web/src/views/data-collection/task/content/settime/index.vue
index 3d3d26d..cdf2573 100644
--- a/webs/ams-web/src/views/data-collection/task/content/settime/index.vue
+++ b/webs/ams-web/src/views/data-collection/task/content/settime/index.vue
@@ -52,7 +52,7 @@ import AddData from './AddData.vue'
import Detail from './Detail.vue'
import { MessageBox, Message } from 'element-ui'
import { jumpRouter } from '../utils'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
export default defineComponent({
components: {
diff --git a/webs/ams-web/src/views/data-collection/task/index.vue b/webs/ams-web/src/views/data-collection/task/index.vue
index 439781d..fbba31e 100644
--- a/webs/ams-web/src/views/data-collection/task/index.vue
+++ b/webs/ams-web/src/views/data-collection/task/index.vue
@@ -17,7 +17,7 @@ import { defineComponent, reactive, toRefs, ref } from 'vue'
import SplitPane from 'vue-splitpane'
import Tree from '@/views/data-collection/components/Tree.vue'
import Content from './content/index.vue'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
import AmsPosition from '@/views/AmsPosition.vue'
export default defineComponent({
components: {
diff --git a/webs/ams-web/src/views/data-link/history/index.vue b/webs/ams-web/src/views/data-link/history/index.vue
index 0756fe7..3f5e160 100644
--- a/webs/ams-web/src/views/data-link/history/index.vue
+++ b/webs/ams-web/src/views/data-link/history/index.vue
@@ -52,7 +52,7 @@ import { Message, MessageBox } from 'element-ui'
import { useTable, useSelection } from '@cmp/cmp-element'
import { getCategoryByModuleId, getRuleByModuleId } from 'services/index'
import { cloneDeep } from 'lodash-es'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
import AmsPosition from '@/views/AmsPosition.vue'
export default defineComponent({
diff --git a/webs/ams-web/src/views/data-link/rule/index.vue b/webs/ams-web/src/views/data-link/rule/index.vue
index 954c3f7..fe62c53 100644
--- a/webs/ams-web/src/views/data-link/rule/index.vue
+++ b/webs/ams-web/src/views/data-link/rule/index.vue
@@ -62,7 +62,7 @@ import { columns, searchConfigs as searchConfig } from './config'
import { defineComponent, ref } from 'vue'
import { Message, MessageBox } from 'element-ui'
import { useTable } from '@cmp/cmp-element'
-import usePostion from '@/views/usePostion'
+import usePostion from '@/views/usePosition'
import AmsPosition from '@/views/AmsPosition.vue'
export default defineComponent({
components: { AddDialog, AmsPosition },
diff --git a/webs/ams-web/src/views/log/index.vue b/webs/ams-web/src/views/log/index.vue
index 9d43322..4804d1c 100644
--- a/webs/ams-web/src/views/log/index.vue
+++ b/webs/ams-web/src/views/log/index.vue
@@ -14,7 +14,7 @@