Browse Source

优化

master
ltlzx 4 years ago
parent
commit
3905bdac77
  1. 6
      index.html
  2. 19
      src/components/dateSelect/order.vue
  3. 5
      src/main.js
  4. 4
      src/router/index.js

6
index.html

@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>wenhuadate_admin</title>
<link rel="icon" href="static/index.ico" type="image/x-icon" />
<link rel="shortcut icon" href="static/index.ico" type="image/x-icon" />
<title>全国文化大数据交易中心</title>
<!-- <link rel="icon" href="static/index.ico" type="image/x-icon" />
<link rel="shortcut icon" href="static/index.ico" type="image/x-icon" /> -->
</head>
<body>
<div id="app"></div>

19
src/components/dateSelect/order.vue

@ -81,7 +81,13 @@
<p class="tab_content_title">{{item.goods.goods_type==1?'文化资源数据':'文化数字内容'}}资源</p>
</div>
<div class="content_table">
<a-table :columns="columns2" :data-source="item.oneSource" bordered :pagination="false"></a-table>
<a-table :columns="columns2" :data-source="item.oneSource" bordered :pagination="false">
<template slot-scope="download_status" slot="download_status">
<span>{{download_status==1?'无资源下载':download_status==2?'获取下载地址失败':download_status==3?'获取解密资源地址失败'
:download_status==4?'获取解密资源地址成功':download_status==5?'没有解密资源地址':
download_status==6?'获取资源下载状态失败':download_status==7?'资源下载成功':download_status==8?'资源下载失败':'获取资源下载状态异常'}}</span>
</template>
</a-table>
</div>
</template>
@ -293,6 +299,7 @@
align:'center',
width:'138px',
},
],
columns2:[
{
@ -331,6 +338,12 @@
// width:'110px',
},
{
title: '下载状态',
dataIndex: 'download_status',
scopedSlots: { customRender: 'download_status' },
width:'90px',
},
]
}
},
@ -371,6 +384,10 @@
if(res.code==200){
this.sourceDate=res.data
this.newVisible1=true
let state=res.data[0].goods.status
if(state==1|| state==5){
this.columns2.pop()
}
}else{
this.$message.error(res.msg);
}

5
src/main.js

@ -15,6 +15,11 @@ import 'ant-design-vue/dist/antd.css';
Vue.use(Antd);
Vue.config.productionTip = false
Vue.prototype.$host = 'http://58.30.231.138:8899'
router.beforeEach((to,from,next) => {
// console.log('beforeEach')
document.title = to.meta.title
next()
})
/* eslint-disable no-new */
new Vue({
el: '#app',

4
src/router/index.js

@ -13,13 +13,13 @@ export default new Router({
{
path: '/',
component: () => import(/* webpackChunkName: "home" */ '../components/Home.vue'),
meta: { title: '自述文件' },
meta: { title: '全国文化大数据交易中心' },
children: [
{
path: '/Home',
name:'Home',
component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/Home/index.vue'),
meta: { title: '系统首页' }
meta: { title: '全国文化大数据交易中心' }
},
{
path: '/DataQuery',

Loading…
Cancel
Save