ztApi.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958
  1. import axios from "axios";
  2. import vuex from "@/store/index.js";
  3. import errorCode from "@/utils/errorCode";
  4. import { tansParams, blobValidate } from "@/utils/ruoyi";
  5. import cache from "@/plugins/cache";
  6. import { Notification, MessageBox, Message, Loading } from "element-ui";
  7. import { saveAs } from "file-saver";
  8. import { getToken } from "@/utils/auth";
  9. axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
  10. // 是否显示重新登录
  11. export let isReloginShow = false;
  12. // 创建axios实例
  13. const request = axios.create({
  14. // axios中请求配置有baseURL选项,表示请求URL公共部分
  15. baseURL: window.axiosURI,
  16. //baseURL: "http://192.168.100.252:8080",
  17. // 超时
  18. timeout: 100000,
  19. });
  20. // request拦截器
  21. request.interceptors.request.use(
  22. (config) => {
  23. //代码防止重复提交会导致浏览器内存溢出,因此没在这添加判断
  24. config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
  25. // 是否需要防止数据重复提交
  26. const isRepeatSubmit = (config.headers || {}).repeatSubmit === false;
  27. // get请求映射params参数
  28. if (config.method === "get" && config.params) {
  29. let url = config.url + "?" + tansParams(config.params);
  30. url = url.slice(0, -1);
  31. config.params = {};
  32. config.url = url;
  33. }
  34. if (
  35. !isRepeatSubmit &&
  36. (config.method === "post" || config.method === "put")
  37. ) {
  38. const requestObj = {
  39. url: config.url,
  40. data:
  41. typeof config.data === "object"
  42. ? JSON.stringify(config.data)
  43. : config.data,
  44. time: new Date().getTime(),
  45. };
  46. if (requestObj.data.length > 2048) {
  47. requestObj.data = requestObj.data.substring(0, 2048);
  48. }
  49. const sessionObj = cache.session.getJSON("sessionObj");
  50. if (
  51. sessionObj === undefined ||
  52. sessionObj === null ||
  53. sessionObj === ""
  54. ) {
  55. cache.session.setJSON("sessionObj", requestObj);
  56. } else {
  57. const s_url = sessionObj.url; // 请求地址
  58. const s_data = sessionObj.data; // 请求数据
  59. const s_time = sessionObj.time; // 请求时间
  60. const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交
  61. if (
  62. s_data === requestObj.data &&
  63. requestObj.time - s_time < interval &&
  64. s_url === requestObj.url
  65. ) {
  66. const message = "数据正在处理,请勿重复提交";
  67. console.warn(`[${s_url}]: ` + message);
  68. return Promise.reject(new Error(message));
  69. } else {
  70. cache.session.setJSON("sessionObj", requestObj);
  71. }
  72. }
  73. }
  74. return config;
  75. },
  76. (error) => {
  77. console.log(error);
  78. Promise.reject(error);
  79. }
  80. );
  81. // 响应拦截器
  82. request.interceptors.response.use(
  83. (res) => {
  84. // 未设置状态码则默认成功状态
  85. const code = res.data.code || 200;
  86. // 获取错误信息
  87. const msg = errorCode[code] || res.data.msg || errorCode["default"];
  88. // 二进制数据则直接返回
  89. if (
  90. res.request.responseType === "blob" ||
  91. res.request.responseType === "arraybuffer"
  92. ) {
  93. return res;
  94. }
  95. if (code === 401) {
  96. if (!isReloginShow) {
  97. isReloginShow = !isReloginShow;
  98. MessageBox.confirm(
  99. "登录状态已过期,您可以继续留在该页面,或者重新登录",
  100. "系统提示",
  101. {
  102. confirmButtonText: "重新登录",
  103. cancelButtonText: "取消",
  104. type: "warning",
  105. }
  106. )
  107. .then(() => {
  108. isReloginShow = !isReloginShow;
  109. vuex.dispatch("LogOut").then(() => {
  110. location.href = "/login";
  111. });
  112. })
  113. .catch(() => {
  114. isReloginShow = !isReloginShow;
  115. });
  116. }
  117. return Promise.reject("无效的会话,或者会话已过期,请重新登录。");
  118. } else if (code === 500) {
  119. Message({
  120. message: msg,
  121. type: "error",
  122. });
  123. return Promise.reject(new Error(msg));
  124. } else if (code === 601) {
  125. Message({
  126. message: msg,
  127. type: "warning",
  128. });
  129. return Promise.reject("error");
  130. } else if (code !== 200) {
  131. Notification.error({
  132. title: msg,
  133. });
  134. return Promise.reject("error");
  135. } else {
  136. return res.data;
  137. }
  138. },
  139. (error) => {
  140. console.log("err" + error);
  141. let { message } = error;
  142. if (message == "Network Error") {
  143. message = "后端接口连接异常";
  144. } else if (message.includes("timeout")) {
  145. message = "系统接口请求超时";
  146. } else if (message.includes("Request failed with status code")) {
  147. message = "系统接口" + message.substr(message.length - 3) + "异常";
  148. }
  149. Message({
  150. message: message,
  151. type: "error",
  152. duration: 5 * 1000,
  153. });
  154. return Promise.reject(error);
  155. }
  156. );
  157. /**
  158. * 基准地价报告
  159. * @param {*} data
  160. * @returns
  161. */
  162. export async function getJZDJWord(data) {
  163. let response = await request({
  164. url: "/model/exportWord/exportWord4",
  165. method: "post",
  166. responseType: "blob",
  167. data: data,
  168. });
  169. debugger;
  170. var fileName = "分析报告";
  171. debugger;
  172. const contentDisposition = response.headers["content-disposition"];
  173. if (contentDisposition) {
  174. fileName = window.decodeURI(
  175. response.headers["content-disposition"].split("=")[1],
  176. "UTF-8"
  177. );
  178. }
  179. const isBlob = blobValidate(response.data);
  180. debugger;
  181. if (isBlob) {
  182. const blob = new Blob([response.data]);
  183. saveAs(blob, fileName);
  184. } else {
  185. const resText = await response.text();
  186. const rspObj = JSON.parse(resText);
  187. const errMsg = errorCode[rspObj.code] || rspObj.msg || errorCode["default"];
  188. Message.error(errMsg);
  189. }
  190. return;
  191. }
  192. /**
  193. * 征收补偿报告
  194. * @param {*} data
  195. * @returns
  196. */
  197. export async function getZDBCWord(data) {
  198. let response = await request({
  199. url: "/model/exportWord/exportWord3",
  200. method: "post",
  201. responseType: "blob",
  202. data: data,
  203. });
  204. debugger;
  205. var fileName = data.projectName;
  206. debugger;
  207. const contentDisposition = response.headers["content-disposition"];
  208. if (contentDisposition) {
  209. fileName = window.decodeURI(
  210. response.headers["content-disposition"].split("=")[1],
  211. "UTF-8"
  212. );
  213. }
  214. const isBlob = blobValidate(response.data);
  215. debugger;
  216. if (isBlob) {
  217. const blob = new Blob([response.data]);
  218. saveAs(blob, fileName);
  219. } else {
  220. const resText = await response.text();
  221. const rspObj = JSON.parse(resText);
  222. const errMsg = errorCode[rspObj.code] || rspObj.msg || errorCode["default"];
  223. Message.error(errMsg);
  224. }
  225. return;
  226. }
  227. /*************************报建项目******************** start */
  228. // 查询项目信息列表
  229. export async function listProjectinformation(query) {
  230. return await request({
  231. url: "/model/projectinformation/list",
  232. method: "get",
  233. params: query,
  234. });
  235. }
  236. // 查询项目信息详细
  237. export async function getProjectinformation(id) {
  238. return await request({
  239. url: "/model/projectinformation/" + id,
  240. method: "get",
  241. });
  242. }
  243. // 新增项目信息
  244. export async function addProjectinformation(data) {
  245. return await request({
  246. url: "/model/projectinformation",
  247. method: "post",
  248. data: data,
  249. });
  250. }
  251. // 修改项目信息
  252. export async function updateProjectinformation(data) {
  253. return await request({
  254. url: "/model/projectinformation",
  255. method: "put",
  256. data: data,
  257. });
  258. }
  259. // 删除项目信息
  260. export async function delProjectinformation(id) {
  261. return await request({
  262. url: "/model/projectinformation/" + id,
  263. method: "delete",
  264. });
  265. }
  266. // 查询报建模型列表
  267. export async function listConstructionmodel(query) {
  268. return await request({
  269. url: "/model/constructionmodel/list",
  270. method: "get",
  271. params: query,
  272. });
  273. }
  274. // 查询报建模型详细
  275. export async function getConstructionmodel(id) {
  276. return await request({
  277. url: "/model/constructionmodel/" + id,
  278. method: "get",
  279. });
  280. }
  281. // 新增报建模型
  282. export async function addConstructionmodel(data) {
  283. return await request({
  284. url: "/model/constructionmodel",
  285. method: "post",
  286. data: data,
  287. });
  288. }
  289. // 修改报建模型
  290. export async function updateConstructionmodel(data) {
  291. return await request({
  292. url: "/model/constructionmodel",
  293. method: "put",
  294. data: data,
  295. });
  296. }
  297. // 删除报建模型
  298. export async function delConstructionmodel(id) {
  299. return await request({
  300. url: "/model/constructionmodel/" + id,
  301. method: "delete",
  302. });
  303. }
  304. // 查询项目模型指标人工核算值详细
  305. export async function getZtProjectModelZb(id) {
  306. return await request({
  307. url: "/model/ZtProjectModelZb/" + id,
  308. method: "get",
  309. });
  310. }
  311. // 新增项目模型指标人工核算值
  312. export async function addZtProjectModelZb(data) {
  313. return await request({
  314. url: "/model/ZtProjectModelZb",
  315. method: "post",
  316. data: data,
  317. });
  318. }
  319. // 修改项目模型指标人工核算值
  320. export async function updateZtProjectModelZb(data) {
  321. return await request({
  322. url: "/model/ZtProjectModelZb",
  323. method: "put",
  324. data: data,
  325. });
  326. }
  327. /*************************报建项目******************** end */
  328. /*************************基准地价******************** start */
  329. // 基准地价分析
  330. export async function getAnalyseResult(data) {
  331. return request({
  332. url: "/model/jzdjanalyse/getAnalyseResult",
  333. method: "post",
  334. data: data,
  335. });
  336. }
  337. // 查询基准地价信息列表
  338. export async function listBenchmarkLandPrices(query) {
  339. return request({
  340. url: "/model/BenchmarkLandPrices/list",
  341. method: "get",
  342. params: query,
  343. });
  344. }
  345. // 查询基准地价信息详细
  346. export async function getBenchmarkLandPrices(id) {
  347. return request({
  348. url: "/model/BenchmarkLandPrices/" + id,
  349. method: "get",
  350. });
  351. }
  352. // 新增基准地价信息
  353. export async function addBenchmarkLandPrices(data) {
  354. return request({
  355. url: "/model/BenchmarkLandPrices",
  356. method: "post",
  357. data: data,
  358. });
  359. }
  360. // 修改基准地价信息
  361. export async function updateBenchmarkLandPrices(data) {
  362. return request({
  363. url: "/model/BenchmarkLandPrices",
  364. method: "put",
  365. data: data,
  366. });
  367. }
  368. // 删除基准地价信息
  369. export async function delBenchmarkLandPrices(id) {
  370. return request({
  371. url: "/model/BenchmarkLandPrices/" + id,
  372. method: "delete",
  373. });
  374. }
  375. // 查询基准地价分析结果列表
  376. export function listZtBenchmarkLandPriceResults(query) {
  377. return request({
  378. url: "/model/ZtBenchmarkLandPriceResults/list",
  379. method: "get",
  380. params: query,
  381. });
  382. }
  383. // 查询基准地价分析结果详细
  384. export function getZtBenchmarkLandPriceResults(id) {
  385. return request({
  386. url: "/model/ZtBenchmarkLandPriceResults/" + id,
  387. method: "get",
  388. });
  389. }
  390. // 新增基准地价分析结果
  391. export function addZtBenchmarkLandPriceResults(data) {
  392. return request({
  393. url: "/model/ZtBenchmarkLandPriceResults",
  394. method: "post",
  395. data: data,
  396. });
  397. }
  398. // 修改基准地价分析结果
  399. export function updateZtBenchmarkLandPriceResults(data) {
  400. return request({
  401. url: "/model/ZtBenchmarkLandPriceResults",
  402. method: "put",
  403. data: data,
  404. });
  405. }
  406. // 删除基准地价分析结果
  407. export function delZtBenchmarkLandPriceResults(id) {
  408. return request({
  409. url: "/model/ZtBenchmarkLandPriceResults/" + id,
  410. method: "delete",
  411. });
  412. }
  413. /*************************基准地价******************** end */
  414. /*************************征收补偿******************** start */
  415. // 01 征地补偿标准列表 list
  416. export function getZdBcbzList(query) {
  417. return request({
  418. url: "/model/zdbcbz/list",
  419. method: "get",
  420. params: query,
  421. });
  422. }
  423. // 征地 补偿标准 getbyid
  424. export function getZdBcbzById(id) {
  425. return request({
  426. url: "/model/zdbcbz/getInfo/" + id,
  427. method: "get",
  428. });
  429. }
  430. //添加 征地 补偿标准 add
  431. export function addZdBcbz(data) {
  432. return request({
  433. url: "/model/zdbcbz/",
  434. method: "post",
  435. data: data,
  436. });
  437. }
  438. // 更新 征地 补偿标准 update
  439. export function updateZdBcbz(data) {
  440. return request({
  441. url: "/model/zdbcbz/",
  442. method: "put",
  443. data: data,
  444. });
  445. }
  446. // 删除 征地 补偿标准 delbyid
  447. export function delZdBcbz(id) {
  448. return request({
  449. url: "/model/zdbcbz/" + id,
  450. method: "delete",
  451. });
  452. }
  453. // 02 青苗 补偿标准列表 list
  454. export function getQmbcbzList(query) {
  455. return request({
  456. url: "/model/qmbcbz/list",
  457. method: "get",
  458. params: query,
  459. });
  460. }
  461. // 青苗 补偿标准 getbyid
  462. export function getQmbcbzById(id) {
  463. return request({
  464. url: "/model/qmbcbz/" + id,
  465. method: "get",
  466. });
  467. }
  468. //添加 青苗 补偿标准 add
  469. export function addQmbcbz(data) {
  470. return request({
  471. url: "/model/qmbcbz",
  472. method: "post",
  473. data: data,
  474. });
  475. }
  476. // 更新 青苗 补偿标准 update
  477. export function updateQmbcbz(data) {
  478. return request({
  479. url: "/model/qmbcbz",
  480. method: "put",
  481. data: data,
  482. });
  483. }
  484. // 删除 青苗 补偿标准 delbyid
  485. export function delQmbcbz(id) {
  486. return request({
  487. url: "/model/qmbcbz/" + id,
  488. method: "delete",
  489. });
  490. }
  491. // 03 拆迁 补偿标准列表 list
  492. export function getCqBcbzList(query) {
  493. return request({
  494. url: "/model/cqbczd/list",
  495. method: "get",
  496. params: query,
  497. });
  498. }
  499. // 拆迁 补偿标准 getbyid
  500. export function getCqBcbzById(id) {
  501. return request({
  502. url: "/model/cqbcbz/" + id,
  503. method: "get",
  504. });
  505. }
  506. //添加 拆迁 补偿标准 add
  507. export function addCqBcbz(data) {
  508. return request({
  509. url: "/model/cqbcbz",
  510. method: "post",
  511. data: data,
  512. });
  513. }
  514. // 更新 拆迁 补偿标准 update
  515. export function updateCqBcbz(data) {
  516. return request({
  517. url: "/model/cqbcbz",
  518. method: "post",
  519. data: data,
  520. });
  521. }
  522. // 删除 拆迁 补偿标准 delbyid
  523. export function delCqBcbz(id) {
  524. return request({
  525. url: "/model/cqbcbz/" + id,
  526. method: "delete",
  527. });
  528. }
  529. // 03-1 拆迁 补偿标准项 list
  530. export function getCqBcbzItemList(query) {
  531. return request({
  532. url: "/model/cqbcbzitem/list",
  533. method: "get",
  534. params: query,
  535. });
  536. }
  537. // 拆迁 补偿标准项 getbyid
  538. export function getCqBcbzItemById(id) {
  539. return request({
  540. url: "/model/cqbcbzitem/" + id,
  541. method: "get",
  542. });
  543. }
  544. //添加 拆迁 补偿标准项 add
  545. export function addCqBcbzItem(data) {
  546. return request({
  547. url: "/model/cqbcbzitem",
  548. method: "post",
  549. data: data,
  550. });
  551. }
  552. // 更新 拆迁 补偿标准项 update
  553. export function updateCqBcbzItem(data) {
  554. return request({
  555. url: "/model/cqbcbzitem",
  556. method: "put",
  557. data: data,
  558. });
  559. }
  560. // 删除 拆迁 补偿标准项 delbyid
  561. export function delCqBcbzItem(id) {
  562. return request({
  563. url: "/model/cqbcbzitem/" + id,
  564. method: "delete",
  565. });
  566. }
  567. // 04 拆迁 分析结果 列表 list
  568. export function getCqResultList(query) {
  569. return request({
  570. url: "/model/cqresult/list",
  571. method: "get",
  572. params: query,
  573. });
  574. }
  575. // 拆迁 分析结果 getbyid
  576. export function getCqResultById(id) {
  577. return request({
  578. url: "/model/cqresult/" + id,
  579. method: "get",
  580. });
  581. }
  582. //添加 拆迁 分析结果 add
  583. export function addCqResult(data) {
  584. return request({
  585. url: "/model/cqresult",
  586. method: "post",
  587. data: data,
  588. });
  589. }
  590. // 更新 拆迁 分析结果 update
  591. export function updateCqResult(data) {
  592. return request({
  593. url: "/model/cqresult",
  594. method: "post",
  595. data: data,
  596. });
  597. }
  598. // 删除 拆迁 分析结果 delbyid
  599. export function delCqResult(id) {
  600. return request({
  601. url: "/model/cqresult/" + id,
  602. method: "delete",
  603. });
  604. }
  605. // 05 征地 分析结果 列表 list
  606. export function getZdResultList(query) {
  607. return request({
  608. url: "/model/zdresult/list",
  609. method: "get",
  610. params: query,
  611. });
  612. }
  613. // 征地 分析结果 getbyid
  614. export function getZdResultById(id) {
  615. return request({
  616. url: "/model/zdresult/" + id,
  617. method: "get",
  618. });
  619. }
  620. //添加 征地 分析结果 add
  621. export function addZdResult(data) {
  622. return request({
  623. url: "/model/zdresult",
  624. method: "post",
  625. data: data,
  626. });
  627. }
  628. // 更新 征地 分析结果 update
  629. export function updateZdResult(data) {
  630. return request({
  631. url: "/model/zdresult",
  632. method: "post",
  633. data: data,
  634. });
  635. }
  636. // 删除 征地 分析结果 delbyid
  637. export function delZdResult(id) {
  638. return request({
  639. url: "/model/zdresult/" + id,
  640. method: "delete",
  641. });
  642. }
  643. // 06 青苗 分析结果 列表 list
  644. export function getQmResultList(query) {
  645. return request({
  646. url: "/model/qmresult/list",
  647. method: "get",
  648. params: query,
  649. });
  650. }
  651. // 青苗 分析结果 getbyid
  652. export function getQmResultById(id) {
  653. return request({
  654. url: "/model/qmresult/" + id,
  655. method: "get",
  656. });
  657. }
  658. //添加 青苗 分析结果 add
  659. export function addQmResult(data) {
  660. return request({
  661. url: "/model/qmresult",
  662. method: "post",
  663. data: data,
  664. });
  665. }
  666. // 更新 青苗 分析结果 update
  667. export function updateQmResult(data) {
  668. return request({
  669. url: "/model/qmresult",
  670. method: "post",
  671. data: data,
  672. });
  673. }
  674. // 删除 青苗 分析结果 delbyid
  675. export function delQmResult(id) {
  676. return request({
  677. url: "/model/qmresult/" + id,
  678. method: "delete",
  679. });
  680. }
  681. // 07 征收补偿项目 列表 list
  682. export function getZdProjectList(query) {
  683. return request({
  684. url: "/model/zdproject/list",
  685. method: "get",
  686. params: query,
  687. });
  688. }
  689. // 征收补偿项目 getbyid
  690. export function getZdProjectById(id) {
  691. return request({
  692. url: "/model/zdproject/" + id,
  693. method: "get",
  694. });
  695. }
  696. //添加 征收补偿项目 add
  697. export function addZdProject(data) {
  698. return request({
  699. url: "/model/zdproject",
  700. method: "post",
  701. data: data,
  702. });
  703. }
  704. // 更新 征收补偿项目 update
  705. export function updateZdProject(data) {
  706. return request({
  707. url: "/model/zdproject",
  708. method: "post",
  709. data: data,
  710. });
  711. }
  712. // 删除 征收补偿项目 delbyid
  713. export function delZdProject(id) {
  714. return request({
  715. url: "/model/zdproject/" + id,
  716. method: "delete",
  717. });
  718. }
  719. export async function expotZDBCWord(data) {
  720. let response = await request({
  721. url: "/model/zdproject/exportWord",
  722. method: "post",
  723. responseType: "blob",
  724. data: data,
  725. });
  726. debugger;
  727. var fileName = "分析报告";
  728. if (data.projectName) fileName = data.projectName;
  729. debugger;
  730. const contentDisposition = response.headers["content-disposition"];
  731. if (contentDisposition) {
  732. fileName = window.decodeURI(
  733. response.headers["content-disposition"].split("=")[1],
  734. "UTF-8"
  735. );
  736. }
  737. const isBlob = blobValidate(response.data);
  738. debugger;
  739. if (isBlob) {
  740. const blob = new Blob([response.data]);
  741. saveAs(blob, fileName);
  742. } else {
  743. const resText = await response.text();
  744. const rspObj = JSON.parse(resText);
  745. const errMsg = errorCode[rspObj.code] || rspObj.msg || errorCode["default"];
  746. Message.error(errMsg);
  747. }
  748. return;
  749. }
  750. // 08 权属 分析结果 列表 list
  751. export function getQsResultList(query) {
  752. return request({
  753. url: "/model/qsresult/list",
  754. method: "get",
  755. params: query,
  756. });
  757. }
  758. // 权属 分析结果 getbyid
  759. export function getQsResultById(id) {
  760. return request({
  761. url: "/model/qsresult/" + id,
  762. method: "get",
  763. });
  764. }
  765. //添加 权属 分析结果 add
  766. export function addQsResult(data) {
  767. return request({
  768. url: "/model/qsresult",
  769. method: "post",
  770. data: data,
  771. });
  772. }
  773. // 更新 权属 分析结果 update
  774. export function updateQsResult(data) {
  775. return request({
  776. url: "/model/qsresult",
  777. method: "post",
  778. data: data,
  779. });
  780. }
  781. // 删除 权属 分析结果 delbyid
  782. export function delQsResult(id) {
  783. return request({
  784. url: "/model/qsresult/" + id,
  785. method: "delete",
  786. });
  787. }
  788. /*************************征收补偿******************** end */
  789. /*************************夜景灯光******************** start */
  790. // 查询夜景灯光列列表
  791. export function listZtLightList(query) {
  792. return request({
  793. url: "/model/ZtLightList/list",
  794. method: "get",
  795. params: query,
  796. });
  797. }
  798. // 查询夜景灯光列详细
  799. export function getZtLightList(id) {
  800. return request({
  801. url: "/model/ZtLightList/" + id,
  802. method: "get",
  803. });
  804. }
  805. // 新增夜景灯光列
  806. export function addZtLightList(data) {
  807. return request({
  808. url: "/model/ZtLightList",
  809. method: "post",
  810. data: data,
  811. });
  812. }
  813. // 修改夜景灯光列
  814. export function updateZtLightList(data) {
  815. return request({
  816. url: "/model/ZtLightList",
  817. method: "put",
  818. data: data,
  819. });
  820. }
  821. // 删除夜景灯光列
  822. export function delZtLightList(id) {
  823. return request({
  824. url: "/model/ZtLightList/" + id,
  825. method: "delete",
  826. });
  827. }
  828. /*************************夜景灯光******************** end */
  829. /*************************广告信息******************** start */
  830. // 查询广告项目信息列表
  831. export function listZtBillboardInfoList(query) {
  832. return request({
  833. url: "/model/ZtBillboardInfoList/list",
  834. method: "get",
  835. params: query,
  836. });
  837. }
  838. // 查询广告项目信息详细
  839. export function getZtBillboardInfoList(id) {
  840. return request({
  841. url: "/model/ZtBillboardInfoList/" + id,
  842. method: "get",
  843. });
  844. }
  845. // 新增广告项目信息
  846. export function addZtBillboardInfoList(data) {
  847. return request({
  848. url: "/model/ZtBillboardInfoList",
  849. method: "post",
  850. data: data,
  851. });
  852. }
  853. // 修改广告项目信息
  854. export function updateZtBillboardInfoList(data) {
  855. return request({
  856. url: "/model/ZtBillboardInfoList",
  857. method: "put",
  858. data: data,
  859. });
  860. }
  861. // 删除广告项目信息
  862. export function delZtBillboardInfoList(id) {
  863. return request({
  864. url: "/model/ZtBillboardInfoList/" + id,
  865. method: "delete",
  866. });
  867. }
  868. // 查询广告模型信息列表
  869. export function listBillboardModelList(query) {
  870. return request({
  871. url: "/model/billboardModelList/list",
  872. method: "get",
  873. params: query,
  874. });
  875. }
  876. // 查询广告模型信息详细
  877. export function getBillboardModelList(id) {
  878. return request({
  879. url: "/model/billboardModelList/" + id,
  880. method: "get",
  881. });
  882. }
  883. // 新增广告模型信息
  884. export function addBillboardModelList(data) {
  885. return request({
  886. url: "/model/billboardModelList",
  887. method: "post",
  888. data: data,
  889. });
  890. }
  891. // 修改广告模型信息
  892. export function updateBillboardModelList(data) {
  893. return request({
  894. url: "/model/billboardModelList",
  895. method: "put",
  896. data: data,
  897. });
  898. }
  899. // 删除广告模型信息
  900. export function delBillboardModelList(id) {
  901. return request({
  902. url: "/model/billboardModelList/" + id,
  903. method: "delete",
  904. });
  905. }
  906. /*************************广告信息******************** end */