3be60a4e8da50de3a1836e6faf0a4b51c492cc80.svn-base 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <template>
  2. <el-dialog class="custom_dialog" append-to-body :modal="false"
  3. :title="currentUnitName?currentUnitName:objName + '新增问题'"
  4. :visible.sync="dialogTableVisible" @close="dialogClose">
  5. <!-- <p class="title"><i class="el-icon-edit"></i>{{classify}}{{type}}</p> -->
  6. <div style="text-align: center;">
  7. <component :is="curComponent" :rowData="rowData" :objId="objId" :secId="secId" :adName="adName"
  8. :objType="objType"
  9. :villType="villType" :villCode="villCode" :cwsCode="cwsCode" :grwCode="grwCode"
  10. :objName="objName"
  11. :problemMiddleType="problemMiddleType" :problemSmallType="problemSmallType"
  12. :stationType="stationType"
  13. :regId="regId" :adCode="adCode" :currentObjectRgstrId="currentObjectRgstrId"
  14. @closeDialog="dialogClose"
  15. :newModelData="newModelData" :currentUnitId="currentUnitId" :currentUnitName="currentUnitName"
  16. :sort1="sort1" :sort2="sort2"></component>
  17. </div>
  18. </el-dialog>
  19. </template>
  20. <script>
  21. import xiaoshuiku from "./xiaoshuikuwenti.vue"
  22. import xiaoshuikuQinghai from "./xiaoshuikuwentiQinghai.vue"
  23. import shuihui from "./shuihuiwenti.vue"
  24. import shuibao from "./shuibao.vue"
  25. import fanghong from "./fanghongwenti.vue"
  26. import shanhong from "./shanhongwenti.vue"
  27. import jieshuizaitifuhe from "./jieshuizaitifuhewenti.vue"
  28. import qushuixukeguanlifuhe from "./qushuixukeguanlifuhewenti.vue"
  29. import shuiziyuanguanlijieshuiguanli from "./szygljsglwenti.vue"
  30. import aqscssjygk from "./aqscssjygkwenti.vue"
  31. import sxzbmaqscxjwenti from "./sxzbmaqscxjwenti.vue"
  32. import hhzzwenti from "./hhzzwenti.vue"
  33. import hhglwenti from "./hhglwenti.vue"
  34. import ncysaqafwenti from "./ncysaqafwenti.vue"
  35. import slxmaqscxjwenti from "./slxmaqscxjwenti.vue"
  36. import qsxkwenti from "./qsxkwenti.vue"
  37. import fujianzhongdaxingshuiku from "./fujianzhongdaxingshuiku.vue"
  38. import bxzzqlaqwenti from "./bxzzqlaqwenti.vue"
  39. import sxzzfwenti from "./sxzzfwenti.vue"
  40. import wxhxpwenti from "./wxhxpwenti.vue"
  41. import xskcxjgwenti from "./xskcxjgwenti.vue"
  42. import hbdxswenti from "./hbdxswenti.vue"
  43. import stbczdgcwenti from "./stbczdgcwenti.vue"
  44. import cbhsfywenti from "./cbhsfywenti.vue"
  45. import shzhfywenti from "./shzhfywenti.vue"
  46. import shxfwenti from "./shxfwenti.vue"
  47. import skfhddwenti from "./skfhddwenti.vue"
  48. import xyjsxshwenti from "./xyjsxshwenti.vue"
  49. import slzjjdjcwenti from "./slzjjdjcwenti.vue"
  50. import fjsxzzfwenti from "./fjsxzzfwenti.vue"
  51. import commonwenti from "./commonwenti.vue"
  52. import pwuawiuwenti from "./pwuawiuwenti.vue"
  53. import dwswenti from "./dwswenti.vue"
  54. import xsksdwenti from "./xsksdwenti.vue"
  55. import xsdyhglwenti from "./xsdyhglwenti.vue"
  56. import rdwpgdwenti from "./rdwpgdwenti.vue"
  57. import jhyshqskwenti from "./jhyshqskwenti.vue"
  58. import qyshqsqkwenti from "./qyshqsqkwenti.vue"
  59. export default {
  60. props: {
  61. // 1 小水库 2 人饮 3 水毁
  62. objType: {
  63. default: '2',
  64. // required: true
  65. },
  66. //对象类型 0 小水库 1 行政村 2 水源地 3 饮水工程 4 水毁工程
  67. villType: {
  68. default: '1',
  69. // required: true
  70. },
  71. villCode: {
  72. default: '1',
  73. // required: true
  74. },
  75. //对象id
  76. objId: {
  77. default: '',
  78. // required: true
  79. },
  80. currentUnitId: {
  81. default: ""
  82. },
  83. currentUnitName: {
  84. default: ""
  85. },
  86. sort1: {
  87. default: ""
  88. },
  89. sort2: {
  90. default: ""
  91. },
  92. secId: {
  93. default: '',
  94. // required: true
  95. },
  96. adCode: {
  97. default: '',
  98. },
  99. adName: {
  100. default: '',
  101. },
  102. //对象名称
  103. objName: {
  104. default: '',
  105. // required: true
  106. },
  107. //问题中类型
  108. problemMiddleType: {
  109. default: '用水户情况'
  110. },
  111. //问题小类型
  112. problemSmallType: {
  113. default: '水质'
  114. },
  115. cwsCode: {
  116. default: ''
  117. },
  118. grwCode: {
  119. default: ''
  120. },
  121. stationType: {
  122. default: ''
  123. },
  124. regId: {
  125. default: ''
  126. },
  127. currentObjectRgstrId: {
  128. default: ''
  129. },
  130. newModelData: {
  131. default: null
  132. },
  133. rowData: {
  134. default: null
  135. }
  136. },
  137. components: {
  138. xiaoshuiku,
  139. xiaoshuikuQinghai,
  140. shuihui,
  141. shuibao,
  142. fanghong,
  143. shanhong,
  144. jieshuizaitifuhe,
  145. qushuixukeguanlifuhe,
  146. shuiziyuanguanlijieshuiguanli,
  147. aqscssjygk,
  148. qsxkwenti,
  149. sxzbmaqscxjwenti,
  150. hhzzwenti,
  151. hhglwenti,
  152. slxmaqscxjwenti,
  153. ncysaqafwenti,
  154. fujianzhongdaxingshuiku,
  155. bxzzqlaqwenti,
  156. sxzzfwenti,
  157. wxhxpwenti,
  158. xskcxjgwenti,
  159. hbdxswenti,
  160. stbczdgcwenti,
  161. cbhsfywenti,
  162. shzhfywenti,
  163. shxfwenti,
  164. skfhddwenti,
  165. xyjsxshwenti,
  166. slzjjdjcwenti,
  167. fjsxzzfwenti,
  168. commonwenti,
  169. pwuawiuwenti,
  170. dwswenti,
  171. xsksdwenti,
  172. xsdyhglwenti,
  173. rdwpgdwenti,
  174. jhyshqskwenti,
  175. qyshqsqkwenti
  176. },
  177. data() {
  178. return {
  179. dialogTableVisible: true,
  180. curComponent: 'xiaoshuiku'
  181. }
  182. },
  183. computed: {
  184. currentRlcode() {
  185. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  186. }
  187. },
  188. mounted() {
  189. if (this.objType == '1' || this.objType == '106') {
  190. if (this.currentRlcode.indexOf('63') == '0') this.curComponent = 'xiaoshuikuQinghai';
  191. else this.curComponent = 'xiaoshuiku'
  192. } else if (this.objType == '3') {
  193. this.curComponent = 'shuihui'
  194. } else if (this.objType == '17') {
  195. this.curComponent = 'shuibao'
  196. } else if (this.objType == '26') {
  197. this.curComponent = 'fanghong'
  198. } else if (this.objType == '27') {
  199. this.curComponent = 'shanhong'
  200. } else if (this.objType == '54') {
  201. this.curComponent = 'jieshuizaitifuhe'
  202. } else if (this.objType == '55') {
  203. this.curComponent = 'qushuixukeguanlifuhe'
  204. } else if (this.objType == '53') {
  205. this.curComponent = 'shuiziyuanguanlijieshuiguanli'
  206. } else if (this.objType == '56') {
  207. this.curComponent = 'shuiziyuanguanlijieshuiguanli'
  208. } else if (this.objType == '57') {
  209. this.curComponent = 'qushuixukeguanlifuhe'
  210. } else if (this.objType == '69') {
  211. this.curComponent = 'aqscssjygk'
  212. } else if (this.objType == '72') {
  213. this.curComponent = 'qsxkwenti'
  214. } else if (this.objType == '75') {
  215. this.curComponent = 'sxzbmaqscxjwenti'
  216. } else if (this.objType == '76') {
  217. this.curComponent = 'hhzzwenti'
  218. } else if (this.objType == '77') {
  219. this.curComponent = 'hhglwenti'
  220. } else if (this.objType == '78') {
  221. this.curComponent = 'slxmaqscxjwenti'
  222. } else if (this.objType == '79') {
  223. this.curComponent = 'ncysaqafwenti'
  224. } else if (this.objType == '80') {
  225. this.curComponent = 'fujianzhongdaxingshuiku'
  226. } else if (this.objType == '81') {
  227. this.curComponent = 'bxzzqlaqwenti'
  228. } else if (this.objType == '82') {
  229. this.curComponent = 'sxzzfwenti'
  230. } else if (this.objType == '83') {
  231. this.curComponent = 'wxhxpwenti'
  232. } else if (this.objType == '84') {
  233. this.curComponent = 'xskcxjgwenti'
  234. } else if (this.objType == '89') {
  235. this.curComponent = 'hbdxswenti'
  236. } else if (this.objType == '91') {
  237. this.curComponent = 'stbczdgcwenti'
  238. } else if (this.objType == '93') {
  239. this.curComponent = 'cbhsfywenti'
  240. } else if (this.objType == '94') {
  241. this.curComponent = 'shzhfywenti'
  242. } else if (this.objType == '95') {
  243. this.curComponent = 'shxfwenti'
  244. } else if (this.objType == '96') {
  245. this.curComponent = 'skfhddwenti'
  246. } else if (this.objType == '98') {
  247. this.curComponent = 'slzjjdjcwenti'
  248. } else if (this.objType == '101') {
  249. this.curComponent = 'xyjsxshwenti'
  250. }else if (this.objType == '110') {
  251. this.curComponent = 'fjsxzzfwenti'
  252. }else if (this.objType == '111') {
  253. this.curComponent = 'commonwenti'
  254. }else if (this.objType == '112') {
  255. this.curComponent = 'pwuawiuwenti'
  256. }else if (this.objType == '113') {
  257. this.curComponent = 'dwswenti'
  258. }else if (this.objType == '115') {
  259. this.curComponent = 'xsksdwenti'
  260. }else if (this.objType == '116') {
  261. this.curComponent = 'xsdyhglwenti'
  262. }else if (this.objType == '117') {
  263. this.curComponent = 'rdwpgdwenti'
  264. }else if (this.objType == '120') {
  265. this.curComponent = 'jhyshqskwenti'
  266. }else if (this.objType == '126') {
  267. this.curComponent = 'qyshqsqkwenti'
  268. }else {
  269. this.curComponent = 'xiaoshuiku'
  270. }
  271. },
  272. methods: {
  273. dialogClose() {
  274. this.$emit('closeDialog')
  275. }
  276. },
  277. watch: {
  278. objType(val) {
  279. if (val == '1') {
  280. this.curComponent = 'xiaoshuiku'
  281. } else if (val == '17') {
  282. this.curComponent = 'shuibao'
  283. } else {
  284. this.curComponent = 'xiaoshuiku'
  285. }
  286. }
  287. }
  288. }
  289. </script>
  290. <style>
  291. .title {
  292. font-size: 16px;
  293. }
  294. .el-icon-edit {
  295. margin-right: 10px;
  296. }
  297. .custom_dialog .el-dialog {
  298. width: 55%;
  299. }
  300. .custom_dialog .el-dialog__body {
  301. padding: 30px 20px;
  302. color: #606266;
  303. font-size: 14px;
  304. height: 60vh;
  305. overflow: auto;
  306. }
  307. </style>