Browse Source

优化

master
ltlzx 4 years ago
parent
commit
2feb17d7cc
  1. 4
      src/components/Header.vue
  2. 6
      src/components/page/afterService/invoice.vue
  3. 4
      src/components/page/classification/Category.vue
  4. 2
      src/components/page/layout/index.vue
  5. 4
      src/main.js
  6. 4
      src/utils/request.js

4
src/components/Header.vue

@ -11,8 +11,8 @@
<img src="../assets/icons/svg/user.svg" alt="" >
<span class="f_title">{{name}}</span>
</div>
<a href="http://10.24.4.55/#/cache/index">
<!-- <a href="http://58.30.231.137:8035/#/cache/index"> -->
<!-- <a href="http://10.24.4.55/#/cache/index"> -->
<a href="http://58.30.231.137:8035/#/cache/index">
<div class="header_right_item">
<img src="../assets/icons/svg/yingyong.svg" alt="" >
<span class="f_title">我的应用</span>

6
src/components/page/afterService/invoice.vue

@ -71,8 +71,8 @@
<!-- <a-button type="primary" class="query_button"> </a-button> -->
</div>
<a-table :columns="columns" :data-source="data" bordered :pagination="false">
<template slot="ticketstatus" slot-scope="ticketstatus">
<span>{{ticketstatus==1?'未开票':ticketstatus==2?'开票中':ticketstatus==3?'开票成功':'开票失败'}}</span>
<template slot="ticketstatus" slot-scope="ticket_status">
<span>{{ticket_status==1?'未开票':ticket_status==2?'开票中':ticket_status==3?'开票成功':'开票失败'}}</span>
</template>
<template slot="status" slot-scope="status">
<span>{{status==2?'待交付订单':status==3?'待结算订单':'已终止订单'}}</span>
@ -183,7 +183,7 @@ export default {
},
{
title: '开票状态',
dataIndex: 'ticketstatus',
dataIndex: 'ticket_status',
scopedSlots: { customRender: 'ticketstatus' },
width:'90px'
// align:'center'

4
src/components/page/classification/Category.vue

@ -231,6 +231,10 @@ export default {
},
//
addClass(){
if(this.query1.top_class==''&&this.query1.son_class==''&&this.query1.pull_top_class==''){
this.$message.error('请填写分类名称!');
return
}
addClass(this.query1).then(res=>{
if(res.code==200){
this.$message.success('添加成功!');

2
src/components/page/layout/index.vue

@ -217,7 +217,7 @@ export default {
// align:'center'
},
{
title: '标的类型',
title: '交易品种',
dataIndex: 'goods_type',
scopedSlots:{customRender:'goods_type'},
// align:'center'

4
src/main.js

@ -17,8 +17,8 @@ import echarts from "echarts";
Vue.use(Antd);
Vue.config.productionTip = false
Vue.prototype.$echarts = echarts;
// Vue.prototype.$host = 'http://58.30.231.138:8899'
Vue.prototype.$host = 'http://10.24.4.156'
Vue.prototype.$host = 'http://58.30.231.138:8899'
// Vue.prototype.$host = 'http://10.24.4.156'
router.beforeEach((to,from,next) => {
// console.log('beforeEach')
document.title = to.meta.title

4
src/utils/request.js

@ -4,8 +4,8 @@ const service = axios.create({
// process.env.NODE_ENV === 'development' 来判断是否开发环境
// baseURL:process.env.NODE_ENV == 'production' ? 'https://yztapi.xingtongworld.com' : '/api/',
// baseURL:'http://jiao.api.alpha.xingtongworld.com',
// baseURL:'http://58.30.231.138:8899', //测试服
baseURL:'http://10.24.4.156', //正式服
baseURL:'http://58.30.231.138:8899', //测试服
// baseURL:'http://10.24.4.156', //正式服
// baseURL:'http://192.168.66.254:8080',
timeout: 5000,
});

Loading…
Cancel
Save