46c65b3d765bdc874a634c3e641953ccb4bffe25.svn-base 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. import request from '../utils/gw_ajax_request.js'
  2. const baseurl = '/pdcApi'
  3. export function getMessage(data){
  4. return request({
  5. url: '/bis/insp/news/findPage',
  6. method: 'POST',
  7. data: data
  8. })
  9. }
  10. export function getDcPblmCount(data,adCode){
  11. return request({
  12. url: '/index/total/pblmType/'+data+"?adCode="+adCode,
  13. method: 'GET'
  14. })
  15. }
  16. export function getJcPblmCount(date,batch,adCode){
  17. return request({
  18. url: '/index/total/pblmType/5?year='+date+'&batch='+batch+'&adCode='+adCode+'&objType=008',
  19. method: 'GET'
  20. })
  21. }
  22. export function getJcPblmProject(date,batch,adCode){
  23. return request({
  24. url: '/index/total/engType/5?year='+date+'&batch='+batch+'&adCode='+adCode+'&objType=008',
  25. method: 'GET'
  26. })
  27. }
  28. export function getJcPblmMain(date,batch,adCode){
  29. return request({
  30. url: '/index/total/resub/5?year='+date+'&batch='+batch+'&adCode='+adCode+'&objType=008',
  31. method: 'GET'
  32. })
  33. }
  34. export function getDcANCount(data){
  35. return request({
  36. url: '/index/total/objSizeRant',
  37. method: 'GET',
  38. data: JSON.stringify(data)
  39. })
  40. }
  41. export function getDcType(data){
  42. return request({
  43. url: '/bis/insp/rel/org/insp/type/getInspTypeByOrgIdPers/'+data,
  44. method: 'GET'
  45. })
  46. }
  47. export function getGroupTypeCount(date,objType){
  48. return request({
  49. url: '/index/total/personCount?timeType='+date+'&objType='+objType,
  50. method: 'GET'
  51. })
  52. }
  53. //稽察
  54. export function getYear(){
  55. return request({
  56. url: '/tac/insp/year/list',
  57. method: 'POST',
  58. data:{}
  59. })
  60. }
  61. //稽察
  62. export function getBatch(){
  63. return request({
  64. url: '/tac/insp/batch/list',
  65. method: 'POST',
  66. data:{}
  67. })
  68. }
  69. //稽察
  70. export function getJcData(data){
  71. return request({
  72. url: '/bis/insp/task/dth/day/list',
  73. method: 'POST',
  74. data:data
  75. })
  76. }
  77. export function getJcDataProject(data){
  78. return request({
  79. url: '/tac/pblm/info/countPblmInfoByObj',
  80. method: 'POST',
  81. data:data
  82. })
  83. }
  84. export function getPblmPro(data){
  85. return request({
  86. url: '/bis/insp/task/dth/day/list',
  87. method: 'POST',
  88. data:data
  89. })
  90. }
  91. export function getGroupType(data){
  92. return request({
  93. url: '/bis/insp/task/dth/day/list/objType',
  94. method: 'POST',
  95. data:data
  96. })
  97. }
  98. export function getGroupTypeSd(data){
  99. return request({
  100. url: '/bis/insp/task/dth/day/list/objType1',
  101. method: 'POST',
  102. data:data
  103. })
  104. }
  105. export function initPblmTypeList(data){
  106. return request({
  107. url: '/index/total/objType/pblmType/'+data.timeType+"?year="+data.year+"&adCode="+data.adCode+"&objType="+data.objType,
  108. method: 'GET'
  109. })
  110. }
  111. export function initNoticeList(data){
  112. return request({
  113. url: '/index/top/list?topType='+data.topType+'&topNum='+data.topNum+'&timeType='+data.timeType+'&year='+data.year+'&adCode='+data.adCode+'&objType='+data.objType,
  114. method: 'GET'
  115. })
  116. }
  117. export function initAreaObjTypeList(data){
  118. return request({
  119. url: '/bis/insp/task/dth/day/list/adCode/objType',
  120. method: 'POST',
  121. data:data
  122. })
  123. }
  124. export function initCompareObjTypeList(data){
  125. return request({
  126. url: '/bis/insp/task/dth/day/list/adCode/objType/years/compare',
  127. method: 'POST',
  128. data:data
  129. })
  130. }
  131. export function getPblmProAll(data){
  132. return request({
  133. url: '/bis/insp/task/dth/day/pblmListOfAll',
  134. method: 'POST',
  135. data:data
  136. })
  137. }
  138. export function getObjCount(){
  139. return request({
  140. url: '/achsta/getObjNum',
  141. method: 'GET',
  142. })
  143. }
  144. export function getStatiscsData(date,type,adCode,year){
  145. return request({
  146. url: '/index/total?timeType='+date+'&objType='+type+'&adCode='+adCode+'&year='+year,
  147. method: 'GET',
  148. })
  149. }
  150. export function getJcTotalData(data){
  151. return request({
  152. url: '/index/total/jicha?year='+data.year+'&batch='+data.batch+'&adCode='+(data.adCode==null?"":data.adCode),
  153. method: 'GET',
  154. })
  155. }
  156. export function getDcTbItem(data){
  157. return request({
  158. url: '/bis/insp/taskItemDay/list',
  159. method: 'POST',
  160. data:data
  161. })
  162. }
  163. export function getBannerList(){
  164. return request({
  165. url: '/bis/insp/subject/list',
  166. method: 'POST'
  167. })
  168. }
  169. export function getNearFaceList(adCode,pType){
  170. return request({
  171. url: '/file/getTopNFace?adCode='+adCode+'&pType='+pType,
  172. method: 'GET'
  173. })
  174. }
  175. export function getTopTacPblm(adCode){
  176. return request({
  177. url: '/file/getTopTacPblm?adCode='+adCode,
  178. method: 'GET'
  179. })
  180. }
  181. export function getQuestionImgList(adCode,pType){
  182. return request({
  183. url: '/file/getTopNPblm?adCode='+adCode+'&pType='+pType,
  184. method: 'GET'
  185. })
  186. }
  187. export function getQuestionVideoList(adCode,pType){
  188. return request({
  189. url: '/file/getTopNPblmVido?adCode='+adCode+'&pType='+pType,
  190. method: 'GET'
  191. })
  192. }
  193. export function getTopTacPblmvideo(adCode){
  194. return request({
  195. url: '/file/getTopTacPblmvideo?adCode='+adCode,
  196. method: 'GET'
  197. })
  198. }
  199. export function BarsDczNums(data){
  200. return request({
  201. url: '/pc/index/countGroup',
  202. method: 'POST',
  203. data: data
  204. })
  205. }
  206. export function BarsDcyrNums(data){
  207. return request({
  208. url: '/pc/index/countPerson',
  209. method: 'POST',
  210. data: data
  211. })
  212. }
  213. export function BarsDcdxNums(data){
  214. return request({
  215. url: '/pc/index/countDucha',
  216. method: 'POST',
  217. data: data
  218. })
  219. }
  220. export function BarsFxwtNums(data){
  221. return request({
  222. url: '/pc/index/countPblmByType',
  223. method: 'POST',
  224. data: data
  225. })
  226. }
  227. export function BarsFxwtReportNums(data){
  228. return request({
  229. url: '/pc/index/countPblmByType',
  230. method: 'POST',
  231. data: data
  232. })
  233. }
  234. export function userAndGroup(data){
  235. return request({
  236. url: '/pc/index/countPersOnline',
  237. method: 'POST',
  238. data: data
  239. })
  240. }
  241. // 获取指定机构、指定时间段内的所有督查对象,按行政区划分异
  242. export function getcountPlan(endTime,orgIds,pTypes,startTime){
  243. return request({
  244. url: '/pc/index/countPlan',
  245. method: 'POST',
  246. data: {
  247. "endTime": endTime,
  248. "orgIds": orgIds,
  249. "pTypes": pTypes,
  250. "startTime": startTime
  251. }
  252. })
  253. }
  254. // 获取指定机构、指定时间段内的所有督查对象,按行政区划分异
  255. export function getProblemCountByProAndLevel(endTime,orgIds,pTypes,startTime){
  256. return request({
  257. url: '/pc/index/countPblmByPro',
  258. method: 'POST',
  259. data:{
  260. "endTime": endTime,
  261. "orgIds": orgIds,
  262. "pTypes": pTypes,
  263. "startTime": startTime
  264. }
  265. })
  266. }
  267. //督查组行政区分异统计查询
  268. export function getAddvCountGroup(endTime,orgIds,pTypes,startTime){
  269. return request({
  270. url: '/pc/index/countGroupByPro',
  271. method: 'POST',
  272. data:{
  273. "endTime": endTime,
  274. "orgIds": orgIds,
  275. "pTypes": pTypes,
  276. "startTime": startTime
  277. }
  278. })
  279. }
  280. //督查人力行政区分异统计
  281. export function getAddvCountPerson(endTime,orgIds,pTypes,startTime){
  282. return request({
  283. url: '/pc/index/countPersonByPro',
  284. method: 'POST',
  285. data:{
  286. "endTime": endTime,
  287. "orgIds": orgIds,
  288. "pTypes": pTypes,
  289. "startTime": startTime
  290. }
  291. })
  292. }
  293. //督查对象行政区分异统计
  294. export function getAddvCountObject(endTime,orgIds,pTypes,startTime){
  295. return request({
  296. url: '/pc/index/countPlanByPro',
  297. method: 'POST',
  298. data:{
  299. "endTime": endTime,
  300. "orgIds": orgIds,
  301. "pTypes": pTypes,
  302. "startTime": startTime
  303. }
  304. })
  305. }
  306. //重复
  307. export function getAddvCountProblem(endTime,orgIds,pTypes,startTime){
  308. return request({
  309. url: '/pc/index/countPblmByPro',
  310. method: 'POST',
  311. data:{
  312. "endTime": endTime,
  313. "orgIds": orgIds,
  314. "pTypes": pTypes,
  315. "startTime": startTime
  316. }
  317. })
  318. }
  319. //重复
  320. export function getUserById(persId){
  321. return request({
  322. url: '/bis/insp/getUserInfo?persId='+persId,
  323. method: 'POST',
  324. })
  325. }
  326. export function getAddvCountProblemForReport(endTime,orgIds,pTypes,startTime,quote){
  327. return request({
  328. url: '/pc/index/countPblmByPro',
  329. method: 'POST',
  330. data:{
  331. "endTime": endTime,
  332. "orgIds": orgIds,
  333. "pTypes": pTypes,
  334. "startTime": startTime,
  335. "quote": quote
  336. }
  337. })
  338. }
  339. //获取questionLineChart组件趋势线图数据
  340. export function getTrendLineData(adCode,dtype,orgIds,pblmState,startTime,endTime,pTypes){
  341. return request({
  342. url: '/pc/index/countPblmByTime',
  343. method: 'POST',
  344. data:{
  345. "adCode": adCode,//行政区划
  346. "dtype": dtype,//时间类别,day/week/month
  347. "orgIds": orgIds,//流域机构
  348. "pblmState": pblmState,//图类型:增量(inc)、累计(total)
  349. "sttm": startTime, //查询时间
  350. "ettm": endTime, //查询时间
  351. "type": pTypes //督查对象类型
  352. }
  353. })
  354. }
  355. //获取questionLineChart组件问题统计数据
  356. export function getQustionCountData(){
  357. return request({
  358. url: '/pc/index/timeCount',
  359. method: 'GET',
  360. })
  361. }