|
@@ -474,7 +474,7 @@ $(document).ready(() => {
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
- postData('/list/add', data, function (result) {
|
|
|
+ postData(`/sp/${spid}/list/add`, data, function (result) {
|
|
|
tenders.push(result);
|
|
|
initTenderTree();
|
|
|
$('.c-body').html(getTenderTreeHtml());
|
|
@@ -510,7 +510,7 @@ $(document).ready(() => {
|
|
|
// }
|
|
|
// data.category.push(cate);
|
|
|
}
|
|
|
- postData('/list/update', data, function (result) {
|
|
|
+ postData(`/sp/${spid}/list/update`, data, function (result) {
|
|
|
const tender = _.find(tenders, {id: result.id});
|
|
|
_.assign(tender, result);
|
|
|
initTenderTree();
|
|
@@ -524,7 +524,7 @@ $(document).ready(() => {
|
|
|
$('#del-bd-ok').click(function () {
|
|
|
const tid = parseInt($(this).attr('tid'));
|
|
|
if (tid >= 0) {
|
|
|
- postData('/list/del', [tid], function (result) {
|
|
|
+ postData(`/sp/${spid}/list/del`, [tid], function (result) {
|
|
|
function getCategory(arr, id) {
|
|
|
for (const a of arr) {
|
|
|
if (a.cid) {
|