瀏覽代碼

pc修改-根据互市区查商品

linbl 1 年之前
父節點
當前提交
d61f984f95
共有 2 個文件被更改,包括 24 次插入4 次删除
  1. 1 3
      sa-view/app-role/app-role-menu-list.html
  2. 23 1
      sa-view/tb-goods/tb-goods-list.html

+ 1 - 3
sa-view/app-role/app-role-menu-list.html

@@ -96,8 +96,6 @@
 						selectDatas.forEach(item => {
 							list += item.id + ',';
 						})
-						console.log("list",list)
-						console.log("this.appRoleId",this.appRoleId)
 						let item={list: list,roleId: this.appRoleId};
 						sa.ajax('/sp-admin/ReRoleMenu/assignPermissions',item, function(res) {
 							sa.msg('权限分配成功');
@@ -106,7 +104,7 @@
 				},
 				created: function() {
 					this.f5();
-					//sa.onInputEnter();
+					sa.onInputEnter();
 				}
 			})
 		</script>

+ 23 - 1
sa-view/tb-goods/tb-goods-list.html

@@ -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();
 				}
 			})