From dccd5c9cfc33d33ea405e3a5311c7c85d9c09f68 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 24 十一月 2021 16:10:33 +0800 Subject: [PATCH] 添加项目展示字段 --- src/utils/request.js | 2 +- src/config/permission.js | 4 ---- src/config/index.js | 8 ++++---- src/config/settings.js | 4 ++-- src/views/project/index.vue | 13 ++++++++++--- src/views/404.vue | 2 +- 6 files changed, 18 insertions(+), 15 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 86e58d6..24dd0ec 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -1,7 +1,7 @@ /** * @description 3涓瓙閰嶇疆锛岄�氱敤閰嶇疆|涓婚閰嶇疆|缃戠粶閰嶇疆瀵煎嚭 */ -const setting = require('./setting.config') -const theme = require('./theme.config') -const network = require('./net.config') -module.exports = Object.assign({}, setting, theme, network) +const setting = require("./setting.config"); +const theme = require("./theme.config"); +const network = require("./net.config"); +module.exports = Object.assign({}, setting, theme, network); diff --git a/src/config/permission.js b/src/config/permission.js index a57fe21..5307457 100644 --- a/src/config/permission.js +++ b/src/config/permission.js @@ -1,7 +1,3 @@ -/** - * @author chuzhixin 1204505056@qq.com 锛堜笉鎯充繚鐣檃uthor鍙垹闄わ級 - * @description 璺敱瀹堝崼锛岀洰鍓嶄袱绉嶆ā寮忥細all妯″紡涓巌ntelligence妯″紡 - */ import router from "@/router"; import store from "@/store"; import VabProgress from "nprogress"; diff --git a/src/config/settings.js b/src/config/settings.js index c070a66..dc51c84 100644 --- a/src/config/settings.js +++ b/src/config/settings.js @@ -2,5 +2,5 @@ * @description 3涓瓙閰嶇疆锛岄�氱敤閰嶇疆|涓婚閰嶇疆|缃戠粶閰嶇疆 */ //榛樿閰嶇疆 -const { setting, theme, network } = require('./') -module.exports = Object.assign({}, setting, theme, network) +const { setting, theme, network } = require("./"); +module.exports = Object.assign({}, setting, theme, network); diff --git a/src/utils/request.js b/src/utils/request.js index b06ceab..ac34737 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -34,7 +34,7 @@ } break; case noPermissionCode: - router.push({ path: "/401" }).catch(() => {}); + router.push({ path: "/login" }).catch(() => {}); break; default: Vue.prototype.$baseMessage(msg || `鍚庣鎺ュ彛${code}寮傚父`, "error"); diff --git a/src/views/404.vue b/src/views/404.vue index 8b2cfc7..c00311f 100644 --- a/src/views/404.vue +++ b/src/views/404.vue @@ -3,7 +3,7 @@ <div class="error-content"> <el-row :gutter="20"> <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"> - 404 page not found! + <!-- 404 page not found! --> </el-col> <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"> diff --git a/src/views/project/index.vue b/src/views/project/index.vue index 1a909eb..6f7363d 100644 --- a/src/views/project/index.vue +++ b/src/views/project/index.vue @@ -126,15 +126,22 @@ <el-table-column show-overflow-tooltip prop="name" - label="椤圭洰鍚嶇О" + label="鍚嶇О" width="150" ></el-table-column> <el-table-column show-overflow-tooltip + prop="desc" + label="鎻忚堪" + ></el-table-column> + <el-table-column + show-overflow-tooltip prop="srcUrl" - label="椤圭洰鍦板潃" + label="鍦板潃" width="500" ></el-table-column> + <el-table-column show-overflow-tooltip prop="branch" label="鍒嗘敮"> + </el-table-column> <el-table-column show-overflow-tooltip prop="type" label="绫诲瀷"> <template #default="{ row }"> <el-tag>{{ typeOptions[row.type] }}</el-tag> @@ -156,7 +163,7 @@ <el-table-column label="鍒涘缓鏃堕棿" prop="createdAt" - width="200" + width="150" ></el-table-column> <el-table-column label="鎿嶄綔" width="180px"> <template #default="{ row }"> -- Gitblit v1.8.0