盘料入库绑定周转箱(部分)
This commit is contained in:
parent
85a2ad05c3
commit
eeafb20012
@ -8,6 +8,8 @@ using HHWMS.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
@ -28,7 +30,7 @@ namespace HHWMS.Web.Controllers
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
/* [ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
public string Search(ReceiptDetailListVM vm)
|
||||
{
|
||||
@ -36,23 +38,51 @@ namespace HHWMS.Web.Controllers
|
||||
vm.Searcher.Limit = vm.FC.GetValue<int>("Limit");
|
||||
vm.Searcher.ReceiptHeaderId = vm.FC.GetValue<int>("Code");
|
||||
return vm.GetJson(false);
|
||||
}*/
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult<dynamic> SelectReceiptCode()
|
||||
{
|
||||
var data = _unitwork.Find<ReceiptHeader>(x => x.FirstStatus < ReceiptStatusEnum.回传)
|
||||
.Select(x => new { label = x.Code, value = x.Code });
|
||||
return JsonMore(data);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult<dynamic> SelectReceipt(string Code)
|
||||
{
|
||||
var data = _unitwork.Find<ReceiptHeader>(x => x.Code == Code).Include(x => x.ReceiptDetails).FirstOrDefault();
|
||||
var result = data.ReceiptDetails;
|
||||
return JsonMore(result);
|
||||
if(data != null)
|
||||
{
|
||||
var result = data.ReceiptDetails.Select(x => new { name = x.MaterialCode });
|
||||
return JsonMore(result);
|
||||
}
|
||||
else
|
||||
{
|
||||
return JsonMore(null);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 入库盘料绑定操作
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public IActionResult Test(string Code, string code2, string code3, string code4)
|
||||
public dynamic BindingData(List<Binding> data)
|
||||
{
|
||||
return FFResult().Message("success");
|
||||
// 查找明细,修改对应状态,并且 绑定物料周转箱
|
||||
return new ApiJsonResult<object> { Success = true };
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
public class Binding
|
||||
{
|
||||
public string UniqueCode { get; set; }
|
||||
public string BoxCode { get; set; }
|
||||
public int Index { get; set; }
|
||||
public int Size { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,117 +1,277 @@
|
||||
@model HHWMS.Web.ReceiptInListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
<el-row id="app" :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-card class="box-card" :span="8">
|
||||
<el-select v-model="value" clearable filterable placeholder="请选择单据" size="big" style="width:100%"
|
||||
@@change="changeselect">
|
||||
<el-option v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
<div class="layui-bg-gray" style="padding: 16px;">
|
||||
<div class="layui-row layui-col-space15">
|
||||
<el-table :data="tableData" height="700" border
|
||||
style="width: 100%">
|
||||
<el-table-column prop="name"
|
||||
label="唯一码"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="18">
|
||||
<el-card class="box-card" :span="16">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="单据名称">
|
||||
<el-input v-model="form.code" readonly></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="周转箱编码" prop="boxCode">
|
||||
<el-input v-model="form.boxCode" @@change="scanBox"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="料盘尺寸" prop="size">
|
||||
<el-select v-model="form.size" placeholder="请选择料盘尺寸" style="width:100%" @@change="changeSize" clearable>
|
||||
<el-option v-for="item in form.boxSize"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="唯一码" prop="uniqueCode">
|
||||
<el-input v-model="form.uniqueCode" @@change="scanUniqueCode" ref="uniqueCode"></el-input>
|
||||
</el-form-item>
|
||||
<el-table :data="bindingData" height="450" border
|
||||
style="width: 100%">
|
||||
<el-table-column fixed="left"
|
||||
label="操作"
|
||||
width="120"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button @@click.native.prevent="deleteRow(scope.$index, bindingData)"
|
||||
type="text"
|
||||
size="small">
|
||||
移除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入库单编码" align="center" prop="receiptCode" v-if="false"></el-table-column>
|
||||
<el-table-column label="周转箱" align="center" prop="boxCode"></el-table-column>
|
||||
<el-table-column label="索引" align="center" prop="index"></el-table-column>
|
||||
<el-table-column label="唯一码" align="center" prop="uniqueCode"></el-table-column>
|
||||
<el-table-column label="料盘尺寸" align="center" prop="size" :formatter="sizeFormatter"></el-table-column>
|
||||
</el-table>
|
||||
<el-form-item style="float:right">
|
||||
<el-button type="primary" @@click="onSubmit">绑定</el-button>
|
||||
<el-button @@click="resetForm('form')">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<div class="layui-col-md3">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<wt:searchpanel vm="@Model" reset-btn="true" grid-id="header" expanded="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.One">
|
||||
<wt:combobox field="Searcher.Code" items="Codes" hide-label="true" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" id="header" url="/receipt/ReceiptIn/Search"
|
||||
hidden-checkbox="true"
|
||||
hidden-grid-index="true"
|
||||
need-show-filter="false"
|
||||
need-show-print="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-col-md9">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<form class="layui-form layui-form-pane" action="form.html">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">单号</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="Code" autocomplete="off" placeholder="请输入" lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">周转箱编码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="BoxCode" autocomplete="off" placeholder="请输入" lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">料盘尺寸</label>
|
||||
<div class="layui-input-inline">
|
||||
<select name="Size" lay-filter="size">
|
||||
<option value=""></option>
|
||||
<option value="0" selected>6mm</option>
|
||||
<option value="1">8mm</option>
|
||||
<option value="2">16mm</option>
|
||||
<option value="3">24mm</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">唯一码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="UniqueCode" autocomplete="off" placeholder="请输入" lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<button class="layui-btn" lay-submit lay-filter="sub">确认</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var boxId = "";
|
||||
function scanBox(data) {
|
||||
boxId = data;
|
||||
}
|
||||
|
||||
layui.use(['form'], function () {
|
||||
var form = layui.form;
|
||||
var layer = layui.layer;
|
||||
// 提交事件
|
||||
form.on('submit(sub)', function (data) {
|
||||
var field = data.field; // 获取表单字段值
|
||||
// 显示填写结果,仅作演示用
|
||||
layer.alert(JSON.stringify(field), {
|
||||
title: '当前填写的字段值'
|
||||
var app = new Vue({
|
||||
el: '#app',
|
||||
data() {
|
||||
var validatePass = (rule, value, callback) => {
|
||||
if (value === '') {
|
||||
callback(new Error('请输入周转箱编码'));
|
||||
}
|
||||
else if (value == 'M00000001' || value == 'M00000002' || value == 'E00000001' || value == 'E00000002') {
|
||||
callback();
|
||||
} else {
|
||||
callback(new Error('请输入正确周转箱编码'));
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
form: {
|
||||
code: '',
|
||||
boxCode: '',
|
||||
boxSize: [],
|
||||
size: '',
|
||||
uniqueCode: ''
|
||||
},
|
||||
options: [],
|
||||
value: '',
|
||||
tableData: [],
|
||||
bindingData: [],
|
||||
dataIndex:[],
|
||||
rules: {
|
||||
boxCode: [
|
||||
{ validator: validatePass, trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted: function() {
|
||||
// 获取所有单据编码
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data:{},
|
||||
url: "/receipt/ReceiptIn/SelectReceiptCode",
|
||||
success: function (json) {
|
||||
app.options = json.Data;
|
||||
},
|
||||
error: function (json) {
|
||||
alert("加载失败");
|
||||
}
|
||||
});
|
||||
// 此处可执行 Ajax 等操作
|
||||
// …
|
||||
return false; // 阻止默认 form 跳转
|
||||
});
|
||||
});
|
||||
|
||||
layui.use(['form','table'], function () {
|
||||
var table = layui.table;
|
||||
var form = layui.form;
|
||||
var layer = layui.layer;
|
||||
|
||||
table.reload('header', {
|
||||
height: 'full-300'
|
||||
, page: false // 是否显示分页
|
||||
});
|
||||
|
||||
form.render("select");
|
||||
|
||||
form.on('select(size)', function(data){
|
||||
|
||||
});
|
||||
|
||||
form.on('submit(sub)', function (data) {
|
||||
var field = data.field; // 获取表单字段值
|
||||
// 显示填写结果,仅作演示用
|
||||
layer.alert(JSON.stringify(field), {
|
||||
title: '当前填写的字段值'
|
||||
});
|
||||
// 此处可执行 Ajax 等操作
|
||||
// …
|
||||
return false; // 阻止默认 form 跳转
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
sizeFormatter(row) {
|
||||
return row.size + 'mm';
|
||||
},
|
||||
onSubmit() {
|
||||
var _this = this;
|
||||
console.log('submit!');
|
||||
console.log(this.form);
|
||||
|
||||
// 提交已绑定数据
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { data: _this.bindingData },
|
||||
url: "/receipt/ReceiptIn/BindingData",
|
||||
success: function (json) {
|
||||
if (json.Success) {
|
||||
_this.$message({
|
||||
message: '绑定成功!'
|
||||
});
|
||||
_this.resetForm('form');
|
||||
}
|
||||
else{
|
||||
_this.$message({
|
||||
message: '绑定失败!',
|
||||
type: 'warning'
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: '绑定失败!',
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
resetForm(formName) {
|
||||
this.$refs[formName].resetFields();
|
||||
this.form.boxSize = [];
|
||||
this.bindingData = [];
|
||||
},
|
||||
// 选择单据后,查询明细
|
||||
changeselect(data) {
|
||||
var _this = this;
|
||||
_this.form.code = data;
|
||||
// 调用后台方法,查询单据明细数据
|
||||
if (data != "") {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { Code: data },
|
||||
url: "/receipt/ReceiptIn/SelectReceipt",
|
||||
success: function (json) {
|
||||
_this.tableData = json.Data;
|
||||
// 对比待绑定列表,删除在其表内的明细
|
||||
_this.bindingData.forEach(function (item) {
|
||||
_this.tableData.forEach(function (value, index, arr) {
|
||||
if (value.name == item.uniqueCode) {
|
||||
arr.splice(index, 1);
|
||||
}
|
||||
});
|
||||
})
|
||||
console.log(json.Data);
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: '加载单据明细失败!',
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// 扫描周转箱
|
||||
scanBox(data){
|
||||
this.form.size = '';
|
||||
this.form.boxSize = [];
|
||||
if (data == "M00000001" || data == "M00000002") {
|
||||
this.form.boxSize = [{ label: "8mm", value: "8" }]
|
||||
this.form.size = this.form.boxSize[0].value;
|
||||
this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
|
||||
}
|
||||
else if (data == "E00000001" || data == "E00000002") {
|
||||
this.form.boxSize = [{ label: "10mm", value: "10" }, { label: "16mm", value: "16" }, { label: "24mm", value: "24" }];
|
||||
this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
|
||||
}
|
||||
else {
|
||||
this.$message({
|
||||
message: '输入周转箱编码不正确!',
|
||||
type: 'warning'
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.$refs.uniqueCode.focus();
|
||||
},
|
||||
// 选择尺寸后
|
||||
changeSize() {
|
||||
this.$refs.uniqueCode.focus();
|
||||
},
|
||||
// 扫描唯一码
|
||||
scanUniqueCode(data) {
|
||||
if (this.dataIndex.length == 0) {
|
||||
this.$message({
|
||||
message: '该周转箱已放满!',
|
||||
type: 'warning'
|
||||
});
|
||||
this.form.uniqueCode = '';
|
||||
return;
|
||||
}
|
||||
if (this.form.boxCode == '' || this.form.size == '') {
|
||||
this.$message({
|
||||
message: '请先输入周转箱编码并选择料盘尺寸!',
|
||||
type: 'warning'
|
||||
});
|
||||
this.form.uniqueCode = '';
|
||||
return;
|
||||
}
|
||||
var isExit = this.tableData.findIndex(function (value, index, arr) {
|
||||
return value.name == data;
|
||||
})
|
||||
if (isExit == -1) {
|
||||
this.$message({
|
||||
message: '唯一码'+ data + '不正确!',
|
||||
type: 'warning'
|
||||
});
|
||||
this.form.uniqueCode = '';
|
||||
return;
|
||||
}
|
||||
// 1.明细减少
|
||||
this.tableData.forEach(function (item, index, arr) {
|
||||
if (item.name == data) {
|
||||
arr.splice(index, 1);
|
||||
}
|
||||
});
|
||||
// 2.已扫描增加
|
||||
this.bindingData.push({
|
||||
receiptCode: this.form.code,
|
||||
boxCode: this.form.boxCode,
|
||||
index: this.dataIndex.shift(),
|
||||
uniqueCode : data,
|
||||
size: this.form.size
|
||||
})
|
||||
this.form.uniqueCode = '';
|
||||
},
|
||||
// 删除已绑定行
|
||||
deleteRow(index, rows) {
|
||||
if (this.form.code == rows[index].receiptCode) {
|
||||
this.tableData.push({ name: rows[index].uniqueCode });
|
||||
}
|
||||
this.dataIndex.unshift(rows[index].index);
|
||||
rows.splice(index, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -1,36 +0,0 @@
|
||||
//
|
||||
// GlobalConfig.cs
|
||||
//
|
||||
// Author:
|
||||
// vito <wuwenhao0327@gmail.com>
|
||||
//
|
||||
// Copyright (c) 2019
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public class GlobalConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 站点监听地址
|
||||
/// </summary>
|
||||
public string ApplicationUrl { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -37,6 +37,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
|
||||
<PackageReference Include="EfCore.SchemaCompare" Version="6.0.0" />
|
||||
<PackageReference Include="Google.Protobuf" Version="3.19.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.11">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
||||
@ -107,10 +107,6 @@ app.Run();
|
||||
{
|
||||
List<IDataPrivilege> pris = new List<IDataPrivilege>();
|
||||
//Add data privilege to specific type
|
||||
//指定哪些模型需要数据权限
|
||||
//pris.Add(new DataPrivilegeInfo<City>("城市权限", m => m.Name));
|
||||
//pris.Add(new DataPrivilegeInfo<School>("学校权限", m => m.SchoolName));
|
||||
//pris.Add(new DataPrivilegeInfo<Major>("专业权限", m => m.MajorName));
|
||||
return pris;
|
||||
}
|
||||
|
||||
|
||||
@ -1,268 +0,0 @@
|
||||
@model WalkingTec.Mvvm.Core.BaseVM
|
||||
@using System.Text.Json
|
||||
|
||||
<div class="layui-row layui-col-space15" id="frontpage" >
|
||||
<div class="layui-col-md8">
|
||||
<div class="layui-row layui-col-space15">
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">快捷方式</div>
|
||||
<div class="layui-card-body">
|
||||
|
||||
<div class="layui-carousel layadmin-carousel layadmin-shortcut">
|
||||
<div carousel-item>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkUser/Index">
|
||||
<i class="layui-icon layui-icon-username"></i>
|
||||
<cite>用户</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkRole/Index">
|
||||
<i class="layui-icon layui-icon-tabs"></i>
|
||||
<cite>角色</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkMenu/Index">
|
||||
<i class="layui-icon layui-icon-app"></i>
|
||||
<cite>菜单</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/FrameworkGroup/Index">
|
||||
<i class="layui-icon layui-icon-user"></i>
|
||||
<cite>用户组</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/DataPrivilege/Index">
|
||||
<i class="layui-icon layui-icon-auz"></i>
|
||||
<cite>数据权限</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a lay-href="_Admin/ActionLog/Index">
|
||||
<i class="layui-icon layui-icon-console"></i>
|
||||
<cite>日志</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a href="/_codegen/index" target="_blank">
|
||||
<i class="layui-icon layui-icon-template-1"></i>
|
||||
<cite>代码生成</cite>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs3">
|
||||
<a href="https://wtmdoc.walkingtec.cn" target="_blank">
|
||||
<i class="layui-icon layui-icon-read"></i>
|
||||
<cite>文档</cite>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">WTM开源</div>
|
||||
<div class="layui-card-body">
|
||||
|
||||
<div class="layui-carousel layadmin-carousel layadmin-backlog">
|
||||
<div carousel-item>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://localhost:5001/_framework/RemoteEntry?redirect=%2F%23%2F_Admin%2FActionLog%2FIndex&_remotetoken=@Model.LoginUserInfo.RemoteToken" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>5001</h3>
|
||||
<p><cite id="githubstar"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="http://localhost:52836/_framework/RemoteEntry?_remotetoken=@Model.LoginUserInfo.RemoteToken" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>52836</h3>
|
||||
<p><cite id="githubfork"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://localhost:6001/RemoteEntry?_remotetoken=@Model.LoginUserInfo.RemoteToken" class="layadmin-backlog-body"
|
||||
target="_blank">
|
||||
<h3>6001</h3>
|
||||
<p><cite id="githubwatch"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="layui-col-xs6">
|
||||
<a href="https://github.com/dotnetcore/WTM/issues" class="layadmin-backlog-body" target="_blank">
|
||||
<h3>Issue</h3>
|
||||
<p><cite id="githubissue"></cite></p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-row layui-col-space10">
|
||||
<li class="layui-col-xs12">
|
||||
<span style="font-size:16px;line-height:50px;">WTM是纯开源免费框架,如果喜欢,来GitHub赏个星~~</span>
|
||||
|
||||
<p style="text-align:center">
|
||||
<a href="https://github.com/dotnetcore/wtm" target="_blank"
|
||||
style="background-color:#eee;background-image:linear-gradient(to bottom, #fcfcfc 0, #eee 100%);background-repeat:no-repeat;border:1px solid #d5d5d5;color:#333;padding:3px 10px 3px 8px;font-size:16px;line-height:22px">
|
||||
<span width="20"
|
||||
style="width:20px;height:20px;font-size:16px;line-height:22px;box-sizing:border-box; background-size:100% 100%; background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjQwcHgiIGhlaWdodD0iNDBweCIgdmlld0JveD0iMTIgMTIgNDAgNDAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMTIgMTIgNDAgNDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiMzMzMzMzMiIGQ9Ik0zMiAxMy40Yy0xMC41IDAtMTkgOC41LTE5IDE5YzAgOC40IDUuNSAxNS41IDEzIDE4YzEgMC4yIDEuMy0wLjQgMS4zLTAuOWMwLTAuNSAwLTEuNyAwLTMuMiBjLTUuMyAxLjEtNi40LTIuNi02LjQtMi42QzIwIDQxLjYgMTguOCA0MSAxOC44IDQxYy0xLjctMS4yIDAuMS0xLjEgMC4xLTEuMWMxLjkgMC4xIDIuOSAyIDIuOSAyYzEuNyAyLjkgNC41IDIuMSA1LjUgMS42IGMwLjItMS4yIDAuNy0yLjEgMS4yLTIuNmMtNC4yLTAuNS04LjctMi4xLTguNy05LjRjMC0yLjEgMC43LTMuNyAyLTUuMWMtMC4yLTAuNS0wLjgtMi40IDAuMi01YzAgMCAxLjYtMC41IDUuMiAyIGMxLjUtMC40IDMuMS0wLjcgNC44LTAuN2MxLjYgMCAzLjMgMC4yIDQuNyAwLjdjMy42LTIuNCA1LjItMiA1LjItMmMxIDIuNiAwLjQgNC42IDAuMiA1YzEuMiAxLjMgMiAzIDIgNS4xYzAgNy4zLTQuNSA4LjktOC43IDkuNCBjMC43IDAuNiAxLjMgMS43IDEuMyAzLjVjMCAyLjYgMCA0LjYgMCA1LjJjMCAwLjUgMC40IDEuMSAxLjMgMC45YzcuNS0yLjYgMTMtOS43IDEzLTE4LjFDNTEgMjEuOSA0Mi41IDEzLjQgMzIgMTMuNHoiLz48L3N2Zz4=')"> </span>
|
||||
<span>Stars <cite id="githubstars"></cite></span>
|
||||
</a>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">控制器</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart is-horizontal="true" show-legend="true" show-tooltip="true" type="Bar" height="300" trigger-url="/Home/GetActionChart" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">模型</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart show-legend="false" show-tooltip="true" type="PieHollow" height="300" trigger-url="/Home/GetModelChart" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md12">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">模拟数据</div>
|
||||
<div class="layui-card-body">
|
||||
<wt:chart is-horizontal="true" type="Scatter" height="400" trigger-url="/Home/GetSampleChart" radius="50" name-x="X" name-y="Y" name-category="C" name-addition="A"/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-col-md4">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">版本信息</div>
|
||||
<div class="layui-card-body layui-text">
|
||||
@if (Model.ConfigInfo.IsQuickDebug == true)
|
||||
{
|
||||
<p>你正在使用<font color="Red">调试模式</font>,在调试模式下,框架会:</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">1</span> 反射所有controller下的Index方法作为左侧菜单</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">2</span> 登陆时自动添加用户名和密码</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">3</span> 跳过权限验证</p>
|
||||
<p>
|
||||
修改appsettings文件中的IsQuickDebug可关闭调试模式,<a href="http://wtmdoc.walkingtec.cn/#/QuickStart/FAQ" target="_blank">详见文档</a>
|
||||
</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>你正在使用普通模式,普通模式是项目发布后应该使用的模式,框架会:</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">1</span> 从数据库读取菜单和权限配置</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">2</span> 验证所有访问地址的权限</p>
|
||||
<p><span class="layui-badge layui-bg-cyan">3</span> 不再输出各类调试信息</p>
|
||||
<p>
|
||||
修改appsettings文件中的IsQuickDebug可开启调试模式,<a href="http://wtmdoc.walkingtec.cn/#/QuickStart/FAQ" target="_blank">详见文档</a>
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">框架特点</div>
|
||||
<div class="layui-card-body layadmin-takerates">
|
||||
<ul>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>一键生成WTM项目</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>一键生成增删改查,导入导出,批量操作代码</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持一对多,多对多关联模型的识别和代码生成</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持分离和不分离两种模式</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持sqlserver,mysql,pgsql三种数据库</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>封装了Layui,AntD,Element的大部分控件,编写前台更加简便</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>提供了很多基类,封装了绝大部分后台常用操作</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>提供了用户,角色,用户组,菜单,日志等常用模块</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持数据权限的开发和配置</li>
|
||||
<li><i class="layui-icon layui-icon-ok"></i>支持读写分离和数据库分库</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-header">
|
||||
作者的话
|
||||
<i class="layui-icon layui-icon-tips" lay-tips="从善如登" lay-offset="5"></i>
|
||||
</div>
|
||||
<div class="layui-card-body layui-text layadmin-text">
|
||||
<p>
|
||||
WTM框架,全称WalkingTec
|
||||
MVVM(不是“我特么”的拼音首字母),WTM是一个快速开发框架,有多快?至少目前dotnetcore的开源项目中,我还没有见到更接地气,开发速度更快的框架。WTM的设计理念就是最大程度的加快开发速度,降低开发成本。
|
||||
</p>
|
||||
<p>
|
||||
国内Java一家独大原因很多,有BAT的示范效应,也有微软自己战略的失误。好在微软这两年终于想明白了, dotnet
|
||||
core的横空出世和收购github都是非常正确的方向。当然要想达到java一样的生态还有很长的路要走,那我就贡献一点绵薄之力吧。
|
||||
</p>
|
||||
<p>
|
||||
WTM开源以来,受到了越来越多开发者的喜爱,WTM必将以更加成熟稳定的姿态回报各位的喜爱。特别鸣谢贤心(<a href="http://www.layui.com/"
|
||||
target="_blank">layui.com</a>),授权WTM开发的项目可以免费使用其收费版的LayuiAdmin。提高自己,造福他人,吾道不孤!
|
||||
</p>
|
||||
<p>
|
||||
—— 框架开源地址:<a href="https://github.com/dotnetcore/WTM" target="_blank">https://github.com/dotnetcore/WTM</a>
|
||||
</p>
|
||||
<p>—— 框架在线文档:<a href="https://wtmdoc.walkingtec.cn" target="_blank">https://wtmdoc.walkingtec.cn</a></p>
|
||||
<p>—— 框架QQ交流群:694148336</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$("#frontpage").parents(".layui-card").css("background-color", "#eee").css("height","unset");
|
||||
|
||||
$.get("/Home/GetGithubInfo", function (r) {
|
||||
if (r === undefined || r === null) {
|
||||
return;
|
||||
}
|
||||
$("#githubstar").html(r.stargazers_count);
|
||||
$("#githubstars").html(r.stargazers_count);
|
||||
$("#githubfork").html(r.forks_count);
|
||||
$("#githubwatch").html(r.subscribers_count);
|
||||
$("#githubissue").html(r.open_issues_count);
|
||||
});
|
||||
|
||||
//区块轮播切换
|
||||
layui.use(['admin', 'carousel'], function () {
|
||||
var $ = layui.$
|
||||
, admin = layui.admin
|
||||
, carousel = layui.carousel
|
||||
, element = layui.element
|
||||
, device = layui.device();
|
||||
|
||||
//轮播切换
|
||||
$('.layadmin-carousel').each(function () {
|
||||
var othis = $(this);
|
||||
carousel.render({
|
||||
elem: this
|
||||
, width: '100%'
|
||||
, arrow: 'none'
|
||||
, interval: othis.data('interval')
|
||||
, autoplay: othis.data('autoplay') === true
|
||||
, trigger: (device.ios || device.android) ? 'click' : 'hover'
|
||||
, anim: othis.data('anim')
|
||||
});
|
||||
});
|
||||
|
||||
element.render('progress');
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@ -12,6 +12,13 @@
|
||||
<link rel="stylesheet" href="/sitecss/wtm.css">
|
||||
<link rel="stylesheet" href="/font/iconfont.css">
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
|
||||
<!-- 引入样式 -->
|
||||
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
||||
<!-- import Vue before Element -->
|
||||
<script src="https://unpkg.com/vue@2/dist/vue.js"></script>
|
||||
<!-- import JavaScript -->
|
||||
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user