2.5.3beta版本提升 (#1116)

* element-ui升级至2.2.2 部分标签存在重大变化,请重新安装依赖

* popover变更

* 增加真实的天气信息获取

* 天气功能抽离方便二开清理

* 侧边栏css优化

* 版本提升为2.5.3beta

Co-authored-by: task <121913992@qq.com>
This commit is contained in:
奇淼(piexlmax
2022-06-03 21:42:45 +08:00
committed by GitHub
co-authored by task
parent af5761bce1
commit bd5bd83efe
26 changed files with 135 additions and 87 deletions
+12 -8
View File
@@ -108,30 +108,33 @@
<template #default="scope">
<el-button
size="small"
type="text"
type="primary"
link
icon="edit"
@click="editAndAddField(scope.row)"
>编辑</el-button>
<el-button
size="small"
type="text"
type="primary"
link
:disabled="scope.$index === 0"
@click="moveUpField(scope.$index)"
>上移</el-button>
<el-button
size="small"
type="text"
type="primary"
link
:disabled="(scope.$index + 1) === form.fields.length"
@click="moveDownField(scope.$index)"
>下移</el-button>
<el-popover v-model:visible="scope.row.visible" placement="top">
<el-popover v-model="scope.row.visible" placement="top">
<p>确定删除吗?</p>
<div style="text-align: right; margin-top: 8px;">
<el-button size="small" type="text" @click="scope.row.visible = false">取消</el-button>
<el-button size="small" type="primary" link @click="scope.row.visible = false">取消</el-button>
<el-button type="primary" size="small" @click="deleteField(scope.$index)">确定</el-button>
</div>
<template #reference>
<el-button size="small" type="text" icon="delete" @click="scope.row.visible = true">删除</el-button>
<el-button size="small" type="primary" link icon="delete" @click="scope.row.visible = true">删除</el-button>
</template>
</el-popover>
</template>
@@ -215,8 +218,8 @@ const form = ref({
package: '',
abbreviation: '',
description: '',
autoCreateApiToSql: false,
autoMoveFile: false,
autoCreateApiToSql: true,
autoMoveFile: true,
fields: []
})
const rules = ref({
@@ -415,6 +418,7 @@ const getColumnFunc = async() => {
form.value.abbreviation = tbHump
form.value.description = tbHump + '表'
form.value.autoCreateApiToSql = true
form.value.autoMoveFile = true
form.value.fields = []
res.data.columns &&
res.data.columns.forEach(item => {
@@ -39,10 +39,10 @@
<el-table-column align="left" label="操作" min-width="240">
<template #default="scope">
<div>
<el-button size="small" type="text" :disabled="scope.row.flag === 1" @click="rollbackFunc(scope.row,true)">回滚(删表)</el-button>
<el-button size="small" type="text" :disabled="scope.row.flag === 1" @click="rollbackFunc(scope.row,false)">回滚(不删表)</el-button>
<el-button size="small" type="text" @click="goAutoCode(scope.row)">复用</el-button>
<el-button size="small" type="text" @click="deleteRow(scope.row)">删除</el-button>
<el-button size="small" type="primary" link :disabled="scope.row.flag === 1" @click="rollbackFunc(scope.row,true)">回滚(删表)</el-button>
<el-button size="small" type="primary" link :disabled="scope.row.flag === 1" @click="rollbackFunc(scope.row,false)">回滚(不删表)</el-button>
<el-button size="small" type="primary" link @click="goAutoCode(scope.row)">复用</el-button>
<el-button size="small" type="primary" link @click="deleteRow(scope.row)">删除</el-button>
</div>
</template>
</el-table-column>
+1 -1
View File
@@ -15,7 +15,7 @@
<el-button
icon="delete"
size="small"
type="text"
type="primary" link
@click="deleteApiFunc(scope.row)"
>删除</el-button>
</template>