!253 fix:导入sql文件报错的问题、优化el-dialog

Merge pull request !253 from 颗粒/master
pull/2/head
芋道源码 2022-08-18 14:15:57 +00:00 committed by Gitee
commit 7c8914a34f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 17 additions and 8 deletions

View File

@ -2657,8 +2657,3 @@ INSERT INTO `system_users` (`id`, `username`, `password`, `nickname`, `remark`,
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;
--
INSERT INTO `system_menu` VALUES (1281, '', '', 1, 12, 0, '/visualization', 'chart', NULL, 0, b'1', b'1', '1', '2022-07-10 20:22:15', '1', '2022-07-10 20:33:30', b'0');
INSERT INTO `system_menu` VALUES (1282, '', '', 2, 1, 1281, 'jm-report', '#', 'visualization/jm/index', 0, b'1', b'1', '1', '2022-07-10 20:26:36', '1', '2022-07-10 20:33:26', b'0');

View File

@ -253,7 +253,7 @@ create table product_sku
collate utf8mb4_general_ci;
---Market-BannerSQL
-- Market-BannerSQL
drop table if exists market_banner;
CREATE TABLE `market_banner` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Banner',
@ -273,7 +273,7 @@ CREATE TABLE `market_banner` (
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='Banner';
-- SQL
INSERT INTO `system_menu`(`id`,`name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `status`)
VALUES (2002, 'Banner', '', 2, 1, 2000, 'brand', '', 'mall/market/banner/index', 0);
VALUES (2026, 'Banner', '', 2, 1, 2000, 'brand', '', 'mall/market/banner/index', 0);
-- ID
SELECT @parentId := LAST_INSERT_ID();
-- SQL

View File

@ -96,7 +96,7 @@
@pagination="getList"/>
<!-- 对话框(添加 / 修改) -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog :title="title" :visible.sync="open" width="500px" v-dialogDrag append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
#foreach($column in $columns)
#if ($column.createOperation || $column.updateOperation)

View File

@ -71,6 +71,16 @@
padding: 10px 20px 0;
}
.el-dialog{
display: flex;
flex-direction: column;
max-width: calc(100% - 30px);
max-height: calc(100% - 70px);
.el-dialog__body {
overflow: auto;
}
}
.el-table {
.el-table__header-wrapper, .el-table__fixed-header-wrapper {
th {

View File

@ -70,6 +70,10 @@ console.log(request)
Vue.prototype.$axios = request
import '@/styles/index.scss'
// 默认点击背景不关闭弹窗
import ElementUI from 'element-ui'
ElementUI.Dialog.props.closeOnClickModal.default = false
/**
* If you don't want to use mock-server
* you want to use MockJs for mock api