diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue
index 4a3ecc2..1486903 100644
--- a/src/components/table/header/index.vue
+++ b/src/components/table/header/index.vue
@@ -1,414 +1,427 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/components/table/index.vue b/src/components/table/index.vue
index 23550c9..03d3352 100644
--- a/src/components/table/index.vue
+++ b/src/components/table/index.vue
@@ -1,7 +1,7 @@
- 列设置
+ 列设置
import { ref, inject, computed, onMounted, watch, useAttrs } from 'vue'
-import type { ElTable } from 'element-plus'
import { VxeTableEvents, VxeTableInstance } from 'vxe-table'
import { Setting } from '@element-plus/icons-vue'
import FieldRender from '@/components/table/fieldRender/index.vue'
@@ -87,7 +86,7 @@ const tableRef = ref()
const tableStore = inject('tableStore') as TableStoreClass
const router = useRouter()
const key = ref(0)
-interface Props extends /* @vue-ignore */ Partial> {
+interface Props extends /* @vue-ignore */ Partial {
isGroup?: boolean
showOverflow?: boolean | 'ellipsis' | 'title' | 'tooltip'
showCustomColumn?: boolean
@@ -109,7 +108,12 @@ const tableBindProps = computed(() => {
})
})
const openCustomColumn = () => {
- tableRef.value?.openCustom?.()
+ if (!tableRef.value) return
+ if (tableRef.value.getCustomVisible?.()) {
+ tableRef.value.closeCustom?.()
+ } else {
+ tableRef.value.openCustom?.()
+ }
}
onMounted(() => {
if (!tableStore?.table) return
@@ -137,7 +141,7 @@ const handleSortChange = ({ field, order }: any) => {
// console.log('🚀 ~ handleSortChange ~ prop, order :', field, order)
if (field && order) {
// 根据当前排序条件对所有数据进行排序
- const list = tableStore.table.copyData.sort((a, b) => {
+ const list = tableStore.table.copyData.sort((a: any, b: any) => {
if (order === 'asc') {
return a[field] > b[field] ? 1 : -1
} else {
diff --git a/src/views/govern/device/control/moduleData.vue b/src/views/govern/device/control/moduleData.vue
index f16c736..2c280d9 100644
--- a/src/views/govern/device/control/moduleData.vue
+++ b/src/views/govern/device/control/moduleData.vue
@@ -189,7 +189,7 @@ const setData = (data: any) => {
fontSize: 16
}
},
- formatter: function (params) {
+ formatter: function (params: any) {
// console.log("🚀 ~ data.forEach ~ params:", params)
let tip = ''
for (let i = 0; i < params.length; i++) {
@@ -378,10 +378,10 @@ const changeDataType = () => {
let flag = dataType.value.includes(0) || dataType.value.includes(1)
if (flag) {
let data1 = dataType.value.includes(0)
- ? loadList.map(k => (k.data == 3.14159 ? null : k.data))
+ ? loadList.map((k: any) => (k.data == 3.14159 ? null : k.data))
: []
let data2 = dataType.value.includes(1)
- ? modOutList.map(k => (k.data == 3.14159 ? null : k.data))
+ ? modOutList.map((k: any) => (k.data == 3.14159 ? null : k.data))
: []
let [modOuMin, modOuMax] = yMethod([...data1, ...data2])
@@ -476,7 +476,7 @@ const changeDataType = () => {
}
if (dataType.value.includes(2)) {
let [temperatureMin, temperatureMax] = yMethod(
- temperatureList.map(k => (k.data == 3.14159 ? 0 : k.data))
+ temperatureList.map((k: any) => (k.data == 3.14159 ? 0 : k.data))
)
echartsData.value.yAxis[flag ? 1 : 0] = {
name: '℃',
@@ -508,7 +508,7 @@ const changeDataType = () => {
}
key.value += 1
}
-function renderItem(params, api) {
+function renderItem(params: any, api: any) {
var categoryIndex = api.value(0)
var start = api.coord([api.value(1), categoryIndex])
var end = api.coord([api.value(2), categoryIndex])
@@ -538,7 +538,7 @@ function renderItem(params, api) {
)
}
// 三角形标记渲染函数
-function renderMarker(params, api) {
+function renderMarker(params: any, api: any) {
var point = api.coord([api.value(0), 0])
var symbolSize = 8
var offsetY = 40
diff --git a/src/views/govern/monitorRecall/log.vue b/src/views/govern/monitorRecall/log.vue
index 1789255..b051299 100644
--- a/src/views/govern/monitorRecall/log.vue
+++ b/src/views/govern/monitorRecall/log.vue
@@ -160,7 +160,7 @@ const handleaddDevice = () => {
query: {
activeName: '0',
id: lineId.value,
- ndid: deviceData.value?.ndid,
+ ndid: (deviceData.value as any)?.ndid || '',
}
})
diff --git a/src/views/pms/comptroller/list.vue b/src/views/pms/comptroller/list.vue
index 9c8fd49..638ef09 100644
--- a/src/views/pms/comptroller/list.vue
+++ b/src/views/pms/comptroller/list.vue
@@ -29,7 +29,7 @@ import { saveLogParam } from '@/api/common'
defineOptions({
name: 'comptroller/list'
})
-const tableStore = new TableStore({
+const tableStore: any = new TableStore({
url: '/system-boot/audit/getAuditLog',
method: 'POST',
column: [
diff --git a/src/views/pms/voltage/sags/operationsManagement/index.vue b/src/views/pms/voltage/sags/operationsManagement/index.vue
index a861039..4b63f7f 100644
--- a/src/views/pms/voltage/sags/operationsManagement/index.vue
+++ b/src/views/pms/voltage/sags/operationsManagement/index.vue
@@ -47,7 +47,7 @@ defineOptions({
const dictData = useDictData()
const manufacturer = dictData.getBasicData('Dev_Manufacturers')
const manufacturerForm = ref([])
-const tableStore = new TableStore({
+const tableStore: any = new TableStore({
isWebPaging: true,
url: '/device-boot/runManage/getRuntimeData',
method: 'POST',
diff --git a/src/views/pms/voltage/sags/operationsManagement/point.vue b/src/views/pms/voltage/sags/operationsManagement/point.vue
index 677d42d..181e000 100644
--- a/src/views/pms/voltage/sags/operationsManagement/point.vue
+++ b/src/views/pms/voltage/sags/operationsManagement/point.vue
@@ -47,7 +47,7 @@ const interferenceSource = dictData.getBasicData('Interference_Source')
const level = dictData.getBasicData('Dev_Voltage_Stand')
const interferenceSourceForm = ref([])
const scaleForm = ref([])
-const tableStore = new TableStore({
+const tableStore: any = new TableStore({
isWebPaging: true,
url: '/device-boot/runManage/getLineLedger',
method: 'POST',
diff --git a/src/views/setting/dictionary/list/index.vue b/src/views/setting/dictionary/list/index.vue
index 003c5b1..6c577d6 100644
--- a/src/views/setting/dictionary/list/index.vue
+++ b/src/views/setting/dictionary/list/index.vue
@@ -32,7 +32,7 @@ defineOptions({
})
const popupEditRef = ref()
const detail = ref(null)
-const tableStore = new TableStore({
+const tableStore: any = new TableStore({
url: '/system-boot/dictType/list',
method: 'POST',
column: [
diff --git a/src/views/setting/dictionary/version/index.vue b/src/views/setting/dictionary/version/index.vue
index 1f57099..b3b8e92 100644
--- a/src/views/setting/dictionary/version/index.vue
+++ b/src/views/setting/dictionary/version/index.vue
@@ -102,7 +102,7 @@ const rules = {
iosPath: [{ required: true, message: '请输入IOS路径', trigger: 'blur' }]
}
const formRef = ref()
-const tableStore = new TableStore({
+const tableStore: any = new TableStore({
url: '/cs-system-boot/appVersion/getAllData',
method: 'POST',
showPage: false,
diff --git a/src/views/system/scheduledTasks/index.vue b/src/views/system/scheduledTasks/index.vue
index caac2ba..ec93597 100644
--- a/src/views/system/scheduledTasks/index.vue
+++ b/src/views/system/scheduledTasks/index.vue
@@ -105,12 +105,12 @@ const tableStore: any = new TableStore({
onChangeField: (row: any, value: any) => {
if (row.jobStatus == 1) {
stop({ id: row.id }).then(res => {
- ElMessage.success(res.message)
+ ElMessage.success((res as any).message)
tableStore.index()
})
} else {
start({ id: row.id }).then(res => {
- ElMessage.success(res.message)
+ ElMessage.success((res as any).message)
tableStore.index()
})
}
diff --git a/tsconfig.json b/tsconfig.json
index 686d493..f21b946 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,7 +2,7 @@
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
- "suppressImplicitAnyIndexErrors": true,
+ // "suppressImplicitAnyIndexErrors": true,
"module": "esnext",
"moduleResolution": "node",
"removeComments": false,