|
@@ -124,7 +124,7 @@
|
|
|
import api from '@/api';
|
|
import api from '@/api';
|
|
|
import { ElTag, ElMessage } from 'element-plus'
|
|
import { ElTag, ElMessage } from 'element-plus'
|
|
|
import ImagePreview from '@/components/ImagePreview/index.vue';
|
|
import ImagePreview from '@/components/ImagePreview/index.vue';
|
|
|
-import { FormRules, FormInstance, UploadFile, ComponentSize, ElMessageBox } from 'element-plus';
|
|
|
|
|
|
|
+import { FormRules, FormInstance, ComponentSize, ElMessageBox } from 'element-plus';
|
|
|
|
|
|
|
|
interface Column {
|
|
interface Column {
|
|
|
key?: string,
|
|
key?: string,
|
|
@@ -152,7 +152,7 @@ const cpmpanyform = reactive({
|
|
|
logo: "",//图片id
|
|
logo: "",//图片id
|
|
|
id: '',
|
|
id: '',
|
|
|
})
|
|
})
|
|
|
-const validateCode = (rule: any, value: any, callback: any) => {
|
|
|
|
|
|
|
+const validateCode = (_rule: any, value: any, callback: any) => {
|
|
|
// 定义正则表达式,例如:只允许字母、数字,长度在4到10个字符之间
|
|
// 定义正则表达式,例如:只允许字母、数字,长度在4到10个字符之间
|
|
|
const codeRegex = /^[A-Z0-9]+$/i;
|
|
const codeRegex = /^[A-Z0-9]+$/i;
|
|
|
// 判断是否为空
|
|
// 判断是否为空
|
|
@@ -447,7 +447,7 @@ const sysIconupload = (file: any) => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-const handleRemove = (file: UploadFile) => {
|
|
|
|
|
|
|
+const handleRemove = () => {
|
|
|
sysIconList.url = '';
|
|
sysIconList.url = '';
|
|
|
uploadDisabled.value = false;
|
|
uploadDisabled.value = false;
|
|
|
|
|
|