chore: 更新eslint

This commit is contained in:
kailong321200875
2024-07-18 16:56:42 +08:00
parent 367b3508e8
commit 15db5e8db3
19 changed files with 130 additions and 130 deletions

View File

@@ -133,7 +133,7 @@ export default defineComponent({
<div class="flex-1 px-8px py-11px bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px">
{item.slots?.default
? item.slots?.default(props.data)
: get(props.data, item.field) ?? defaultData}
: (get(props.data, item.field) ?? defaultData)}
</div>
</div>
) : (
@@ -147,7 +147,7 @@ export default defineComponent({
<div class="flex-1 px-8px py-11px bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px">
{item.slots?.default
? item.slots?.default(props.data)
: get(props.data, item.field) ?? defaultData}
: (get(props.data, item.field) ?? defaultData)}
</div>
</div>
)}

View File

@@ -50,7 +50,7 @@ const handleCheckedColumnsChange = (value: string[]) => {
const confirm = () => {
const newColumns = cloneDeep(unref(settingColumns))?.map((item) => {
const fixed = unref(settingColumns)?.find((col) => col.field === item.field)?.fixed
item.hidden = !!!unref(checkColumns)?.includes(item.field)
item.hidden = !unref(checkColumns)?.includes(item.field)
item.fixed = fixed ? fixed : undefined
return item
})

View File

@@ -37,7 +37,7 @@ async function unLock() {
if (!password.value) {
return
}
let pwd = password.value
const pwd = password.value
try {
loading.value = true
const res = await lockStore.unLock(pwd)

View File

@@ -27,18 +27,15 @@ const handleClickOutside = () => {
}
const renderLayout = () => {
const { renderClassic, renderTopLeft, renderTop, renderCutMenu } = useRenderLayout()
switch (unref(layout)) {
case 'classic':
const { renderClassic } = useRenderLayout()
return renderClassic()
case 'topLeft':
const { renderTopLeft } = useRenderLayout()
return renderTopLeft()
case 'top':
const { renderTop } = useRenderLayout()
return renderTop()
case 'cutMenu':
const { renderCutMenu } = useRenderLayout()
return renderCutMenu()
default:
break

View File

@@ -54,7 +54,6 @@ export const getCssVar = (prop: string, dom = document.documentElement) => {
* @param {Array} ary 查找的数组
* @param {Functon} fn 判断的方法
*/
// eslint-disable-next-line
export const findIndex = <T = Recordable>(ary: Array<T>, fn: Fn): number => {
if (ary.findIndex) {
return ary.findIndex(fn)

View File

@@ -15,7 +15,7 @@ const { t } = useI18n()
const loading = ref(true)
let tableDataList = ref<any[]>([])
const tableDataList = ref<any[]>([])
const getTableList = async (params?: Params) => {
const res = await getCardTableListApi(

View File

@@ -68,7 +68,7 @@ const columns: TableColumn[] = [
const loading = ref(true)
let tableDataList = ref<TableData[]>([])
const tableDataList = ref<TableData[]>([])
const getTableList = async (params?: Params) => {
const res = await getTableListApi(

View File

@@ -54,7 +54,7 @@ const columns: TableColumn[] = [
const loading = ref(true)
let tableDataList = ref<TableData[]>([])
const tableDataList = ref<TableData[]>([])
const getTableList = async (params?: Params) => {
const res = await getTableListApi(

View File

@@ -38,7 +38,7 @@ const columns: TableColumn[] = [
const loading = ref(true)
let tableDataList = ref<TableData[]>([])
const tableDataList = ref<TableData[]>([])
const getTableList = async (params?: Params) => {
const res = await getTableListApi(

View File

@@ -66,7 +66,7 @@ const getTeam = async () => {
}
// 获取指数
let radarOptionData = reactive<EChartsOption>(radarOption) as EChartsOption
const radarOptionData = reactive<EChartsOption>(radarOption) as EChartsOption
const getRadar = async () => {
const res = await getRadarApi().catch(() => {})

View File

@@ -49,4 +49,3 @@ const save = async () => {
</template>
</ContentDetailWrap>
</template>
@/hooks/event/useEventBus