소스 검색

fix: 修改插件管理的必填项和去掉详情按钮

yanglzh 2 년 전
부모
커밋
7685ec53e2
2개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 3
      src/views/system/monitor/plugin/edit.vue
  2. 1 2
      src/views/system/monitor/plugin/index.vue

+ 3 - 3
src/views/system/monitor/plugin/edit.vue

@@ -95,9 +95,9 @@ const ruleForm = {
 	title: [ruleRequired('标题不能为空')],
 	version: [ruleRequired('版本不能为空')],
 	author: [ruleRequired('作者不能为空')],
-	icon: [ruleRequired('插件图标不能为空')],
-	command: [ruleRequired('运行指令不能为空')],
-	args: [ruleRequired('指令参数不能为空')],
+	// icon: [ruleRequired('插件图标不能为空')],
+	// command: [ruleRequired('运行指令不能为空')],
+	// args: [ruleRequired('指令参数不能为空')],
 }
 
 const onSubmit = async () => {

+ 1 - 2
src/views/system/monitor/plugin/index.vue

@@ -45,9 +45,8 @@
 						<el-tag type="info" size="small" v-else>-</el-tag>
 					</template>
 				</el-table-column>
-				<el-table-column label="操作" width="240" align="center" fixed="right" v-col="'handle'">
+				<el-table-column label="操作" width="180" align="center" fixed="right" v-col="'handle'">
 					<template #default="scope">
-						<el-button size="small" type="primary" link v-auth="'detail'">详情</el-button>
 						<el-button :disabled="scope.row.status == 0" type="warning" size="small" link @click="changeStatus(scope.row, 0)" v-auth="'stop'"
 							>停用</el-button
 						>