|
|
@@ -138,7 +138,16 @@ var bootstrap = function ($, learun) { |
|
|
|
edit: { |
|
|
|
type: 'select', |
|
|
|
init: function (data, $edit) {// 在点击单元格的时候触发,可以用来初始化输入控件,行数据和控件对象 |
|
|
|
|
|
|
|
if (data.IsSlow == true) { |
|
|
|
$edit[0]._lrselect.dfop._index = "0"; |
|
|
|
$edit.find('.lr-select-placeholder').html('是'); |
|
|
|
} else if (data.IsSlow == false) { |
|
|
|
$edit[0]._lrselect.dfop._index = "1"; |
|
|
|
$edit.find('.lr-select-placeholder').html('否'); |
|
|
|
} else { |
|
|
|
$edit[0]._lrselect.dfop._index = "-1"; |
|
|
|
$edit.find('.lr-select-placeholder').html(''); |
|
|
|
} |
|
|
|
}, |
|
|
|
change: function (row, num, item) {// 行数据和行号,下拉框选中数据 |
|
|
|
|
|
|
|