Xq.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <template>
  2. <div class="TwoContent">
  3. <cart-item title="详情">
  4. <div class="modal-close-wrapper" @click="detailClose">关闭 <img src="@/assets/images/GyzzView/close.png" class="close-icon"/> </div>
  5. <ItemCardBox title="基本信息" style="margin-top: 5px"/>
  6. <table class="border">
  7. <tr>
  8. <td class="th">地块编号</td>
  9. <td>
  10. {{ obj.dkbh }}
  11. </td>
  12. </tr>
  13. <tr>
  14. <td class="th">行政区划</td>
  15. <td>
  16. {{ obj.ssqx }} - {{ obj.ssjd }}
  17. </td>
  18. </tr>
  19. <tr>
  20. <td class="th">规划单元</td>
  21. <td>
  22. {{ obj.ghdy }}
  23. </td>
  24. </tr>
  25. <tr>
  26. <td class="th">面积(亩)</td>
  27. <td>
  28. {{ obj.mj && (obj.mj * 15).toFixed(2) }} 亩
  29. </td>
  30. </tr>
  31. <tr>
  32. <td class="th">用地性质</td>
  33. <td>
  34. {{ obj.ydxz }}
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="th">用地性质名称</td>
  39. <td>
  40. {{ obj.ydxzmc }}
  41. </td>
  42. </tr>
  43. <!-- <tr>
  44. <td class="th">主用地性质</td>
  45. <td>
  46. {{ obj.zydxz }}
  47. </td>
  48. </tr>
  49. <tr>
  50. <td class="th">主用地性质名称</td>
  51. <td>
  52. {{ obj.zydxzmc }}
  53. </td>
  54. </tr> -->
  55. <tr>
  56. <td class="th">容积率</td>
  57. <td>
  58. {{ obj.rjl }}
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="th">绿地率</td>
  63. <td>
  64. {{ obj.ldl }}
  65. </td>
  66. </tr>
  67. <tr>
  68. <td class="th">建筑密度</td>
  69. <td>
  70. {{ obj.jzmd }}
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="th">建筑限高</td>
  75. <td>
  76. {{ obj.jzxg }}
  77. </td>
  78. </tr>
  79. </table>
  80. <ItemCardBox title="填报信息" style="margin-top: 10px"/>
  81. <div class="flex-1">
  82. <table class="border">
  83. <tr>
  84. <th class="th">是否完成征迁</th>
  85. <td>{{ obj.sfwczq }}</td>
  86. </tr>
  87. <tr v-show="obj.sfwczq === '否'">
  88. <th class="th">未征迁具体情况</th>
  89. <td>
  90. {{ obj.sfwczqsm }}
  91. </td>
  92. </tr>
  93. <tr>
  94. <th class="th">是否完成农转用</th>
  95. <td>
  96. {{ obj.sfwcnzy }}
  97. </td>
  98. </tr>
  99. <tr v-show="obj.sfwcnzy === '否'">
  100. <th class="th">未农转用具体情况</th>
  101. <td>
  102. {{ obj.sfwcnzysm }}
  103. </td>
  104. </tr>
  105. <tr>
  106. <th class="th">是否净地</th>
  107. <td>
  108. {{ obj.sfjd }}
  109. </td>
  110. </tr>
  111. <tr v-show="obj.sfjd === '否'">
  112. <th class="th">未净地具体情况</th>
  113. <td>
  114. {{ obj.sfjdsm }}
  115. </td>
  116. </tr>
  117. <tr>
  118. <th class="th">收储计划</th>
  119. <td>
  120. {{ obj.crjh }}
  121. </td>
  122. </tr>
  123. </table>
  124. </div>
  125. </cart-item>
  126. </div>
  127. </template>
  128. <script>
  129. import CartItem from "@/views/components/CartItem.vue";
  130. import ItemCardBox from "@/views/components/ItemCardBox";
  131. export default {
  132. name: "Xq",
  133. components: {CartItem,ItemCardBox},
  134. props: {
  135. id: String
  136. },
  137. watch: {
  138. id: {
  139. handler(nVal, oVal) {
  140. this.resetObj()
  141. this.getInfo(nVal)
  142. }
  143. }
  144. },
  145. data() {
  146. return {
  147. obj: {
  148. "gddw": "",
  149. "xmbh": '',
  150. "crjh": "",
  151. "sfwczq": "",
  152. "ghdy": "",
  153. "gkyq": "",
  154. "jzxg": "",
  155. "ydxzmc": "",
  156. "jzmd": "",
  157. "bz": "",
  158. "sfwcnzy": "",
  159. "mj": "",
  160. "dkbh": "",
  161. "sffd": "",
  162. "jcmj": "",
  163. "zydxz": "",
  164. "ssjd": "",
  165. "sfwczqsm": "",
  166. "ssqx": "",
  167. "pfwh": "",
  168. "sftb": "",
  169. "ydxz": "",
  170. "rjl": "",
  171. "ldl": "",
  172. "pfsj": "",
  173. "sfwcnzysm": "",
  174. "tdm": "",
  175. "zydxzmc": "",
  176. "sfygd": '',
  177. "sfjd": '',
  178. "sfjdsm": '',
  179. }
  180. }
  181. },
  182. mounted() {
  183. },
  184. methods:{
  185. getInfo() {
  186. let urlApi = `/api/ybz-bj/getWlydById`;
  187. let params = {
  188. id: this.id,
  189. };
  190. this.$ajax.get(urlApi, params, this, false).then(resp => {
  191. let { data, success } = resp
  192. this.obj = { ...data }
  193. });
  194. },
  195. detailClose() {
  196. this.resetObj()
  197. this.$emit('detailClose')
  198. },
  199. dateFormat(date) {
  200. if (date === null || date === undefined || date === "") {
  201. console.log("时间格式化有误,时间为null");
  202. return "";
  203. }
  204. if (typeof date === "string") {
  205. return date.substr(0, 10);
  206. }
  207. var time = new Date(date);
  208. var y = time.getFullYear();
  209. var m = time.getMonth() + 1;
  210. var d = time.getDate();
  211. return y + "-" + this.add0(m) + "-" + this.add0(d);
  212. },
  213. add0(m) {
  214. return m < 10 ? "0" + m : m;
  215. },
  216. resetObj() {
  217. this.obj = {
  218. "gddw": "",
  219. "xmbh": '',
  220. "crjh": "",
  221. "sfwczq": "",
  222. "ghdy": "",
  223. "gkyq": "",
  224. "jzxg": "",
  225. "ydxzmc": "",
  226. "jzmd": "",
  227. "bz": "",
  228. "sfwcnzy": "",
  229. "mj": "",
  230. "dkbh": "",
  231. "sffd": "",
  232. "jcmj": "",
  233. "zydxz": "",
  234. "ssjd": "",
  235. "sfwczqsm": "",
  236. "ssqx": "",
  237. "pfwh": "",
  238. "sftb": "",
  239. "ydxz": "",
  240. "rjl": "",
  241. "ldl": "",
  242. "pfsj": "",
  243. "sfwcnzysm": "",
  244. "tdm": "",
  245. "zydxzmc": "",
  246. "sfygd": '',
  247. "sfjd": '',
  248. "sfjdsm": '',
  249. }
  250. }
  251. }
  252. }
  253. </script>
  254. <style scoped lang="scss">
  255. .TwoContent {
  256. height: 100%;
  257. position: relative;
  258. overflow-y: auto;
  259. ::v-deep .content {
  260. display: flex;
  261. flex-direction: column;
  262. }
  263. div {
  264. overflow-y: auto;
  265. }
  266. table {
  267. width: 100%;
  268. margin: 5px 0;
  269. position: relative;
  270. &.border {
  271. border-right: 1px solid #2B6DA7;
  272. border-bottom: 1px solid #2B6DA7;
  273. tr {
  274. .th {
  275. text-align: center;
  276. color: #A5DAFF;
  277. background: #0E4380;
  278. width: 146px;
  279. padding-left: 0px;
  280. }
  281. td {
  282. color: #fff;
  283. border-left: 1px solid #2B6DA7;
  284. border-top: 1px solid #2B6DA7;
  285. padding-left: 10px;
  286. ::v-deep .el-input {
  287. input {
  288. border: none;
  289. }
  290. }
  291. }
  292. }
  293. }
  294. tr {
  295. height: 40px;
  296. th {
  297. font-size: 16px;
  298. color: rgba(135, 193, 255, 1);
  299. }
  300. td {
  301. ::v-deep .el-input {
  302. input {
  303. color: rgba(135, 193, 255, 1);
  304. background: transparent;
  305. border: 1px solid #4F91D7;
  306. &::-webkit-input-placeholder {
  307. /* WebKit browsers,webkit内核浏览器 */
  308. color: rgba(135, 193, 255, 0.8);
  309. }
  310. &:-moz-placeholder {
  311. /* Mozilla Firefox 4 to 18 */
  312. color: rgba(135, 193, 255, 0.8);
  313. }
  314. &::-moz-placeholder {
  315. /* Mozilla Firefox 19+ */
  316. color: rgba(135, 193, 255, 0.8);
  317. }
  318. &:-ms-input-placeholder {
  319. /* Internet Explorer 10+ */
  320. color: rgba(135, 193, 255, 0.8);
  321. }
  322. }
  323. }
  324. ::v-deep .el-radio-group {
  325. label {
  326. color: rgba(135, 193, 255, 1);
  327. }
  328. }
  329. }
  330. }
  331. }
  332. .btn-wrapper {
  333. text-align: center;
  334. .submit-btn {
  335. color: #133887;
  336. background: #56C1FF;
  337. &:hover {
  338. color: #FFF;
  339. }
  340. }
  341. }
  342. .modal-close-wrapper {
  343. position: absolute;
  344. top: 10px;
  345. right: 10px;
  346. color: #38D0FF;
  347. cursor: pointer;
  348. font-size: 18px;
  349. font-weight: bold;
  350. .close-icon {
  351. width: 20px;
  352. vertical-align: middle;
  353. }
  354. }
  355. }
  356. </style>