Browse Source

调整antdv引起的运行错误

master
453530270@qq.com 3 years ago
parent
commit
d371b30bb8
  1. 546
      package-lock.json
  2. 17
      src/App.vue
  3. 51
      src/components/page/order/index.vue
  4. 2
      src/main.js

546
package-lock.json

File diff suppressed because it is too large

17
src/App.vue

@ -1,22 +1,23 @@
<template>
<a-locale-provider :locale="zh_CN">
<a-config-provider :locale="locale">
<div id="app">
<router-view/>
</div>
</a-locale-provider>
</a-config-provider>
</template>
<script>
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('zh-cn');
// import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
import zhCN from 'ant-design-vue/es/locale/zh_CN';
// import moment from 'moment';
// import 'moment/locale/zh-cn';
// moment.locale('zh-cn');
export default {
name: 'App',
data(){
return {
zh_CN
}
locale: zhCN,
};
},
}
</script>

51
src/components/page/order/index.vue

@ -37,7 +37,8 @@
</a-col> -->
<a-col :lg="12" :xl="8" :xxl="6" class="query_item">
<span>收费类型</span>
<a-select default-value="" v-model="query.charges_type" :getPopupContainer="(triggerNode) => triggerNode.parentNode">
<a-select default-value="" v-model="query.charges_type"
:getPopupContainer="(triggerNode) => triggerNode.parentNode">
<a-select-option value="">全部</a-select-option>
<a-select-option value="1">免费</a-select-option>
<a-select-option value="2">付费</a-select-option>
@ -45,15 +46,17 @@
</a-col>
<a-col :lg="12" :xl="8" :xxl="6" class="query_item">
<span>交易方式</span>
<a-select default-value="" v-model="query.entrust_type" :getPopupContainer="(triggerNode) => triggerNode.parentNode">
<a-select default-value="" v-model="query.entrust_type"
:getPopupContainer="(triggerNode) => triggerNode.parentNode">
<a-select-option value="">全部</a-select-option>
<a-select-option value="1">转让</a-select-option>
<a-select-option value="2">授权</a-select-option>
</a-select>
</a-col>
<a-col :lg="12" :xl="8" :xxl="6" class="query_item" >
<a-col :lg="12" :xl="8" :xxl="6" class="query_item" style="display:none">
<span>订单状态</span>
<a-select default-value="" v-model="query.transaction_status" mode="multiple" :maxTagCount="1" :maxTagTextLength="1" :getPopupContainer="(triggerNode) => triggerNode.parentNode">
<a-select default-value="" v-model="query.transaction_status"
:getPopupContainer="(triggerNode) => triggerNode.parentNode">
<a-select-option value="" @click.native='selectAll'>全部</a-select-option>
<a-select-option value="1">待付款</a-select-option>
<a-select-option value="2">待交付</a-select-option>
@ -64,25 +67,25 @@
</a-col>
<a-col :lg="12" :xl="8" :xxl="6" class="query_item query_item2">
<span>订单创建时间</span>
<span>创建时间</span>
<a-range-picker v-model="query.createtime" valueFormat="YYYY-MM-DD" />
</a-col>
<a-col :lg="12" :xl="8" :xxl="12" class="query_item query_item3">
<!-- <a-col :lg="12" :xl="8" :xxl="12" class="query_item query_item3" style="display:noen">
<span>标的金额</span>
<a-input v-model="query.biaodi_start" placeholder="最小值" />
<el-col :span="10" v-html="'\u00a0'" />
<el-col style="color:#d9d9d9;">-</el-col>
<el-col :span="10" v-html="'\u00a0'" />
<a-input v-model="query.biaodi_end" placeholder="最大值" />
</a-col>
<a-col :lg="12" :xl="8" :xxl="12" class="query_item query_item3">
</a-col> -->
<!-- <a-col :lg="12" :xl="8" :xxl="12" class="query_item query_item3">
<span>订单金额</span>
<a-input v-model="query.dingdan_start" placeholder="最小值" />
<el-col :span="10" v-html="'\u00a0'" />
<el-col style="color:#d9d9d9;">-</el-col>
<el-col :span="10" v-html="'\u00a0'" />
<a-input v-model="query.dingdan_end" placeholder="最大值" />
</a-col>
</a-col> -->
<a-col :lg="24" :xl="8" :xxl="24" class="query_item query_item1">
<a-space :size="21">
<a-button type="primary" class="query_button" @click="getList(1)"> </a-button>
@ -97,7 +100,7 @@
<a-button type="primary" class="query_button"> </a-button>
<!-- <a-button type="primary" class="query_button"> </a-button> -->
</div>
<a-table :columns="columns" :data-source="data" bordered :pagination="false" >
<a-table :columns="columns" :data-source="data" bordered :pagination="false" rowKey="id">
<template slot="type" slot-scope="type">
<span>{{ type == 1 ? '委托订单' : type == 2 ? '认证订单' : '服务订单' }}</span>
</template>
@ -111,17 +114,9 @@
</a-space>
</template>
</a-table>
<a-pagination
class="pagination"
size="small"
:total="total"
v-model="page"
:page-size="limit"
:show-total="total => `第 ${startTotal} - ${endTotal} 条 / 总共 ${total} 条`"
:page-size-options="pageSizeOptions"
@showSizeChange="onShowSizeChange"
@change="changePage"
show-size-changer >
<a-pagination class="pagination" size="small" :total="total" v-model="page" :page-size="limit"
:show-total="total => `第 ${startTotal} - ${endTotal} 条 / 总共 ${total} 条`" :page-size-options="pageSizeOptions"
@showSizeChange="onShowSizeChange" @change="changePage" show-size-changer>
<template slot="buildOptionText" slot-scope="props">
<span>{{ props.value }}/</span>
</template>
@ -145,14 +140,14 @@ export default {
goods_name: '',
order_type: '',
entrust_type: '',
transaction_status:[''],
transaction_status: '',
createtime: [],
goods_isli: '',
charges_type: '',
biaodi_start:'',
biaodi_end:'',
dingdan_start:'',
dingdan_end:'',
// biaodi_start: '',
// biaodi_end: '',
// dingdan_start: '',
// dingdan_end: '',
},
batchcode: '',
visible: false,
@ -308,6 +303,4 @@ export default {
}
}
</script>
<style scoped>
</style>
<style scoped></style>

2
src/main.js

@ -24,7 +24,7 @@ Vue.prototype.$echarts = echarts;
// Vue.prototype.$host = 'http://10.14.1.197:9090'
// Vue.prototype.$host = 'http://wenhua.xingtongworld.com/' //兴通测试
Vue.prototype.$host = 'http://10.24.4.156' //正式服
// Vue.prototype.$host = 'http://10.24.4.156' //正式服
// Vue.prototype.$host = 'http://10.14.1.197:9090' //javatest

Loading…
Cancel
Save