update
This commit is contained in:
parent
0a0bf30deb
commit
5a3a661034
|
@ -31,9 +31,9 @@
|
|||
|
||||
<!-- </el-menu-item-group>-->
|
||||
<!-- </el-submenu>-->
|
||||
<el-menu-item index="/platformData" >
|
||||
<item icon="el-icon-data-analysis" title="平台信息记录板"/>
|
||||
</el-menu-item>
|
||||
<!-- <el-menu-item index="/platformData" >-->
|
||||
<!-- <item icon="el-icon-data-analysis" title="平台信息记录板"/>-->
|
||||
<!-- </el-menu-item>-->
|
||||
<el-menu-item index="/OSD" >
|
||||
<item icon="el-icon-s-comment" title="开源资料分享"/>
|
||||
</el-menu-item>
|
||||
|
@ -94,11 +94,11 @@ export default {
|
|||
// 导航栏页面更改
|
||||
handleSelect(key, keyPath) {
|
||||
|
||||
if (key!=="/userManage" && key!=="/fileList" && key !== "/platformData" && key !== "/OSD" && key !== "/expert/form" && key !== "/expert/add" && key !== "/meetingSys/Add" && key !== "/meetingSys/List"){
|
||||
if (key!=="/userManage" && key!=="/fileList" && key !== "/OSD" && key !== "/expert/form" && key !== "/expert/add" && key !== "/meetingSys/Add" && key !== "/meetingSys/List"){
|
||||
console.log(key)
|
||||
pageUtils.openPage(this.$router,"/fileListV2/"+ key)
|
||||
|
||||
}else if (key =="/userManage" || key == "/platformData"|| key=="/OSD"){
|
||||
}else if (key =="/userManage" || key=="/OSD"){
|
||||
pageUtils.openPage(this.$router,key)
|
||||
|
||||
}
|
||||
|
|
|
@ -88,19 +88,7 @@ export const constantRoutes = [
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path:'/',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
path: "platformData",
|
||||
name: 'PlatformData',
|
||||
component:() => import("@/views/platformData/PlatformData"),
|
||||
meta: {title: '平台信息记录板',icon: 'el-icon-setting'}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
path:'/',
|
||||
component: Layout,
|
||||
|
@ -206,6 +194,25 @@ export const constantRoutes = [
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path:'/',
|
||||
component: Layout,
|
||||
// hidden: true,
|
||||
meta: {title: '采购相关',icon: 'el-icon-setting'},
|
||||
children: [
|
||||
{
|
||||
path: "platformData",
|
||||
name: 'PlatformData',
|
||||
component:() => import("@/views/platformData/PlatformData"),
|
||||
meta: {title: '平台信息记录板',icon: 'el-icon-setting'}
|
||||
},{
|
||||
path: "PurchasingManage",
|
||||
name: 'PurchasingManage',
|
||||
component:() => import("@/views/platformData/PurchasingManage"),
|
||||
meta: {title: '采购管理',icon: 'el-icon-setting'}
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/example',
|
||||
// component: Layout,
|
||||
|
|
|
@ -0,0 +1,149 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-table
|
||||
:data="tableData"
|
||||
stripe
|
||||
border
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="采购/外协项目名称"
|
||||
width="180"
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="type"
|
||||
label="类型"
|
||||
width="180"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="year"
|
||||
label="年份"
|
||||
width="190"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="unitName"
|
||||
label="归属研究室"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="levelName"
|
||||
label="采购/外协级别"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="modeName"
|
||||
label="采购/外协方式"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
label="项目状态"
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="principal"
|
||||
label="负责人"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="applicationNum"
|
||||
label="申请编号"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="purchaseNum"
|
||||
label="采购编号"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="contractNum"
|
||||
label="合同编号"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAllPlatformData } from '@/utils/http/interface'
|
||||
import { Message } from 'element-ui'
|
||||
|
||||
export default {
|
||||
name: 'PlatformData',
|
||||
data() {
|
||||
return {
|
||||
tableData: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
this.$api.getAllPlatformData().then((res) => {
|
||||
if (res.status == 0) {
|
||||
this.tableData = res.data
|
||||
|
||||
for (let i = 0; i < this.tableData.length; i++) {
|
||||
if (this.tableData[i].renewDate != null) {
|
||||
this.tableData[i].renewDate = this.$moment(this.tableData[i].renewDate).format('YYYY-MM-DD')
|
||||
//计算到期时间
|
||||
var expireTime = this.$moment(this.tableData[i].renewDate).add(1, 'years')
|
||||
this.tableData[i].expireTime = this.$moment(expireTime, 'YYYY-MM-DD').fromNow(true)
|
||||
} else {
|
||||
this.tableData[i].renewDate = '未设置时间'
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Message.warning('系统错误')
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getData()
|
||||
//moment计算时间 本地化
|
||||
this.$moment.defineLocale('zh-cn', {
|
||||
relativeTime: {
|
||||
|
||||
future: '%s内',
|
||||
|
||||
past: '%s前',
|
||||
|
||||
s: '几秒',
|
||||
|
||||
m: '1 分钟',
|
||||
|
||||
mm: '%d 分钟',
|
||||
|
||||
h: '1 小时',
|
||||
|
||||
hh: '%d 小时',
|
||||
|
||||
d: '1 天',
|
||||
|
||||
dd: '%d 天',
|
||||
|
||||
M: '1 个月',
|
||||
|
||||
MM: '%d 个月',
|
||||
|
||||
y: '1 年',
|
||||
|
||||
yy: '%d 年'
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue