| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <template>
- <el-dialog class="custom_dialog" append-to-body :modal="false"
- :title="currentUnitName?currentUnitName:objName + '新增问题'"
- :visible.sync="dialogTableVisible" @close="dialogClose">
- <!-- <p class="title"><i class="el-icon-edit"></i>{{classify}}{{type}}</p> -->
- <div style="text-align: center;">
- <component :is="curComponent" :rowData="rowData" :objId="objId" :secId="secId" :adName="adName"
- :objType="objType"
- :villType="villType" :villCode="villCode" :cwsCode="cwsCode" :grwCode="grwCode"
- :objName="objName"
- :problemMiddleType="problemMiddleType" :problemSmallType="problemSmallType"
- :stationType="stationType"
- :regId="regId" :adCode="adCode" :currentObjectRgstrId="currentObjectRgstrId"
- @closeDialog="dialogClose"
- :newModelData="newModelData" :currentUnitId="currentUnitId" :currentUnitName="currentUnitName"
- :sort1="sort1" :sort2="sort2"></component>
- </div>
- </el-dialog>
- </template>
- <script>
- import xiaoshuiku from "./xiaoshuikuwenti.vue"
- import xiaoshuikuQinghai from "./xiaoshuikuwentiQinghai.vue"
- import shuihui from "./shuihuiwenti.vue"
- import shuibao from "./shuibao.vue"
- import fanghong from "./fanghongwenti.vue"
- import shanhong from "./shanhongwenti.vue"
- import jieshuizaitifuhe from "./jieshuizaitifuhewenti.vue"
- import qushuixukeguanlifuhe from "./qushuixukeguanlifuhewenti.vue"
- import shuiziyuanguanlijieshuiguanli from "./szygljsglwenti.vue"
- import aqscssjygk from "./aqscssjygkwenti.vue"
- import sxzbmaqscxjwenti from "./sxzbmaqscxjwenti.vue"
- import hhzzwenti from "./hhzzwenti.vue"
- import hhglwenti from "./hhglwenti.vue"
- import ncysaqafwenti from "./ncysaqafwenti.vue"
- import slxmaqscxjwenti from "./slxmaqscxjwenti.vue"
- import qsxkwenti from "./qsxkwenti.vue"
- import fujianzhongdaxingshuiku from "./fujianzhongdaxingshuiku.vue"
- import bxzzqlaqwenti from "./bxzzqlaqwenti.vue"
- import sxzzfwenti from "./sxzzfwenti.vue"
- import wxhxpwenti from "./wxhxpwenti.vue"
- import xskcxjgwenti from "./xskcxjgwenti.vue"
- import hbdxswenti from "./hbdxswenti.vue"
- import stbczdgcwenti from "./stbczdgcwenti.vue"
- import cbhsfywenti from "./cbhsfywenti.vue"
- import shzhfywenti from "./shzhfywenti.vue"
- import shxfwenti from "./shxfwenti.vue"
- import skfhddwenti from "./skfhddwenti.vue"
- import xyjsxshwenti from "./xyjsxshwenti.vue"
- import slzjjdjcwenti from "./slzjjdjcwenti.vue"
- import fjsxzzfwenti from "./fjsxzzfwenti.vue"
- import commonwenti from "./commonwenti.vue"
- import pwuawiuwenti from "./pwuawiuwenti.vue"
- import dwswenti from "./dwswenti.vue"
- import xsksdwenti from "./xsksdwenti.vue"
- import xsdyhglwenti from "./xsdyhglwenti.vue"
- import rdwpgdwenti from "./rdwpgdwenti.vue"
- import jhyshqskwenti from "./jhyshqskwenti.vue"
- import qyshqsqkwenti from "./qyshqsqkwenti.vue"
- export default {
- props: {
- // 1 小水库 2 人饮 3 水毁
- objType: {
- default: '2',
- // required: true
- },
- //对象类型 0 小水库 1 行政村 2 水源地 3 饮水工程 4 水毁工程
- villType: {
- default: '1',
- // required: true
- },
- villCode: {
- default: '1',
- // required: true
- },
- //对象id
- objId: {
- default: '',
- // required: true
- },
- currentUnitId: {
- default: ""
- },
- currentUnitName: {
- default: ""
- },
- sort1: {
- default: ""
- },
- sort2: {
- default: ""
- },
- secId: {
- default: '',
- // required: true
- },
- adCode: {
- default: '',
- },
- adName: {
- default: '',
- },
- //对象名称
- objName: {
- default: '',
- // required: true
- },
- //问题中类型
- problemMiddleType: {
- default: '用水户情况'
- },
- //问题小类型
- problemSmallType: {
- default: '水质'
- },
- cwsCode: {
- default: ''
- },
- grwCode: {
- default: ''
- },
- stationType: {
- default: ''
- },
- regId: {
- default: ''
- },
- currentObjectRgstrId: {
- default: ''
- },
- newModelData: {
- default: null
- },
- rowData: {
- default: null
- }
- },
- components: {
- xiaoshuiku,
- xiaoshuikuQinghai,
- shuihui,
- shuibao,
- fanghong,
- shanhong,
- jieshuizaitifuhe,
- qushuixukeguanlifuhe,
- shuiziyuanguanlijieshuiguanli,
- aqscssjygk,
- qsxkwenti,
- sxzbmaqscxjwenti,
- hhzzwenti,
- hhglwenti,
- slxmaqscxjwenti,
- ncysaqafwenti,
- fujianzhongdaxingshuiku,
- bxzzqlaqwenti,
- sxzzfwenti,
- wxhxpwenti,
- xskcxjgwenti,
- hbdxswenti,
- stbczdgcwenti,
- cbhsfywenti,
- shzhfywenti,
- shxfwenti,
- skfhddwenti,
- xyjsxshwenti,
- slzjjdjcwenti,
- fjsxzzfwenti,
- commonwenti,
- pwuawiuwenti,
- dwswenti,
- xsksdwenti,
- xsdyhglwenti,
- rdwpgdwenti,
- jhyshqskwenti,
- qyshqsqkwenti
- },
- data() {
- return {
- dialogTableVisible: true,
- curComponent: 'xiaoshuiku'
- }
- },
- computed: {
- currentRlcode() {
- return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
- }
- },
- mounted() {
- if (this.objType == '1' || this.objType == '106') {
- if (this.currentRlcode.indexOf('63') == '0') this.curComponent = 'xiaoshuikuQinghai';
- else this.curComponent = 'xiaoshuiku'
- } else if (this.objType == '3') {
- this.curComponent = 'shuihui'
- } else if (this.objType == '17') {
- this.curComponent = 'shuibao'
- } else if (this.objType == '26') {
- this.curComponent = 'fanghong'
- } else if (this.objType == '27') {
- this.curComponent = 'shanhong'
- } else if (this.objType == '54') {
- this.curComponent = 'jieshuizaitifuhe'
- } else if (this.objType == '55') {
- this.curComponent = 'qushuixukeguanlifuhe'
- } else if (this.objType == '53') {
- this.curComponent = 'shuiziyuanguanlijieshuiguanli'
- } else if (this.objType == '56') {
- this.curComponent = 'shuiziyuanguanlijieshuiguanli'
- } else if (this.objType == '57') {
- this.curComponent = 'qushuixukeguanlifuhe'
- } else if (this.objType == '69') {
- this.curComponent = 'aqscssjygk'
- } else if (this.objType == '72') {
- this.curComponent = 'qsxkwenti'
- } else if (this.objType == '75') {
- this.curComponent = 'sxzbmaqscxjwenti'
- } else if (this.objType == '76') {
- this.curComponent = 'hhzzwenti'
- } else if (this.objType == '77') {
- this.curComponent = 'hhglwenti'
- } else if (this.objType == '78') {
- this.curComponent = 'slxmaqscxjwenti'
- } else if (this.objType == '79') {
- this.curComponent = 'ncysaqafwenti'
- } else if (this.objType == '80') {
- this.curComponent = 'fujianzhongdaxingshuiku'
- } else if (this.objType == '81') {
- this.curComponent = 'bxzzqlaqwenti'
- } else if (this.objType == '82') {
- this.curComponent = 'sxzzfwenti'
- } else if (this.objType == '83') {
- this.curComponent = 'wxhxpwenti'
- } else if (this.objType == '84') {
- this.curComponent = 'xskcxjgwenti'
- } else if (this.objType == '89') {
- this.curComponent = 'hbdxswenti'
- } else if (this.objType == '91') {
- this.curComponent = 'stbczdgcwenti'
- } else if (this.objType == '93') {
- this.curComponent = 'cbhsfywenti'
- } else if (this.objType == '94') {
- this.curComponent = 'shzhfywenti'
- } else if (this.objType == '95') {
- this.curComponent = 'shxfwenti'
- } else if (this.objType == '96') {
- this.curComponent = 'skfhddwenti'
- } else if (this.objType == '98') {
- this.curComponent = 'slzjjdjcwenti'
- } else if (this.objType == '101') {
- this.curComponent = 'xyjsxshwenti'
- }else if (this.objType == '110') {
- this.curComponent = 'fjsxzzfwenti'
- }else if (this.objType == '111') {
- this.curComponent = 'commonwenti'
- }else if (this.objType == '112') {
- this.curComponent = 'pwuawiuwenti'
- }else if (this.objType == '113') {
- this.curComponent = 'dwswenti'
- }else if (this.objType == '115') {
- this.curComponent = 'xsksdwenti'
- }else if (this.objType == '116') {
- this.curComponent = 'xsdyhglwenti'
- }else if (this.objType == '117') {
- this.curComponent = 'rdwpgdwenti'
- }else if (this.objType == '120') {
- this.curComponent = 'jhyshqskwenti'
- }else if (this.objType == '126') {
- this.curComponent = 'qyshqsqkwenti'
- }else {
- this.curComponent = 'xiaoshuiku'
- }
- },
- methods: {
- dialogClose() {
- this.$emit('closeDialog')
- }
- },
- watch: {
- objType(val) {
- if (val == '1') {
- this.curComponent = 'xiaoshuiku'
- } else if (val == '17') {
- this.curComponent = 'shuibao'
- } else {
- this.curComponent = 'xiaoshuiku'
- }
- }
- }
- }
- </script>
- <style>
- .title {
- font-size: 16px;
- }
- .el-icon-edit {
- margin-right: 10px;
- }
- .custom_dialog .el-dialog {
- width: 55%;
- }
- .custom_dialog .el-dialog__body {
- padding: 30px 20px;
- color: #606266;
- font-size: 14px;
- height: 60vh;
- overflow: auto;
- }
- </style>
|