d811e59f27165fddb17bc2155b4efb93d437b710.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <template>
  2. <el-dialog
  3. class="customs_dialog"
  4. :modal="false"
  5. :append-to-body=true
  6. :title="problemMiddleType + '新增问题'"
  7. :visible.sync="dialogTableVisible"
  8. @close="dialogClose"
  9. >
  10. <!-- <p class="title"><i class="el-icon-edit"></i>{{classify}}{{type}}</p> -->
  11. <div style="text-align: center;">
  12. <component
  13. :is="curComponent"
  14. :objId="objId"
  15. :objType="objType"
  16. :villType="villType"
  17. :villCode="villCode"
  18. :cwsCode="cwsCode"
  19. :objName="objName"
  20. :currentUnitId="currentUnitId"
  21. :currentUnitName="currentUnitName"
  22. :flag="flag"
  23. :prsnWaterId="prsnWaterId"
  24. :problemMiddleType="problemMiddleType"
  25. :currentGroupId="currentGroupId"
  26. :problemSmallType="problemSmallType"
  27. :currentObjectRgstrId="currentObjectRgstrId"
  28. :problData="problData"
  29. :rowData="rowData"
  30. :yshRowData="yshRowData"
  31. :gsgcRowData="gsgcRowData"
  32. :adFullName="adFullName"
  33. :villageAdCode="villageAdCode"
  34. @closeDialog="dialogClose"
  35. :szRuls="szRuls"
  36. :pblmNameBz="pblmNameBz"
  37. :oriFatherName="oriFatherName"
  38. :villageNm="villageNm"
  39. :pblmReviewRowData="pblmReviewRowData"
  40. ></component>
  41. </div>
  42. </el-dialog>
  43. </template>
  44. <script>
  45. import yongshuihu from "./addProblem/yongshuihu.vue";
  46. import xiaoshuikuwenti from "./addProblem/xiaoshuiku.vue";
  47. import shuizha from "./addProblem/shuizha.vue";
  48. import shuiyuandi from "./addProblem/shuiYuanDi.vue";
  49. import yinShuiGongCheng from "./addProblem/yinShuiGongCheng.vue";
  50. import yigongli from './addProblem/yigongli.vue'
  51. import shuiyuandiNew from './addProblem/shuiyuandiNew'
  52. import fenshuiJiGuankong from './addProblem/fenshuiJiGuankong'
  53. import jieshuiGuanLi from './addProblem/jieshuiGuanLi.vue'
  54. import xiaoshuikuBiaozhunhua from './addProblem/xiaoshuikuBiaozhunhua.vue'
  55. import renyinZj from './addProblem/renyinZj.vue'
  56. import renyinnew from './addProblem/renyinnew.vue'
  57. import ncysaq from './addProblem/ncysaq.vue'
  58. import fanghong from './addProblem/fanghong.vue'
  59. import zhejiangqiangjianguan from './addProblem/zhejiangqiangjianguan.vue'
  60. import jieshuizaitifuhe from './addProblem/jieshuizaitifuhe.vue'
  61. import qushuixukeguanlifuhe from './addProblem/qushuixukeguanlifuhe.vue'
  62. import shuiziyuanguanlijieshuiguanli from './addProblem/shuiziyuanguanlijieshuiguanli.vue'
  63. import yijijiancedanwei from './addProblem/yijijiancedanwei.vue'
  64. import zhaotoubiao from './addProblem/zhaotoubiao.vue'
  65. import dixiashuiyacai from './addProblem/dixiashuiyacai.vue'
  66. import aqscssjygk from './addProblem/aqscssjygk.vue'
  67. import difang from './addProblem/difang.vue'
  68. import qsxk from './addProblem/qsxk.vue'
  69. import xjtdjs from './addProblem/xjtdjs.vue'
  70. import sxzbmaqscxj from './addProblem/sxzbmaqscxj.vue'
  71. import hhzz from './addProblem/hhzz.vue'
  72. import hhgl from './addProblem/hhgl.vue'
  73. import ncysaqaf from './addProblem/ncysaqaf.vue'
  74. import ncysaqaf2021 from './addProblem/ncysaqaf2021.vue'
  75. import bxzzqlaq from './addProblem/bxzzqlaq.vue'
  76. import wxhxp from './addProblem/wxhxp.vue'
  77. import hbdxs from './addProblem/hbdxs.vue'
  78. import cbhsfy from './addProblem/cbhsfy.vue'
  79. import shzhfy from './addProblem/shzhfy.vue'
  80. import shxf from './addProblem/shxf.vue'
  81. import skfhdd from './addProblem/skfhdd.vue'
  82. import xyjsxsh from './addProblem/xyjsxsh.vue'
  83. import slzjjdjc from './addProblem/slzjjdjc.vue'
  84. import ncysaqXjbt from './addProblem/ncysaqXjbt.vue'
  85. import fjsxzzf from './addProblem/fjsxzzf.vue'
  86. import xsd from './addProblem/xsd.vue'
  87. import pwuawiu from './addProblem/pwuawiu.vue'
  88. import dws from './addProblem/dws.vue'
  89. import xsksd from './addProblem/xsksd.vue'
  90. import xsdyhgl from './addProblem/xsdyhgl.vue'
  91. import jhyshqsk from './addProblem/jhyshqsk.vue'
  92. import qyshqsqk from './addProblem/qyshqsqk.vue'
  93. export default {
  94. props: {
  95. // 1 小水库 2 人饮 3 水毁 4 水文司地下水
  96. objType: {
  97. default: "2"
  98. // required: true
  99. },
  100. //对象类型 0 小水库 1 行政村 2 水源地 3 饮水工程 4 水毁工程 5 地下水
  101. villType: {
  102. default: "1"
  103. // required: true
  104. },
  105. villCode: {
  106. default: "1"
  107. // required: true
  108. },
  109. //对象id
  110. objId: {
  111. default: ""
  112. // required: true
  113. },
  114. //对象名称
  115. objName: {
  116. default: "行政村"
  117. // required: true
  118. },
  119. currentUnitId:{
  120. default: ""
  121. },
  122. currentUnitName:{
  123. default: ""
  124. },
  125. flag:{
  126. default: ""
  127. },
  128. //问题中类型
  129. problemMiddleType: {
  130. default: "用水户情况"
  131. },
  132. //问题小类型
  133. problemSmallType: {
  134. default: "水质"
  135. },
  136. cwsCode: {
  137. default: ""
  138. },
  139. currentObjectRgstrId: {
  140. default: ""
  141. },
  142. rowData: {
  143. default: ""
  144. },
  145. yshRowData: {
  146. default: ""
  147. },
  148. problData: {
  149. default: ""
  150. },
  151. currentGroupId: {
  152. default: ""
  153. },
  154. //用水户id
  155. prsnWaterId: {
  156. default: ''
  157. },
  158. szRuls: {
  159. default: () => {
  160. return []
  161. }
  162. },
  163. gsgcRowData: {
  164. default: ""
  165. },
  166. adFullName: {},
  167. villageAdCode: {},
  168. pblmNameBz: {
  169. default: ''
  170. },
  171. oriFatherName: {
  172. default: ''
  173. },
  174. villageNm: {
  175. default: ''
  176. },
  177. pblmReviewRowData: {
  178. default: ""
  179. },
  180. },
  181. components: {
  182. yongshuihu: yongshuihu,
  183. xiaoshuikuwenti: xiaoshuikuwenti,
  184. shuizha: shuizha,
  185. shuiyuandi: shuiyuandi,
  186. yinShuiGongCheng: yinShuiGongCheng,
  187. shuiyuandiNew: shuiyuandiNew,
  188. fenshuiJiGuankong: fenshuiJiGuankong,
  189. jieshuiGuanLi: jieshuiGuanLi,
  190. xiaoshuikuBiaozhunhua: xiaoshuikuBiaozhunhua,
  191. renyinZj: renyinZj,
  192. zhejiangqiangjianguan: zhejiangqiangjianguan,
  193. fanghong,
  194. renyinnew,
  195. yigongli,
  196. jieshuizaitifuhe: jieshuizaitifuhe,
  197. qushuixukeguanlifuhe: qushuixukeguanlifuhe,
  198. shuiziyuanguanlijieshuiguanli: shuiziyuanguanlijieshuiguanli,
  199. yijijiancedanwei,
  200. zhaotoubiao,
  201. dixiashuiyacai,
  202. aqscssjygk,
  203. difang,
  204. ncysaq,
  205. qsxk,
  206. xjtdjs,
  207. sxzbmaqscxj,
  208. hhzz,
  209. hhgl,
  210. ncysaqaf,
  211. bxzzqlaq,
  212. wxhxp,
  213. hbdxs,
  214. cbhsfy,
  215. shzhfy,
  216. shxf,
  217. skfhdd,
  218. ncysaqaf2021,
  219. xyjsxsh,
  220. slzjjdjc,
  221. ncysaqXjbt,
  222. fjsxzzf,
  223. xsd,
  224. pwuawiu,
  225. dws,
  226. xsksd,
  227. xsdyhgl,
  228. jhyshqsk,
  229. qyshqsqk
  230. },
  231. data() {
  232. return {
  233. dialogTableVisible: true,
  234. curComponent: "shuiyuandi"
  235. };
  236. },
  237. mounted: function () {
  238. if (this.villType == "1") {
  239. this.curComponent = "yongshuihu";
  240. } else if (this.villType == "2") {
  241. this.curComponent = "shuiyuandi";
  242. } else if (this.villType == "3") {
  243. this.curComponent = "yinShuiGongCheng";
  244. } else if (this.villType == "0") {
  245. this.curComponent = "xiaoshuikuwenti";
  246. } else if (this.villType == "7") {
  247. this.curComponent = "shuizha";
  248. } else if (this.villType == "13") {
  249. this.curComponent = "shuiyuandiNew";
  250. } else if (this.villType == "14") {
  251. this.curComponent = "fenshuiJiGuankong";
  252. } else if (this.villType == "15") {
  253. this.curComponent = "jieshuiGuanLi";
  254. } else if (this.villType == "24") {
  255. this.curComponent = "xiaoshuikuBiaozhunhua";
  256. } else if (this.objType == '25') {
  257. this.curComponent = 'renyinnew';
  258. } else if (this.objType == '26') {
  259. this.curComponent = 'fanghong';
  260. } else if (this.objType == '28') {
  261. this.curComponent = 'yigongli';
  262. } else if (this.villType == "41") {
  263. this.curComponent = "renyinZj";
  264. } else if (this.villType == "42") {
  265. this.curComponent = "zhejiangqiangjianguan";
  266. } else if (this.villType == "54") {
  267. this.curComponent = "jieshuizaitifuhe";
  268. } else if (this.villType == "55") {
  269. this.curComponent = "qushuixukeguanlifuhe";
  270. } else if (this.villType == "53") {
  271. this.curComponent = "shuiziyuanguanlijieshuiguanli";
  272. } else if (this.villType == "56") {
  273. this.curComponent = "shuiziyuanguanlijieshuiguanli";
  274. } else if (this.villType == "57") {
  275. this.curComponent = "qushuixukeguanlifuhe";
  276. } else if (this.villType == "62") {
  277. this.curComponent = "yijijiancedanwei";
  278. } else if (this.villType == "67") {
  279. this.curComponent = "zhaotoubiao";
  280. } else if (this.villType == "68") {
  281. this.curComponent = "xjtdjs";
  282. } else if (this.villType == "69") {
  283. this.curComponent = "aqscssjygk";
  284. } else if (this.villType == "70") {
  285. this.curComponent = "dixiashuiyacai";
  286. } else if (this.villType == "29") {
  287. this.curComponent = "difang";
  288. } else if (this.villType == "71") {
  289. this.curComponent = "ncysaq";
  290. } else if (this.villType == "72") {
  291. this.curComponent = "qsxk";
  292. }else if (this.objType == '73') {
  293. this.curComponent = 'xsd';
  294. }else if (this.villType == "75") {
  295. this.curComponent = "sxzbmaqscxj";
  296. }else if (this.villType == "76") {
  297. this.curComponent = "hhzz";
  298. }else if (this.villType == "77") {
  299. this.curComponent = "hhgl";
  300. }else if (this.villType == "79") {
  301. this.curComponent = "ncysaqaf";
  302. }else if (this.villType == "81") {
  303. this.curComponent = "bxzzqlaq";
  304. }else if (this.villType == "83") {
  305. this.curComponent = "wxhxp";
  306. }else if (this.villType == "89") {
  307. this.curComponent = "hbdxs";
  308. }else if (this.villType == "93") {
  309. this.curComponent = "cbhsfy";
  310. }else if (this.villType == "94") {
  311. this.curComponent = "shzhfy";
  312. }else if (this.villType == "95") {
  313. this.curComponent = "shxf";
  314. }else if (this.villType == "96") {
  315. this.curComponent = "skfhdd";
  316. }else if (this.villType == "97") {
  317. this.curComponent = "ncysaqaf2021";
  318. }else if (this.villType == "98") {
  319. this.curComponent = "slzjjdjc";
  320. }else if (this.villType == "101") {
  321. this.curComponent = "xyjsxsh";
  322. }else if (this.villType == "108") {
  323. this.curComponent = "ncysaqXjbt";
  324. }else if (this.villType == "110") {
  325. this.curComponent = "fjsxzzf";
  326. }else if (this.villType == "112") {
  327. this.curComponent = "pwuawiu";
  328. }else if(this.villType == "113"){
  329. this.curComponent = "dws";
  330. }else if(this.villType == "115"){
  331. this.curComponent = "xsksd";
  332. }else if(this.villType == "116"){
  333. this.curComponent = "xsdyhgl";
  334. }else if(this.villType == "120"){
  335. this.curComponent = "jhyshqsk";
  336. }else if(this.villType == "126"){
  337. this.curComponent = "qyshqsqk";
  338. }
  339. },
  340. methods: {
  341. dialogClose() {
  342. this.$emit("closeDialog");
  343. }
  344. }
  345. };
  346. </script>
  347. <style>
  348. .title {
  349. font-size: 16px;
  350. }
  351. .el-icon-edit {
  352. margin-right: 10px;
  353. }
  354. .customs_dialog .el-dialog {
  355. width: 40% !important;
  356. }
  357. .customs_dialog .el-dialog__body {
  358. padding: 30px 20px;
  359. color: #606266;
  360. font-size: 14px;
  361. height: 60vh;
  362. overflow: auto;
  363. }
  364. </style>