|
|
@@ -15,7 +15,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
ip() {
|
|
|
- return "http://127.0.0.1"
|
|
|
+ return "/api"//return "http://127.0.0.1:8000"
|
|
|
}
|
|
|
|
|
|
clearCache() {//set qufei will clear cache
|
|
|
@@ -130,7 +130,7 @@ class Service{
|
|
|
|
|
|
}
|
|
|
async generateOutline(name) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/outline"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/outline"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -149,7 +149,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateQufei(name) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/qufei"), {
|
|
|
+ const response = await fetch(this.ip().concat("/qufei/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -167,7 +167,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateOutline2(name) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/outline2"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/outline2"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -185,7 +185,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateDetail(name) {
|
|
|
- const response = await fetch(this.ip().concat(":8000/detail"), {
|
|
|
+ const response = await fetch(this.ip().concat("/detail"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -204,7 +204,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateDetail2(name) {
|
|
|
- const response = await fetch(this.ip().concat(":8000/detail2"), {
|
|
|
+ const response = await fetch(this.ip().concat("/detail2"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -222,7 +222,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateBaojiahuizong(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/baojiahuizong/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/baojiahuizong/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -241,7 +241,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateBaojiahuizong2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/baojiahuizong2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/baojiahuizong2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -260,7 +260,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateGuifeishuijin(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/guifeishuijin/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/guifeishuijin/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -279,7 +279,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateGuifeishuijin2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/guifeishuijin2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/guifeishuijin2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -299,7 +299,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateQitaxiangmu(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/qitaxiangmu/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/qitaxiangmu/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -319,7 +319,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateQitaxiangmu2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/qitaxiangmu2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/qitaxiangmu2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -339,7 +339,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateZygczgj(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/zygczgj/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/zygczgj/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -360,7 +360,7 @@ class Service{
|
|
|
|
|
|
|
|
|
async generateZongchengbaofuwufei(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/zongchengbaofuwufei/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/zongchengbaofuwufei/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -380,7 +380,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateZongchengbaofuwufei2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/zongchengbaofuwufei2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/zongchengbaofuwufei2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -399,7 +399,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateFabaorengongyingcailiao(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/fabaorengongyingcailiao/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/fabaorengongyingcailiao/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -418,7 +418,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateFabaorengongyingcailiao2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/fabaorengongyingcailiao2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/fabaorengongyingcailiao2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -438,7 +438,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateRencaijihuizong(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/rencaijihuizong/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/rencaijihuizong/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -458,7 +458,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateRencaijihuizong2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/rencaijihuizong2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/rencaijihuizong2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -500,7 +500,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateJirigong(name, id) {
|
|
|
- const response = await fetch(this.ip().concat(":8000/jirigong/"), {
|
|
|
+ const response = await fetch(this.ip().concat("/jirigong/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -521,7 +521,7 @@ class Service{
|
|
|
|
|
|
|
|
|
async generateJirigong2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat(":8000/jirigong2/"), {
|
|
|
+ const response = await fetch(this.ip().concat("/jirigong2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -540,7 +540,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateZanliejine(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/zanliejine/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/zanliejine/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -560,7 +560,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async generateZanliejine2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/zanliejine2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/zanliejine2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -579,7 +579,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateQingdanxiangmu(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/qingdanxiangmu/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/qingdanxiangmu/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -598,7 +598,7 @@ class Service{
|
|
|
}
|
|
|
}
|
|
|
async generateQingdanxiangmu2(name, id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/qingdanxiangmu2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/qingdanxiangmu2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -618,7 +618,7 @@ class Service{
|
|
|
}
|
|
|
|
|
|
async searchDe(zhuanye, text) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/searchde/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/searchde/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -645,7 +645,7 @@ class Service{
|
|
|
async generateQingdanmingxi(name, bh, bt) {
|
|
|
if (this.cache.length == 0 || this.cache[0]["biao_id"] != name || this.cache[0]["Dwgcbh"] != bh ||
|
|
|
this.cache[0]["bt"] != bt) {
|
|
|
- const response = await fetch(this.ip().concat(":8000/qingdanmingxi/"), {
|
|
|
+ const response = await fetch(this.ip().concat("/qingdanmingxi/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -705,7 +705,7 @@ class Service{
|
|
|
/////////////////////////////end of qingdan////////////////////////////////////
|
|
|
|
|
|
async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/qingdantuijian/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/qingdantuijian/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -728,7 +728,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
}
|
|
|
async generateZjcs(name, bh) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/zjcs/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/zjcs/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -750,7 +750,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
async generateDjcs(name, bh) {
|
|
|
if (this.cache_djcs.length == 0 || this.cache_djcs[0]["biao_id"] != name || this.cache_djcs[0]["Dwgcbh"] != bh) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/djcs/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/djcs/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -776,7 +776,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
}
|
|
|
async generateFiles() {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/files/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/files/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -792,7 +792,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
|
|
|
async generateFiles2() {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/files2/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/files2/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -807,7 +807,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
}
|
|
|
async generatePeibiXilie(id) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/pbxl/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/pbxl/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -827,7 +827,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
}
|
|
|
async generatePeibishu(zhuanye) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/pbs/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/pbs/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -847,7 +847,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
}
|
|
|
async generateDingeshu(value) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/des/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/des/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -867,7 +867,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
}
|
|
|
async generateDingeXilie(value, id) {//定额书的一个栏目的所有具体定额
|
|
|
- const response = await fetch(this.ip().concat(":8000/dexilie/"), {
|
|
|
+ const response = await fetch(this.ip().concat("/dexilie/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -888,7 +888,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
}
|
|
|
async generateSingleDingeXilie(zhuanye, debh) {//清单页面展示用
|
|
|
- const response = await fetch(this.ip().concat( ":8000/singledexilie/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/singledexilie/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -911,7 +911,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
|
|
|
|
|
|
async save() {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/save/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/save/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -933,7 +933,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
|
|
|
async save_djcs() {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/savedjcs/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/savedjcs/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -955,7 +955,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
}
|
|
|
|
|
|
async applyFL(id, data) {
|
|
|
- const response = await fetch(this.ip().concat( ":8000/applyFL/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/applyFL/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -989,7 +989,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
lr = this.qufeiEntry['利润(%)'];
|
|
|
bz = 1;
|
|
|
}
|
|
|
- const response = await fetch(this.ip().concat( ":8000/tiaojia/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/tiaojia/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -1021,7 +1021,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
|
|
|
async updateZjcs(biao_id, bh, row) {
|
|
|
|
|
|
- const response = await fetch(this.ip().concat( ":8000/updatezjcs/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/updatezjcs/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|
|
|
@@ -1048,7 +1048,7 @@ async generateQingdanTuijian(name, bh, bt, bm) {
|
|
|
|
|
|
async cankao() {
|
|
|
|
|
|
- const response = await fetch(this.ip().concat( ":8000/cankao/"), {
|
|
|
+ const response = await fetch(this.ip().concat( "/cankao/"), {
|
|
|
method : "POST",
|
|
|
headers: {
|
|
|
"Content-type": "application/json"
|