table.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <template>
  2. <div style="margin-top:16px">
  3. <el-table
  4. :data="tableData"
  5. style="width: 100%"
  6. :height="height"
  7. size="small">
  8. <el-table-column
  9. prop="depfullname"
  10. :label="$t('部门')"
  11. width="120"
  12. fixed>
  13. <template slot-scope="scope">
  14. <p>{{scope.row.depfullname.substring(scope.row.depfullname.lastIndexOf("/",scope.row.depfullname.lastIndexOf('/')-1) + 1)}}</p>
  15. </template>
  16. </el-table-column>
  17. <el-table-column
  18. prop="name"
  19. :label="$t('人员')"
  20. width="80"
  21. fixed>
  22. <template slot-scope="scope">
  23. <p>{{scope.row.name?scope.row.name:'--'}}</p>
  24. </template>
  25. </el-table-column>
  26. <el-table-column
  27. prop="position"
  28. :label="$t('职位')"
  29. width="100"
  30. fixed>
  31. <template slot-scope="scope">
  32. <p>{{scope.row.position?scope.row.position:'--'}}</p>
  33. </template>
  34. </el-table-column>
  35. <el-table-column
  36. :label="$t('目标')+'/'+$t('实际')"
  37. width="100">
  38. <template>
  39. <p class="center d-text">{{$t('目标')}}</p>
  40. <p class="border"></p>
  41. <p class="center d-text">{{$t('实际')}}</p>
  42. </template>
  43. </el-table-column>
  44. <el-table-column :label="$t('年度(万元)')">
  45. <el-table-column
  46. prop="y1l"
  47. :label="$t('基本')"
  48. width="120">
  49. <template slot-scope="scope">
  50. <p class="center d-text">{{tool.formatAmount(scope.row.y1l,2)}}</p>
  51. <p class="border"></p>
  52. <p class="center">{{tool.formatAmount(scope.row.y1a,2)}}</p>
  53. <p class="center" :class="scope.row.y1pl < 100?'green':'red'">({{scope.row.y1pl}}%)</p>
  54. </template>
  55. </el-table-column>
  56. <el-table-column
  57. prop="y1h"
  58. v-if="isquerytarget == 0"
  59. :label="$t('挑战')"
  60. width="120">
  61. <template slot-scope="scope">
  62. <p class="center d-text">{{tool.formatAmount(scope.row.y1h,2)}}</p>
  63. <p class="border"></p>
  64. <p class="center">{{tool.formatAmount(scope.row.y1a,2)}}</p>
  65. <p class="center" :class="scope.row.y1ph < 100?'green':'red'">({{scope.row.y1ph}}%)</p>
  66. </template>
  67. </el-table-column>
  68. </el-table-column>
  69. <el-table-column :label="$t('第一季度(万元)')">
  70. <el-table-column
  71. prop="s1l"
  72. :label="$t('基本')"
  73. width="120">
  74. <template slot-scope="scope">
  75. <p class="center d-text">{{tool.formatAmount(scope.row.s1l,2)}}</p>
  76. <p class="border"></p>
  77. <p class="center">{{tool.formatAmount(scope.row.s1a,2)}}</p>
  78. <p class="center" :class="scope.row.s1pl < 100?'green':'red'">({{scope.row.s1pl}}%)</p>
  79. </template>
  80. </el-table-column>
  81. <el-table-column
  82. prop="s1h"
  83. v-if="isquerytarget == 0"
  84. :label="$t('挑战')"
  85. width="120">
  86. <template slot-scope="scope">
  87. <p class="center d-text">{{tool.formatAmount(scope.row.s1h,2)}}</p>
  88. <p class="border"></p>
  89. <p class="center">{{tool.formatAmount(scope.row.s1a,2)}}</p>
  90. <p class="center" :class="scope.row.s1ph < 100?'green':'red'">({{scope.row.s1ph}}%)</p>
  91. </template>
  92. </el-table-column>
  93. </el-table-column>
  94. <el-table-column :label="$t('一月(万元)')">
  95. <el-table-column
  96. prop="m1l"
  97. :label="$t('基本')"
  98. width="120">
  99. <template slot-scope="scope">
  100. <p class="center d-text">{{tool.formatAmount(scope.row.m1l,2)}}</p>
  101. <p class="border"></p>
  102. <p class="center">{{tool.formatAmount(scope.row.m1a,2)}}</p>
  103. <p class="center" :class="scope.row.m1pl < 100?'green':'red'">({{scope.row.m1pl}}%)</p>
  104. </template>
  105. </el-table-column>
  106. <el-table-column
  107. prop="m1h"
  108. v-if="isquerytarget == 0"
  109. :label="$t('挑战')"
  110. width="120">
  111. <template slot-scope="scope">
  112. <p class="center d-text">{{tool.formatAmount(scope.row.m1h,2)}}</p>
  113. <p class="border"></p>
  114. <p class="center">{{tool.formatAmount(scope.row.m1a,2)}}</p>
  115. <p class="center" :class="scope.row.m1ph < 100?'green':'red'">({{scope.row.m1ph}}%)</p>
  116. </template>
  117. </el-table-column>
  118. </el-table-column>
  119. <el-table-column :label="$t('二月(万元)')">
  120. <el-table-column
  121. prop="m2l"
  122. :label="$t('基本')"
  123. width="120">
  124. <template slot-scope="scope">
  125. <p class="center d-text">{{tool.formatAmount(scope.row.m2l,2)}}</p>
  126. <p class="border"></p>
  127. <p class="center">{{tool.formatAmount(scope.row.m2a,2)}}</p>
  128. <p class="center" :class="scope.row.m2pl < 100?'green':'red'">({{scope.row.m2pl}}%)</p>
  129. </template>
  130. </el-table-column>
  131. <el-table-column
  132. prop="m2h"
  133. v-if="isquerytarget == 0"
  134. :label="$t('挑战')"
  135. width="120">
  136. <template slot-scope="scope">
  137. <p class="center d-text">{{tool.formatAmount(scope.row.m2h,2)}}</p>
  138. <p class="border"></p>
  139. <p class="center">{{tool.formatAmount(scope.row.m2a,2)}}</p>
  140. <p class="center" :class="scope.row.m2ph < 100?'green':'red'">({{scope.row.m2ph}}%)</p>
  141. </template>
  142. </el-table-column>
  143. </el-table-column>
  144. <el-table-column :label="$t('三月(万元)')">
  145. <el-table-column
  146. prop="m3l"
  147. :label="$t('基本')"
  148. width="120">
  149. <template slot-scope="scope">
  150. <p class="center d-text">{{tool.formatAmount(scope.row.m3l,2)}}</p>
  151. <p class="border"></p>
  152. <p class="center">{{tool.formatAmount(scope.row.m3a,2)}}</p>
  153. <p class="center" :class="scope.row.m3pl < 100?'green':'red'">({{scope.row.m3pl}}%)</p>
  154. </template>
  155. </el-table-column>
  156. <el-table-column
  157. prop="m3h"
  158. v-if="isquerytarget == 0"
  159. :label="$t('挑战')"
  160. width="120">
  161. <template slot-scope="scope">
  162. <p class="center d-text">{{tool.formatAmount(scope.row.m3h,2)}}</p>
  163. <p class="border"></p>
  164. <p class="center">{{tool.formatAmount(scope.row.m3a,2)}}</p>
  165. <p class="center" :class="scope.row.m3ph < 100?'green':'red'">({{scope.row.m3ph}}%)</p>
  166. </template>
  167. </el-table-column>
  168. </el-table-column>
  169. <el-table-column :label="$t('第二季度(万元)')">
  170. <el-table-column
  171. prop="s2l"
  172. :label="$t('基本')"
  173. width="120">
  174. <template slot-scope="scope">
  175. <p class="center d-text">{{tool.formatAmount(scope.row.s2l,2)}}</p>
  176. <p class="border"></p>
  177. <p class="center">{{tool.formatAmount(scope.row.s2a,2)}}</p>
  178. <p class="center" :class="scope.row.s2pl < 100?'green':'red'">({{scope.row.s2pl}}%)</p>
  179. </template>
  180. </el-table-column>
  181. <el-table-column
  182. prop="s2h"
  183. v-if="isquerytarget == 0"
  184. :label="$t('挑战')"
  185. width="120">
  186. <template slot-scope="scope">
  187. <p class="center d-text">{{tool.formatAmount(scope.row.s2h,2)}}</p>
  188. <p class="border"></p>
  189. <p class="center">{{tool.formatAmount(scope.row.s2a,2)}}</p>
  190. <p class="center" :class="scope.row.s2ph < 100?'green':'red'">({{scope.row.s2ph}}%)</p>
  191. </template>
  192. </el-table-column>
  193. </el-table-column>
  194. <el-table-column :label="$t('四月(万元)')">
  195. <el-table-column
  196. prop="m4l"
  197. :label="$t('基本')"
  198. width="120">
  199. <template slot-scope="scope">
  200. <p class="center d-text">{{tool.formatAmount(scope.row.m4l,2)}}</p>
  201. <p class="border"></p>
  202. <p class="center">{{tool.formatAmount(scope.row.m4a,2)}}</p>
  203. <p class="center" :class="scope.row.m4pl < 100?'green':'red'">({{scope.row.m4pl}}%)</p>
  204. </template>
  205. </el-table-column>
  206. <el-table-column
  207. prop="m4h"
  208. v-if="isquerytarget == 0"
  209. :label="$t('挑战')"
  210. width="120">
  211. <template slot-scope="scope">
  212. <p class="center d-text">{{tool.formatAmount(scope.row.m4h,2)}}</p>
  213. <p class="border"></p>
  214. <p class="center">{{tool.formatAmount(scope.row.m4a,2)}}</p>
  215. <p class="center" :class="scope.row.m4ph < 100?'green':'red'">({{scope.row.m4ph}}%)</p>
  216. </template>
  217. </el-table-column>
  218. </el-table-column>
  219. <el-table-column :label="$t('五月(万元)')">
  220. <el-table-column
  221. prop="m5l"
  222. :label="$t('基本')"
  223. width="120">
  224. <template slot-scope="scope">
  225. <p class="center d-text">{{tool.formatAmount(scope.row.m5l,2)}}</p>
  226. <p class="border"></p>
  227. <p class="center">{{tool.formatAmount(scope.row.m5a,2)}}</p>
  228. <p class="center" :class="scope.row.m5pl < 100?'green':'red'">({{scope.row.m5pl}}%)</p>
  229. </template>
  230. </el-table-column>
  231. <el-table-column
  232. prop="m5h"
  233. v-if="isquerytarget == 0"
  234. :label="$t('挑战')"
  235. width="120">
  236. <template slot-scope="scope">
  237. <p class="center d-text">{{tool.formatAmount(scope.row.m5h,2)}}</p>
  238. <p class="border"></p>
  239. <p class="center">{{tool.formatAmount(scope.row.m5a,2)}}</p>
  240. <p class="center" :class="scope.row.m5ph < 100?'green':'red'">({{scope.row.m5ph}}%)</p>
  241. </template>
  242. </el-table-column>
  243. </el-table-column>
  244. <el-table-column :label="$t('六月(万元)')">
  245. <el-table-column
  246. prop="m6l"
  247. :label="$t('基本')"
  248. width="120">
  249. <template slot-scope="scope">
  250. <p class="center d-text">{{tool.formatAmount(scope.row.m6l,2)}}</p>
  251. <p class="border"></p>
  252. <p class="center">{{tool.formatAmount(scope.row.m6a,2)}}</p>
  253. <p class="center" :class="scope.row.m6pl < 100?'green':'red'">({{scope.row.m6pl}}%)</p>
  254. </template>
  255. </el-table-column>
  256. <el-table-column
  257. prop="m6h"
  258. v-if="isquerytarget == 0"
  259. :label="$t('挑战')"
  260. width="120">
  261. <template slot-scope="scope">
  262. <p class="center d-text">{{tool.formatAmount(scope.row.m6h,2)}}</p>
  263. <p class="border"></p>
  264. <p class="center">{{tool.formatAmount(scope.row.m6a,2)}}</p>
  265. <p class="center" :class="scope.row.m6ph < 100?'green':'red'">({{scope.row.m6ph}}%)</p>
  266. </template>
  267. </el-table-column>
  268. </el-table-column>
  269. <el-table-column :label="$t('第三季度(万元)')">
  270. <el-table-column
  271. prop="s3l"
  272. :label="$t('基本')"
  273. width="120">
  274. <template slot-scope="scope">
  275. <p class="center d-text">{{tool.formatAmount(scope.row.s3l,2)}}</p>
  276. <p class="border"></p>
  277. <p class="center">{{tool.formatAmount(scope.row.s3a,2)}}</p>
  278. <p class="center" :class="scope.row.s3pl < 100?'green':'red'">({{scope.row.s3pl}}%)</p>
  279. </template>
  280. </el-table-column>
  281. <el-table-column
  282. prop="s3h"
  283. v-if="isquerytarget == 0"
  284. :label="$t('挑战')"
  285. width="120">
  286. <template slot-scope="scope">
  287. <p class="center d-text">{{tool.formatAmount(scope.row.s3h,2)}}</p>
  288. <p class="border"></p>
  289. <p class="center">{{tool.formatAmount(scope.row.s3a,2)}}</p>
  290. <p class="center" :class="scope.row.s3ph < 100?'green':'red'">({{scope.row.s3ph}}%)</p>
  291. </template>
  292. </el-table-column>
  293. </el-table-column>
  294. <el-table-column :label="$t('七月(万元)')">
  295. <el-table-column
  296. prop="m7l"
  297. :label="$t('基本')"
  298. width="120">
  299. <template slot-scope="scope">
  300. <p class="center d-text">{{tool.formatAmount(scope.row.m7l,2)}}</p>
  301. <p class="border"></p>
  302. <p class="center">{{tool.formatAmount(scope.row.m7a,2)}}</p>
  303. <p class="center" :class="scope.row.m7pl < 100?'green':'red'">({{scope.row.m7pl}}%)</p>
  304. </template>
  305. </el-table-column>
  306. <el-table-column
  307. prop="m7h"
  308. v-if="isquerytarget == 0"
  309. :label="$t('挑战')"
  310. width="120">
  311. <template slot-scope="scope">
  312. <p class="center d-text">{{tool.formatAmount(scope.row.m7h,2)}}</p>
  313. <p class="border"></p>
  314. <p class="center">{{tool.formatAmount(scope.row.m7a,2)}}</p>
  315. <p class="center" :class="scope.row.m7ph < 100?'green':'red'">({{scope.row.m7ph}}%)</p>
  316. </template>
  317. </el-table-column>
  318. </el-table-column>
  319. <el-table-column :label="$t('八月(万元)')">
  320. <el-table-column
  321. prop="m8l"
  322. :label="$t('基本')"
  323. width="120">
  324. <template slot-scope="scope">
  325. <p class="center d-text">{{tool.formatAmount(scope.row.m8l,2)}}</p>
  326. <p class="border"></p>
  327. <p class="center">{{tool.formatAmount(scope.row.m8a,2)}}</p>
  328. <p class="center" :class="scope.row.m8pl < 100?'green':'red'">({{scope.row.m8pl}}%)</p>
  329. </template>
  330. </el-table-column>
  331. <el-table-column
  332. prop="m8h"
  333. v-if="isquerytarget == 0"
  334. :label="$t('挑战')"
  335. width="120">
  336. <template slot-scope="scope">
  337. <p class="center d-text">{{tool.formatAmount(scope.row.m8h,2)}}</p>
  338. <p class="border"></p>
  339. <p class="center">{{tool.formatAmount(scope.row.m8a,2)}}</p>
  340. <p class="center" :class="scope.row.m8ph < 100?'green':'red'">({{scope.row.m8ph}}%)</p>
  341. </template>
  342. </el-table-column>
  343. </el-table-column>
  344. <el-table-column :label="$t('九月(万元)')">
  345. <el-table-column
  346. prop="m9l"
  347. :label="$t('基本')"
  348. width="120">
  349. <template slot-scope="scope">
  350. <p class="center d-text">{{tool.formatAmount(scope.row.m9l,2)}}</p>
  351. <p class="border"></p>
  352. <p class="center">{{tool.formatAmount(scope.row.m9a,2)}}</p>
  353. <p class="center" :class="scope.row.m9pl < 100?'green':'red'">({{scope.row.m9pl}}%)</p>
  354. </template>
  355. </el-table-column>
  356. <el-table-column
  357. prop="m9h"
  358. v-if="isquerytarget == 0"
  359. :label="$t('挑战')"
  360. width="120">
  361. <template slot-scope="scope">
  362. <p class="center d-text">{{tool.formatAmount(scope.row.m9h,2)}}</p>
  363. <p class="border"></p>
  364. <p class="center">{{tool.formatAmount(scope.row.m9a,2)}}</p>
  365. <p class="center" :class="scope.row.m9ph < 100?'green':'red'">({{scope.row.m9ph}}%)</p>
  366. </template>
  367. </el-table-column>
  368. </el-table-column>
  369. <el-table-column :label="$t('第四季度(万元)')">
  370. <el-table-column
  371. prop="s4l"
  372. :label="$t('基本')"
  373. width="120">
  374. <template slot-scope="scope">
  375. <p class="center d-text">{{tool.formatAmount(scope.row.s4l,2)}}</p>
  376. <p class="border"></p>
  377. <p class="center">{{tool.formatAmount(scope.row.s4a,2)}}</p>
  378. <p class="center" :class="scope.row.s4pl < 100?'green':'red'">({{scope.row.s4pl}}%)</p>
  379. </template>
  380. </el-table-column>
  381. <el-table-column
  382. prop="s4h"
  383. v-if="isquerytarget == 0"
  384. :label="$t('挑战')"
  385. width="120">
  386. <template slot-scope="scope">
  387. <p class="center d-text">{{tool.formatAmount(scope.row.s4h,2)}}</p>
  388. <p class="border"></p>
  389. <p class="center">{{tool.formatAmount(scope.row.s4a,2)}}</p>
  390. <p class="center" :class="scope.row.s4ph < 100?'green':'red'">({{scope.row.s4ph}}%)</p>
  391. </template>
  392. </el-table-column>
  393. </el-table-column>
  394. <el-table-column :label="$t('十月(万元)')">
  395. <el-table-column
  396. prop="m10l"
  397. :label="$t('基本')"
  398. width="120">
  399. <template slot-scope="scope">
  400. <p class="center d-text">{{tool.formatAmount(scope.row.m10l,2)}}</p>
  401. <p class="border"></p>
  402. <p class="center">{{tool.formatAmount(scope.row.m10a,2)}}</p>
  403. <p class="center" :class="scope.row.m10pl < 100?'green':'red'">({{scope.row.m10pl}}%)</p>
  404. </template>
  405. </el-table-column>
  406. <el-table-column
  407. prop="m10h"
  408. v-if="isquerytarget == 0"
  409. :label="$t('挑战')"
  410. width="120">
  411. <template slot-scope="scope">
  412. <p class="center d-text">{{tool.formatAmount(scope.row.m10h,2)}}</p>
  413. <p class="border"></p>
  414. <p class="center">{{tool.formatAmount(scope.row.m10a,2)}}</p>
  415. <p class="center" :class="scope.row.m10ph < 100?'green':'red'">({{scope.row.m10ph}}%)</p>
  416. </template>
  417. </el-table-column>
  418. </el-table-column>
  419. <el-table-column :label="$t('十一月(万元)')">
  420. <el-table-column
  421. prop="m11l"
  422. :label="$t('基本')"
  423. width="120">
  424. <template slot-scope="scope">
  425. <p class="center d-text">{{tool.formatAmount(scope.row.m11l,2)}}</p>
  426. <p class="border"></p>
  427. <p class="center">{{tool.formatAmount(scope.row.m11a,2)}}</p>
  428. <p class="center" :class="scope.row.m11pl < 100?'green':'red'">({{scope.row.m11pl}}%)</p>
  429. </template>
  430. </el-table-column>
  431. <el-table-column
  432. prop="m11h"
  433. v-if="isquerytarget == 0"
  434. :label="$t('挑战')"
  435. width="120">
  436. <template slot-scope="scope">
  437. <p class="center d-text">{{tool.formatAmount(scope.row.m11h,2)}}</p>
  438. <p class="border"></p>
  439. <p class="center">{{tool.formatAmount(scope.row.m11a,2)}}</p>
  440. <p class="center" :class="scope.row.m11ph < 100?'green':'red'">({{scope.row.m11ph}}%)</p>
  441. </template>
  442. </el-table-column>
  443. </el-table-column>
  444. <el-table-column :label="$t('十二月(万元)')">
  445. <el-table-column
  446. prop="m12l"
  447. :label="$t('基本')"
  448. width="120">
  449. <template slot-scope="scope">
  450. <p class="center d-text">{{tool.formatAmount(scope.row.m12l,2)}}</p>
  451. <p class="border"></p>
  452. <p class="center">{{tool.formatAmount(scope.row.m12a,2)}}</p>
  453. <p class="center" :class="scope.row.m12pl < 100?'green':'red'">({{scope.row.m12pl}}%)</p>
  454. </template>
  455. </el-table-column>
  456. <el-table-column
  457. prop="m12h"
  458. v-if="isquerytarget == 0"
  459. :label="$t('挑战')"
  460. width="120">
  461. <template slot-scope="scope">
  462. <p class="center d-text">{{tool.formatAmount(scope.row.m12h,2)}}</p>
  463. <p class="border"></p>
  464. <p class="center">{{tool.formatAmount(scope.row.m12a,2)}}</p>
  465. <p class="center" :class="scope.row.m12ph < 100?'green':'red'">({{scope.row.m12ph}}%)</p>
  466. </template>
  467. </el-table-column>
  468. </el-table-column>
  469. <!-- <el-table-column
  470. prop="operation"
  471. :label="$t('操作')"
  472. width="120"
  473. :fixed="Object.keys(tableData).length != 0 ? 'right' : ''">
  474. <template slot-scope="scope" v-if="scope.row.hrid">
  475. <slot :data="{data:scope.row,year:year}" name="edit"/>
  476. <slot :data="{data:scope.row,year:year}" name="detail"/>
  477. </template>
  478. </el-table-column>-->
  479. </el-table>
  480. <div class="container normal-panel" style="text-align:right">
  481. <el-pagination
  482. background
  483. small
  484. @size-change="handleSizeChange"
  485. @current-change="handleCurrentChange"
  486. :current-page="currentPage"
  487. :page-sizes="[20, 50, 100, 200]"
  488. layout="total,sizes, prev, pager, next, jumper"
  489. :total="total">
  490. </el-pagination>
  491. </div>
  492. </div>
  493. </template>
  494. <script>
  495. export default {
  496. props:['height'],
  497. data () {
  498. return {
  499. tableData:[],
  500. currentPage:0,
  501. total:0,
  502. year:'',
  503. params: {
  504. "id": 20220904165302,
  505. "content": {
  506. "pageNumber": 1,
  507. "pageSize": 20,
  508. "year": '',
  509. "type":1,
  510. "where":{
  511. "condition":""//支持部门名称查询
  512. }
  513. },
  514. },
  515. isquerytarget:''
  516. }
  517. },
  518. watch: {
  519. year: {
  520. handler(val) {
  521. this.queryData()
  522. }
  523. }
  524. },
  525. methods:{
  526. async queryData () {
  527. console.log("页面执行")
  528. this.params.content.year = this.year
  529. const res = await this.$api.requested(this.params)
  530. this.tableData = res.data
  531. this.total = res.total
  532. this.currentPage = res.pageNumber
  533. },
  534. handleSizeChange(val) {
  535. // console.log(`每页 ${val} 条`);
  536. this.param.content.pageSize = val
  537. this.queryData()
  538. },
  539. handleCurrentChange(val) {
  540. // console.log(`当前页: ${val}`);
  541. this.param.content.pageNumber = val
  542. this.queryData()
  543. },
  544. async queryTarget(){
  545. const res = await this.$api.requested({
  546. "classname": "webmanage.site.site",
  547. "method": "querySite_Parameter",
  548. "content": {
  549. }
  550. })
  551. if (res.code == 0){
  552. this.tool.showMessage(res,()=>{})
  553. }else {
  554. this.isquerytarget = res.data.isquerytarget
  555. }
  556. }
  557. },
  558. mounted () {
  559. this.queryData()
  560. this.queryTarget()
  561. }
  562. }
  563. </script>
  564. <style>
  565. </style>
  566. <style scoped>
  567. .d-text{
  568. height: 46px;
  569. line-height: 46px;
  570. }
  571. .border{
  572. border:1px solid #c1bfbf;
  573. transform: scale(2,.2);
  574. }
  575. .center{
  576. text-align: center;
  577. }
  578. .red{
  579. color:red
  580. }
  581. .green{
  582. color:green
  583. }
  584. </style>