Skip to content

Commit

Permalink
tab列表
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoubichuan committed Dec 16, 2023
1 parent 49aea6f commit 39dc31c
Show file tree
Hide file tree
Showing 11 changed files with 765 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const fieldTypes = {
object: Object,
};
const target = {};
let targetArray = ["field", "type", "data", "template", "backend"];
let targetArray = ["field", "type", "data", "template", "backend", "tab"];

for (let i = 0;i < targetArray.length;i++) {
let item = targetArray[i];
Expand Down
2 changes: 1 addition & 1 deletion routes/ruleModel7.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var Models = require("../model/index");
let express = require("express");
let xlsx = require('node-xlsx')
let router = express.Router();
["field", "type", "data", "template", "backend"].forEach((item) => {
["field", "type", "data", "template", "backend", "tab"].forEach((item) => {
let templateData = require("../" + item);
let getFileds = (key, state, data) => {
let jsonArray = templateData[key + ".json"];
Expand Down
47 changes: 47 additions & 0 deletions tab/1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"add": false,
"delete": false,
"edit": false,
"view": true,
"name": "id",
"type": "string",
"addDefault": "0000001"
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "name",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "type",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "addDefault",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "remark",
"type": "string",
"addDefault": ""
}
]
101 changes: 101 additions & 0 deletions tab/2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[
{
"add": false,
"delete": false,
"edit": false,
"view": true,
"name": "id",
"type": "string",
"addDefault": "0000001"
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "name",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "add",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "delete",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "edit",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "view",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "type",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "addDefault",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "remark",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "createdAt",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "updatedAt",
"type": "string",
"addDefault": ""
}
]
101 changes: 101 additions & 0 deletions tab/3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[
{
"add": false,
"delete": false,
"edit": false,
"view": true,
"name": "id",
"type": "string",
"addDefault": "0000001"
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "name",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "add",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "delete",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "edit",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "view",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "type",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "addDefault",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "remark",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "createdAt",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "updatedAt",
"type": "string",
"addDefault": ""
}
]
101 changes: 101 additions & 0 deletions tab/4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[
{
"add": false,
"delete": false,
"edit": false,
"view": true,
"name": "id",
"type": "string",
"addDefault": "0000001"
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "name",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "add",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "delete",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "edit",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "view",
"type": "boolean",
"addDefault": true
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "type",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "addDefault",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "remark",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "createdAt",
"type": "string",
"addDefault": ""
},
{
"add": true,
"delete": true,
"edit": true,
"view": true,
"name": "updatedAt",
"type": "string",
"addDefault": ""
}
]
Loading

0 comments on commit 39dc31c

Please sign in to comment.