|
|
@@ -112,9 +112,9 @@
|
|
112
|
112
|
<div class="time-box form-group">
|
|
113
|
113
|
<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
|
|
114
|
114
|
<input class="form-control" type="text" id="typeclass1" readonly="readonly" placeholder="请选择区域">
|
|
115
|
|
- <input type="text" class="inps2">
|
|
116
|
|
- <input type="text" class="inps3">
|
|
117
|
|
- <input type="text" class="inps4">
|
|
|
115
|
+ <input type="text" class="inps2" index="">
|
|
|
116
|
+ <input type="text" class="inps3" index="">
|
|
|
117
|
+ <input type="text" class="inps4" index="">
|
|
118
|
118
|
<input type="hidden" id="typeclassId1" />
|
|
119
|
119
|
<div class="addTree1 treeList1">
|
|
120
|
120
|
<ul id="TreeDemo1" class="ztree">
|
|
|
@@ -188,15 +188,24 @@
|
|
188
|
188
|
chanId = treeNode.F_Id;
|
|
189
|
189
|
changeName = treeNode.F_AreaName;
|
|
190
|
190
|
areaParent = treeNode.getPath();
|
|
|
191
|
+
|
|
191
|
192
|
if(areaParent[2]) {
|
|
192
|
193
|
areaParent1 = areaParent[0].F_AreaName
|
|
193
|
194
|
areaParent2 = areaParent[1].F_AreaName
|
|
194
|
195
|
areaParent3 = areaParent[2].F_AreaName
|
|
|
196
|
+ areaParentVal1 = areaParent[0].F_Id
|
|
|
197
|
+ areaParentVal2 = areaParent[1].F_Id
|
|
|
198
|
+ areaParentVal3 = areaParent[2].F_Id
|
|
195
|
199
|
$('#typeclass1').val(areaParent1 + "/" + areaParent2 + "/" + areaParent3);
|
|
196
|
200
|
$('#typeclass_market1').val(areaParent1 + "/" + areaParent2 + "/" + areaParent3);
|
|
197
|
201
|
$('.inps2').val(areaParent1);
|
|
198
|
202
|
$('.inps3').val(areaParent2);
|
|
199
|
203
|
$('.inps4').val(areaParent3);
|
|
|
204
|
+ $('.inps2').attr("index",areaParentVal1);
|
|
|
205
|
+ $('.inps3').attr("index",areaParentVal2);
|
|
|
206
|
+ $('.inps4').attr("index",areaParentVal3);
|
|
|
207
|
+
|
|
|
208
|
+
|
|
200
|
209
|
} else {
|
|
201
|
210
|
layer.msg("请选择最下级菜单");
|
|
202
|
211
|
}
|
|
|
@@ -315,9 +324,9 @@
|
|
315
|
324
|
data: {
|
|
316
|
325
|
token: token,
|
|
317
|
326
|
type: $('.orderType2').val(),
|
|
318
|
|
- area:$('.inps2').val(),//区
|
|
319
|
|
- province:$('.inps3').val(),//省份
|
|
320
|
|
- city:$('.inps4').val() //市
|
|
|
327
|
+ area:$('.inps2').attr("index"),//区
|
|
|
328
|
+ province:$('.inps3').attr("index"),//省份
|
|
|
329
|
+ city:$('.inps4').attr("index") //市
|
|
321
|
330
|
},
|
|
322
|
331
|
success: function(data) {
|
|
323
|
332
|
if(data.state.toLowerCase() == "success") {
|