| | |
| | | ,{field: 'name', align: 'center',title: '名称'} |
| | | ,{field: 'code', align: 'center',title: '编码'} |
| | | ,{field: 'value', align: 'center',title: '对应值'} |
| | | , { field: 'selectType', align: 'center', title: '筛选类型' } |
| | | ,{field: 'type$', align: 'center',title: '类型'} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | |
| | |
| | | name: $('#name').val(), |
| | | code: $('#code').val(), |
| | | value: $('#value').val(), |
| | | selectType: $('#selectType').val(), |
| | | type: $('#type').val(), |
| | | status: $('#status').val(), |
| | | |
| | |
| | | |
| | | // 时间选择器 |
| | | |
| | | // 初始化筛选类型下拉框 |
| | | $.ajax({ |
| | | url: baseUrl + "/config/getSelectTypes", |
| | | headers: { 'token': localStorage.getItem('token') }, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | var types = res.data; |
| | | var select = $("#selectTypeSearch"); |
| | | for (var i = 0; i < types.length; i++) { |
| | | select.append("<option value='" + types[i] + "'>" + types[i] + "</option>"); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | }); |
| | | |
| | | // 关闭动作 |