|
@@ -22,6 +22,12 @@
|
|
|
<!-- ------------- 检索参数 ------------- -->
|
|
|
<!-- <div class="c-title">检索参数</div> -->
|
|
|
<el-form ref="form" :model='p' @submit.native.prevent>
|
|
|
+ <div class="c-item">
|
|
|
+ <label class="c-label"><span style="color: red;">*</span>互市区:</label>
|
|
|
+ <el-select @change="changeTradeArea" v-model="p.tradeAreaName" placeholder="请选择" filterable size="mini">
|
|
|
+ <el-option v-for="(item,index) in tradeAreaList" :key="index" :label="item.name" :value="item"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
<sa-item type="text" name="名称" v-model="p.name"></sa-item>
|
|
|
<sa-item type="text" name="分类名称" v-model="p.typeNames"></sa-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
|
|
@@ -79,10 +85,13 @@
|
|
|
taxNo: '', //
|
|
|
pageNo: 1, // 当前页
|
|
|
pageSize: 10, // 页大小
|
|
|
- sortType: 0 // 排序方式
|
|
|
+ sortType: 0, // 排序方式
|
|
|
+ tradeAreaId: '',
|
|
|
+ tradeAreaName: '',
|
|
|
},
|
|
|
dataCount: 0,
|
|
|
dataList: [], // 数据集合
|
|
|
+ tradeAreaList: []
|
|
|
},
|
|
|
methods: {
|
|
|
// 刷新
|
|
@@ -93,6 +102,18 @@
|
|
|
sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this));
|
|
|
},
|
|
|
+ getTradeArea() {
|
|
|
+ sa.ajax('/level-one-server/TbTradeArea/getList', {
|
|
|
+ pageSize: 100,
|
|
|
+ pageNo: 1
|
|
|
+ }, function(resp) {
|
|
|
+ this.tradeAreaList = resp.data;
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+ changeTradeArea(item){
|
|
|
+ this.p.tradeAreaId = item.id
|
|
|
+ this.p.tradeAreaName = item.name
|
|
|
+ },
|
|
|
// 查看
|
|
|
get: function(data) {
|
|
|
sa.showIframe('数据详情', 'tb-goods-info.html?id=' + data.id, '1050px', '90%');
|
|
@@ -159,6 +180,7 @@
|
|
|
},
|
|
|
created: function() {
|
|
|
this.f5();
|
|
|
+ this.getTradeArea();
|
|
|
sa.onInputEnter();
|
|
|
}
|
|
|
})
|