Browse Source

update

master
姜旭之 1 year ago
parent
commit
6ed292299c
  1. 473
      code/WebApp/vanilla/router/base-date.js
  2. 77
      code/WebApp/vanilla/router/business.js
  3. 227
      code/WebApp/vanilla/router/routes.js
  4. 15
      code/WebApp/vanilla/views/base-data/material.js
  5. BIN
      docs/demo/src/WTA.Application/Identity/Identity.zip
  6. 2
      docs/demo/src/WTA/Properties/PublishProfiles/FolderProfile.pubxml

473
code/WebApp/vanilla/router/base-date.js

@ -0,0 +1,473 @@
export default [
{
path: "base-data",
meta: {
type: "group",
title: "基础数据",
icon: "folder",
},
children: [
{
path: "user",
meta: {
type: "page",
title: "用户管理",
icon: "file",
permission: "AbpIdentity.Users",
},
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
permission: "AbpIdentity.Users.Create",
isTop: true,
},
},
{
path: "update",
meta: {
type: "button",
title: "编辑",
icon: "file",
htmlClass: "el-button--primary",
permission: "AbpIdentity.Users.Update",
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
permission: "AbpIdentity.Users.Delete",
disabled: "o=>o.userName==='admin'",
},
},
{
path: "%s/reset-password",
meta: {
type: "button",
title: "重置密码",
icon: "file",
permission: "reset-password?",
method: "PUT",
},
},
],
},
// {
// path: "role",
// meta: {
// type: "page",
// title: "角色管理",
// icon: "file",
// permission: "AbpIdentity.Users",
// },
// children: [
// {
// path: "create",
// meta: {
// type: "button",
// title: "新建",
// icon: "file",
// permission: "AbpIdentity.Users.Create",
// isTop: true,
// },
// },
// {
// path: "update",
// meta: {
// type: "button",
// title: "编辑",
// icon: "file",
// htmlClass: "el-button--primary",
// permission: "AbpIdentity.Users.Update",
// disabled: `(o) => o.isStatic`,
// },
// },
// {
// path: "delete",
// meta: {
// type: "button",
// title: "删除",
// icon: "file",
// permission: "AbpIdentity.Users.Delete",
// disabled: `(o) => o.isStatic`,
// },
// },
// ],
// },
{
path: "material",
meta: {
type: "page",
title: "物料主数据",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "query",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "centralized-control",
meta: {
type: "page",
title: "期间设置",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
isTop: true,
},
},
{
path: "open-version",
meta: {
type: "button",
title: "启用",
icon: "file",
isTop: true,
},
},
{
path: "closed-version",
meta: {
type: "button",
title: "停用",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
},
],
},
},
{
path: "material-relationship",
meta: {
type: "page",
title: "客户零件关系",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "tb_re-parts-relationship_service",
meta: {
type: "page",
title: "客户替换件关系",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "code-setting",
meta: {
type: "page",
title: "通用代码",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "bom",
meta: {
type: "page",
title: "BOM结构",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "price-list-app-service-bj",
meta: {
type: "page",
title: "备件价格单",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "purchase_price_service",
meta: {
type: "page",
title: "采购价格单",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
{
path: "price-list",
meta: {
type: "page",
title: "销售价格单",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
],
},
];

77
code/WebApp/vanilla/router/business.js

@ -0,0 +1,77 @@
export default [
{
path: "jis-bbac",
meta: {
type: "group",
title: "JIS-BBAC",
icon: "folder",
},
children: [
{
path: "input",
meta: {
type: "group",
title: "数据输入",
icon: "folder",
},
children: [
{
path: "bbac_sa_service",
meta: {
type: "page",
title: "JIS结算数据",
icon: "file",
},
},
{
path: "bbac_se_detail",
meta: {
type: "page",
title: "JIS发运数据",
icon: "file",
},
},
{
path: "bbac_se_edi",
meta: {
type: "page",
title: "EDI数据",
icon: "file",
},
},
],
},
],
/* path: "business",
meta: {
type: "group",
title: "JIS-HBPO",
icon: "folder",
},
path: "business",
meta: {
type: "group",
title: "直供件",
icon: "folder",
},
path: "business",
meta: {
type: "group",
title: "备件",
icon: "folder",
},
path: "business",
meta: {
type: "group",
title: "印度件",
icon: "folder",
},
path: "business",
meta: {
type: "group",
title: "商务审核",
icon: "folder",
}, */
},
];

227
code/WebApp/vanilla/router/routes.js

@ -1,3 +1,5 @@
import baseDate from "./base-date.js";
import business from "./business.js";
export default [
{
path: "home",
@ -8,227 +10,6 @@ export default [
public: true,
},
},
{
path: "base-data",
meta: {
type: "group",
title: "基础数据",
icon: "folder",
},
children: [
{
path: "user",
meta: {
type: "page",
title: "用户管理",
icon: "file",
permission: "AbpIdentity.Users",
},
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
permission: "AbpIdentity.Users.Create",
isTop: true,
},
},
{
path: "update",
meta: {
type: "button",
title: "编辑",
icon: "file",
htmlClass: "el-button--primary",
permission: "AbpIdentity.Users.Update",
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
permission: "AbpIdentity.Users.Delete",
disabled: "o=>o.userName==='admin'",
},
},
{
path: "%s/reset-password",
meta: {
type: "button",
title: "重置密码",
icon: "file",
permission: "reset-password?",
method: "PUT",
},
},
],
},
// {
// path: "role",
// meta: {
// type: "page",
// title: "角色管理",
// icon: "file",
// permission: "AbpIdentity.Users",
// },
// children: [
// {
// path: "create",
// meta: {
// type: "button",
// title: "新建",
// icon: "file",
// permission: "AbpIdentity.Users.Create",
// isTop: true,
// },
// },
// {
// path: "update",
// meta: {
// type: "button",
// title: "编辑",
// icon: "file",
// htmlClass: "el-button--primary",
// permission: "AbpIdentity.Users.Update",
// disabled: `(o) => o.isStatic`,
// },
// },
// {
// path: "delete",
// meta: {
// type: "button",
// title: "删除",
// icon: "file",
// permission: "AbpIdentity.Users.Delete",
// disabled: `(o) => o.isStatic`,
// },
// },
// ],
// },
{
path: "centralized-control",
meta: {
type: "page",
title: "期间设置",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
isTop: true,
},
},
{
path: "open-version",
meta: {
type: "button",
title: "启用",
icon: "file",
isTop: true,
},
},
{
path: "closed-version",
meta: {
type: "button",
title: "停用",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
},
],
},
},
{
path: "code-setting",
meta: {
type: "page",
title: "通用代码",
icon: "file",
children: [
{
path: "query",
meta: {
type: "button",
title: "查询",
icon: "file",
isTop: true,
},
},
{
path: "create",
meta: {
type: "button",
title: "新建",
icon: "file",
isTop: true,
},
},
{
path: "delete",
meta: {
type: "button",
title: "删除",
icon: "file",
isTop: true,
},
},
{
path: "import",
meta: {
type: "button",
title: "导入",
icon: "file",
isTop: true,
},
},
{
path: "export",
meta: {
type: "button",
title: "导出",
icon: "file",
isTop: true,
pattern: "paged",
},
},
],
},
},
],
},
...baseDate,
...business,
];

15
code/WebApp/vanilla/views/base-data/material.js

@ -0,0 +1,15 @@
import AppList from "../../components/list/index.js";
import html from "html";
import useConfig from "../../models/material.js";
export default {
components: { AppList },
template: html`<app-list :config="config" @command="onCommand" />`,
setup() {
const config = useConfig();
const onCommand = async (item, rows) => {
console.log(item.path, item, rows);
};
return { config, onCommand };
},
};

BIN
docs/demo/src/WTA.Application/Identity/Identity.zip

Binary file not shown.

2
docs/demo/src/WTA/Properties/PublishProfiles/FolderProfile.pubxml

@ -15,7 +15,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<_TargetId>Folder</_TargetId>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net7.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<ProjectGuid>ffaca971-25fc-4652-a510-8bfc76e42d87</ProjectGuid>
<SelfContained>true</SelfContained>
</PropertyGroup>

Loading…
Cancel
Save