修复数据回显问题
This commit is contained in:
@@ -165,12 +165,12 @@ export default {
|
||||
valign: 'middle',
|
||||
width: '5%',
|
||||
formatter: function (val, row, index) {
|
||||
if (val) {
|
||||
if (val == 1) {
|
||||
return '是';
|
||||
} else {
|
||||
} else if (val == 0) {
|
||||
return '否';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -180,12 +180,12 @@ export default {
|
||||
valign: 'middle',
|
||||
width: '5%',
|
||||
formatter: function (val, row, index) {
|
||||
if (val) {
|
||||
if (val == 1) {
|
||||
return '是';
|
||||
} else {
|
||||
} else if (val == 0) {
|
||||
return '否';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
},
|
||||
{ field: 'seq', title: '置顶排序', align: 'center', width: '5%' },
|
||||
@@ -308,7 +308,14 @@ export default {
|
||||
var id = $(this).attr("data-id");
|
||||
const index = $(this).data('index');
|
||||
const record = TableHelper.getData('#table')[index];
|
||||
$('#roomUid').val(record.roomUid);
|
||||
$("#id").val(0);
|
||||
$("#modal_iconContent").val('');
|
||||
$("#modal_seq").val(0);
|
||||
$("#modal_isTop").val(0);
|
||||
$("#modal_topStart").val('');
|
||||
$("#modal_topEnd").val('');
|
||||
$("#modal_isShow").val(0);
|
||||
$('#roomUid').val('');
|
||||
if (id && id != 'null') {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
|
@@ -57,7 +57,6 @@
|
||||
<label for="modal_isTop" class="col-sm-3 control-label">是否置顶<font color="red">*</font>:</label>
|
||||
<div class="col-sm-9">
|
||||
<select name="isTop" id="modal_isTop" class="form-control validate[required]">
|
||||
<option value=""></option>
|
||||
<option value="1">是</option>
|
||||
<option value="0">否</option>
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user