statistics.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. <template>
  2. <view v-if="isLeader==false">
  3. <scroll-view>
  4. <view class="view-bg">
  5. <text class="title-txt">工程用料统计</text>
  6. <view>
  7. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  8. <view class="uni-list-cell-left">
  9. 行政区
  10. </view>
  11. <view class="uni-list-cell-db">
  12. <view v-if="this.isEmpty(this.XZQValue.dictValue)" style="margin-top: 10;"
  13. @click="pickerShow('xzq')">
  14. <span style="color: darkgray;">请选择行政区</span>
  15. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  16. </view>
  17. <view v-else style="margin-top: 10;" @click="pickerShow('xzq')">
  18. <span style="color: black;">{{XZQValue.dictLabel}}</span>
  19. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  24. <view class="uni-list-cell-left">
  25. 小区
  26. </view>
  27. <view class="uni-list-cell-db">
  28. <view v-if="this.isEmpty(this.XQValue.id)" style="margin-top: 10;"
  29. @click="pickerShow('xq')">
  30. <span style="color: darkgray;">请选择小区</span>
  31. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  32. </view>
  33. <view v-else style="margin-top: 10;" @click="pickerShow('xq')">
  34. <span style="color: black;">{{XQValue.name}}</span>
  35. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  40. <view class="uni-list-cell-left">
  41. 材料
  42. </view>
  43. <view class="uni-list-cell-db">
  44. <view v-if="this.isEmpty(this.materialValue.name)" style="margin-top: 10;"
  45. @click="pickerShow('cz')">
  46. <span style="color: darkgray;">请选择材料</span>
  47. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  48. </view>
  49. <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
  50. <view style="margin-top: 10; " @click="pickerShow('cz')">
  51. <span style="color: black;">{{materialValue.name}}</span>
  52. <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
  53. </view>
  54. <uni-icons type="clear" size="24" color="#999"
  55. style="margin-left:20rpx ;margin-right: -20rpx;"
  56. @click="clearMaterialInfo"></uni-icons>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  61. <view class="uni-list-cell-left">
  62. 规格
  63. </view>
  64. <view class="uni-list-cell-db">
  65. <view v-if="this.isEmpty(this.specificationValue.name)" style="margin-top: 10;"
  66. @click="pickerShow('gg')">
  67. <span style="color: darkgray;">请选择规格</span>
  68. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  69. </view>
  70. <view v-else style="display: flex;align-items: center; justify-content: flex-end;">
  71. <view style="margin-top: 10;" @click="pickerShow('gg')">
  72. <span style="color: black;">{{specificationValue.name}}</span>
  73. <!-- <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image> -->
  74. </view>
  75. <uni-icons type="clear" size="24" color="#999"
  76. style="margin-left:20rpx ;margin-right: -20rpx;"
  77. @click="clearSpecificationInfo"></uni-icons>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="table">
  83. <view class="felx-row">
  84. <view class="h-tr" style="flex: 1">名称</view>
  85. <view class="h-tr" style="flex: 1;align-items: center;">预计用量</view>
  86. <view class="h-tr" style="flex: 1">实际用量</view>
  87. </view>
  88. </view>
  89. <view class="felx-row" v-for="(item, index) in materialUsageList" :key="index">
  90. <view class="h-td" style="flex: 1">{{ item.materialQuality }}</view>
  91. <view class="h-td" style="flex: 1">{{ item.estimatedSize }}</view>
  92. <view class="h-td" style="flex: 1">{{ item.realitySize }}</view>
  93. </view>
  94. </view>
  95. <view class="view-bg" style="margin-bottom: 40rpx;">
  96. <text class="title-txt">工程进度统计</text>
  97. <view>
  98. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  99. <view class="uni-list-cell-left">
  100. 行政区
  101. </view>
  102. <view class="uni-list-cell-db">
  103. <view v-if="this.isEmpty(this.XZQValue2.dictValue)" style="margin-top: 10;"
  104. @click="pickerShow('xzq2')">
  105. <span style="color: darkgray;">请选择行政区</span>
  106. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  107. </view>
  108. <view v-else style="margin-top: 10;" @click="pickerShow('xzq2')">
  109. <span style="color: black;">{{XZQValue2.dictLabel}}</span>
  110. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  115. <view class="uni-list-cell-left"> 小区</view>
  116. <view class="uni-list-cell-db">
  117. <view v-if="this.isEmpty(this.XQValue2.id)" style="margin-top: 10;"
  118. @click="pickerShow('xq2')">
  119. <span style="color: darkgray;">请选择小区</span>
  120. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  121. </view>
  122. <view v-else style="margin-top: 10;" @click="pickerShow('xq2')">
  123. <span style="color: black;">{{XQValue2.name}}</span>
  124. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  129. <view class="uni-list-cell-left">楼栋</view>
  130. <view class="uni-list-cell-db">
  131. <view v-if="this.isEmpty(this.LDValue2.id)" style="margin-top: 10;"
  132. @click="pickerShow('ld2')">
  133. <span style="color: darkgray;">请选择楼栋</span>
  134. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  135. </view>
  136. <view style="margin-top: 10;" @click="pickerShow('ld2')">
  137. <span style="color: black;">{{LDValue2.name}}</span>
  138. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="uni-list-cell" style="border-bottom: 1px solid #f8f8f8;">
  143. <view class="uni-list-cell-left">单元</view>
  144. <view class="uni-list-cell-db">
  145. <view v-if="this.isEmpty(this.DYValue2.id)" style="margin-top: 10;"
  146. @click="pickerShow('dy2')">
  147. <span style="color: darkgray;">请选择单元</span>
  148. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  149. </view>
  150. <view v-else style="margin-top: 10;" @click="pickerShow('dy2')">
  151. <span style="color: black;">{{DYValue2.name}}</span>
  152. <image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. <image :src="loadImgSrc('lou-img-bg.png')" style="width: 110%;
  158. height: 121px;
  159. position: absolute;
  160. bottom: 15px;
  161. left: -5px;
  162. z-index: 1;
  163. "></image>
  164. <scroll-view :scroll-x="true" class="view_bg_build" v-if="roomList.length > 0">
  165. <view class="HuaDongBiao">
  166. <view class="NeiRong" v-for="(item,index) in roomList" :key="index">
  167. <view class="Fang" v-for="(item2, index2) in roomList[index]" :key="index2">
  168. <view v-if="item2.roomStatus=='施工中'" class="ShiGongZhong">{{ item2.roomName }}</view>
  169. <view v-else-if="item2.roomStatus=='未施工'" class="WeiShiGong">{{ item2.roomName }}</view>
  170. <view v-else class="JunGong">{{ item2.roomName }}</view>
  171. </view>
  172. </view>
  173. </view>
  174. <view
  175. style="width: 48rpx;height: 63rpx;background: #C7EAFF; position:relative; left: 50%; transform: translateX(-50%); bottom: -10rpx;">
  176. </view>
  177. </scroll-view>
  178. <view v-if="roomList.length == 0" style="padding:50rpx;text-align: center;">暂无数据</view>
  179. <view style="align-items: center; margin-top: 20rpx;">
  180. <view style="display: flex;align-items: center;justify-content:center">
  181. <image class="block-iv" :src="loadImgSrc('ic_legend.png')"></image>
  182. <text style="margin-right: 20px;margin-left: 5px;">图例: </text>
  183. <div class="block-iv" style="background-color: #80d9ae;"></div>
  184. <text style="margin-right: 20px;margin-left: 5px;">竣工</text>
  185. <div class="block-iv" style="background-color: #5bd3ff;"></div>
  186. <text style="margin-right: 20px;margin-left: 5px;">施工中</text>
  187. <div class="block-iv" style="background-color: #ffc881;"></div>
  188. <text style="margin-right: 20px;margin-left: 5px;">未施工</text>
  189. </view>
  190. </view>
  191. </view>
  192. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  193. subtitleKey="id" v-model="name"></SelectPicker>
  194. <SelectPicker :list="dictOptions" @change="changeSelect" v-if="openDict" @close="closeDict"
  195. titleKey="dictLabel" subtitleKey="dictValue" v-model="dictLabel"></SelectPicker>
  196. </scroll-view>
  197. </view>
  198. <view v-else-if="isLeader">
  199. <view class="container">
  200. <cc-pullScroolView class="pullScrollView" ref="pullScroll" :pullDown="pullDown" :isDownLoading="true">
  201. <view class="notice" v-for="(item,index) in list" :key="index">
  202. <view class="justify-content" @click="goDetails(item)">
  203. <view class="font-forty">
  204. {{item.noticeTitle}}
  205. </view>
  206. <view class="font-twenty-eight gray">
  207. {{item.createTime}}
  208. </view>
  209. </view>
  210. </view>
  211. </cc-pullScroolView>
  212. </view>
  213. </view>
  214. </template>
  215. <script>
  216. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  217. import CCBProjectList from '../../uni_modules/cc-pullScroolView/components/cc-pullScroolView/cc-pullScroolView.vue';
  218. import {
  219. getNoticeList,
  220. } from '@/api/common'
  221. import {
  222. getDicts
  223. } from "@/api/system/dict/data";
  224. import {
  225. getAreaList,
  226. getBuildingList,
  227. getUnitList,
  228. getHousesList,
  229. getEnginMaterialQualityList,
  230. getEnginSpecificationsList,
  231. getMunicipalStatisticsData,
  232. getObtainRoomcCompletionInformationList,
  233. } from '@/api/common'
  234. export default {
  235. components: {
  236. SelectPicker,
  237. CCBProjectList,
  238. },
  239. data() {
  240. return {
  241. isLeader: true,
  242. list: [],
  243. pageSize: 10, // 条数
  244. totalNum: '',
  245. pageNum: 1, // 页数
  246. villageIndex: 0,
  247. specificationIndex: 0,
  248. materialIndex: 0,
  249. villageIndex2: 0,
  250. buildIndex: 0,
  251. unitIndex: 0,
  252. open: false,
  253. openDict: false,
  254. selectList: [],
  255. dictOptions: [],
  256. XQList: [],
  257. LDList: [],
  258. DYList: [],
  259. projectValue: {
  260. 'dictValue': '0'
  261. },
  262. XZQValue: {},
  263. XQValue: {},
  264. XQList2: [],
  265. LDList2: [],
  266. DYList2: [],
  267. projectValue2: {
  268. 'dictValue': '0'
  269. },
  270. XZQValue2: {},
  271. XQValue2: {},
  272. LDValue2: {},
  273. DYValue2: {},
  274. specificationValue: {},
  275. specificationList: [],
  276. materialValue: {},
  277. materialList: [],
  278. materialUsageList: [],
  279. roomList: [],
  280. roomCount: 4
  281. }
  282. },
  283. created() {},
  284. onLoad() {
  285. if (this.isLeader) {
  286. this.getList()
  287. }
  288. },
  289. // 上拉加载
  290. onReachBottom() {
  291. // 数据全部加载完
  292. if (this.pageNum * 10 >= this.totalNum) {
  293. } else {
  294. // 显示加载中
  295. this.$refs.pullScroll.showUpLoading();
  296. this.pageNum++;
  297. this.requestData();
  298. }
  299. },
  300. methods: {
  301. isEmpty(str) {
  302. return (!str || 0 === str.length);
  303. },
  304. pickerShow(e) {
  305. this.type = e; //赋值类型
  306. if (e == 'gczq') { //工程周期
  307. this.openDict = true;
  308. getDicts("engin_cycle").then(response => {
  309. this.dictOptions = response.data;
  310. });
  311. } else if (e == 'xzq') {
  312. if (this.isEmpty(this.projectValue.dictValue)) {
  313. this.$modal.msg('请选择工程周期')
  314. } else {
  315. this.openDict = true;
  316. getDicts("district").then(response => {
  317. this.dictOptions = response.data;
  318. });
  319. }
  320. } else if (e == 'xq') { //小区
  321. if (this.isEmpty(this.XZQValue.dictValue)) {
  322. this.$modal.msg('请选择行政区')
  323. } else {
  324. this.open = true;
  325. this.selectList = this.XQList;
  326. }
  327. } else if (e == 'ld') { //楼栋
  328. if (this.isEmpty(this.XQValue.id)) {
  329. this.$modal.msg('请选择小区')
  330. } else {
  331. this.open = true;
  332. this.selectList = this.LDList;
  333. }
  334. } else if (e == 'dy') { //单元
  335. if (this.isEmpty(this.LDValue.id)) {
  336. this.$modal.msg('请选择楼栋')
  337. } else {
  338. this.open = true;
  339. this.selectList = this.DYList;
  340. }
  341. } else if (e == 'gczq2') { //工程周期
  342. this.openDict = true;
  343. getDicts("engin_cycle").then(response => {
  344. this.dictOptions = response.data;
  345. });
  346. } else if (e == 'xzq2') { //行政区2
  347. if (this.isEmpty(this.projectValue2.dictValue)) {
  348. this.$modal.msg('请选择工程周期')
  349. } else {
  350. this.openDict = true;
  351. getDicts("district").then(response => {
  352. this.dictOptions = response.data;
  353. });
  354. }
  355. } else if (e == 'xq2') { //小区2
  356. if (this.isEmpty(this.XZQValue2.dictValue)) {
  357. this.$modal.msg('请选择行政区')
  358. } else {
  359. this.open = true;
  360. this.selectList = this.XQList2;
  361. }
  362. } else if (e == 'ld2') { //楼栋2
  363. if (this.isEmpty(this.XQValue2.id)) {
  364. this.$modal.msg('请选择小区')
  365. } else {
  366. this.open = true;
  367. this.selectList = this.LDList2;
  368. }
  369. } else if (e == 'dy2') { //单元2
  370. if (this.isEmpty(this.LDValue2.id)) {
  371. this.$modal.msg('请选择楼栋')
  372. } else {
  373. this.open = true;
  374. this.selectList = this.DYList2;
  375. }
  376. } else if (e == 'gg') { //规格
  377. if (this.isEmpty(this.materialValue.id)) {
  378. this.$modal.msg('请选择材料')
  379. } else {
  380. this.open = true;
  381. this.selectList = this.materialList;
  382. }
  383. } else if (e == 'cz') { //材料
  384. this.open = true;
  385. getEnginMaterialQualityList("民用工程").then(response => {
  386. this.selectList = response.data;
  387. });
  388. }
  389. },
  390. changeSelect(item, index) {
  391. // this.index = index;
  392. // this.address = item.communityName;
  393. this.open = false;
  394. this.openDict = false;
  395. if (this.type == 'xzq') {
  396. this.XZQValue = item;
  397. //根据行政区id获取小区数据
  398. this.XQValue = ''; //重置小区数据
  399. this.LDValue = ''; //重置楼栋数据
  400. this.DYValue = ''; //重置单元数据
  401. this.FJValue = ''; //重置房间数据
  402. getAreaList(item.dictValue).then(res => {
  403. this.XQList = res.data;
  404. })
  405. } else if (this.type == 'gczq') {
  406. this.projectValue = item
  407. } else if (this.type == 'xq') {
  408. this.XQValue = item;
  409. //根据小区id 获取楼栋数据
  410. this.LDValue = ''; //重置楼栋数据
  411. this.DYValue = ''; //重置单元数据
  412. this.FJValue = ''; //重置房间数据
  413. this.queryMaterialsUsedList();
  414. } else if (this.type == 'ld') {
  415. this.LDValue = item;
  416. //根据楼栋ID 获取单元数据
  417. this.DYValue = ''; //重置单元数据
  418. this.FJValue = ''; //重置房间数据
  419. getUnitList(item.id).then(res => {
  420. this.DYList = res.data
  421. })
  422. } else if (this.type == 'dy') {
  423. this.DYValue = item;
  424. } else if (this.type == 'gczq2') {
  425. this.projectValue2 = item
  426. } else if (this.type == 'xzq2') {
  427. this.XZQValue2 = item;
  428. //根据行政区id获取小区数据
  429. this.XQValue2 = ''; //重置小区数据
  430. this.LDValue2 = ''; //重置楼栋数据
  431. this.DYValue2 = ''; //重置单元数据
  432. this.FJValue2 = ''; //重置房间数据
  433. getAreaList(item.dictValue).then(res => {
  434. this.XQList2 = res.data;
  435. })
  436. } else if (this.type == 'xq2') { //小区2
  437. this.XQValue2 = item;
  438. //根据小区id 获取楼栋数据
  439. this.LDValue2 = ''; //重置楼栋数据
  440. this.DYValue2 = ''; //重置单元数据
  441. this.FJValue2 = ''; //重置房间数据
  442. getBuildingList(item.id).then(res => {
  443. this.LDList2 = res.data
  444. })
  445. } else if (this.type == 'ld2') {
  446. this.LDValue2 = item;
  447. //根据楼栋ID 获取单元数据
  448. this.DYValue2 = ''; //重置单元数据
  449. this.FJValue2 = ''; //重置房间数据
  450. getUnitList(item.id).then(res => {
  451. this.DYList2 = res.data
  452. })
  453. } else if (this.type == 'dy2') {
  454. this.DYValue2 = item;
  455. this.queryProjectStatisticsList();
  456. } else if (this.type == 'gg') { //规格
  457. this.specificationValue = item;
  458. this.queryMaterialsUsedList();
  459. } else if (this.type == 'cz') { //材料
  460. this.materialValue = item;
  461. this.specificationValue = ''; //重置规格
  462. this.queryMaterialsUsedList();
  463. //根据材质ID 获取规格数据
  464. getEnginSpecificationsList(item.id).then(res => {
  465. this.materialList = res.data
  466. })
  467. }
  468. },
  469. //关闭弹窗
  470. close(e) {
  471. this.open = false
  472. },
  473. //关闭弹窗
  474. closeDict(e) {
  475. this.openDict = false
  476. },
  477. queryMaterialsUsedList() {
  478. if (this.isEmpty(this.XQValue.id)) {
  479. this.$modal.msg('请选择小区')
  480. return;
  481. }
  482. let param = {
  483. enginCycle: this.projectValue.dictValue, //工程周期
  484. areaId: this.XQValue.id,
  485. realityQuality: this.materialValue.id,
  486. realitySpecifications: this.specificationValue.id,
  487. };
  488. getMunicipalStatisticsData(param).then(res => {
  489. this.materialUsageList = res.data;
  490. })
  491. },
  492. queryProjectStatisticsList() {
  493. let param = {
  494. enginCycle: this.projectValue.dictValue, //工程周期
  495. areaId: this.XQValue2.id,
  496. buildingId: this.LDValue2.id,
  497. unitId: this.DYValue2.id,
  498. };
  499. getObtainRoomcCompletionInformationList(param).then(res => {
  500. this.roomList = res.data[0].roomStatusVoList;
  501. this.roomCount = res.data[0].roomStatusVoList.length;
  502. })
  503. },
  504. getColorByStatus(status) {
  505. if (this.isEmpty(status)) {
  506. return "#fff";
  507. }
  508. if (status == '施工中') {
  509. return "#5bd3ff";
  510. } else if (status == '未施工') {
  511. return "#ffc881";
  512. } else if (status == '竣工') {
  513. return "#80d9ae";
  514. }
  515. },
  516. //材料清空val
  517. clearMaterialInfo() {
  518. this.materialValue = '';
  519. this.specificationValue = '';
  520. this.queryMaterialsUsedList();
  521. },
  522. clearSpecificationInfo() {
  523. this.specificationValue = '';
  524. this.queryMaterialsUsedList();
  525. },
  526. // 下拉刷新
  527. pullDown(pullScroll) {
  528. this.pageNum = 1;
  529. setTimeout(() => {
  530. this.requestData(pullScroll);
  531. }, 1000);
  532. },
  533. getList() {
  534. let myThis = this;
  535. this.$nextTick(() => {
  536. myThis.$refs.pullScroll.refresh();
  537. });
  538. },
  539. requestData() {
  540. uni.showLoading()
  541. getNoticeList('1', this.pageNum, this.pageSize).then(res => {
  542. this.totalNum = res.total
  543. if (res.code == '200') {
  544. uni.hideLoading()
  545. if (res.rows.length !== 0) {
  546. //首次加载10条数据,后进行拼接
  547. if (this.pageNum == 1) {
  548. this.list = [];
  549. this.list = res.rows
  550. } else {
  551. this.list = this.list.concat(res.rows)
  552. }
  553. // 如果是最后一页
  554. if (this.pageNum * 10 >= this.totalNum) {
  555. this.$refs.pullScroll.finish();
  556. } else {
  557. // 不是最后一页
  558. this.$refs.pullScroll.success();
  559. }
  560. } else {
  561. this.$modal.msg("暂无数据")
  562. }
  563. } else {
  564. this.$modal.msg(res.msg + "")
  565. }
  566. })
  567. }
  568. }
  569. }
  570. </script>
  571. <style>
  572. .to-right-icon {
  573. width: 15px;
  574. height: 15px;
  575. position: absolute;
  576. top: 50%;
  577. transform: translateY(-50%);
  578. }
  579. .no-click {
  580. pointer-events: none;
  581. }
  582. .marginLeft5 {
  583. margin-left: 5px;
  584. }
  585. .title-txt {
  586. font-size: 15px;
  587. font-weight: bold;
  588. color: black;
  589. padding: 20rpx 0;
  590. }
  591. .content-txt {
  592. font-size: 10px;
  593. font-weight: bold;
  594. color: black;
  595. }
  596. .view-bg {
  597. margin-left: 8px;
  598. margin-right: 8px;
  599. margin-top: 8px;
  600. background-color: #fff;
  601. border-radius: 5px;
  602. padding: 20px;
  603. display: flex;
  604. flex-direction: column;
  605. }
  606. .uni-list {
  607. background-color: #FFFFFF;
  608. position: relative;
  609. width: 100%;
  610. display: flex;
  611. flex-direction: column;
  612. }
  613. .uni-list-cell {
  614. display: flex;
  615. align-items: center;
  616. justify-content: space-between;
  617. padding: 10px 0;
  618. position: relative;
  619. }
  620. .uni-list-cell-left {
  621. white-space: nowrap;
  622. font-size: 28rpx;
  623. }
  624. .centered {
  625. text-align: center;
  626. background-color: #e2f4ff;
  627. }
  628. .text {
  629. background-color: #e2f4ff;
  630. height: 20rpx;
  631. }
  632. .view_bg_build {
  633. background-color: #e2f4ff;
  634. padding: 10px 10px 0 10px;
  635. margin: 0 auto;
  636. border: 1px solid #5bd3ff;
  637. white-space: nowrap;
  638. position: relative;
  639. z-index: 2;
  640. }
  641. .grid-text {
  642. font-size: 14px;
  643. color: #000000;
  644. text-align: center;
  645. padding-left: 30rpx;
  646. padding-right: 30rpx;
  647. padding-top: 20rpx;
  648. padding-bottom: 20rpx;
  649. }
  650. .name {
  651. flex: 0;
  652. font-size: 14px;
  653. color: #000000;
  654. overflow: hidden;
  655. text-overflow: ellipsis;
  656. white-space: nowrap;
  657. }
  658. .table-item {
  659. overflow: hidden;
  660. text-overflow: ellipsis;
  661. white-space: nowrap;
  662. }
  663. .block-iv {
  664. width: 20px;
  665. height: 20px;
  666. }
  667. .table {
  668. width: 100%;
  669. border-radius: 8rpx;
  670. background: #FFFFFF;
  671. /* border: 1rpx solid #EFEFEF; */
  672. font-size: 28rpx;
  673. margin-top: 40rpx;
  674. }
  675. .felx-row {
  676. width: 100%;
  677. display: flex;
  678. justify-content: space-between;
  679. align-items: center;
  680. }
  681. .h-tr {
  682. box-sizing: border-box;
  683. display: flex;
  684. flex-direction: row;
  685. flex-wrap: nowrap;
  686. justify-content: center;
  687. align-items: center;
  688. align-content: center;
  689. border-color: #ccc;
  690. border-style: solid;
  691. border-width: 0;
  692. border-width: 1px;
  693. color: #3d7dd7;
  694. }
  695. .h-td {
  696. box-sizing: border-box;
  697. padding: 3px;
  698. word-break: break-all;
  699. border-color: #ccc;
  700. border-style: solid;
  701. border-width: 1px;
  702. border-right-width: 1px;
  703. display: flex;
  704. flex-direction: row;
  705. flex-wrap: nowrap;
  706. justify-content: center;
  707. align-items: center;
  708. align-content: center;
  709. min-height: 64rpx;
  710. }
  711. .LouCeng {
  712. font-size: 30rpx;
  713. background-color: #4a4b52;
  714. color: #FFEB3B;
  715. font-weight: bold;
  716. }
  717. .Fang {
  718. width: 100%;
  719. display: inline-block;
  720. line-height: 50rpx;
  721. text-align: center;
  722. margin-right: 10px;
  723. margin-bottom: 10px;
  724. background-color: red;
  725. }
  726. .HuaDongBiao {
  727. display: flex;
  728. flex-direction: column-reverse;
  729. position: relative;
  730. }
  731. .NeiRong {
  732. display: flex;
  733. flex-wrap: nowrap;
  734. }
  735. .NeiRong :last-child {
  736. margin-right: 0 !important;
  737. }
  738. .ShiGongZhong {
  739. background-color: #5bd3ff;
  740. color: #000;
  741. }
  742. .WeiShiGong {
  743. background-color: #ffc881;
  744. color: #000;
  745. }
  746. .JunGong {
  747. background-color: #80d9ae;
  748. color: #000;
  749. }
  750. .container {
  751. display: flex;
  752. margin-left: 10px;
  753. width: 100%;
  754. margin-top: 10px;
  755. margin-right: 10px;
  756. justify-content: space-between;
  757. }
  758. .notice {
  759. margin: 20rpx;
  760. width: 100%;
  761. padding: 20rpx;
  762. background: #FFFFFF;
  763. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  764. border-radius: 10rpx;
  765. }
  766. .text {
  767. border-left: 15rpx solid #3857F3;
  768. padding-left: 20rpx;
  769. }
  770. </style>