优化代码生成模板

This commit is contained in:
不做码农
2021-11-28 15:20:00 +08:00
parent 8dc832cdbd
commit 9292396bb2
6 changed files with 63 additions and 22 deletions

View File

@@ -6,7 +6,6 @@ using Microsoft.Extensions.Options;
using System;
using System.IO;
using ZR.Admin.WebApi.Filters;
using ZR.Common;
namespace ZR.Admin.WebApi.Controllers
{

View File

@@ -148,7 +148,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.{PrimaryKey});
this.single = selection.length !=1
this.single = selection.length != 1
this.multiple = !selection.length;
},
/** 搜索按钮操作 */
@@ -174,14 +174,13 @@ export default {
this.reset();
const {PrimaryKey} = row.{PrimaryKey} || this.ids;
get{ModelTypeName}({PrimaryKey}).then((res) => {
if(res.code == 200){
if (res.code == 200) {
this.form = res.data;
this.open = true;
this.title = "修改数据";
}
});
},
beforeFileUpload(file) { },
{vueJsMethod}
/** 提交按钮 */
submitForm: function () {