研发图纸文件管理系统-前端项目
longyvfengyun
2022-07-14 af91f8986bb7ffaccff4a1c32cfc0c0dc421759f
内容提交
4个文件已添加
2个文件已修改
126 ■■■■■ 已修改文件
src/layouts/AdminLayout.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dashboard/drawcenter/DrawCenter.vue 107 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dashboard/drawcenter/i18n.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dashboard/drawcenter/index.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dashboard/drawcenter/index.less 补丁 | 查看 | 原始文档 | blame | 历史
src/router/config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layouts/AdminLayout.vue
@@ -5,7 +5,7 @@
    </drawer>
    <side-menu :class="[fixedSideBar ? 'fixed-side' : '']" :theme="theme.mode" v-else-if="layout === 'side' || layout === 'mix'" :menuData="sideMenuData" :collapsed="collapsed" :collapsible="true" />
    <div v-if="fixedSideBar && !isMobile" :style="`width: ${sideMenuWidth}; min-width: ${sideMenuWidth};max-width: ${sideMenuWidth};`" class="virtual-side"></div>
    <drawer v-if="!hideSetting" v-model="showSetting" placement="right">
    <drawer v-if="false" v-model="showSetting" placement="right">
      <div class="setting" slot="handler">
        <a-icon :type="showSetting ? 'close' : 'setting'"/>
      </div>
src/pages/dashboard/drawcenter/DrawCenter.vue
New file
@@ -0,0 +1,107 @@
<template>
  <a-card>
    <advance-table
      :data-source="dataSource"
      :columns="columns"
      :loading="loading"
      title="图纸中心"
      row-key="name">
      <template slot="action" slot-scope="scope">
        <a @click="scope.record">下载</a>
        <a-divider type="vertical"></a-divider>
        <a @click="scope.record">详情</a>
      </template>
    </advance-table>
  </a-card>
</template>
<script>
import AdvanceTable from "@/components/table/advance/AdvanceTable";
export default {
  name: "DrawCenter",
  components: {
    AdvanceTable
  },
  data() {
    return {
      loading: false,
      columns: [
        {
          title: '图纸编码',
          dataIndex: 'name',
          key: 'name',
          align: "center",
          searchAble: true
        },
        {
          title: '图纸类型',
          dataIndex: 'type',
          key: 'type',
          align: "center",
        },
        {
          title: '上传人',
          dataIndex: 'uploadPeople',
          key: 'uploadPeople',
          align: "center",
        },
        {
          title: '上传日期',
          dataIndex: 'uploadDate',
          key: 'uploadDate',
          align: "center",
        },
        {
          title: '审核人',
          dataIndex: 'auditPeople',
          key: 'auditPeople',
          align: "center",
        },
        {
          title: '审核日期',
          dataIndex: 'auditDate',
          key: 'auditDate',
          align: "center",
        },
        {
          title: '操作',
          dataIndex: "operation",
          key: 'operation',
          align: "center",
          fixed: 'right',
          scopedSlots: { customRender: 'action' }
        },
      ],
      dataSource: [
        {
          name: "BJ2312",
          type: "钣金",
          uploadPeople: "霍东伟",
          uploadDate: "2022-07-14 00:00:00",
          auditPeople: "霍东伟",
          auditDate: "2022-07-14 00:00:00",
        },
        {
          name: "MM4815",
          type: "面膜",
          uploadPeople: "霍东伟",
          uploadDate: "2022-07-14 00:00:00",
          auditPeople: "霍东伟",
          auditDate: "2022-07-14 00:00:00",
        }
      ],
    }
  },
  methods: {
    show(scope) {
      console.log(scope);
    }
  },
  computed: {},
  mounted() {}
}
</script>
<style scoped>
</style>
src/pages/dashboard/drawcenter/i18n.js
New file
@@ -0,0 +1,13 @@
module.exports = {
  messages: {
    CN: {
    },
    HK: {
    },
    US: {
    },
  }
}
src/pages/dashboard/drawcenter/index.js
New file
@@ -0,0 +1,2 @@
import DrawCenter from "./DrawCenter";
export default DrawCenter;
src/pages/dashboard/drawcenter/index.less
src/router/config.js
@@ -42,7 +42,7 @@
                  closable: false
                }
              },
              component: () => import('@/pages/dashboard/workplace'),
              component: () => import('@/pages/dashboard/drawcenter'),
            },
            {
              path: 'analysis',