Commit 304a579e by zhuzhequan

eslint 报错

parent 01070396
...@@ -11,7 +11,6 @@ declare module 'vue' { ...@@ -11,7 +11,6 @@ declare module 'vue' {
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDate: typeof import('element-plus/es')['ElDate']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElDialog: typeof import('element-plus/es')['ElDialog']
ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDrawer: typeof import('element-plus/es')['ElDrawer']
......
...@@ -53,14 +53,14 @@ export function downloadOrder(id: number) { ...@@ -53,14 +53,14 @@ export function downloadOrder(id: number) {
} }
// 重新生成稿件 // 重新生成稿件
export function reGenerateScriptUrlApi(ids: string) { export function reGenerateScriptUrlApi(ids: number[]) {
return axios.post<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
'factory/customJomallOrder/rebuildFileByOrderId', 'factory/customJomallOrder/rebuildFileByOrderId',
ids, ids,
) )
} }
export function reCreateScriptUrlApi(id: string) { export function reCreateScriptUrlApi(id: number) {
return axios.get<never, BaseRespData<never>>( return axios.get<never, BaseRespData<never>>(
'factory/customJomallOrder/rebuildFileByOrderId', 'factory/customJomallOrder/rebuildFileByOrderId',
{ {
......
...@@ -107,7 +107,6 @@ import Menu from '@/router/menu' ...@@ -107,7 +107,6 @@ import Menu from '@/router/menu'
import userUserStore from '@/store/user' import userUserStore from '@/store/user'
import type { FormRules } from 'element-plus' import type { FormRules } from 'element-plus'
import { useValue } from '@/utils/hooks/useValue' import { useValue } from '@/utils/hooks/useValue'
import { showError } from '@/utils/ui'
import { changePasswordApi } from '@/api/auth' import { changePasswordApi } from '@/api/auth'
interface PasswordForm { interface PasswordForm {
oldPwd: string oldPwd: string
......
...@@ -7,21 +7,24 @@ import { onMounted, onUnmounted, ref } from 'vue' ...@@ -7,21 +7,24 @@ import { onMounted, onUnmounted, ref } from 'vue'
const props = defineProps({ const props = defineProps({
size: { size: {
default: '', default: '',
type: String, type: String || Number,
}, },
}) })
const domSize = ref<number>(0) const domSize = ref<string>('0')
function domResize() { function domResize() {
const father = document.getElementsByClassName('splitpanes')[0] const father = document.getElementsByClassName('splitpanes')[0]
const top = document.getElementById('top') const top = document.getElementById('top')
const v = ((top.clientHeight / father.clientHeight) * 100).toFixed(2) if(top && father){
const v = ((top.clientHeight / father?.clientHeight) * 100).toFixed(2)
if (props.size === '') { if (props.size === '') {
domSize.value = v domSize.value = v
} else { } else {
domSize.value = props.size domSize.value = props.size
} }
}
} }
onUnmounted(()=>{ onUnmounted(()=>{
window.removeEventListener('resize', domResize) window.removeEventListener('resize', domResize)
......
...@@ -2,7 +2,6 @@ import { defineStore } from 'pinia' ...@@ -2,7 +2,6 @@ import { defineStore } from 'pinia'
import { LoginReq, SysUser } from '@/types/api/auth' import { LoginReq, SysUser } from '@/types/api/auth'
import { loginApi } from '@/api/auth' import { loginApi } from '@/api/auth'
import { showError } from '@/utils/ui'
import { setToken } from '@/api/axios' import { setToken } from '@/api/axios'
import router from '@/router' import router from '@/router'
......
import { Ref, onMounted, ref } from 'vue' import { Ref, onMounted, ref } from 'vue'
import { showError } from '../ui'
import type { PaginationData } from '@/types/api' import type { PaginationData } from '@/types/api'
......
...@@ -264,7 +264,7 @@ import { ...@@ -264,7 +264,7 @@ import {
import { getUserMarkList } from '@/api/auth' import { getUserMarkList } from '@/api/auth'
import { ref, onMounted } from 'vue' import { ref, onMounted } from 'vue'
import { val } from '@/utils' import { val } from '@/utils'
import { showConfirm, showError } from '@/utils/ui' import { showConfirm } from '@/utils/ui'
import { filePath } from '@/api/axios' import { filePath } from '@/api/axios'
import { type CellCls, ElMessage } from 'element-plus' import { type CellCls, ElMessage } from 'element-plus'
import OrderDetail from './order/OrderDetail.vue' import OrderDetail from './order/OrderDetail.vue'
......
...@@ -74,7 +74,6 @@ import { reactive, ref } from 'vue' ...@@ -74,7 +74,6 @@ import { reactive, ref } from 'vue'
import { LoginReq } from '@/types/api/auth' import { LoginReq } from '@/types/api/auth'
import type { FormInstance, FormRules } from 'element-plus' import type { FormInstance, FormRules } from 'element-plus'
import useUserStore from '@/store/user' import useUserStore from '@/store/user'
import { showError } from '@/utils/ui'
const loginFormRef = ref<FormInstance>() const loginFormRef = ref<FormInstance>()
const loginForm = reactive<LoginReq>({ const loginForm = reactive<LoginReq>({
......
...@@ -207,7 +207,7 @@ import Icon from '@/components/Icon.vue' ...@@ -207,7 +207,7 @@ import Icon from '@/components/Icon.vue'
import { UserEditForm, userData, userSearchForm } from '@/types/api/user' import { UserEditForm, userData, userSearchForm } from '@/types/api/user'
import usePageList from '@/utils/hooks/usePageList' import usePageList from '@/utils/hooks/usePageList'
import { useValue } from '@/utils/hooks/useValue' import { useValue } from '@/utils/hooks/useValue'
import { showConfirm, showError } from '@/utils/ui' import { showConfirm } from '@/utils/ui'
import { Edit } from '@element-plus/icons-vue' import { Edit } from '@element-plus/icons-vue'
import type { FormRules } from 'element-plus' import type { FormRules } from 'element-plus'
import { reactive, ref } from 'vue' import { reactive, ref } from 'vue'
......
...@@ -149,7 +149,6 @@ import { DocumentCopy } from '@element-plus/icons-vue' ...@@ -149,7 +149,6 @@ import { DocumentCopy } from '@element-plus/icons-vue'
import { filePath } from '@/api/axios' import { filePath } from '@/api/axios'
import { downloadOrder } from '@/api/order' import { downloadOrder } from '@/api/order'
import { OrderData, ProductList } from '@/types/api/order' import { OrderData, ProductList } from '@/types/api/order'
import { showError } from '@/utils/ui'
import { PropType } from 'vue' import { PropType } from 'vue'
defineProps({ defineProps({
......
...@@ -179,7 +179,6 @@ import { DocumentCopy } from '@element-plus/icons-vue' ...@@ -179,7 +179,6 @@ import { DocumentCopy } from '@element-plus/icons-vue'
import { filePath } from '@/api/axios' import { filePath } from '@/api/axios'
import { downloadOrder } from '@/api/order' import { downloadOrder } from '@/api/order'
import { OrderData, ProductList } from '@/types/api/order' import { OrderData, ProductList } from '@/types/api/order'
import { showError } from '@/utils/ui'
import { PropType } from 'vue' import { PropType } from 'vue'
defineProps({ defineProps({
......
import { getQaOrderBySubOrderNumber, qaFinishedApi } from '@/api/order' import { getQaOrderBySubOrderNumber, qaFinishedApi } from '@/api/order'
import { InspectionData, QaData } from '@/types/api/order' import { InspectionData, QaData } from '@/types/api/order'
import { useValue } from '@/utils/hooks/useValue' import { useValue } from '@/utils/hooks/useValue'
import { showConfirm, showError } from '@/utils/ui' import { showConfirm } from '@/utils/ui'
import { computed, ref } from 'vue' import { computed, ref } from 'vue'
export default function useQuarantine() { export default function useQuarantine() {
......
...@@ -6,7 +6,6 @@ import { ...@@ -6,7 +6,6 @@ import {
ShipmentOrderRes, ShipmentOrderRes,
} from '@/types/api/order' } from '@/types/api/order'
import { useValue } from '@/utils/hooks/useValue' import { useValue } from '@/utils/hooks/useValue'
import { showError } from '@/utils/ui'
import { nextTick, ref } from 'vue' import { nextTick, ref } from 'vue'
import { ShipmentType } from '../Shipment.vue' import { ShipmentType } from '../Shipment.vue'
export default function useShipment(callback?: () => void) { export default function useShipment(callback?: () => void) {
......
...@@ -858,7 +858,7 @@ const [searchForm] = useValue<SearchForm>({ ...@@ -858,7 +858,7 @@ const [searchForm] = useValue<SearchForm>({
subOrderNumber: '', subOrderNumber: '',
}) })
const tabsNav = ref<Tab[]>([]) const tabsNav = ref<Tab[]>([])
const splitRef = ref<never>() const splitRef = ref<InstanceType<typeof SplitDiv>>()
const btnLoading = ref<boolean>(false) const btnLoading = ref<boolean>(false)
function getStartTime() { function getStartTime() {
const date = new Date() const date = new Date()
...@@ -1108,7 +1108,8 @@ const changeTab = (item: Tab) => { ...@@ -1108,7 +1108,8 @@ const changeTab = (item: Tab) => {
searchForm.value.timeType = '' searchForm.value.timeType = ''
search() search()
nextTick(()=>{ nextTick(()=>{
splitRef.value.domResize() (splitRef.value)!.domResize()
}) })
} }
const copy = (text: string) => { const copy = (text: string) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment