|
@@ -129,7 +129,7 @@ function initCompanyPage(){
|
|
|
form.on('submit(submit)', function (data){
|
|
|
var data = form.val('dataForm');
|
|
|
var objs = $("input[name='otherClass']") //选择所有的name属性等于'otherClass'的input元素
|
|
|
- // console.log(objs)
|
|
|
+ console.log(objs)
|
|
|
var otherData = {};
|
|
|
if (objs && objs.length > 0) {
|
|
|
for (var i = 0; i < objs.length; i++){
|
|
@@ -296,21 +296,10 @@ function echoClassification(data) {
|
|
|
$("#classificationOther").append(str)
|
|
|
form.render()
|
|
|
}
|
|
|
- // var beforeName = arr[i].__node.parent.name;
|
|
|
- // var otherId = arr[i].value;
|
|
|
- // var str = '';
|
|
|
- // if (arr[i].name === '其他') {
|
|
|
- // str += '<div class="layui-form-item"><label class="layui-form-label">'+beforeName+':</label>' +
|
|
|
- // '<div class="layui-input-block"><input type="text" data-id="'+otherId+'" name="otherClass" id= "otherClass"'+i+' ' +
|
|
|
- // 'maxlength="500" class="layui-input" ' +
|
|
|
- // 'placeholder="'+ beforeName +'" autocomplete="off"></div></div>';
|
|
|
- // }
|
|
|
- // $("#classificationOther").append(str)
|
|
|
- // form.render()
|
|
|
}
|
|
|
- // if (json.data.columnExplain) {
|
|
|
- // $("#columnShow").show();
|
|
|
- // }
|
|
|
+ if (data.columnExplain) {
|
|
|
+ $("#columnShow").show();
|
|
|
+ }
|
|
|
}
|
|
|
function initColumn(){
|
|
|
ly.ajax({
|
|
@@ -795,7 +784,7 @@ function xmSelectRender(data, vAttr, kAttr){
|
|
|
var str = '';
|
|
|
if (arr[i].name === '其他') {
|
|
|
str += '<div class="layui-form-item"><label class="layui-form-label">'+beforeName+':</label>' +
|
|
|
- '<div class="layui-input-block"><input type="text" data-id="'+otherId+'" name="otherClass" id= "otherClass"'+i+' ' +
|
|
|
+ '<div class="layui-input-block"><input type="text" data-id="'+otherId+'" name="otherClass"' +
|
|
|
'maxlength="500" class="layui-input" ' +
|
|
|
'placeholder="'+ beforeName +'" autocomplete="off"></div></div>';
|
|
|
}
|