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> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>wenhuadate_admin</title> <title>全国文化大数据交易中心</title>
<link rel="icon" href="static/index.ico" type="image/x-icon" /> <!-- <link rel="icon" href="static/index.ico" type="image/x-icon" />
<link rel="shortcut icon" href="static/index.ico" type="image/x-icon" /> <link rel="shortcut icon" href="static/index.ico" type="image/x-icon" /> -->
</head> </head>
<body> <body>
<div id="app"></div> <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> <p class="tab_content_title">{{item.goods.goods_type==1?'文化资源数据':'文化数字内容'}}资源</p>
</div> </div>
<div class="content_table"> <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> </div>
</template> </template>
@ -293,6 +299,7 @@
align:'center', align:'center',
width:'138px', width:'138px',
}, },
], ],
columns2:[ columns2:[
{ {
@ -331,6 +338,12 @@
// width:'110px', // width:'110px',
}, },
{
title: '下载状态',
dataIndex: 'download_status',
scopedSlots: { customRender: 'download_status' },
width:'90px',
},
] ]
} }
}, },
@ -371,6 +384,10 @@
if(res.code==200){ if(res.code==200){
this.sourceDate=res.data this.sourceDate=res.data
this.newVisible1=true this.newVisible1=true
let state=res.data[0].goods.status
if(state==1|| state==5){
this.columns2.pop()
}
}else{ }else{
this.$message.error(res.msg); this.$message.error(res.msg);
} }

5
src/main.js

@ -15,6 +15,11 @@ import 'ant-design-vue/dist/antd.css';
Vue.use(Antd); Vue.use(Antd);
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$host = 'http://58.30.231.138:8899' 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 */ /* eslint-disable no-new */
new Vue({ new Vue({
el: '#app', el: '#app',

4
src/router/index.js

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

Loading…
Cancel
Save