Commit 304a579e by zhuzhequan

eslint 报错

parent 01070396
......@@ -11,7 +11,6 @@ declare module 'vue' {
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDate: typeof import('element-plus/es')['ElDate']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDrawer: typeof import('element-plus/es')['ElDrawer']
......
......@@ -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>>(
'factory/customJomallOrder/rebuildFileByOrderId',
ids,
)
}
export function reCreateScriptUrlApi(id: string) {
export function reCreateScriptUrlApi(id: number) {
return axios.get<never, BaseRespData<never>>(
'factory/customJomallOrder/rebuildFileByOrderId',
{
......
......@@ -107,7 +107,6 @@ import Menu from '@/router/menu'
import userUserStore from '@/store/user'
import type { FormRules } from 'element-plus'
import { useValue } from '@/utils/hooks/useValue'
import { showError } from '@/utils/ui'
import { changePasswordApi } from '@/api/auth'
interface PasswordForm {
oldPwd: string
......
......@@ -7,21 +7,24 @@ import { onMounted, onUnmounted, ref } from 'vue'
const props = defineProps({
size: {
default: '',
type: String,
type: String || Number,
},
})
const domSize = ref<number>(0)
const domSize = ref<string>('0')
function domResize() {
const father = document.getElementsByClassName('splitpanes')[0]
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 === '') {
domSize.value = v
} else {
domSize.value = props.size
if (props.size === '') {
domSize.value = v
} else {
domSize.value = props.size
}
}
}
onUnmounted(()=>{
window.removeEventListener('resize', domResize)
......
......@@ -2,7 +2,6 @@ import { defineStore } from 'pinia'
import { LoginReq, SysUser } from '@/types/api/auth'
import { loginApi } from '@/api/auth'
import { showError } from '@/utils/ui'
import { setToken } from '@/api/axios'
import router from '@/router'
......
import { Ref, onMounted, ref } from 'vue'
import { showError } from '../ui'
import type { PaginationData } from '@/types/api'
......
......@@ -264,7 +264,7 @@ import {
import { getUserMarkList } from '@/api/auth'
import { ref, onMounted } from 'vue'
import { val } from '@/utils'
import { showConfirm, showError } from '@/utils/ui'
import { showConfirm } from '@/utils/ui'
import { filePath } from '@/api/axios'
import { type CellCls, ElMessage } from 'element-plus'
import OrderDetail from './order/OrderDetail.vue'
......
......@@ -74,7 +74,6 @@ import { reactive, ref } from 'vue'
import { LoginReq } from '@/types/api/auth'
import type { FormInstance, FormRules } from 'element-plus'
import useUserStore from '@/store/user'
import { showError } from '@/utils/ui'
const loginFormRef = ref<FormInstance>()
const loginForm = reactive<LoginReq>({
......
......@@ -207,7 +207,7 @@ import Icon from '@/components/Icon.vue'
import { UserEditForm, userData, userSearchForm } from '@/types/api/user'
import usePageList from '@/utils/hooks/usePageList'
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 type { FormRules } from 'element-plus'
import { reactive, ref } from 'vue'
......
......@@ -149,7 +149,6 @@ import { DocumentCopy } from '@element-plus/icons-vue'
import { filePath } from '@/api/axios'
import { downloadOrder } from '@/api/order'
import { OrderData, ProductList } from '@/types/api/order'
import { showError } from '@/utils/ui'
import { PropType } from 'vue'
defineProps({
......
......@@ -179,7 +179,6 @@ import { DocumentCopy } from '@element-plus/icons-vue'
import { filePath } from '@/api/axios'
import { downloadOrder } from '@/api/order'
import { OrderData, ProductList } from '@/types/api/order'
import { showError } from '@/utils/ui'
import { PropType } from 'vue'
defineProps({
......
import { getQaOrderBySubOrderNumber, qaFinishedApi } from '@/api/order'
import { InspectionData, QaData } from '@/types/api/order'
import { useValue } from '@/utils/hooks/useValue'
import { showConfirm, showError } from '@/utils/ui'
import { showConfirm } from '@/utils/ui'
import { computed, ref } from 'vue'
export default function useQuarantine() {
......
......@@ -6,7 +6,6 @@ import {
ShipmentOrderRes,
} from '@/types/api/order'
import { useValue } from '@/utils/hooks/useValue'
import { showError } from '@/utils/ui'
import { nextTick, ref } from 'vue'
import { ShipmentType } from '../Shipment.vue'
export default function useShipment(callback?: () => void) {
......
......@@ -858,7 +858,7 @@ const [searchForm] = useValue<SearchForm>({
subOrderNumber: '',
})
const tabsNav = ref<Tab[]>([])
const splitRef = ref<never>()
const splitRef = ref<InstanceType<typeof SplitDiv>>()
const btnLoading = ref<boolean>(false)
function getStartTime() {
const date = new Date()
......@@ -1108,7 +1108,8 @@ const changeTab = (item: Tab) => {
searchForm.value.timeType = ''
search()
nextTick(()=>{
splitRef.value.domResize()
(splitRef.value)!.domResize()
})
}
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