|
@@ -21,6 +21,12 @@ function findNode2 (key, value, arr) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+// 分类数据排序
|
|
|
+function sortCategory2() {
|
|
|
+ category.sort(function (a, b) {
|
|
|
+ return a.level ? (b.level ? a.level - b.level : -1) : a.id - b.id;
|
|
|
+ });
|
|
|
+}
|
|
|
// 初始化TenderTree数据
|
|
|
function initTenderTree2 () {
|
|
|
const levelCategory = category.filter(function (c) {
|
|
@@ -99,6 +105,7 @@ function initTenderTree2 () {
|
|
|
}
|
|
|
}
|
|
|
sortTenderTree(tenderTree2);
|
|
|
+ console.log(tenderTree2);
|
|
|
}
|
|
|
function recursiveGetTenderNodeHtml2 (node, arr, pid, this_code, this_status, aidList = []) {
|
|
|
const html = [];
|
|
@@ -567,7 +574,7 @@ $(document).ready(function () {
|
|
|
$(this).parents('ul').append(addhtml);
|
|
|
$(this).parents('li').remove();
|
|
|
});
|
|
|
-
|
|
|
+ sortCategory2();
|
|
|
initTenderTree2();
|
|
|
|
|
|
$('body').on('click', '.set-otherTender', function () {
|