zhangzengfei
2021-11-24 dccd5c9cfc33d33ea405e3a5311c7c85d9c09f68
添加项目展示字段
6个文件已修改
33 ■■■■ 已修改文件
src/config/index.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config/permission.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config/settings.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/404.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/index.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);
src/config/permission.js
@@ -1,7 +1,3 @@
/**
 * @author chuzhixin 1204505056@qq.com (不想保留author可删除)
 * @description 路由守卫,目前两种模式:all模式与intelligence模式
 */
import router from "@/router";
import store from "@/store";
import VabProgress from "nprogress";
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);
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");
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">
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 }">