@@ -77,7 +77,6 @@ import { FileUploadResult } from '@/views/link/plugin/typings'
import { add, vailIdFn } from '@/api/link/plugin'
import { message } from 'jetlinks-ui-components'
import { TypeMap } from './util'
-import { start } from '@/api/link/type'
const props = defineProps({
data: {
diff --git a/src/views/link/plugin/UploadFile.vue b/src/views/link/plugin/UploadFile.vue
index 18127ee3..c96f619d 100644
--- a/src/views/link/plugin/UploadFile.vue
+++ b/src/views/link/plugin/UploadFile.vue
@@ -9,12 +9,12 @@
@change="handleChange"
class="upload-box"
:before-upload="beforeUpload"
- :disabled='disabled || loading'
+ :disabled='loading'
:maxCount='1'
>
- 上传文件
- 格式要求:{文件名}.jar
+ 上传文件
+ 格式要求:{文件名}.jar/{文件名}.zip
@@ -51,9 +51,9 @@ const loading = ref(false);
const beforeUpload: UploadProps['beforeUpload'] = (file, fl) => {
const arr = file.name.split('.');
- const isFile = ['jar'].includes(arr[arr.length - 1]); // file.type === 'application/zip' || file.type === 'application/javj-archive'
+ const isFile = ['jar', 'zip'].includes(arr[arr.length - 1]); // file.type === 'application/zip' || file.type === 'application/javj-archive'
if (!isFile) {
- onlyMessage('请上传.jar格式的文件', 'error');
+ onlyMessage('请上传.jar,.zip格式的文件', 'error');
loading.value = false;
}
return isFile;
diff --git a/src/views/link/plugin/index.vue b/src/views/link/plugin/index.vue
index d30f8cfb..15331fe8 100644
--- a/src/views/link/plugin/index.vue
+++ b/src/views/link/plugin/index.vue
@@ -29,8 +29,12 @@
:value="slotProps"
:showStatus='false'
:actions='getActions(slotProps)'
+ :statusNames='{
+ processing: "processing"
+ }'
status='processing'
>
+
-
-
- {{ slotProps.name }}
-
-
+
+
+ {{ slotProps.version }}
+
+
+
+ {{ slotProps.name }}
+
+
+
@@ -258,6 +267,8 @@ onMounted(() => {
-
\ No newline at end of file