Merge branch 'master'

This commit is contained in:
不做码农 2021-11-17 14:45:26 +08:00
commit 1c87b215bf
7 changed files with 11 additions and 13 deletions

View File

@ -137,7 +137,7 @@ namespace ZR.Admin.WebApi.Controllers.System
{ {
string uuid = Guid.NewGuid().ToString().Replace("-", ""); string uuid = Guid.NewGuid().ToString().Replace("-", "");
var code = SecurityCodeHelper.GetRandomEnDigitalText(4); var code = SecurityCodeHelper.GetRandomEnDigitalText(4);
var imgByte = SecurityCodeHelper.GetGifEnDigitalCodeByte(code); var imgByte = SecurityCodeHelper.GetEnDigitalCodeByte(code);
string base64Str = Convert.ToBase64String(imgByte); string base64Str = Convert.ToBase64String(imgByte);
CacheHelper.SetCache(uuid, code); CacheHelper.SetCache(uuid, code);
var obj = new { uuid, img = base64Str };// File(stream, "image/png") var obj = new { uuid, img = base64Str };// File(stream, "image/png")

View File

@ -482,6 +482,7 @@ namespace ZR.CodeGenerator
Create_by = genTable.Create_by, Create_by = genTable.Create_by,
Create_time = DateTime.Now, Create_time = DateTime.Now,
IsInsert = !column.IsIdentity,//非自增字段都需要插入 IsInsert = !column.IsIdentity,//非自增字段都需要插入
IsEdit = true,
IsQuery = false, IsQuery = false,
HtmlType = GenConstants.HTML_INPUT HtmlType = GenConstants.HTML_INPUT
}; };
@ -509,9 +510,9 @@ namespace ZR.CodeGenerator
genTableColumn.HtmlType = GenConstants.HTML_TEXTAREA; genTableColumn.HtmlType = GenConstants.HTML_TEXTAREA;
} }
//编辑字段 //编辑字段
if (GenConstants.COLUMNNAME_NOT_EDIT.Any(f => column.DbColumnName.Contains(f)) && !column.IsIdentity && !column.IsPrimarykey) if (column.IsIdentity || column.IsPrimarykey || GenConstants.COLUMNNAME_NOT_EDIT.Any(f => column.DbColumnName.Contains(f)) )
{ {
genTableColumn.IsEdit = true; genTableColumn.IsEdit = false;
} }
//列表字段 //列表字段
if (!GenConstants.COLUMNNAME_NOT_LIST.Any(f => column.DbColumnName.Contains(f) && !column.IsPrimarykey)) if (!GenConstants.COLUMNNAME_NOT_LIST.Any(f => column.DbColumnName.Contains(f) && !column.IsPrimarykey))

View File

@ -30,7 +30,7 @@ npm run build:prod
``` ```
# 插件说明 # 插件说明
### Autoprefixer ### Autoprefixer (已删除)
浏览器自动补全前缀 浏览器自动补全前缀
例如: 例如:
``` ```

View File

@ -51,7 +51,6 @@
"@vue/cli-plugin-babel": "4.4.4", "@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4", "@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-service": "4.4.4", "@vue/cli-service": "4.4.4",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0", "babel-eslint": "10.1.0",
"babel-plugin-dynamic-import-node": "2.3.3", "babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "4.1.0", "chalk": "4.1.0",
@ -59,13 +58,11 @@
"eslint": "6.7.2", "eslint": "6.7.2",
"eslint-plugin-vue": "6.2.2", "eslint-plugin-vue": "6.2.2",
"lint-staged": "8.1.5", "lint-staged": "8.1.5",
"node-sass": "4.14.1", "sass": "1.32.13",
"runjs": "4.3.2", "runjs": "4.4.2",
"sass-loader": "8.0.2", "sass-loader": "10.1.0",
"script-ext-html-webpack-plugin": "2.1.3", "script-ext-html-webpack-plugin": "2.1.3",
"serve-static": "1.13.2",
"svg-sprite-loader": "4.1.3", "svg-sprite-loader": "4.1.3",
"svgo": "2.8.0",
"vue-template-compiler": "2.6.12" "vue-template-compiler": "2.6.12"
}, },
"engines": { "engines": {

View File

@ -168,7 +168,7 @@ export default {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
/deep/ .el-input__inner { ::v-deep .el-input__inner {
border-radius: 0; border-radius: 0;
border: 0; border: 0;
padding-left: 0; padding-left: 0;

View File

@ -51,7 +51,7 @@
<el-checkbox v-model="scope.row.isList"></el-checkbox> <el-checkbox v-model="scope.row.isList"></el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="查询" min-width="5%"> <!-- <el-table-column label="查询" min-width="5%">
<template slot-scope="scope"> <template slot-scope="scope">
<el-checkbox v-model="scope.row.isQuery"></el-checkbox> <el-checkbox v-model="scope.row.isQuery"></el-checkbox>
</template> </template>
@ -69,7 +69,7 @@
<el-option label="BETWEEN" value="BETWEEN" /> <el-option label="BETWEEN" value="BETWEEN" />
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="显示类型" min-width="12%"> <el-table-column label="显示类型" min-width="12%">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.htmlType"> <el-select v-model="scope.row.htmlType">

Binary file not shown.