mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 14:17:54 +08:00
支持编码映射like
This commit is contained in:
parent
ad0846b50b
commit
a94de23b6b
@ -12,20 +12,17 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" placeholder="请输入域" v-model="mappingManageInfo.conditions.domain"
|
<input type="text" placeholder="请输入域" v-model="mappingManageInfo.conditions.domain" class=" form-control">
|
||||||
class=" form-control">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" placeholder="请输入名称" v-model="mappingManageInfo.conditions.name"
|
<input type="text" placeholder="请输入名称" v-model="mappingManageInfo.conditions.nameLike" class=" form-control">
|
||||||
class=" form-control">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" placeholder="请输入键" v-model="mappingManageInfo.conditions.key"
|
<input type="text" placeholder="请输入键" v-model="mappingManageInfo.conditions.key" class=" form-control">
|
||||||
class=" form-control">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-1">
|
<div class="col-sm-1">
|
||||||
@ -74,14 +71,12 @@
|
|||||||
<td class="text-center">{{mapping.value}}</td>
|
<td class="text-center">{{mapping.value}}</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn-white btn btn-xs"
|
<button class="btn-white btn btn-xs" v-on:click="_openEditMappingModel(mapping)">
|
||||||
v-on:click="_openEditMappingModel(mapping)">
|
|
||||||
修改
|
修改
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn-white btn btn-xs"
|
<button class="btn-white btn btn-xs" v-on:click="_openDeleteMappingModel(mapping)">
|
||||||
v-on:click="_openDeleteMappingModel(mapping)">
|
|
||||||
删除
|
删除
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,74 +1,75 @@
|
|||||||
/**
|
/**
|
||||||
入驻小区
|
入驻小区
|
||||||
**/
|
**/
|
||||||
(function(vc){
|
(function(vc) {
|
||||||
var DEFAULT_PAGE = 1;
|
var DEFAULT_PAGE = 1;
|
||||||
var DEFAULT_ROWS = 10;
|
var DEFAULT_ROWS = 10;
|
||||||
vc.extends({
|
vc.extends({
|
||||||
data:{
|
data: {
|
||||||
mappingManageInfo:{
|
mappingManageInfo: {
|
||||||
mappings:[],
|
mappings: [],
|
||||||
name:'',
|
name: '',
|
||||||
total:0,
|
total: 0,
|
||||||
records:1,
|
records: 1,
|
||||||
conditions:{
|
conditions: {
|
||||||
domain:'',
|
domain: '',
|
||||||
name:'',
|
nameLike: '',
|
||||||
key:''
|
key: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod:function(){
|
_initMethod: function() {
|
||||||
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
},
|
},
|
||||||
_initEvent:function(){
|
_initEvent: function() {
|
||||||
vc.on('mappingManage','listMapping',function(_param){
|
vc.on('mappingManage', 'listMapping', function(_param) {
|
||||||
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
});
|
});
|
||||||
vc.on('pagination','page_event',function(_currentPage){
|
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||||
vc.component._listMappings(_currentPage,DEFAULT_ROWS);
|
vc.component._listMappings(_currentPage, DEFAULT_ROWS);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods:{
|
methods: {
|
||||||
_listMappings:function(_page, _rows){
|
_listMappings: function(_page, _rows) {
|
||||||
vc.component.mappingManageInfo.conditions.page = _page;
|
vc.component.mappingManageInfo.conditions.page = _page;
|
||||||
vc.component.mappingManageInfo.conditions.row = _rows;
|
vc.component.mappingManageInfo.conditions.row = _rows;
|
||||||
var param = {
|
var param = {
|
||||||
params:vc.component.mappingManageInfo.conditions
|
params: vc.component.mappingManageInfo.conditions
|
||||||
};
|
};
|
||||||
|
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.get('mappingManage',
|
vc.http.get('mappingManage',
|
||||||
'list',
|
'list',
|
||||||
param,
|
param,
|
||||||
function(json,res){
|
function(json, res) {
|
||||||
var _mappingManageInfo=JSON.parse(json);
|
var _mappingManageInfo = JSON.parse(json);
|
||||||
vc.component.mappingManageInfo.total = _mappingManageInfo.total;
|
vc.component.mappingManageInfo.total = _mappingManageInfo.total;
|
||||||
vc.component.mappingManageInfo.records = _mappingManageInfo.records;
|
vc.component.mappingManageInfo.records = _mappingManageInfo.records;
|
||||||
vc.component.mappingManageInfo.mappings = _mappingManageInfo.mappings;
|
vc.component.mappingManageInfo.mappings = _mappingManageInfo.mappings;
|
||||||
vc.emit('pagination','init',{
|
vc.emit('pagination', 'init', {
|
||||||
total: vc.component.mappingManageInfo.records,
|
total: vc.component.mappingManageInfo.records,
|
||||||
dataCount: vc.component.mappingManageInfo.total,
|
dataCount: vc.component.mappingManageInfo.total,
|
||||||
currentPage:_page
|
currentPage: _page
|
||||||
});
|
});
|
||||||
},function(errInfo,error){
|
},
|
||||||
console.log('请求失败处理');
|
function(errInfo, error) {
|
||||||
}
|
console.log('请求失败处理');
|
||||||
);
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
_openAddMappingModal:function(){
|
_openAddMappingModal: function() {
|
||||||
vc.emit('addMapping','openAddMappingModal',{});
|
vc.emit('addMapping', 'openAddMappingModal', {});
|
||||||
},
|
},
|
||||||
_openEditMappingModel:function(_mapping){
|
_openEditMappingModel: function(_mapping) {
|
||||||
vc.emit('editMapping','openEditMappingModal',_mapping);
|
vc.emit('editMapping', 'openEditMappingModal', _mapping);
|
||||||
},
|
},
|
||||||
_openDeleteMappingModel:function(_mapping){
|
_openDeleteMappingModel: function(_mapping) {
|
||||||
vc.emit('deleteMapping','openDeleteMappingModal',_mapping);
|
vc.emit('deleteMapping', 'openDeleteMappingModal', _mapping);
|
||||||
},
|
},
|
||||||
_queryMappingMethod:function(){
|
_queryMappingMethod: function() {
|
||||||
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(window.vc);
|
})(window.vc);
|
||||||
Loading…
Reference in New Issue
Block a user