CaseAuditPopup.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <MenuCard class="case-audit" :menuData="menuData">
  3. <div class="case-audit-inner">
  4. <div class="top-law">
  5. <a style="cursor: pointer">》点此查看相关法律法规&nbsp;&nbsp;</a>
  6. </div>
  7. <!-- 未激活疑点审计 -->
  8. <div v-if="status === 'normal'" class="center-table" style="height: 91%">
  9. <div
  10. class="center-table-item-normal"
  11. v-for="item in tableArr"
  12. :key="item.id"
  13. >
  14. <div class="leftcell">{{ item.name }}</div>
  15. <div class="rightcell">{{ item.content }}</div>
  16. </div>
  17. </div>
  18. <!-- 激活疑点审计 -->
  19. <div v-if="status === 'special'" class="center-table">
  20. <div
  21. class="center-table-item-special"
  22. v-for="item in tableArr"
  23. :key="item.id"
  24. >
  25. <div class="leftcell">{{ item.name }}</div>
  26. <div class="rightcell">{{ item.content }}</div>
  27. </div>
  28. <div class="center-table-item-special">
  29. <div class="leftcell">疑点性质</div>
  30. <div class="rightcell">
  31. <select class="select-box">
  32. <option value="isTrue">疑点</option>
  33. <option value="isFalse">非疑点</option>
  34. </select>
  35. <!-- <NewSelect
  36. style="width: 120px; height: 30px"
  37. v-model="selectVal"
  38. :options="selectOptions"
  39. :value="selectVal"
  40. /> -->
  41. </div>
  42. </div>
  43. </div>
  44. <div v-if="status === 'special'" class="footer-btn">
  45. <input
  46. class="audit-popup-btn"
  47. type="button"
  48. value="修改"
  49. @click="modifyEvent"
  50. />
  51. <input
  52. class="audit-popup-btn"
  53. type="button"
  54. value="确认"
  55. @click="confirmEvent"
  56. />
  57. </div>
  58. </div>
  59. </MenuCard>
  60. </template>
  61. <script>
  62. import MenuCard from "@/components/layout/MenuCard.vue";
  63. import NewSelect from "@/components/common/NewSelect.vue";
  64. /**
  65. * 疑点审计弹窗
  66. *
  67. * 点击地图上的疑点板块时 - 会出现疑点性质一栏
  68. */
  69. export default {
  70. name: "CaseAuditPopup",
  71. components: { MenuCard, NewSelect },
  72. data() {
  73. return {
  74. menuData: {
  75. type: "chart",
  76. title: "属性",
  77. boxWidth: "300",
  78. boxHeight: "320",
  79. },
  80. // status: "special",
  81. tableArr: [
  82. { id: 1, name: "版本", content: "2017年部" },
  83. { id: 2, name: "面积", content: "888.4567" },
  84. { id: 3, name: "性质", content: "林地 硬化地表" },
  85. { id: 4, name: "异常", content: "疑似基本农田被侵占" },
  86. ],
  87. selectVal: "疑点",
  88. selectOptions: [
  89. { value: "疑点", label: "疑点" },
  90. { value: "非疑点", label: "非疑点" },
  91. ],
  92. };
  93. },
  94. props:['status'],
  95. methods: {
  96. modifyEvent() {
  97. console.log("modify");
  98. },
  99. confirmEvent() {
  100. console.log("confirm");
  101. },
  102. },
  103. };
  104. </script>
  105. <style lang="less" scoped>
  106. .case-audit {
  107. cursor: auto;
  108. &-inner {
  109. width: 100%;
  110. height: 100%;
  111. .top-law {
  112. width: 100%;
  113. height: 10%;
  114. font-size: 16px;
  115. font-family: PingFang SC;
  116. font-weight: 300;
  117. font-style: italic;
  118. text-decoration: underline;
  119. display: flex;
  120. justify-content: flex-end;
  121. color: #4dc3ff;
  122. }
  123. .center-table {
  124. width: 100%;
  125. height: 70%;
  126. // border: 1px solid #818ca4;
  127. display: flex;
  128. flex-direction: column;
  129. justify-content: center;
  130. color: rgba(230, 230, 230, 1);
  131. font-size: 15px;
  132. &-item-normal,
  133. &-item-special {
  134. width: 100%;
  135. border-top: 1px solid #818ca4;
  136. border-left: 1px solid #818ca4;
  137. &:last-child {
  138. border-bottom: 1px solid #818ca4;
  139. }
  140. display: flex;
  141. .leftcell {
  142. width: 35%;
  143. display: flex;
  144. align-items: center;
  145. justify-content: center;
  146. border-right: 1px solid #818ca4;
  147. }
  148. .rightcell {
  149. width: 65%;
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. border-right: 1px solid #818ca4;
  154. .select-box {
  155. width: 120px;
  156. height: 30px;
  157. border: 1px solid #818ca4;
  158. border-radius: 4px;
  159. background: transparent;
  160. color: rgba(230, 230, 230, 1);
  161. cursor: pointer;
  162. &:focus {
  163. border: none;
  164. border-radius: 1px;
  165. }
  166. option {
  167. background-color: rgba(0, 39, 77, 0.8);
  168. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  169. border: 1px solid rgba(47, 184, 255, 0.7);
  170. }
  171. }
  172. }
  173. }
  174. &-item-normal {
  175. height: 23%;
  176. }
  177. &-item-special {
  178. height: 17%;
  179. }
  180. }
  181. .footer-btn {
  182. margin: 0 auto;
  183. width: 50%;
  184. height: 20%;
  185. display: flex;
  186. align-items: center;
  187. justify-content: space-around;
  188. font-size: 15px;
  189. input {
  190. width: 60px;
  191. height: 30px;
  192. border-radius: 3px;
  193. border: none;
  194. color: #fff;
  195. cursor: pointer;
  196. }
  197. input:nth-child(1) {
  198. background: rgba(129, 140, 164, 1);
  199. }
  200. input:nth-child(2) {
  201. background-image: linear-gradient(
  202. to top,
  203. rgba(79, 172, 254, 1),
  204. rgba(0, 242, 254, 1)
  205. );
  206. }
  207. }
  208. }
  209. }
  210. </style>