From 7988b7bb3d437082ce6f0464ab7c429097f8650c Mon Sep 17 00:00:00 2001 From: zhoubichuan Date: Sat, 23 Mar 2024 17:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++---- tab/1.json | 9 +++++++++ tab/10.json | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tab/2.json | 53 ++++---------------------------------------------- tab/3.json | 53 ++++---------------------------------------------- tab/4.json | 53 ++++---------------------------------------------- tab/5.json | 53 ++++---------------------------------------------- tab/6.json | 53 ++++---------------------------------------------- tab/7.json | 53 ++++---------------------------------------------- tab/8.json | 53 ++++---------------------------------------------- tab/9.json | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 153 insertions(+), 347 deletions(-) create mode 100644 tab/10.json create mode 100644 tab/9.json diff --git a/Dockerfile b/Dockerfile index 0c60e11..0c1d290 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ #设置构建的基础镜像 -FROM node +FROM node:14.18.0 RUN mkdir -p /project/ WORKDIR /project/ COPY package.json /project/ #设置npm下载依赖来源为淘宝源 -RUN npm config set registry https://registry.npm.taobao.org -RUN rm -rf node_modules && npm install -g npm && cd /project +RUN npm install -g cnpm --registry https://registry.npm.taobao.org +RUN rm -rf node_modules && cd /project #安装项目依赖 -RUN npm install +RUN cnpm install COPY . /project/ CMD npm run dev EXPOSE 7001 diff --git a/tab/1.json b/tab/1.json index ad21b2e..c6114ee 100644 --- a/tab/1.json +++ b/tab/1.json @@ -8,6 +8,15 @@ "type": "string", "addDefault": "0000001" }, + { + "add": true, + "delete": true, + "edit": true, + "view": true, + "name": "tabId", + "type": "string", + "addDefault": "" + }, { "add": true, "delete": true, diff --git a/tab/10.json b/tab/10.json new file mode 100644 index 0000000..c6114ee --- /dev/null +++ b/tab/10.json @@ -0,0 +1,56 @@ +[ + { + "add": false, + "delete": false, + "edit": false, + "view": true, + "name": "id", + "type": "string", + "addDefault": "0000001" + }, + { + "add": true, + "delete": true, + "edit": true, + "view": true, + "name": "tabId", + "type": "string", + "addDefault": "" + }, + { + "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": "" + } +] diff --git a/tab/2.json b/tab/2.json index 6d738ab..c6114ee 100644 --- a/tab/2.json +++ b/tab/2.json @@ -13,7 +13,7 @@ "delete": true, "edit": true, "view": true, - "name": "name", + "name": "tabId", "type": "string", "addDefault": "" }, @@ -22,36 +22,9 @@ "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 + "name": "name", + "type": "string", + "addDefault": "" }, { "add": true, @@ -79,23 +52,5 @@ "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": "" } ] diff --git a/tab/3.json b/tab/3.json index 6d738ab..c6114ee 100644 --- a/tab/3.json +++ b/tab/3.json @@ -13,7 +13,7 @@ "delete": true, "edit": true, "view": true, - "name": "name", + "name": "tabId", "type": "string", "addDefault": "" }, @@ -22,36 +22,9 @@ "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 + "name": "name", + "type": "string", + "addDefault": "" }, { "add": true, @@ -79,23 +52,5 @@ "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": "" } ] diff --git a/tab/4.json b/tab/4.json index 6d738ab..c6114ee 100644 --- a/tab/4.json +++ b/tab/4.json @@ -13,7 +13,7 @@ "delete": true, "edit": true, "view": true, - "name": "name", + "name": "tabId", "type": "string", "addDefault": "" }, @@ -22,36 +22,9 @@ "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 + "name": "name", + "type": "string", + "addDefault": "" }, { "add": true, @@ -79,23 +52,5 @@ "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": "" } ] diff --git a/tab/5.json b/tab/5.json index 6d738ab..c6114ee 100644 --- a/tab/5.json +++ b/tab/5.json @@ -13,7 +13,7 @@ "delete": true, "edit": true, "view": true, - "name": "name", + "name": "tabId", "type": "string", "addDefault": "" }, @@ -22,36 +22,9 @@ "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 + "name": "name", + "type": "string", + "addDefault": "" }, { "add": true, @@ -79,23 +52,5 @@ "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": "" } ] diff --git a/tab/6.json b/tab/6.json index 6d738ab..c6114ee 100644 --- a/tab/6.json +++ b/tab/6.json @@ -13,7 +13,7 @@ "delete": true, "edit": true, "view": true, - "name": "name", + "name": "tabId", "type": "string", "addDefault": "" }, @@ -22,36 +22,9 @@ "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 + "name": "name", + "type": "string", + "addDefault": "" }, { "add": true, @@ -79,23 +52,5 @@ "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": "" } ] diff --git a/tab/7.json b/tab/7.json index 6d738ab..c6114ee 100644 --- a/tab/7.json +++ b/tab/7.json @@ -13,7 +13,7 @@ "delete": true, "edit": true, "view": true, - "name": "name", + "name": "tabId", "type": "string", "addDefault": "" }, @@ -22,36 +22,9 @@ "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 + "name": "name", + "type": "string", + "addDefault": "" }, { "add": true, @@ -79,23 +52,5 @@ "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": "" } ] diff --git a/tab/8.json b/tab/8.json index 6d738ab..c6114ee 100644 --- a/tab/8.json +++ b/tab/8.json @@ -13,7 +13,7 @@ "delete": true, "edit": true, "view": true, - "name": "name", + "name": "tabId", "type": "string", "addDefault": "" }, @@ -22,36 +22,9 @@ "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 + "name": "name", + "type": "string", + "addDefault": "" }, { "add": true, @@ -79,23 +52,5 @@ "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": "" } ] diff --git a/tab/9.json b/tab/9.json new file mode 100644 index 0000000..c6114ee --- /dev/null +++ b/tab/9.json @@ -0,0 +1,56 @@ +[ + { + "add": false, + "delete": false, + "edit": false, + "view": true, + "name": "id", + "type": "string", + "addDefault": "0000001" + }, + { + "add": true, + "delete": true, + "edit": true, + "view": true, + "name": "tabId", + "type": "string", + "addDefault": "" + }, + { + "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": "" + } +]