|
|
|
@ -101,7 +101,7 @@
|
|
|
|
|
<script type="text/html" id="pbyq_templet">
|
|
|
|
|
|
|
|
|
|
{{# if(d.bp_xp > 0){ }}
|
|
|
|
|
<span class="bp">必配</span>
|
|
|
|
|
<span class="bp" hover="test()">必配</span>
|
|
|
|
|
{{# } else { }}
|
|
|
|
|
<span class="xp">选配</span>
|
|
|
|
|
{{# } }}
|
|
|
|
@ -145,6 +145,10 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
console.log(1111);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getXmSelect() {
|
|
|
|
@ -154,18 +158,7 @@
|
|
|
|
|
radio: true,
|
|
|
|
|
autoRow: true,
|
|
|
|
|
model: {
|
|
|
|
|
icon: 'hidden',
|
|
|
|
|
label: {
|
|
|
|
|
type: 'text',
|
|
|
|
|
text: {
|
|
|
|
|
//左边拼接的字符
|
|
|
|
|
left: '',
|
|
|
|
|
//右边拼接的字符
|
|
|
|
|
right: '',
|
|
|
|
|
//中间的分隔符
|
|
|
|
|
separator: ', ',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
icon: 'hidden'
|
|
|
|
|
},
|
|
|
|
|
tree: {
|
|
|
|
|
show: true,
|
|
|
|
@ -259,6 +252,7 @@
|
|
|
|
|
km_code: $("#kmId").val(),
|
|
|
|
|
level_filter: fenlei_name
|
|
|
|
|
},
|
|
|
|
|
cellExpandedMode: "tips",
|
|
|
|
|
height: 'full-70',
|
|
|
|
|
page: {
|
|
|
|
|
limit: 15
|
|
|
|
@ -286,6 +280,10 @@
|
|
|
|
|
var tempVal = '';
|
|
|
|
|
var options = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取当前行数据
|
|
|
|
|
table.getRowData = function (tableId, elem) {
|
|
|
|
|
var index = $(elem).closest('tr').data('index');
|
|
|
|
@ -298,14 +296,14 @@
|
|
|
|
|
|
|
|
|
|
$(".aabbxx").blur(function () {
|
|
|
|
|
var curVal = this.value.trim();
|
|
|
|
|
if(isNaN(curVal)){
|
|
|
|
|
this.value = tempVal;
|
|
|
|
|
if (isNaN(curVal)) {
|
|
|
|
|
this.value = tempVal;
|
|
|
|
|
layer.msg("请输入数字!", {
|
|
|
|
|
icon: 2,
|
|
|
|
|
time: 2000
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var data = table.getRowData(options.id, this);
|
|
|
|
|
if (tempVal != curVal) {
|
|
|
|
|
$.ajax({
|
|
|
|
@ -325,7 +323,7 @@
|
|
|
|
|
close: false
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|