mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-29 12:30:24 +08:00
feat: 1.前端组件升级 2.redis数据操作支持string,hash,set的新增修改
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
<el-dialog :title="title" v-model="dialogVisible" :destroy-on-close="true" :show-close="true" :before-close="handleClose" width="60%">
|
||||
<div class="toolbar">
|
||||
<div style="float: left">
|
||||
<el-select v-model="type" @change="getScripts" size="mini" placeholder="请选择">
|
||||
<el-select v-model="type" @change="getScripts" size="small" placeholder="请选择">
|
||||
<el-option :key="0" label="私有" :value="0"> </el-option>
|
||||
<el-option :key="1" label="公共" :value="1"> </el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div style="float: right">
|
||||
<el-button @click="editScript(currentData)" :disabled="currentId == null" type="primary" icon="el-icon-tickets" size="mini" plain
|
||||
<el-button @click="editScript(currentData)" :disabled="currentId == null" type="primary" icon="tickets" size="small" plain
|
||||
>查看</el-button
|
||||
>
|
||||
<el-button v-auth="'machine:script:save'" type="primary" @click="editScript(null)" icon="el-icon-plus" size="mini" plain
|
||||
<el-button v-auth="'machine:script:save'" type="primary" @click="editScript(null)" icon="plus" size="small" plain
|
||||
>添加</el-button
|
||||
>
|
||||
<el-button
|
||||
@@ -20,15 +20,15 @@
|
||||
:disabled="currentId == null"
|
||||
type="danger"
|
||||
@click="deleteRow(currentData)"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
icon="delete"
|
||||
size="small"
|
||||
plain
|
||||
>删除</el-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-table :data="scriptTable" @current-change="choose" stripe border size="mini" style="width: 100%">
|
||||
<el-table :data="scriptTable" @current-change="choose" stripe border size="small" style="width: 100%">
|
||||
<el-table-column label="选择" width="55px">
|
||||
<template #default="scope">
|
||||
<el-radio v-model="currentId" :label="scope.row.id">
|
||||
@@ -45,7 +45,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
<template #default="scope">
|
||||
<el-button v-if="scope.row.id == null" @click="addFiles(scope.row)" type="success" icon="el-icon-success" size="mini" plain
|
||||
<el-button v-if="scope.row.id == null" @click="addFiles(scope.row)" type="success" icon="el-icon-success" size="small" plain
|
||||
>确定</el-button
|
||||
>
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
v-if="scope.row.id != null"
|
||||
@click="runScript(scope.row)"
|
||||
type="primary"
|
||||
icon="el-icon-tickets"
|
||||
size="mini"
|
||||
icon="video-play"
|
||||
size="small"
|
||||
plain
|
||||
>执行</el-button
|
||||
>
|
||||
@@ -65,14 +65,14 @@
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="脚本参数" v-model="scriptParamsDialog.visible" width="400px">
|
||||
<el-form ref="paramsForm" :model="scriptParamsDialog.params" label-width="70px" size="mini">
|
||||
<el-form ref="paramsForm" :model="scriptParamsDialog.params" label-width="70px" size="small">
|
||||
<el-form-item v-for="item in scriptParamsDialog.paramsFormItem" :key="item.name" :prop="item.model" :label="item.name" required>
|
||||
<el-input v-model="scriptParamsDialog.params[item.model]" :placeholder="item.placeholder" autocomplete="off"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button type="primary" @click="hasParamsRun(currentData)" size="mini">确 定</el-button>
|
||||
<el-button type="primary" @click="hasParamsRun(currentData)" size="small">确 定</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
Reference in New Issue
Block a user