Commit c84e8a00 authored by dragondean@qq.com's avatar dragondean@qq.com

Merge remote-tracking branch 'origin/dev' into dev

parents 4e4a145b abd127f1
...@@ -24,8 +24,12 @@ ...@@ -24,8 +24,12 @@
<!-- <el-form-item :label="$t('排序')" prop="sort"> <!-- <el-form-item :label="$t('排序')" prop="sort">
<el-input v-model="queryParams.sort" :placeholder="$t('请输入排序')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.sort" :placeholder="$t('请输入排序')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> --> </el-form-item> -->
<el-form-item :label="$t('快递ID')" prop="expressId"> <el-form-item :label="$t('所属国家')" prop="countryId">
<el-input v-model="queryParams.expressId" :placeholder="$t('请输入快递ID')" clearable @keyup.enter.native="handleQuery"/> <el-select filterable clearable v-model="queryParams.countryId" :placeholder="$t('请选择国家')">
<el-option v-for="dict in countryList"
:key="dict.id" :label="$l(dict,'title')" :value="parseInt(dict.id)" />
</el-select>
<!-- <el-input v-model="queryParams.countryId" :placeholder="$t('请输入所属国家')" clearable @keyup.enter.native="handleQuery"/>-->
</el-form-item> </el-form-item>
<el-form-item :label="$t('预计时间')"> <el-form-item :label="$t('预计时间')">
<el-input v-model="queryParams.etaTime" :placeholder="$t('预计到达天数')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.etaTime" :placeholder="$t('预计到达天数')" clearable @keyup.enter.native="handleQuery"/>
...@@ -97,7 +101,11 @@ ...@@ -97,7 +101,11 @@
<el-table-column :label="$t('排序')" align="center" prop="sort" /> <el-table-column :label="$t('排序')" align="center" prop="sort" />
<el-table-column :label="$t('快递公司')" align="center" prop="companyName" /> <el-table-column :label="$t('快递公司')" align="center" prop="companyName" />
<el-table-column :label="$t('预计时间(天)')" align="center" prop="etaTime" /> <el-table-column :label="$t('预计时间(天)')" align="center" prop="etaTime" />
<el-table-column :label="$t('渠道代理')" align="center" prop="channelAgent" /> <el-table-column :label="$t('所属国家')">
<template slot-scope="{row}">
{{$l(row,'countryTitle')}}
</template>
</el-table-column>
<el-table-column :label="$t('备注')" align="center" prop="remarksZh" /> <el-table-column :label="$t('备注')" align="center" prop="remarksZh" />
<!-- <el-table-column label="备注-英文" align="center" prop="remarksEn" /> --> <!-- <el-table-column label="备注-英文" align="center" prop="remarksEn" /> -->
<!-- <el-table-column :label="$t('状态')" align="center" prop="status" /> --> <!-- <el-table-column :label="$t('状态')" align="center" prop="status" /> -->
...@@ -124,6 +132,8 @@ ...@@ -124,6 +132,8 @@
<script> <script>
import { createChannel, updateChannel, deleteChannel, getChannel, getChannelPage, exportChannelExcel } from "@/api/ecw/channel"; import { createChannel, updateChannel, deleteChannel, getChannel, getChannelPage, exportChannelExcel } from "@/api/ecw/channel";
import {getCountryListAll} from "@/api/ecw/country";
import {getTradeCountryList} from "@/api/ecw/region";
export default { export default {
name: "EcwChannelIndex", name: "EcwChannelIndex",
...@@ -157,16 +167,21 @@ export default { ...@@ -157,16 +167,21 @@ export default {
// 表单校验 // 表单校验
rules: { rules: {
} },
countryList:[],
}; };
}, },
created() { created() {
getTradeCountryList().then(r => {
this.countryList = r.data
})
this.getList(); this.getList();
}, },
activated() { activated() {
this.getList(); this.getList();
}, },
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment