Merge branch 'master' into dev
Showing
73 changed files
with
1889 additions
and
586 deletions
| ... | @@ -20,6 +20,7 @@ | ... | @@ -20,6 +20,7 @@ |
| 20 | "nprogress": "0.2.0", | 20 | "nprogress": "0.2.0", |
| 21 | "vue": "2.6.10", | 21 | "vue": "2.6.10", |
| 22 | "vue-awesome": "^4.5.0", | 22 | "vue-awesome": "^4.5.0", |
| 23 | "vue-json-editor": "^1.4.3", | ||
| 23 | "vue-router": "3.0.2", | 24 | "vue-router": "3.0.2", |
| 24 | "vuex": "3.1.0", | 25 | "vuex": "3.1.0", |
| 25 | "xe-utils": "^3.5.7" | 26 | "xe-utils": "^3.5.7" | ... | ... |
| ... | @@ -40,10 +40,18 @@ export function getDataReportPage (data) { | ... | @@ -40,10 +40,18 @@ export function getDataReportPage (data) { |
| 40 | }) | 40 | }) |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | // 数据上报分页 | 43 | // 查询数据上报详情tabs选项卡 |
| 44 | export function getDetail (params) { | 44 | export function getTabsDetail (params) { |
| 45 | return request({ | ||
| 46 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getTabsDetail', | ||
| 47 | method: 'get', | ||
| 48 | params | ||
| 49 | }) | ||
| 50 | } | ||
| 51 | // 查询数据上报详情 | ||
| 52 | export function getReportDetail (params) { | ||
| 45 | return request({ | 53 | return request({ |
| 46 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getDetail', | 54 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getReportDetail', |
| 47 | method: 'get', | 55 | method: 'get', |
| 48 | params | 56 | params |
| 49 | }) | 57 | }) | ... | ... |
| 1 | import dialogBox from '@/components/DialogBox' | 1 | import dialogBox from '@/components/DialogBox' |
| 2 | import LbTable from '@/components/LbTable' | 2 | import LbTable from '@/components/LbTable' |
| 3 | import Theme from '@/components/Theme.vue' | 3 | import Theme from '@/components/Theme.vue' |
| 4 | import Breadcrumb from "@/components/Breadcrumb.vue"; | ||
| 4 | // 引入按钮 | 5 | // 引入按钮 |
| 5 | import btn from '@/components/Button.vue' | 6 | import btn from '@/components/Button.vue' |
| 6 | import Popup from '@/components/Popup/index' | 7 | import Popup from '@/components/Popup/index' |
| ... | @@ -8,6 +9,7 @@ import MessageBox from '@/components/MessageBox/index.js' | ... | @@ -8,6 +9,7 @@ import MessageBox from '@/components/MessageBox/index.js' |
| 8 | export default { | 9 | export default { |
| 9 | install: (Vue) => { | 10 | install: (Vue) => { |
| 10 | Vue.component('dialogBox', dialogBox); | 11 | Vue.component('dialogBox', dialogBox); |
| 12 | Vue.component('Breadcrumb', Breadcrumb); | ||
| 11 | Vue.component('btn', btn); | 13 | Vue.component('btn', btn); |
| 12 | Vue.component('lbTable', LbTable); | 14 | Vue.component('lbTable', LbTable); |
| 13 | Vue.component('Theme', Theme); | 15 | Vue.component('Theme', Theme); | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="breadcrumb"> | 2 | <el-breadcrumb class="breadcrumb" separator-class="el-icon-arrow-right"> |
| 3 | <el-breadcrumb class="app-breadcrumb" separator-class="el-icon-arrow-right"> | 3 | <span class="fl">当前页面:</span> |
| 4 | <transition-group name="breadcrumb"> | 4 | <transition-group name="breadcrumb"> |
| 5 | <el-breadcrumb-item v-for="(item, index) in levelList" :key="item.path"> | 5 | <el-breadcrumb-item v-for="(item, index) in levelList" :key="item.path"> |
| 6 | <span | 6 | <span @click.prevent="handleLink(item)">{{ item.meta.title }}</span> |
| 7 | v-if=" | ||
| 8 | item.redirect === 'noRedirect' || index == levelList.length - 1 | ||
| 9 | " | ||
| 10 | class="no-redirect" | ||
| 11 | >{{ item.meta.title }}</span | ||
| 12 | > | ||
| 13 | <a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a> | ||
| 14 | </el-breadcrumb-item> | 7 | </el-breadcrumb-item> |
| 15 | </transition-group> | 8 | </transition-group> |
| 16 | </el-breadcrumb> | 9 | </el-breadcrumb> |
| 17 | </div> | ||
| 18 | </template> | 10 | </template> |
| 19 | 11 | ||
| 20 | <script> | 12 | <script> |
| 21 | import pathToRegexp from "path-to-regexp"; | 13 | import pathToRegexp from "path-to-regexp"; |
| 22 | 14 | ||
| 23 | export default { | 15 | export default { |
| 24 | data() { | 16 | data () { |
| 25 | return { | 17 | return { |
| 26 | levelList: null, | 18 | levelList: null, |
| 27 | }; | 19 | }; |
| 28 | }, | 20 | }, |
| 29 | watch: { | 21 | watch: { |
| 30 | $route() { | 22 | $route () { |
| 31 | this.getBreadcrumb(); | 23 | this.getBreadcrumb(); |
| 32 | }, | 24 | }, |
| 33 | }, | 25 | }, |
| 34 | created() { | 26 | created () { |
| 35 | this.getBreadcrumb(); | 27 | this.getBreadcrumb(); |
| 36 | }, | 28 | }, |
| 37 | methods: { | 29 | methods: { |
| 38 | getBreadcrumb() { | 30 | getBreadcrumb () { |
| 39 | // only show routes with meta.title | 31 | // only show routes with meta.title |
| 40 | let matched = this.$route.matched.filter( | 32 | this.levelList = this.$route.matched.filter( |
| 41 | (item) => item.meta && item.meta.title | 33 | (item) => item.meta && item.meta.title |
| 42 | ); | 34 | ) |
| 43 | this.levelList = matched.filter( | 35 | if (this.$route.matched[0].path == '/jsbwcx') { |
| 44 | (item) => item.meta && item.meta.title | 36 | this.levelList = this.levelList.slice(-1) |
| 45 | ); | 37 | } |
| 46 | }, | 38 | }, |
| 47 | isDashboard(route) { | 39 | isDashboard (route) { |
| 48 | const name = route && route.name; | 40 | const name = route && route.name; |
| 49 | if (!name) { | 41 | if (!name) { |
| 50 | return false; | 42 | return false; |
| ... | @@ -53,65 +45,62 @@ export default { | ... | @@ -53,65 +45,62 @@ export default { |
| 53 | name.trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() | 45 | name.trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() |
| 54 | ); | 46 | ); |
| 55 | }, | 47 | }, |
| 56 | pathCompile(path) { | 48 | pathCompile (path) { |
| 57 | const { params } = this.$route; | 49 | const { params } = this.$route; |
| 58 | var toPath = pathToRegexp.compile(path); | 50 | var toPath = pathToRegexp.compile(path); |
| 59 | return toPath(params); | 51 | return toPath(params); |
| 60 | }, | 52 | } |
| 61 | handleLink(item) { | 53 | } |
| 62 | // const { redirect, path } = item; | 54 | } |
| 63 | // if (redirect) { | ||
| 64 | // this.$router.push(redirect); | ||
| 65 | // return; | ||
| 66 | // } | ||
| 67 | // this.$router.push(path); | ||
| 68 | }, | ||
| 69 | }, | ||
| 70 | }; | ||
| 71 | </script> | 55 | </script> |
| 72 | 56 | ||
| 73 | <style lang="scss" scoped> | 57 | <style lang="scss" scoped> |
| 74 | .breadcrumb { | 58 | .breadcrumb { |
| 75 | margin: 15px auto 0; | ||
| 76 | box-sizing: border-box; | 59 | box-sizing: border-box; |
| 77 | text-indent: 16px; | 60 | text-indent: 10px; |
| 61 | background: linear-gradient(90deg, #0047B8 0%, rgba(0, 26, 95, 0.1) 100%); | ||
| 62 | line-height: 32px; | ||
| 63 | color: #FFFFFF; | ||
| 64 | } | ||
| 65 | |||
| 66 | /deep/.el-icon-arrow-right { | ||
| 67 | width: 2px; | ||
| 68 | position: relative; | ||
| 69 | left: -10px; | ||
| 70 | color: #FFFFFF; | ||
| 71 | } | ||
| 72 | |||
| 73 | /deep/.el-breadcrumb__inner { | ||
| 74 | color: #FFFFFF !important; | ||
| 78 | } | 75 | } |
| 76 | |||
| 79 | .breadcrumb1366 { | 77 | .breadcrumb1366 { |
| 80 | padding: 10px 0 !important; | 78 | padding: 10px 0 !important; |
| 81 | } | 79 | } |
| 82 | .isFullScreen{ | 80 | |
| 81 | .isFullScreen { | ||
| 83 | width: calc(100% - 20px); | 82 | width: calc(100% - 20px); |
| 84 | margin: 0 auto; | 83 | margin: 0 auto; |
| 85 | padding: 10px!important; | 84 | padding: 10px !important; |
| 86 | } | 85 | } |
| 86 | |||
| 87 | .cur-location { | 87 | .cur-location { |
| 88 | font-size: 16px; | 88 | font-size: 16px; |
| 89 | color: white; | 89 | color: white; |
| 90 | line-height: 40px; | 90 | line-height: 40px; |
| 91 | float: left; | 91 | float: left; |
| 92 | |||
| 92 | img { | 93 | img { |
| 93 | position: relative; | 94 | position: relative; |
| 94 | top: 3px; | 95 | top: 3px; |
| 95 | margin-right: 4px; | 96 | margin-right: 4px; |
| 96 | } | 97 | } |
| 97 | } | 98 | } |
| 98 | .app-breadcrumb.el-breadcrumb { | 99 | |
| 99 | display: inline-block; | ||
| 100 | font-size: 14px; | ||
| 101 | // line-height: 40px; | ||
| 102 | .no-redirect { | ||
| 103 | color: white; | ||
| 104 | cursor: text; | ||
| 105 | } | ||
| 106 | } | ||
| 107 | .el-breadcrumb__inner a, | 100 | .el-breadcrumb__inner a, |
| 108 | .el-breadcrumb__inner.is-link { | 101 | .el-breadcrumb__inner.is-link { |
| 109 | color: white; | 102 | color: white; |
| 110 | cursor: text; | 103 | cursor: text; |
| 111 | font-weight: normal; | 104 | font-weight: normal; |
| 112 | } | 105 | } |
| 113 | // .el-breadcrumb__inner a:hover, | ||
| 114 | // .el-breadcrumb__inner.is-link:hover { | ||
| 115 | // text-decoration: underline; | ||
| 116 | // } | ||
| 117 | </style> | 106 | </style> | ... | ... |
| ... | @@ -5,6 +5,7 @@ | ... | @@ -5,6 +5,7 @@ |
| 5 | /deep/.el-select { | 5 | /deep/.el-select { |
| 6 | width: 100%; | 6 | width: 100%; |
| 7 | } | 7 | } |
| 8 | |||
| 8 | /deep/.el-form-item__error { | 9 | /deep/.el-form-item__error { |
| 9 | right: 25px; | 10 | right: 25px; |
| 10 | top: 15px; | 11 | top: 15px; |
| ... | @@ -40,6 +41,13 @@ | ... | @@ -40,6 +41,13 @@ |
| 40 | margin-right: -1px; | 41 | margin-right: -1px; |
| 41 | } | 42 | } |
| 42 | 43 | ||
| 44 | .obligee-item-name, | ||
| 45 | .receivingInfo-item-name, | ||
| 46 | .auditInfo-item-name { | ||
| 47 | background: url("~@/image/itembg.png") no-repeat; | ||
| 48 | background-size: 100% 100%; | ||
| 49 | color: #FFFFFF; | ||
| 50 | } | ||
| 43 | 51 | ||
| 44 | /deep/.el-textarea__inner { | 52 | /deep/.el-textarea__inner { |
| 45 | margin: 5px; | 53 | margin: 5px; |
| ... | @@ -49,23 +57,27 @@ | ... | @@ -49,23 +57,27 @@ |
| 49 | border-radius: 2px; | 57 | border-radius: 2px; |
| 50 | border: 1px solid #6BC1FC; | 58 | border: 1px solid #6BC1FC; |
| 51 | } | 59 | } |
| 52 | /deep/.el-input-number{ | 60 | |
| 61 | /deep/.el-input-number { | ||
| 53 | width: 100%; | 62 | width: 100%; |
| 54 | } | 63 | } |
| 55 | /deep/.el-input-number__increase{ | 64 | |
| 65 | /deep/.el-input-number__increase { | ||
| 56 | background: #05275B; | 66 | background: #05275B; |
| 57 | color: #FFFFFF; | 67 | color: #FFFFFF; |
| 58 | border:none; | 68 | border: none; |
| 59 | right: 12px; | 69 | right: 7px; |
| 60 | top: 6px; | 70 | top: 2px; |
| 61 | } | 71 | } |
| 62 | /deep/.el-input-number__decrease{ | 72 | |
| 73 | /deep/.el-input-number__decrease { | ||
| 63 | background: #05275B; | 74 | background: #05275B; |
| 64 | color: #FFFFFF; | 75 | color: #FFFFFF; |
| 65 | border:none; | 76 | border: none; |
| 66 | right: 12px; | 77 | right: 7px; |
| 67 | bottom:6px; | 78 | bottom: 10px; |
| 68 | } | 79 | } |
| 80 | |||
| 69 | /deep/.el-input__inner { | 81 | /deep/.el-input__inner { |
| 70 | margin: 5px; | 82 | margin: 5px; |
| 71 | width: 96%; | 83 | width: 96%; | ... | ... |
| ... | @@ -95,8 +95,9 @@ | ... | @@ -95,8 +95,9 @@ |
| 95 | 实际层数: <br /> | 95 | 实际层数: <br /> |
| 96 | <p class="label-detail">(SJCS)</p> | 96 | <p class="label-detail">(SJCS)</p> |
| 97 | </span> | 97 | </span> |
| 98 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 99999, min: 1, precision: 0 }" | 98 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
| 99 | placeholder="实际层数" v-model="ruleForm.sjcs"></el-input-number> | 99 | v-only-number="{ max: 99999, min: 1, precision: 0 }" placeholder="实际层数" |
| 100 | v-model="ruleForm.sjcs"></el-input-number> | ||
| 100 | </el-form-item> | 101 | </el-form-item> |
| 101 | </el-col> | 102 | </el-col> |
| 102 | </el-row> | 103 | </el-row> |
| ... | @@ -108,8 +109,8 @@ | ... | @@ -108,8 +109,8 @@ |
| 108 | 户号: <br /> | 109 | 户号: <br /> |
| 109 | <p class="label-detail">(HH)</p> | 110 | <p class="label-detail">(HH)</p> |
| 110 | </span> | 111 | </span> |
| 111 | <el-input-number controls-position="right":disabled="$store.state.business.Edit" v-model="ruleForm.hh" placeholder="户号" | 112 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model="ruleForm.hh" |
| 112 | v-only-number="{ max: 99999, min: 1, precision: 0 }"></el-input-number> | 113 | placeholder="户号" v-only-number="{ max: 99999, min: 1, precision: 0 }"></el-input-number> |
| 113 | </el-form-item> | 114 | </el-form-item> |
| 114 | </el-col> | 115 | </el-col> |
| 115 | 116 | ||
| ... | @@ -225,7 +226,7 @@ | ... | @@ -225,7 +226,7 @@ |
| 225 | <p class="label-detail">(YCFTJZMJ)</p> | 226 | <p class="label-detail">(YCFTJZMJ)</p> |
| 226 | </span> | 227 | </span> |
| 227 | <el-input :disabled="$store.state.business.Edit" | 228 | <el-input :disabled="$store.state.business.Edit" |
| 228 | : 999999999999999, min: 0, precision: 2 }" placeholder="预测分摊建筑面积" type="number" | 229 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" placeholder="预测分摊建筑面积" type="number" |
| 229 | v-model.number="ruleForm.ycftjzmj"></el-input> | 230 | v-model.number="ruleForm.ycftjzmj"></el-input> |
| 230 | </el-form-item> | 231 | </el-form-item> |
| 231 | </el-col> | 232 | </el-col> |
| ... | @@ -236,9 +237,9 @@ | ... | @@ -236,9 +237,9 @@ |
| 236 | 预测地下部分建筑面积: <br /> | 237 | 预测地下部分建筑面积: <br /> |
| 237 | <p class="label-detail">(YCDXBFJZMJ)</p> | 238 | <p class="label-detail">(YCDXBFJZMJ)</p> |
| 238 | </span> | 239 | </span> |
| 239 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 240 | <el-input controls-position="right" :disabled="$store.state.business.Edit" |
| 240 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" placeholder="预测地下部分建筑面积" type="number" | 241 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" placeholder="预测地下部分建筑面积" type="number" |
| 241 | v-model.number="ruleForm.ycdxbfjzmj"></el-input-number> | 242 | v-model.number="ruleForm.ycdxbfjzmj"></el-input> |
| 242 | </el-form-item> | 243 | </el-form-item> |
| 243 | </el-col> | 244 | </el-col> |
| 244 | 245 | ||
| ... | @@ -363,9 +364,8 @@ | ... | @@ -363,9 +364,8 @@ |
| 363 | 分摊土地面积: <br /> | 364 | 分摊土地面积: <br /> |
| 364 | <p class="label-detail">(FTTDMJ)</p> | 365 | <p class="label-detail">(FTTDMJ)</p> |
| 365 | </span> | 366 | </span> |
| 366 | <el-input :disabled="$store.state.business.Edit" | 367 | <el-input :disabled="$store.state.business.Edit" : 999999999999999, min: 0, precision: 3 }" |
| 367 | : 999999999999999, min: 0, precision: 3 }" placeholder="分摊土地面积" type="number" | 368 | placeholder="分摊土地面积" type="number" v-model.number="ruleForm.fttdmj"></el-input> |
| 368 | v-model.number="ruleForm.fttdmj"></el-input> | ||
| 369 | </el-form-item> | 369 | </el-form-item> |
| 370 | </el-col> | 370 | </el-col> |
| 371 | </el-row> | 371 | </el-row> |
| ... | @@ -465,7 +465,7 @@ export default { | ... | @@ -465,7 +465,7 @@ export default { |
| 465 | default: "", | 465 | default: "", |
| 466 | }, | 466 | }, |
| 467 | }, | 467 | }, |
| 468 | data() { | 468 | data () { |
| 469 | return { | 469 | return { |
| 470 | ruleForm: { | 470 | ruleForm: { |
| 471 | YSDM: "", | 471 | YSDM: "", |
| ... | @@ -508,7 +508,7 @@ export default { | ... | @@ -508,7 +508,7 @@ export default { |
| 508 | }; | 508 | }; |
| 509 | }, | 509 | }, |
| 510 | methods: { | 510 | methods: { |
| 511 | async featchData() { | 511 | async featchData () { |
| 512 | try { | 512 | try { |
| 513 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); | 513 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); |
| 514 | this.ruleForm = res; | 514 | this.ruleForm = res; |
| ... | @@ -517,7 +517,7 @@ export default { | ... | @@ -517,7 +517,7 @@ export default { |
| 517 | this.$refs.msg.messageShow(); | 517 | this.$refs.msg.messageShow(); |
| 518 | } | 518 | } |
| 519 | }, | 519 | }, |
| 520 | handleUpdateForm() { | 520 | handleUpdateForm () { |
| 521 | return new Promise(async (resolve, reject) => { | 521 | return new Promise(async (resolve, reject) => { |
| 522 | try { | 522 | try { |
| 523 | let res = await kttFwH.updateKttFwH(this.ruleForm); | 523 | let res = await kttFwH.updateKttFwH(this.ruleForm); | ... | ... |
| ... | @@ -315,7 +315,6 @@ | ... | @@ -315,7 +315,6 @@ |
| 315 | </div> | 315 | </div> |
| 316 | </div> | 316 | </div> |
| 317 | </el-form> | 317 | </el-form> |
| 318 | <message-tips ref="msg" /> | ||
| 319 | </div> | 318 | </div> |
| 320 | </template> | 319 | </template> |
| 321 | <script> | 320 | <script> |
| ... | @@ -378,19 +377,15 @@ export default { | ... | @@ -378,19 +377,15 @@ export default { |
| 378 | try { | 377 | try { |
| 379 | let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb) | 378 | let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb) |
| 380 | this.obligeeForm.obligeeList = res | 379 | this.obligeeForm.obligeeList = res |
| 381 | //this.featchRule() | ||
| 382 | } catch (error) { | 380 | } catch (error) { |
| 383 | this.$refs.msg.messageShow() | ||
| 384 | } | 381 | } |
| 385 | }, | 382 | }, |
| 386 | handleUpdateForm () { | 383 | handleUpdateForm () { |
| 387 | return new Promise(async (resolve) => { | 384 | return new Promise(async (resolve) => { |
| 388 | try { | 385 | try { |
| 389 | let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList) | 386 | let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList) |
| 390 | // this.$refs['formList'].resetFields(); | ||
| 391 | resolve(res.code) | 387 | resolve(res.code) |
| 392 | } catch (error) { | 388 | } catch (error) { |
| 393 | this.$refs.msg.messageShow() | ||
| 394 | } | 389 | } |
| 395 | }) | 390 | }) |
| 396 | } | 391 | } | ... | ... |
| ... | @@ -21,23 +21,21 @@ export default { | ... | @@ -21,23 +21,21 @@ export default { |
| 21 | </script> | 21 | </script> |
| 22 | <style scoped lang="scss"> | 22 | <style scoped lang="scss"> |
| 23 | .button { | 23 | .button { |
| 24 | width: 80px; //适配4字按钮样式 | 24 | width: 76px; |
| 25 | height: 32px; | 25 | height: 32px; |
| 26 | color: #ffffff; | 26 | color: #ffffff; |
| 27 | margin: 0 5px; | 27 | margin: 0 5px; |
| 28 | cursor: pointer; | ||
| 29 | border: 0 | ||
| 28 | } | 30 | } |
| 29 | 31 | ||
| 30 | .cx { | 32 | .cx { |
| 31 | background: url('../image/btn.png') no-repeat -4px -40px; | 33 | background: url('../image/btn.png') no-repeat 0 -34px; |
| 32 | cursor: pointer; | 34 | background-size: cover; |
| 33 | } | 35 | } |
| 34 | 36 | ||
| 35 | .cz { | 37 | .cz { |
| 36 | background: url('../image/btn.png') no-repeat -4px -4px; | 38 | background: url('../image/btn.png') no-repeat 0 0; |
| 37 | cursor: pointer; | 39 | background-size: cover; |
| 38 | } | ||
| 39 | |||
| 40 | .sb { | ||
| 41 | background: url('../image/btn.png') no-repeat -4px -112px; | ||
| 42 | } | 40 | } |
| 43 | </style> | 41 | </style> | ... | ... |
src/components/Dialog/index.vue
0 → 100644
| 1 | <template> | ||
| 2 | <el-dialog | ||
| 3 | :title="title" | ||
| 4 | :visible.sync="visible" | ||
| 5 | :width="width" | ||
| 6 | :append-to-body="appendToBody" | ||
| 7 | :modal="modal" | ||
| 8 | :close-on-click-modal="false" | ||
| 9 | :fullscreen="fullscreen" | ||
| 10 | :destroy-on-close="destroyOnClose" | ||
| 11 | :modal-append-to-body="modalAppendToBody" | ||
| 12 | :class="customClass" | ||
| 13 | @close="close" | ||
| 14 | class="dialog" | ||
| 15 | > | ||
| 16 | <slot name="content" /> | ||
| 17 | <span slot="footer" class="dialog-footer"> | ||
| 18 | <slot name="footer" /> | ||
| 19 | </span> | ||
| 20 | </el-dialog> | ||
| 21 | </template> | ||
| 22 | |||
| 23 | <script> | ||
| 24 | export default { | ||
| 25 | name: '', | ||
| 26 | props: { | ||
| 27 | show: { | ||
| 28 | type: Boolean, | ||
| 29 | default: false | ||
| 30 | }, | ||
| 31 | customClass: { | ||
| 32 | type: String, | ||
| 33 | default: '' | ||
| 34 | }, | ||
| 35 | title: { | ||
| 36 | type: String, | ||
| 37 | default: '新增' | ||
| 38 | }, | ||
| 39 | appendToBody: { | ||
| 40 | // Dialog 自身是否插入至 body 元素上。嵌套的 Dialog 必须指定该属性并赋值为 true | ||
| 41 | type: Boolean, | ||
| 42 | default: true | ||
| 43 | }, | ||
| 44 | modalAppendToBody: { | ||
| 45 | // 遮罩层是否插入至 body 元素上,若为 false,则遮罩层会插入至 Dialog 的父元素上 | ||
| 46 | type: Boolean, | ||
| 47 | default: true | ||
| 48 | }, | ||
| 49 | modal: { | ||
| 50 | // 是否需要遮罩层 | ||
| 51 | type: Boolean, | ||
| 52 | default: true | ||
| 53 | }, | ||
| 54 | fullscreen: { | ||
| 55 | // 是否全屏 | ||
| 56 | type: Boolean, | ||
| 57 | default: false | ||
| 58 | }, | ||
| 59 | destroyOnClose: { | ||
| 60 | // 关闭时销毁 Dialog 中的元素 | ||
| 61 | type: Boolean, | ||
| 62 | default: false | ||
| 63 | }, | ||
| 64 | width: { | ||
| 65 | type: String, | ||
| 66 | default: '30%' | ||
| 67 | } | ||
| 68 | }, | ||
| 69 | data() { | ||
| 70 | return {} | ||
| 71 | }, | ||
| 72 | computed: { | ||
| 73 | visible: { | ||
| 74 | get() { | ||
| 75 | return this.show | ||
| 76 | }, | ||
| 77 | set(val) { | ||
| 78 | this.$emit('update:show', val) // visible 改变的时候通知父组件 | ||
| 79 | } | ||
| 80 | } | ||
| 81 | }, | ||
| 82 | methods: { | ||
| 83 | close() { | ||
| 84 | this.$emit('close') | ||
| 85 | } | ||
| 86 | } | ||
| 87 | } | ||
| 88 | </script> | ||
| 89 | |||
| 90 | <style lang="scss" scoped> | ||
| 91 | |||
| 92 | .dialog { | ||
| 93 | /deep/.el-dialog{ | ||
| 94 | overflow: hidden; | ||
| 95 | background: url("~@/image/dialogBg.png") no-repeat !important; | ||
| 96 | background-size: 100% 100% !important; | ||
| 97 | } | ||
| 98 | .el-dialog__header { | ||
| 99 | padding: 0; | ||
| 100 | height: 56px; | ||
| 101 | line-height: 56px; | ||
| 102 | border-bottom: none; | ||
| 103 | .el-dialog__title { | ||
| 104 | font-weight: 400; | ||
| 105 | } | ||
| 106 | .el-dialog__title:before { | ||
| 107 | display: inline-block; | ||
| 108 | content: ''; | ||
| 109 | width: 4px; | ||
| 110 | height: 16px; | ||
| 111 | background: #3aa3f8; | ||
| 112 | margin-left: 12px; | ||
| 113 | margin-right: 8px; | ||
| 114 | position: relative; | ||
| 115 | top: 2px; | ||
| 116 | } | ||
| 117 | .el-dialog__headerbtn { | ||
| 118 | position: absolute; | ||
| 119 | // top: 2%; | ||
| 120 | right: 12px; | ||
| 121 | } | ||
| 122 | } | ||
| 123 | .el-dialog__body { | ||
| 124 | margin: 0px 12px; | ||
| 125 | padding: 48px 24px; | ||
| 126 | background: #fff; | ||
| 127 | border: 1px solid #dfe7f3; | ||
| 128 | .el-button { | ||
| 129 | padding: 8px 16px; | ||
| 130 | border: none; | ||
| 131 | } | ||
| 132 | .el-form { | ||
| 133 | .el-checkbox { | ||
| 134 | line-height: 32px; | ||
| 135 | height: 32px; | ||
| 136 | } | ||
| 137 | .form-item-mb0 { | ||
| 138 | margin-bottom: 0 !important; | ||
| 139 | } | ||
| 140 | .el-form-item { | ||
| 141 | margin-bottom: 24px; | ||
| 142 | .el-form-item__label { | ||
| 143 | height: 32px; | ||
| 144 | line-height: 32px; | ||
| 145 | vertical-align: middle; | ||
| 146 | } | ||
| 147 | |||
| 148 | .el-form-item__content { | ||
| 149 | // height: 32px; | ||
| 150 | line-height: 32px; | ||
| 151 | // date 组件有图标 | ||
| 152 | .has-icon.el-date-editor { | ||
| 153 | .el-input__inner { | ||
| 154 | padding-left: 32px; | ||
| 155 | } | ||
| 156 | } | ||
| 157 | .el-input__inner { | ||
| 158 | padding: 0 8px; | ||
| 159 | height: 32px; | ||
| 160 | line-height: 32px; | ||
| 161 | text-align: left; | ||
| 162 | } | ||
| 163 | .el-textarea__inner { | ||
| 164 | padding: 8px 8px; | ||
| 165 | } | ||
| 166 | .el-input .el-input__icon { | ||
| 167 | font-size: 14px; | ||
| 168 | color: #747e8c; | ||
| 169 | } | ||
| 170 | } | ||
| 171 | } | ||
| 172 | } | ||
| 173 | .el-select, | ||
| 174 | .el-cascader, | ||
| 175 | .el-date-editor { | ||
| 176 | width: 100%; | ||
| 177 | line-height: 32px; | ||
| 178 | } | ||
| 179 | } | ||
| 180 | |||
| 181 | .el-dialog__footer { | ||
| 182 | padding: 0 12px; | ||
| 183 | height: 56px; | ||
| 184 | line-height: 56px; | ||
| 185 | border: none; | ||
| 186 | .el-button { | ||
| 187 | padding: 8px 16px; | ||
| 188 | border: none; | ||
| 189 | } | ||
| 190 | .el-button + .el-button { | ||
| 191 | margin-left: 12px; | ||
| 192 | } | ||
| 193 | } | ||
| 194 | } | ||
| 195 | </style> |
| ... | @@ -28,8 +28,8 @@ export default { | ... | @@ -28,8 +28,8 @@ export default { |
| 28 | res.filter((item) => { | 28 | res.filter((item) => { |
| 29 | return ( | 29 | return ( |
| 30 | this.cdata.category.push(item.areaName), | 30 | this.cdata.category.push(item.areaName), |
| 31 | this.cdata.lineData.push(item.successCount), | 31 | this.cdata.barData.push(item.successCount), |
| 32 | this.cdata.barData.push(item.failureCount) | 32 | this.cdata.lineData.push(item.failureCount) |
| 33 | ); | 33 | ); |
| 34 | }); | 34 | }); |
| 35 | } catch (error) { | 35 | } catch (error) { | ... | ... |
| ... | @@ -17,9 +17,6 @@ export default { | ... | @@ -17,9 +17,6 @@ export default { |
| 17 | components: { | 17 | components: { |
| 18 | Chart, | 18 | Chart, |
| 19 | }, | 19 | }, |
| 20 | created () { | ||
| 21 | |||
| 22 | }, | ||
| 23 | mounted () { | 20 | mounted () { |
| 24 | this.getDjlxtotal(); | 21 | this.getDjlxtotal(); |
| 25 | }, | 22 | }, |
| ... | @@ -28,9 +25,9 @@ export default { | ... | @@ -28,9 +25,9 @@ export default { |
| 28 | return new Promise(async (resolve) => { | 25 | return new Promise(async (resolve) => { |
| 29 | try { | 26 | try { |
| 30 | let p = { | 27 | let p = { |
| 31 | DJLX: "A21", | 28 | DJLX: "", |
| 32 | QLLX: "A8", | 29 | QLLX: "", |
| 33 | XZQDM: "A20", | 30 | XZQDM: "", |
| 34 | }; | 31 | }; |
| 35 | let res = await work.getDjlxtotal(p); | 32 | let res = await work.getDjlxtotal(p); |
| 36 | res.result.filter((item) => { | 33 | res.result.filter((item) => { | ... | ... |
| ... | @@ -16,23 +16,7 @@ export default { | ... | @@ -16,23 +16,7 @@ export default { |
| 16 | data () { | 16 | data () { |
| 17 | return { | 17 | return { |
| 18 | cdata: { | 18 | cdata: { |
| 19 | seriesData: [ | 19 | seriesData: [], |
| 20 | { value: 10, name: "土地所有权" }, | ||
| 21 | { value: 5, name: "建设用地、宅基地使用权" }, | ||
| 22 | { value: 15, name: "房地产权(项目内多幢房屋)" }, | ||
| 23 | { value: 25, name: "产地产权(独幢、层、套、间、房屋)" }, | ||
| 24 | { value: 20, name: "建筑物区分所有权业主共有部分" }, | ||
| 25 | { value: 35, name: "海域(含无居民海岛)使用权" }, | ||
| 26 | { value: 10, name: "构(建)筑物所有权" }, | ||
| 27 | { value: 5, name: "农用地使用权(非林地)" }, | ||
| 28 | { value: 15, name: "林权" }, | ||
| 29 | { value: 25, name: "注销登记" }, | ||
| 30 | { value: 20, name: "异议登记" }, | ||
| 31 | { value: 35, name: "预告登记" }, | ||
| 32 | { value: 20, name: "查封登记" }, | ||
| 33 | { value: 35, name: "抵押权登记" }, | ||
| 34 | { value: 20, name: "地役权登记" }, | ||
| 35 | ], | ||
| 36 | }, | 20 | }, |
| 37 | }; | 21 | }; |
| 38 | }, | 22 | }, |
| ... | @@ -41,22 +25,30 @@ export default { | ... | @@ -41,22 +25,30 @@ export default { |
| 41 | }, | 25 | }, |
| 42 | mounted () { | 26 | mounted () { |
| 43 | this.getdjywltotal(); | 27 | this.getdjywltotal(); |
| 28 | |||
| 29 | |||
| 44 | }, | 30 | }, |
| 45 | methods: { | 31 | methods: { |
| 46 | getdjywltotal () { | 32 | async getdjywltotal () { |
| 47 | return new Promise(async (resolve) => { | ||
| 48 | try { | 33 | try { |
| 49 | let p = { | 34 | let p = { |
| 50 | DJLX: "A21", | 35 | DJLX: "", |
| 51 | QLLX: "A8", | 36 | QLLX: "", |
| 52 | XZQDM: "A20", | 37 | XZQDM: "", |
| 53 | }; | 38 | }; |
| 54 | let res = await work.getdjywltotal(p); | 39 | let res = await work.getdjywltotal(p); |
| 55 | 40 | console.log("res",res); | |
| 41 | res.result.filter((item) => { | ||
| 42 | return ( | ||
| 43 | this.cdata.seriesData.push({ "name": item.AREACODE, "value": item.ywtotal }) | ||
| 44 | ) | ||
| 45 | }); | ||
| 46 | console.log("this.cdata.seriesData",this.cdata.seriesData); | ||
| 56 | } catch (error) { | 47 | } catch (error) { |
| 57 | this.$refs.msg.messageShow(); | 48 | this.$refs.msg.messageShow(); |
| 58 | } | 49 | } |
| 59 | }); | 50 | |
| 51 | |||
| 60 | }, | 52 | }, |
| 61 | }, | 53 | }, |
| 62 | }; | 54 | }; | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <!-- 编辑 --> | 2 | <!-- 编辑 --> |
| 3 | <el-dialog :close-on-click-modal="false" top="0" custom-class="dialogBox editDialogBox mainCenter" | 3 | <el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" |
| 4 | :visible.sync="dialogVisible" width="85%"> | 4 | custom-class="dialogBox editDialogBox mainCenter" :visible.sync="dialogVisible" width="85%"> |
| 5 | <div slot="title" class="dialog_title" ref="dialogTitle"> | 5 | <div slot="title" class="dialog_title" ref="dialogTitle"> |
| 6 | <b>{{ title || '标题' }}</b> | 6 | <b>{{ title || '标题' }}</b> |
| 7 | </div> | 7 | </div> |
| 8 | <el-tabs v-model="titleName" type="card" @tab-click="handleTitleTab"> | 8 | <el-tabs v-model="titleName" type="card" @tab-click="handleTitleTab"> |
| 9 | <el-tab-pane label="数据模型" name="sjmx"></el-tab-pane> | 9 | <el-tab-pane label="数据模型" name="sjmx"></el-tab-pane> |
| 10 | <el-tab-pane label="xml报文" name="xml"></el-tab-pane> | 10 | <el-tab-pane v-if="visiableXml" label="xml报文" name="xml"></el-tab-pane> |
| 11 | <el-tab-pane label="响应结果" name="xyjg"></el-tab-pane> | 11 | <el-tab-pane v-if="visiableXml" label="响应结果" name="xyjg"></el-tab-pane> |
| 12 | </el-tabs> | 12 | </el-tabs> |
| 13 | <div v-if="titleName == 'sjmx'" class="sjmx"> | 13 | <div v-if="titleName == 'sjmx'" class="sjmx"> |
| 14 | <div class="dialog-from"> | 14 | <div class="dialog-from"> |
| 15 | <el-row> | 15 | <el-row> |
| 16 | <el-col :span="5"> | 16 | <el-col :span="5"> |
| 17 | <span>业务报文ID:</span> | 17 | <span>业务报文ID:</span> |
| 18 | <div>{{ dataReport.bizMsgid }}</div> | 18 | <div>{{ dataReport.BizMsgId }}</div> |
| 19 | </el-col> | 19 | </el-col> |
| 20 | <el-col :span="7"> | 20 | <el-col :span="7"> |
| 21 | <span>接入报文ID:</span> | 21 | <span>接入报文ID:</span> |
| 22 | <div>{{ dataReport.asid }}</div> | 22 | <div>{{ dataReport.ASID }}</div> |
| 23 | </el-col> | 23 | </el-col> |
| 24 | <el-col :span="5"> | 24 | <el-col :span="5"> |
| 25 | <span>行政区划编码:</span> | 25 | <span>行政区划编码:</span> |
| 26 | <div>{{ dataReport.areacode }}</div> | 26 | <div>{{ dataReport.AreaCode }}</div> |
| 27 | </el-col> | 27 | </el-col> |
| 28 | <el-col :span="7"> | 28 | <el-col :span="7"> |
| 29 | <span>上次不动产单元号:</span> | 29 | <span>上次不动产单元号:</span> |
| 30 | <div>{{ dataReport.preestatenum }}</div> | 30 | <div>{{ dataReport.PreEstateNum }}</div> |
| 31 | </el-col> | 31 | </el-col> |
| 32 | </el-row> | 32 | </el-row> |
| 33 | <el-row> | 33 | <el-row> |
| 34 | <el-col :span="5"> | 34 | <el-col :span="5"> |
| 35 | <span>业务编码:</span> | 35 | <span>业务编码:</span> |
| 36 | <div>{{ dataReport.rectype }}</div> | 36 | <div>{{ dataReport.RecType }}</div> |
| 37 | </el-col> | 37 | </el-col> |
| 38 | <el-col :span="7"> | 38 | <el-col :span="7"> |
| 39 | <span>权利类型:</span> | 39 | <span>权利类型:</span> |
| 40 | <div>{{ dataReport.righttype }}</div> | 40 | <div>{{ dataReport.RightType }}</div> |
| 41 | </el-col> | 41 | </el-col> |
| 42 | <el-col :span="5"> | 42 | <el-col :span="5"> |
| 43 | <span>登记类型:</span> | 43 | <span>登记类型:</span> |
| 44 | <div>{{ dataReport.regtype }}</div> | 44 | <div>{{ dataReport.RegType }}</div> |
| 45 | </el-col> | 45 | </el-col> |
| 46 | <el-col :span="7"> | 46 | <el-col :span="7"> |
| 47 | <span>不动产权证书数量:</span> | 47 | <span>不动产权证书数量:</span> |
| 48 | <div>{{ dataReport.certcount }}</div> | 48 | <div>{{ dataReport.CertCount }}</div> |
| 49 | </el-col> | 49 | </el-col> |
| 50 | </el-row> | 50 | </el-row> |
| 51 | <el-row> | 51 | <el-row> |
| 52 | <el-col :span="5"> | 52 | <el-col :span="5"> |
| 53 | <span>创建时间:</span> | 53 | <span>创建时间:</span> |
| 54 | <div>{{ dataReport.createdate }}</div> | 54 | <div>{{ dataReport.createDate }}</div> |
| 55 | </el-col> | 55 | </el-col> |
| 56 | <el-col :span="7"> | 56 | <el-col :span="7"> |
| 57 | <span>业务流水号:</span> | 57 | <span>业务流水号:</span> |
| 58 | <div>{{ dataReport.recflowid }}</div> | 58 | <div>{{ dataReport.RecFlowID }}</div> |
| 59 | </el-col> | 59 | </el-col> |
| 60 | <el-col :span="5"> | 60 | <el-col :span="5"> |
| 61 | <span>登记机构:</span> | 61 | <span>登记机构:</span> |
| 62 | <div>{{ dataReport.regorgid }}</div> | 62 | <div>{{ dataReport.RegOrgID }}</div> |
| 63 | </el-col> | 63 | </el-col> |
| 64 | <el-col :span="7"> | 64 | <el-col :span="7"> |
| 65 | <span>证明数量:</span> | 65 | <span>证明数量:</span> |
| 66 | <div>{{ dataReport.proofcount }}</div> | 66 | <div>{{ dataReport.ProofCount }}</div> |
| 67 | </el-col> | 67 | </el-col> |
| 68 | </el-row> | 68 | </el-row> |
| 69 | <el-row> | 69 | <el-row> |
| 70 | <el-col :span="5"> | 70 | <el-col :span="5"> |
| 71 | <span>宗地/宗海代码:</span> | 71 | <span>宗地/宗海代码:</span> |
| 72 | <div>{{ dataReport.parcelid }}</div> | 72 | <div>{{ dataReport.ParcelID }}</div> |
| 73 | </el-col> | 73 | </el-col> |
| 74 | <el-col :span="7"> | 74 | <el-col :span="7"> |
| 75 | <span>不动产单元号:</span> | 75 | <span>不动产单元号:</span> |
| 76 | <div>{{ dataReport.estatenum }}</div> | 76 | <div>{{ dataReport.EstateNum }}</div> |
| 77 | </el-col> | 77 | </el-col> |
| 78 | <el-col :span="10"> | 78 | <el-col :span="10"> |
| 79 | <span>上次不动产权证号/不动产登记证明:</span> | 79 | <span>上次不动产权证号/不动产登记证明:</span> |
| 80 | <div>{{ dataReport.precertid }}</div> | 80 | <div>{{ dataReport.PreCertID }}</div> |
| 81 | </el-col> | 81 | </el-col> |
| 82 | </el-row> | 82 | </el-row> |
| 83 | <!-- <el-row> | 83 | <!-- <el-row> |
| ... | @@ -97,20 +97,13 @@ | ... | @@ -97,20 +97,13 @@ |
| 97 | </el-tabs> | 97 | </el-tabs> |
| 98 | <div class="edit-content"> | 98 | <div class="edit-content"> |
| 99 | <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" | 99 | <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" |
| 100 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport" /> | 100 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport || dataReport.bsmSjsb" /> |
| 101 | </div> | 101 | </div> |
| 102 | </div> | 102 | </div> |
| 103 | <div v-if="titleName == 'xyjg'"> | 103 | <div v-if="titleName == 'xyjg'"> |
| 104 | <Xyjg :form-data = 'dataReport'></Xyjg> | 104 | <Xyjg :form-data='dataReport'></Xyjg> |
| 105 | </div> | 105 | </div> |
| 106 | <JsonEditor :resultInfo="resultInfo" v-if="titleName == 'xml'" /> | 106 | <JsonEditor :resultInfo="resultInfo" v-if="titleName == 'xml'" /> |
| 107 | <!-- <div slot="footer" class="dialog_footer" ref="dialogFooter"> | ||
| 108 | <div class="dialog_button"> | ||
| 109 | <el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding">确定 | ||
| 110 | </el-button> | ||
| 111 | <el-button @click="closeDialog()">关闭</el-button> | ||
| 112 | </div> | ||
| 113 | </div> --> | ||
| 114 | </el-dialog> | 107 | </el-dialog> |
| 115 | </template> | 108 | </template> |
| 116 | 109 | ||
| ... | @@ -118,7 +111,7 @@ | ... | @@ -118,7 +111,7 @@ |
| 118 | import { mapGetters } from "vuex"; | 111 | import { mapGetters } from "vuex"; |
| 119 | import JsonEditor from "@/components/JsonEditor.vue"; | 112 | import JsonEditor from "@/components/JsonEditor.vue"; |
| 120 | import Xyjg from "./Result"; | 113 | import Xyjg from "./Result"; |
| 121 | import { getDetail, getXml } from "@/api/dataReport.js"; | 114 | import { getTabsDetail, getXml, getReportDetail } from "@/api/dataReport.js"; |
| 122 | import { MessageBox } from "element-ui"; | 115 | import { MessageBox } from "element-ui"; |
| 123 | export default { | 116 | export default { |
| 124 | components: { JsonEditor, Xyjg }, | 117 | components: { JsonEditor, Xyjg }, |
| ... | @@ -126,6 +119,14 @@ export default { | ... | @@ -126,6 +119,14 @@ export default { |
| 126 | title: { | 119 | title: { |
| 127 | type: String, | 120 | type: String, |
| 128 | default: '' | 121 | default: '' |
| 122 | }, | ||
| 123 | tabsActiveName: { | ||
| 124 | type: String, | ||
| 125 | default: '' | ||
| 126 | }, | ||
| 127 | visiableXml: { | ||
| 128 | type: Boolean, | ||
| 129 | default: false | ||
| 129 | } | 130 | } |
| 130 | }, | 131 | }, |
| 131 | computed: { | 132 | computed: { |
| ... | @@ -177,19 +178,26 @@ export default { | ... | @@ -177,19 +178,26 @@ export default { |
| 177 | this.titleName = 'sjmx'; | 178 | this.titleName = 'sjmx'; |
| 178 | this.dialogVisible = true; | 179 | this.dialogVisible = true; |
| 179 | //获取表头列表 | 180 | //获取表头列表 |
| 180 | getDetail({ bsmReport: this.dataReport.bsmReport }).then((res) => { | 181 | getTabsDetail({ bsmReport: this.dataReport.bsmReport || this.dataReport.bsmSjsb }).then((res) => { |
| 181 | if (res.code == 200) { | 182 | if (res.code == 200) { |
| 182 | this.headerList = res.result; | 183 | this.headerList = res.result; |
| 183 | this.activeName = res.result[0].soleurl | 184 | this.activeName = this.tabsActiveName == '' ? res.result[0].soleurl : this.tabsActiveName |
| 184 | this.bsmYwsjb = this.headerList[0].bsmYwsjb; | 185 | this.bsmYwsjb = this.headerList[0].bsmYwsjb; |
| 185 | this.editItem = this.loadView(this.activeName); | 186 | this.editItem = this.loadView(this.activeName); |
| 186 | } | 187 | } |
| 187 | }); | 188 | }); |
| 189 | //不动产数据查询上报详情 | ||
| 190 | getReportDetail({ bsmReport: item.bsmSjsb || item.bsmReport }).then((res) => { | ||
| 191 | if (res.code == 200) { | ||
| 192 | this.dataReport = res.result; | ||
| 193 | } | ||
| 194 | }) | ||
| 188 | // 获取xml | 195 | // 获取xml |
| 196 | if (this.visiableXml) { | ||
| 189 | getXml(item.bizMsgid).then((res) => { | 197 | getXml(item.bizMsgid).then((res) => { |
| 190 | console.log(res); | ||
| 191 | this.resultInfo = res.message | 198 | this.resultInfo = res.message |
| 192 | }) | 199 | }) |
| 200 | } | ||
| 193 | }, | 201 | }, |
| 194 | changeList (val) { | 202 | changeList (val) { |
| 195 | let _index = val.index; | 203 | let _index = val.index; |
| ... | @@ -206,10 +214,13 @@ export default { | ... | @@ -206,10 +214,13 @@ export default { |
| 206 | }, | 214 | }, |
| 207 | loadView (view) { | 215 | loadView (view) { |
| 208 | return (r) => | 216 | return (r) => |
| 209 | require.ensure([], () => r(require(`@/components/Business/${view}`))); | 217 | require.ensure([], () => r(require(`@/components/Business/${view}.vue`))); |
| 210 | }, | 218 | }, |
| 211 | closeDialog () { | 219 | closeDialog () { |
| 212 | this.dialogVisible = false; | 220 | this.dialogVisible = false; |
| 221 | //关闭弹框时将tabs项置空 | ||
| 222 | this.editItem = ""; | ||
| 223 | this.headerList = []; | ||
| 213 | }, | 224 | }, |
| 214 | submitForm () { | 225 | submitForm () { |
| 215 | let _this = this; | 226 | let _this = this; |
| ... | @@ -267,13 +278,13 @@ export default { | ... | @@ -267,13 +278,13 @@ export default { |
| 267 | 278 | ||
| 268 | .editForm { | 279 | .editForm { |
| 269 | /deep/.el-textarea__inner { | 280 | /deep/.el-textarea__inner { |
| 270 | border: none !important; | 281 | border: 1px solid #224C7C !important; |
| 271 | margin: 0 !important; | 282 | margin: 0 0 10px 0 !important; |
| 272 | width: 100% !important; | 283 | width: 100% !important; |
| 273 | } | 284 | } |
| 274 | 285 | ||
| 275 | /deep/.el-input__inner { | 286 | /deep/.el-input__inner { |
| 276 | border: none !important; | 287 | border: 1px solid #224C7C !important; |
| 277 | margin: 0 !important; | 288 | margin: 0 !important; |
| 278 | width: 100% !important; | 289 | width: 100% !important; |
| 279 | } | 290 | } |
| ... | @@ -310,7 +321,8 @@ export default { | ... | @@ -310,7 +321,8 @@ export default { |
| 310 | .obligee-item-name { | 321 | .obligee-item-name { |
| 311 | background: #05275B; | 322 | background: #05275B; |
| 312 | color: #FFFFFF; | 323 | color: #FFFFFF; |
| 313 | border: 1px solid #6BC1FC; | 324 | background: url("~@/image/itembg.png") no-repeat; |
| 325 | background-size: 100% 100%; | ||
| 314 | } | 326 | } |
| 315 | 327 | ||
| 316 | /deep/.el-tabs__nav-scroll { | 328 | /deep/.el-tabs__nav-scroll { |
| ... | @@ -362,7 +374,7 @@ export default { | ... | @@ -362,7 +374,7 @@ export default { |
| 362 | } | 374 | } |
| 363 | 375 | ||
| 364 | .edit-content { | 376 | .edit-content { |
| 365 | height: 400px; | 377 | height: 450px; |
| 366 | overflow-y: auto; | 378 | overflow-y: auto; |
| 367 | overflow-x: hidden; | 379 | overflow-x: hidden; |
| 368 | padding-right: 1px; | 380 | padding-right: 1px; | ... | ... |
src/components/IconList/index.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div class="icon-List"> | ||
| 3 | <el-dialog | ||
| 4 | :visible.sync="visible" | ||
| 5 | :append-to-body="true" | ||
| 6 | :show-close="isClose" | ||
| 7 | > | ||
| 8 | <el-tabs v-model="activeName" @tab-click="handleClick"> | ||
| 9 | <el-tab-pane label="内置图标" name="first"> | ||
| 10 | <ul v-if="iconList" class="clearfix"> | ||
| 11 | <li | ||
| 12 | v-for="(item, index) in iconList" | ||
| 13 | :key="index" | ||
| 14 | @click="changeData(item)" | ||
| 15 | > | ||
| 16 | <i :class="item" /> | ||
| 17 | </li> | ||
| 18 | </ul> | ||
| 19 | </el-tab-pane> | ||
| 20 | <el-tab-pane label="自定义图标" name="second"> | ||
| 21 | <el-upload | ||
| 22 | class="avatar-uploader" | ||
| 23 | action="https://jsonplaceholder.typicode.com/posts/" | ||
| 24 | > | ||
| 25 | <img v-if="imageUrl" :src="imageUrl" class="avatar"> | ||
| 26 | <i v-else class="el-icon-plus avatar-uploader-icon"> | ||
| 27 | <p>点击上传</p> | ||
| 28 | </i> | ||
| 29 | </el-upload> | ||
| 30 | <div> | ||
| 31 | <el-input v-model="iconName" class="icon-name" placeholder="请输入图标代码"></el-input> | ||
| 32 | </div> | ||
| 33 | <el-button class="confirm" type="primary" @click="changeIconName">确定</el-button> | ||
| 34 | </el-tab-pane> | ||
| 35 | </el-tabs> | ||
| 36 | </el-dialog> | ||
| 37 | </div> | ||
| 38 | </template> | ||
| 39 | |||
| 40 | <script> | ||
| 41 | import icoNameList from '@/utils/elementUI' | ||
| 42 | export default { | ||
| 43 | name: 'IconList', | ||
| 44 | components: {}, | ||
| 45 | props: {}, | ||
| 46 | data() { | ||
| 47 | return { | ||
| 48 | visible: false, | ||
| 49 | isClose: false, | ||
| 50 | iconList: [], | ||
| 51 | activeName: 'first', | ||
| 52 | iconName: '', | ||
| 53 | imageUrl: '' | ||
| 54 | } | ||
| 55 | }, | ||
| 56 | computed: {}, | ||
| 57 | watch: {}, | ||
| 58 | created() {}, | ||
| 59 | mounted() { | ||
| 60 | this.iconList = icoNameList | ||
| 61 | }, | ||
| 62 | methods: { | ||
| 63 | show(show) { | ||
| 64 | this.visible = show | ||
| 65 | }, | ||
| 66 | handleClick(tab, event) { | ||
| 67 | console.log(tab, event) | ||
| 68 | }, | ||
| 69 | changeData(iconName) { | ||
| 70 | this.visible = false | ||
| 71 | // 传递图标名称给父级 | ||
| 72 | this.$emit('iconName', iconName) | ||
| 73 | }, | ||
| 74 | changeIconName() { | ||
| 75 | this.visible = false | ||
| 76 | // 传递图标名称给父级 | ||
| 77 | this.$emit('iconName', this.iconName) | ||
| 78 | } | ||
| 79 | } | ||
| 80 | } | ||
| 81 | </script> | ||
| 82 | <style scoped lang="scss"> | ||
| 83 | ::v-deep .el-dialog { | ||
| 84 | box-shadow: 0px 4px 10px 0px #666666; | ||
| 85 | border-radius: 4px; | ||
| 86 | width: 573px; | ||
| 87 | height: 300px; | ||
| 88 | position: relative; | ||
| 89 | top: 4vh; | ||
| 90 | left: 0vw; | ||
| 91 | .el-dialog__header { | ||
| 92 | display: none; | ||
| 93 | } | ||
| 94 | .el-dialog__body { | ||
| 95 | padding: 10px; | ||
| 96 | } | ||
| 97 | .el-tabs { | ||
| 98 | .el-tabs__content { | ||
| 99 | height: 200px; | ||
| 100 | overflow-y: scroll; | ||
| 101 | ul { | ||
| 102 | li { | ||
| 103 | float: left; | ||
| 104 | padding: 1%; | ||
| 105 | margin: 2px; | ||
| 106 | border: 1px solid #e8eaec; | ||
| 107 | cursor: pointer; | ||
| 108 | width: 30px; | ||
| 109 | height: 30px; | ||
| 110 | } | ||
| 111 | } | ||
| 112 | .avatar-uploader-icon { | ||
| 113 | font-size: 12px; | ||
| 114 | color: #8c939d; | ||
| 115 | text-align: center; | ||
| 116 | width: 62px; | ||
| 117 | height: 62px; | ||
| 118 | background: #f6f7f9; | ||
| 119 | border-radius: 4px; | ||
| 120 | border: 1px solid #e5e5e5; | ||
| 121 | padding-top: 32%; | ||
| 122 | } | ||
| 123 | } | ||
| 124 | } | ||
| 125 | .confirm { | ||
| 126 | float: right; | ||
| 127 | margin-top: 30px; | ||
| 128 | } | ||
| 129 | |||
| 130 | .icon-name { | ||
| 131 | width: 70%; | ||
| 132 | margin-top: 10px; | ||
| 133 | } | ||
| 134 | } | ||
| 135 | </style> |
src/components/JsonEditors/index.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div> | ||
| 3 | <i class="icon-tubiao-242 iconfont" :title="title" @click="openDialog" /> | ||
| 4 | <el-dialog | ||
| 5 | :key="key" | ||
| 6 | :title="title" | ||
| 7 | :inner-dialog="true" | ||
| 8 | :visible.sync="dialogVisible" | ||
| 9 | width="600px" | ||
| 10 | :close-on-click-modal="false" | ||
| 11 | append-to-body | ||
| 12 | @cancel="cancel" | ||
| 13 | > | ||
| 14 | <vue-json-editor | ||
| 15 | id="minejson" | ||
| 16 | v-model="resultInfo" | ||
| 17 | :mode="'code'" | ||
| 18 | lang="zh" | ||
| 19 | @json-change="onJsonChange" | ||
| 20 | @json-save="onJsonSave" | ||
| 21 | @has-error="onError" | ||
| 22 | /> | ||
| 23 | <el-tooltip | ||
| 24 | content="全屏缩放" | ||
| 25 | effect="dark" | ||
| 26 | placement="bottom" | ||
| 27 | fullscreen | ||
| 28 | class="fullScreen" | ||
| 29 | > | ||
| 30 | <i class="el-icon-full-screen" @click="enLarge" /> | ||
| 31 | </el-tooltip> | ||
| 32 | <template slot="footer"> | ||
| 33 | <div class="dialog-footer flex flex-pack-center"> | ||
| 34 | <el-button | ||
| 35 | type="primary" | ||
| 36 | class="confirmBtn" | ||
| 37 | @click="onJsonSave" | ||
| 38 | >保存</el-button> | ||
| 39 | <el-button | ||
| 40 | type="primary" | ||
| 41 | class="cancelBtn" | ||
| 42 | @click="cancel" | ||
| 43 | >关闭</el-button> | ||
| 44 | </div> | ||
| 45 | </template> | ||
| 46 | </el-dialog> | ||
| 47 | </div> | ||
| 48 | </template> | ||
| 49 | <script> | ||
| 50 | import vueJsonEditor from 'vue-json-editor' | ||
| 51 | export default { | ||
| 52 | components: { | ||
| 53 | vueJsonEditor | ||
| 54 | }, | ||
| 55 | props: { | ||
| 56 | title: { | ||
| 57 | type: String, | ||
| 58 | default: '配置参数' | ||
| 59 | }, | ||
| 60 | resultInfos: { | ||
| 61 | type: String, | ||
| 62 | default: '' | ||
| 63 | } | ||
| 64 | }, | ||
| 65 | data() { | ||
| 66 | return { | ||
| 67 | activeNames: [], | ||
| 68 | resultInfo: {}, | ||
| 69 | tmpResultInfo: {}, | ||
| 70 | dialogVisible: false, | ||
| 71 | hasJsonFlag: true, | ||
| 72 | key: 0, | ||
| 73 | isEnlarge: false | ||
| 74 | } | ||
| 75 | }, | ||
| 76 | watch: { | ||
| 77 | resultInfos: { | ||
| 78 | handler: function(val) { | ||
| 79 | ++this.key | ||
| 80 | this.resultInfo = | ||
| 81 | this.resultInfos === '' ? {} : JSON.parse(this.resultInfos) | ||
| 82 | this.tmpResultInfo = this.resultInfo | ||
| 83 | }, | ||
| 84 | deep: true, | ||
| 85 | immediate: true | ||
| 86 | } | ||
| 87 | }, | ||
| 88 | |||
| 89 | mounted() { | ||
| 90 | this.resultInfo = | ||
| 91 | this.resultInfos === '' ? {} : JSON.parse(this.resultInfos) | ||
| 92 | }, | ||
| 93 | |||
| 94 | methods: { | ||
| 95 | onJsonChange(value) { | ||
| 96 | // 只有在格式正确的时候进入此事件 | ||
| 97 | this.hasJsonFlag = true | ||
| 98 | }, | ||
| 99 | onJsonSave() { | ||
| 100 | const value = this.resultInfo | ||
| 101 | console.log(this.resultInfo, 'resultInfo') | ||
| 102 | if (this.hasJsonFlag === false) { | ||
| 103 | this.$message.error({ message: 'json格式验证失败', showClose: true }) | ||
| 104 | // alert("json验证失败") | ||
| 105 | return false | ||
| 106 | } else { | ||
| 107 | this.dialogVisible = false | ||
| 108 | this.$emit('getJsonString', JSON.stringify(value)) | ||
| 109 | return true | ||
| 110 | } | ||
| 111 | }, | ||
| 112 | onError(value) { | ||
| 113 | this.hasJsonFlag = false | ||
| 114 | }, | ||
| 115 | openDialog() { | ||
| 116 | this.dialogVisible = true | ||
| 117 | }, | ||
| 118 | cancel() { | ||
| 119 | console.log(this.tmpResultInfo, 'tmpResultInfo') | ||
| 120 | this.resultInfo = this.tmpResultInfo | ||
| 121 | this.dialogVisible = false | ||
| 122 | }, | ||
| 123 | // 放大 | ||
| 124 | enLarge() { | ||
| 125 | const fullarea = document.getElementById('minejson') | ||
| 126 | if (fullarea.requestFullscreen) { | ||
| 127 | fullarea.requestFullscreen() | ||
| 128 | } else if (fullarea.webkitRequestFullScreen) { | ||
| 129 | fullarea.webkitRequestFullScreen() // webkit内核(chrome、safari、Opera等) | ||
| 130 | } else if (fullarea.mozRequestFullScreen) { | ||
| 131 | fullarea.mozRequestFullScreen() // moz内核(firefox) | ||
| 132 | } else if (fullarea.msRequestFullscreen) { | ||
| 133 | fullarea.msRequestFullscreen() // IE11、edge | ||
| 134 | } | ||
| 135 | this.isEnlarge = true | ||
| 136 | } | ||
| 137 | } | ||
| 138 | } | ||
| 139 | </script> | ||
| 140 | |||
| 141 | <style scoped lang="scss"> | ||
| 142 | /* jsoneditor右上角默认有一个链接,加css去掉了 */ | ||
| 143 | .iconfont { | ||
| 144 | cursor: pointer; | ||
| 145 | position: relative; | ||
| 146 | top: 1px; | ||
| 147 | color: #349af3; | ||
| 148 | } | ||
| 149 | ::v-deep .jsoneditor-vue { | ||
| 150 | height: 100%; | ||
| 151 | } | ||
| 152 | .fullScreen { | ||
| 153 | position: absolute; | ||
| 154 | right: 5%; | ||
| 155 | top: 22%; | ||
| 156 | cursor: pointer; | ||
| 157 | color: #fff; | ||
| 158 | } | ||
| 159 | ::v-deep .jsoneditor-modes { | ||
| 160 | display: none !important; | ||
| 161 | } | ||
| 162 | .jsoneditor-poweredBy { | ||
| 163 | display: none !important; | ||
| 164 | } | ||
| 165 | .jsoneditor-menu { | ||
| 166 | background-color: #9c9e9f !important; | ||
| 167 | border-bottom: 1px solid #9c9e9f !important; | ||
| 168 | } | ||
| 169 | .jsoneditor { | ||
| 170 | border: 1px solid #9c9e9f !important; | ||
| 171 | } | ||
| 172 | .el-collapse { | ||
| 173 | border: 0; | ||
| 174 | } | ||
| 175 | .el-collapse-item__header { | ||
| 176 | height: 44px; | ||
| 177 | } | ||
| 178 | </style> |
| ... | @@ -74,7 +74,7 @@ export default { | ... | @@ -74,7 +74,7 @@ export default { |
| 74 | }, | 74 | }, |
| 75 | heightNum: { | 75 | heightNum: { |
| 76 | type: Number, | 76 | type: Number, |
| 77 | default: 345, | 77 | default: 355, |
| 78 | }, | 78 | }, |
| 79 | maxHeight: { | 79 | maxHeight: { |
| 80 | type: Number, | 80 | type: Number, |
| ... | @@ -99,7 +99,7 @@ export default { | ... | @@ -99,7 +99,7 @@ export default { |
| 99 | }, | 99 | }, |
| 100 | data () { | 100 | data () { |
| 101 | return { | 101 | return { |
| 102 | tableHeight: '', | 102 | tableHeight: 'auto', |
| 103 | mergeLine: {}, | 103 | mergeLine: {}, |
| 104 | mergeIndex: {}, | 104 | mergeIndex: {}, |
| 105 | selected: '' | 105 | selected: '' |
| ... | @@ -115,7 +115,6 @@ export default { | ... | @@ -115,7 +115,6 @@ export default { |
| 115 | }, | 115 | }, |
| 116 | }, | 116 | }, |
| 117 | methods: { | 117 | methods: { |
| 118 | |||
| 119 | // 单选 | 118 | // 单选 |
| 120 | singleElection (row) { | 119 | singleElection (row) { |
| 121 | this.selected = this.data.indexOf(row); | 120 | this.selected = this.data.indexOf(row); |
| ... | @@ -128,8 +127,37 @@ export default { | ... | @@ -128,8 +127,37 @@ export default { |
| 128 | }, | 127 | }, |
| 129 | getHeight () { | 128 | getHeight () { |
| 130 | if (!this.heightNumSetting) { | 129 | if (!this.heightNumSetting) { |
| 131 | this.tableHeight = window.innerHeight - this.heightNum | 130 | let _this = this |
| 131 | if (this.heightNum) { | ||
| 132 | _this.$nextTick(() => { | ||
| 133 | window.addEventListener('resize', () => { | ||
| 134 | _this.tableHeight = _this.calcHeightx(230) | ||
| 135 | }); | ||
| 136 | _this.tableHeight = _this.calcHeightx(230) | ||
| 137 | }) | ||
| 138 | } else { | ||
| 139 | _this.tableHeight = window.innerHeight - _this.heightNum | ||
| 140 | } | ||
| 141 | } | ||
| 142 | }, | ||
| 143 | calcHeightx (value, wappered = true) { | ||
| 144 | //项目自定义的公共header部分的高度,可忽略 | ||
| 145 | let header = document.querySelector(".from-clues-header").offsetHeight; | ||
| 146 | //value为动态计算table界面高度时,减去的其他空白部分,需自行在调试找到临界值,剩下的就是table表格的高度(包含header+body部分) | ||
| 147 | value = value == undefined ? 100 : value; | ||
| 148 | let res = window.innerHeight - parseInt(header) - value; | ||
| 149 | if (wappered) { | ||
| 150 | //通过原生方法,获取dom节点的高度------获取element-ui table表格body的元素 | ||
| 151 | let wapper = window.document.getElementsByClassName('el-table__body-wrapper'); | ||
| 152 | //通过原生方法,获取dom节点的高度------获取element-ui table表格header的元素 | ||
| 153 | let header = window.document.getElementsByClassName('el-table__header-wrapper'); | ||
| 154 | //必须加延时,要不然赋不上去值 | ||
| 155 | setTimeout(() => { | ||
| 156 | //通过上边计算得到的table高度的value值,减去table表格的header高度,剩下的通过dom节点直接强行赋给table表格的body | ||
| 157 | wapper[0].style.height = (value - header[0].clientHeight) | ||
| 158 | }, 100) | ||
| 132 | } | 159 | } |
| 160 | return res; | ||
| 133 | }, | 161 | }, |
| 134 | clearSelection () { | 162 | clearSelection () { |
| 135 | this.$refs.elTable.clearSelection() | 163 | this.$refs.elTable.clearSelection() | ... | ... |
src/image/itembg.png
0 → 100644
529 Bytes
src/image/slbg.png
0 → 100644
9.58 KB
src/image/slitembg.png
0 → 100644
405 Bytes
src/image/xzslitembg.png
0 → 100644
506 Bytes
| 1 | <template> | 1 | <template> |
| 2 | <section class="app-main"> | 2 | <section class="app-main"> |
| 3 | <!-- <Breadcrumb v-if="judgeRoute()" /> --> | ||
| 4 | <transition name="fade-transform" mode="out-in"> | 3 | <transition name="fade-transform" mode="out-in"> |
| 5 | <router-view /> | 4 | <router-view /> |
| 6 | </transition> | 5 | </transition> |
| 7 | </section> | 6 | </section> |
| 8 | </template> | 7 | </template> |
| 9 | <script> | 8 | <script> |
| 10 | import Breadcrumb from "@/components/Breadcrumb.vue"; | 9 | |
| 11 | export default { | 10 | export default { |
| 12 | name: 'AppMain', | 11 | name: 'AppMain', |
| 13 | components: { | ||
| 14 | Breadcrumb | ||
| 15 | }, | ||
| 16 | methods: { | ||
| 17 | judgeRoute(){ | ||
| 18 | if (this.$route.path == '/home' || this.$route.path.indexOf('jsbwcx') > -1) { | ||
| 19 | return false | ||
| 20 | }else{ | ||
| 21 | return true | ||
| 22 | } | ||
| 23 | } | ||
| 24 | }, | ||
| 25 | computed: { | 12 | computed: { |
| 26 | key () { | 13 | key () { |
| 27 | return this.$route.path | 14 | return this.$route.path | ... | ... |
| ... | @@ -79,7 +79,8 @@ export default { | ... | @@ -79,7 +79,8 @@ export default { |
| 79 | .xuanzhong { | 79 | .xuanzhong { |
| 80 | background: url('~@/image/selNavbar.png') no-repeat; | 80 | background: url('~@/image/selNavbar.png') no-repeat; |
| 81 | background-size: 100% 100%; | 81 | background-size: 100% 100%; |
| 82 | color: #09C39A !important; | 82 | color: #FFFFFF !important; |
| 83 | font-weight: 700; | ||
| 83 | } | 84 | } |
| 84 | 85 | ||
| 85 | /deep/.el-menu-item:hover { | 86 | /deep/.el-menu-item:hover { | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <el-menu router :default-active="activeMenu" mode="horizontal"> | 2 | <el-menu router :default-active="activeMenu" mode="horizontal" menu-trigger="click"> |
| 3 | <!-- 权限菜单 --> | 3 | <!-- 权限菜单 --> |
| 4 | <sidebar-item v-for="route in permission_routes.slice(1, 4)" :key="route.path" :item="route" | 4 | <sidebar-item v-for="route in permission_routes.slice(1, 4)" :key="route.path" :item="route" |
| 5 | :base-path="route.path" /> | 5 | :base-path="route.path" /> | ... | ... |
| ... | @@ -36,6 +36,7 @@ export default { | ... | @@ -36,6 +36,7 @@ export default { |
| 36 | position: relative; | 36 | position: relative; |
| 37 | height: 100%; | 37 | height: 100%; |
| 38 | width: 100%; | 38 | width: 100%; |
| 39 | min-width: 1280px; | ||
| 39 | background: url('~@/image/bg.png') no-repeat; | 40 | background: url('~@/image/bg.png') no-repeat; |
| 40 | background-size: 100% 100%; | 41 | background-size: 100% 100%; |
| 41 | padding: 12px; | 42 | padding: 12px; |
| ... | @@ -48,6 +49,7 @@ export default { | ... | @@ -48,6 +49,7 @@ export default { |
| 48 | } | 49 | } |
| 49 | 50 | ||
| 50 | .appMain { | 51 | .appMain { |
| 52 | min-width: 1290px; | ||
| 51 | height: calc(100vh - 101px) !important; | 53 | height: calc(100vh - 101px) !important; |
| 52 | box-sizing: border-box; | 54 | box-sizing: border-box; |
| 53 | 55 | ... | ... |
| ... | @@ -2,7 +2,7 @@ const state = { | ... | @@ -2,7 +2,7 @@ const state = { |
| 2 | rules: {}, | 2 | rules: {}, |
| 3 | initRules: {}, | 3 | initRules: {}, |
| 4 | subRules: {}, | 4 | subRules: {}, |
| 5 | Edit: false | 5 | Edit: true |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | const mutations = { | 8 | const mutations = { |
| ... | @@ -30,13 +30,13 @@ const actions = { | ... | @@ -30,13 +30,13 @@ const actions = { |
| 30 | setInitRules ({ commit }, data) { | 30 | setInitRules ({ commit }, data) { |
| 31 | commit('SET_INITRULES', data) | 31 | commit('SET_INITRULES', data) |
| 32 | }, | 32 | }, |
| 33 | setSubRules({ commit }, data) { | 33 | setSubRules ({ commit }, data) { |
| 34 | commit('SET_SUBRULES', data) | 34 | commit('SET_SUBRULES', data) |
| 35 | }, | 35 | }, |
| 36 | setEdit({ commit }) { | 36 | setEdit ({ commit }) { |
| 37 | commit('SET_EDIT') | 37 | commit('SET_EDIT') |
| 38 | }, | 38 | }, |
| 39 | setReportLogEdit({ commit }) { | 39 | setReportLogEdit ({ commit }) { |
| 40 | commit('SET_REPORTEDIT') | 40 | commit('SET_REPORTEDIT') |
| 41 | } | 41 | } |
| 42 | } | 42 | } | ... | ... |
| ... | @@ -66,7 +66,8 @@ | ... | @@ -66,7 +66,8 @@ |
| 66 | // refine element ui upload | 66 | // refine element ui upload |
| 67 | .el-input.is-disabled .el-input__inner { | 67 | .el-input.is-disabled .el-input__inner { |
| 68 | color: #FFFFFF !important; | 68 | color: #FFFFFF !important; |
| 69 | background-color: transparent !important; | 69 | // background-color: transparent !important; |
| 70 | border: 1px solid #224C7C !important; | ||
| 70 | } | 71 | } |
| 71 | 72 | ||
| 72 | .upload-container { | 73 | .upload-container { |
| ... | @@ -214,6 +215,15 @@ table td { | ... | @@ -214,6 +215,15 @@ table td { |
| 214 | color: #4A4A4A; | 215 | color: #4A4A4A; |
| 215 | } | 216 | } |
| 216 | 217 | ||
| 218 | .twoLineCls { | ||
| 219 | text-overflow: -o-ellipsis-lastline; | ||
| 220 | overflow: hidden; | ||
| 221 | text-overflow: ellipsis; | ||
| 222 | display: -webkit-box; | ||
| 223 | -webkit-line-clamp: 2; | ||
| 224 | line-clamp: 2; | ||
| 225 | -webkit-box-orient: vertical; | ||
| 226 | } | ||
| 217 | 227 | ||
| 218 | .el-table tr td { | 228 | .el-table tr td { |
| 219 | font-size: 14px; | 229 | font-size: 14px; |
| ... | @@ -253,7 +263,8 @@ table td { | ... | @@ -253,7 +263,8 @@ table td { |
| 253 | // element 下拉框样式 | 263 | // element 下拉框样式 |
| 254 | .el-menu--popup, | 264 | .el-menu--popup, |
| 255 | .el-select-dropdown { | 265 | .el-select-dropdown { |
| 256 | background-color: #031A46 !important; | 266 | background: url("~@/image/slbg.png") no-repeat; |
| 267 | background-size: 100% 100%; | ||
| 257 | padding: 10px; | 268 | padding: 10px; |
| 258 | border: none; | 269 | border: none; |
| 259 | } | 270 | } |
| ... | @@ -265,20 +276,25 @@ table td { | ... | @@ -265,20 +276,25 @@ table td { |
| 265 | .el-popper[x-placement^="bottom"] .popper__arrow { | 276 | .el-popper[x-placement^="bottom"] .popper__arrow { |
| 266 | display: none; | 277 | display: none; |
| 267 | } | 278 | } |
| 279 | |||
| 268 | .el-popper[x-placement^="bottom"] { | 280 | .el-popper[x-placement^="bottom"] { |
| 269 | margin-top: 0px; | 281 | margin-top: 0px; |
| 270 | } | 282 | } |
| 283 | |||
| 271 | // 时间选择框样式 | 284 | // 时间选择框样式 |
| 272 | .el-date-picker { | 285 | .el-date-picker { |
| 273 | .el-input__inner{ | 286 | .el-input__inner { |
| 274 | background-color: #031a46; | 287 | background-color: #031a46; |
| 275 | } | 288 | } |
| 276 | .el-picker-panel{ | 289 | |
| 290 | .el-picker-panel { | ||
| 277 | border: none; | 291 | border: none; |
| 278 | } | 292 | } |
| 279 | .el-picker-panel__footer{ | 293 | |
| 294 | .el-picker-panel__footer { | ||
| 280 | background-color: #031a46; | 295 | background-color: #031a46; |
| 281 | } | 296 | } |
| 297 | |||
| 282 | .el-date-table td.disabled div { | 298 | .el-date-table td.disabled div { |
| 283 | background-color: #074487; | 299 | background-color: #074487; |
| 284 | } | 300 | } |
| ... | @@ -400,9 +416,12 @@ table td { | ... | @@ -400,9 +416,12 @@ table td { |
| 400 | 416 | ||
| 401 | // 时间组件input框部分 | 417 | // 时间组件input框部分 |
| 402 | .el-date-editor { | 418 | .el-date-editor { |
| 403 | [class^="el-icon-"], [class*=" el-icon-"] { | 419 | |
| 420 | [class^="el-icon-"], | ||
| 421 | [class*=" el-icon-"] { | ||
| 404 | display: none; | 422 | display: none; |
| 405 | } | 423 | } |
| 424 | |||
| 406 | .el-range-separator { | 425 | .el-range-separator { |
| 407 | color: #E3F1FF; | 426 | color: #E3F1FF; |
| 408 | } | 427 | } |
| ... | @@ -416,18 +435,30 @@ table td { | ... | @@ -416,18 +435,30 @@ table td { |
| 416 | .el-menu--horizontal .el-menu .el-menu-item, | 435 | .el-menu--horizontal .el-menu .el-menu-item, |
| 417 | .el-select-dropdown__item, | 436 | .el-select-dropdown__item, |
| 418 | .el-menu--horizontal .el-menu .el-submenu__title { | 437 | .el-menu--horizontal .el-menu .el-submenu__title { |
| 419 | background: #074487 !important; | 438 | background: url("~@/image/slitembg.png") no-repeat; |
| 420 | margin: 5px 0; | 439 | height: 26px; |
| 421 | border: 1px solid #074487; | 440 | line-height: 26px; |
| 441 | background-size: 100% 100%; | ||
| 442 | margin-bottom: 7px; | ||
| 422 | color: #02D9FD !important; | 443 | color: #02D9FD !important; |
| 423 | } | 444 | } |
| 424 | 445 | ||
| 446 | .el-select-dropdown { | ||
| 447 | top: 203px !important; | ||
| 448 | } | ||
| 449 | |||
| 425 | .el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):hover, | 450 | .el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):hover, |
| 426 | .el-select-dropdown__item:hover, | 451 | .el-select-dropdown__item:hover, |
| 427 | .el-select-dropdown__item.selected, | 452 | .el-select-dropdown__item.selected, |
| 428 | .el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):focus { | 453 | .el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):focus { |
| 429 | background: #074487; | 454 | background: url("~@/image/xzslitembg.png") no-repeat; |
| 430 | border: 1px solid #02D9FD; | 455 | background-size: 100% 100%; |
| 431 | color: #FFFFFF !important; | 456 | color: #FFFFFF !important; |
| 432 | font-weight: 700; | 457 | font-weight: 700; |
| 433 | } | 458 | } |
| 459 | |||
| 460 | .el-select-dropdown__item.hover, | ||
| 461 | .el-select-dropdown__item:hover { | ||
| 462 | background-color: transparent !important; | ||
| 463 | ; | ||
| 464 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -7,36 +7,43 @@ | ... | @@ -7,36 +7,43 @@ |
| 7 | max-height: 100%; | 7 | max-height: 100%; |
| 8 | overflow-y: scroll; | 8 | overflow-y: scroll; |
| 9 | } | 9 | } |
| 10 | |||
| 10 | .panel-tab__title { | 11 | .panel-tab__title { |
| 11 | font-weight: 600; | 12 | font-weight: 600; |
| 12 | padding: 0 8px; | 13 | padding: 0 8px; |
| 13 | font-size: 1.1em; | 14 | font-size: 1.1em; |
| 14 | line-height: 1.2em; | 15 | line-height: 1.2em; |
| 16 | |||
| 15 | i { | 17 | i { |
| 16 | margin-right: 8px; | 18 | margin-right: 8px; |
| 17 | font-size: 1.2em; | 19 | font-size: 1.2em; |
| 18 | } | 20 | } |
| 19 | } | 21 | } |
| 22 | |||
| 20 | .panel-tab__content { | 23 | .panel-tab__content { |
| 21 | width: 100%; | 24 | width: 100%; |
| 22 | box-sizing: border-box; | 25 | box-sizing: border-box; |
| 23 | border-top: 1px solid #eeeeee; | 26 | border-top: 1px solid #eeeeee; |
| 24 | padding: 8px 16px; | 27 | padding: 8px 16px; |
| 28 | |||
| 25 | .panel-tab__content--title { | 29 | .panel-tab__content--title { |
| 26 | display: flex; | 30 | display: flex; |
| 27 | justify-content: space-between; | 31 | justify-content: space-between; |
| 28 | padding-bottom: 8px; | 32 | padding-bottom: 8px; |
| 33 | |||
| 29 | span { | 34 | span { |
| 30 | flex: 1; | 35 | flex: 1; |
| 31 | text-align: left; | 36 | text-align: left; |
| 32 | } | 37 | } |
| 33 | } | 38 | } |
| 34 | } | 39 | } |
| 40 | |||
| 35 | .element-property { | 41 | .element-property { |
| 36 | width: 100%; | 42 | width: 100%; |
| 37 | display: flex; | 43 | display: flex; |
| 38 | align-items: flex-start; | 44 | align-items: flex-start; |
| 39 | margin: 8px 0; | 45 | margin: 8px 0; |
| 46 | |||
| 40 | .element-property__label { | 47 | .element-property__label { |
| 41 | display: block; | 48 | display: block; |
| 42 | width: 90px; | 49 | width: 90px; |
| ... | @@ -47,64 +54,72 @@ | ... | @@ -47,64 +54,72 @@ |
| 47 | font-size: 14px; | 54 | font-size: 14px; |
| 48 | box-sizing: border-box; | 55 | box-sizing: border-box; |
| 49 | } | 56 | } |
| 57 | |||
| 50 | .element-property__value { | 58 | .element-property__value { |
| 51 | flex: 1; | 59 | flex: 1; |
| 52 | line-height: 32px; | 60 | line-height: 32px; |
| 53 | } | 61 | } |
| 62 | |||
| 54 | .el-form-item { | 63 | .el-form-item { |
| 55 | width: 100%; | 64 | width: 100%; |
| 56 | margin-bottom: 0; | 65 | margin-bottom: 0; |
| 57 | padding-bottom: 18px; | 66 | padding-bottom: 18px; |
| 58 | } | 67 | } |
| 59 | } | 68 | } |
| 69 | |||
| 60 | .list-property { | 70 | .list-property { |
| 61 | flex-direction: column; | 71 | flex-direction: column; |
| 72 | |||
| 62 | .element-listener-item { | 73 | .element-listener-item { |
| 63 | width: 100%; | 74 | width: 100%; |
| 64 | display: inline-grid; | 75 | display: inline-grid; |
| 65 | grid-template-columns: 16px auto 32px 32px; | 76 | grid-template-columns: 16px auto 32px 32px; |
| 66 | grid-column-gap: 8px; | 77 | grid-column-gap: 8px; |
| 67 | } | 78 | } |
| 68 | .element-listener-item + .element-listener-item { | 79 | |
| 80 | .element-listener-item+.element-listener-item { | ||
| 69 | margin-top: 8px; | 81 | margin-top: 8px; |
| 70 | } | 82 | } |
| 71 | } | 83 | } |
| 84 | |||
| 72 | .listener-filed__title { | 85 | .listener-filed__title { |
| 73 | display: inline-flex; | 86 | display: inline-flex; |
| 74 | width: 100%; | 87 | width: 100%; |
| 75 | justify-content: space-between; | 88 | justify-content: space-between; |
| 76 | align-items: center; | 89 | align-items: center; |
| 77 | margin-top: 0; | 90 | margin-top: 0; |
| 91 | |||
| 78 | span { | 92 | span { |
| 79 | width: 200px; | 93 | width: 200px; |
| 80 | text-align: left; | 94 | text-align: left; |
| 81 | font-size: 14px; | 95 | font-size: 14px; |
| 82 | } | 96 | } |
| 97 | |||
| 83 | i { | 98 | i { |
| 84 | margin-right: 8px; | 99 | margin-right: 8px; |
| 85 | } | 100 | } |
| 86 | } | 101 | } |
| 102 | |||
| 87 | .element-drawer__button { | 103 | .element-drawer__button { |
| 88 | margin-top: 8px; | 104 | margin-top: 8px; |
| 89 | width: 100%; | 105 | width: 100%; |
| 90 | display: inline-flex; | 106 | display: inline-flex; |
| 91 | justify-content: space-around; | 107 | justify-content: space-around; |
| 92 | } | 108 | } |
| 93 | .element-drawer__button > .el-button { | 109 | |
| 110 | .element-drawer__button>.el-button { | ||
| 94 | width: 100%; | 111 | width: 100%; |
| 95 | } | 112 | } |
| 96 | 113 | ||
| 97 | .el-collapse-item__content { | 114 | .el-collapse-item__content { |
| 98 | padding-bottom: 0; | 115 | padding-bottom: 0; |
| 99 | } | 116 | } |
| 100 | .el-input.is-disabled .el-input__inner { | 117 | |
| 101 | color: #999999; | ||
| 102 | } | ||
| 103 | .el-form-item.el-form-item--mini { | 118 | .el-form-item.el-form-item--mini { |
| 104 | margin-bottom: 0; | 119 | margin-bottom: 0; |
| 105 | & + .el-form-item { | 120 | |
| 121 | &+.el-form-item { | ||
| 106 | margin-top: 16px; | 122 | margin-top: 16px; |
| 107 | } | 123 | } |
| 108 | } | 124 | } |
| 109 | } | 125 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 110 | ... | ... |
| ... | @@ -40,16 +40,16 @@ | ... | @@ -40,16 +40,16 @@ |
| 40 | 40 | ||
| 41 | //*****start*通用表单查询条件,列表样式******// | 41 | //*****start*通用表单查询条件,列表样式******// |
| 42 | .from-clues { | 42 | .from-clues { |
| 43 | min-width: 1280px; | ||
| 44 | height: 100%; | 43 | height: 100%; |
| 45 | width: 100%; | 44 | width: 100%; |
| 45 | min-width: 1280px; | ||
| 46 | box-sizing: border-box; | 46 | box-sizing: border-box; |
| 47 | overflow-x: hidden; | 47 | overflow-x: hidden; |
| 48 | padding: 2px; | 48 | padding: 2px; |
| 49 | 49 | ||
| 50 | &-header { | 50 | &-header { |
| 51 | width: 100%; | 51 | width: 100%; |
| 52 | padding: 20px 30px 20px 20px; | 52 | padding: 5px 30px 20px 20px; |
| 53 | box-sizing: border-box; | 53 | box-sizing: border-box; |
| 54 | background: url("~@/image/formHeader.png") no-repeat; | 54 | background: url("~@/image/formHeader.png") no-repeat; |
| 55 | background-size: 100% 100%; | 55 | background-size: 100% 100%; | ... | ... |
src/utils/elementUI.js
0 → 100644
| 1 | const icoNameList = ['platform-eleme', 'eleme', 'delete-solid', 'delete', 's-tools', 'setting', 'user-solid', 'user', 'phone', 'phone-outline', 'more', 'more-outline', 'star-on', 'star-off', 's-goods', 'goods', 'warning', 'warning-outline', 'question', 'info', 'remove', 'circle-plus', 'success', 'error', 'zoom-in', 'zoom-out', 'remove-outline', 'circle-plus-outline', 'circle-check', 'circle-close', 's-help', 'help', 'minus', 'plus', 'check', 'close', 'picture', 'picture-outline', 'picture-outline-round', 'upload', 'upload2', 'download', 'camera-solid', 'camera', 'video-camera-solid', 'video-camera', 'message-solid', 'bell', 's-cooperation', 's-order', 's-platform', 's-fold', 's-unfold', 's-operation', 's-promotion', 's-home', 's-release', 's-ticket', 's-management', 's-open', 's-shop', 's-marketing', 's-flag', 's-comment', 's-finance', 's-claim', 's-custom', 's-opportunity', 's-data', 's-check', 's-grid', 'menu', 'share', 'd-caret', 'caret-left', 'caret-right', 'caret-bottom', 'caret-top', 'bottom-left', 'bottom-right', 'back', 'right', 'bottom', 'top', 'top-left', 'top-right', 'arrow-left', 'arrow-right', 'arrow-down', 'arrow-up', 'd-arrow-left', 'd-arrow-right', 'video-pause', 'video-play', 'refresh', 'refresh-right', 'refresh-left', 'finished', 'sort', 'sort-up', 'sort-down', 'rank', 'loading', 'view', 'c-scale-to-original', 'date', 'edit', 'edit-outline', 'folder', 'folder-opened', 'folder-add', 'folder-remove', 'folder-delete', 'folder-checked', 'tickets', 'document-remove', 'document-delete', 'document-copy', 'document-checked', 'document', 'document-add', 'printer', 'paperclip', 'takeaway-box', 'search', 'monitor', 'attract', 'mobile', 'scissors', 'umbrella', 'headset', 'brush', 'mouse', 'coordinate', 'magic-stick', 'reading', 'data-line', 'data-board', 'pie-chart', 'data-analysis', 'collection-tag', 'film', 'suitcase', 'suitcase-1', 'receiving', 'collection', 'files', 'notebook-1', 'notebook-2', 'toilet-paper', 'office-building', 'school', 'table-lamp', 'house', 'no-smoking', 'smoking', 'shopping-cart-full', 'shopping-cart-1', 'shopping-cart-2', 'shopping-bag-1', 'shopping-bag-2', 'sold-out', 'sell', 'present', 'box', 'bank-card', 'money', 'coin', 'wallet', 'discount', 'price-tag', 'news', 'guide', 'male', 'female', 'thumb', 'cpu', 'link', 'connection', 'open', 'turn-off', 'set-up', 'chat-round', 'chat-line-round', 'chat-square', 'chat-dot-round', 'chat-dot-square', 'chat-line-square', 'message', 'postcard', 'position', 'turn-off-microphone', 'microphone', 'close-notification', 'bangzhu', 'time', 'odometer', 'crop', 'aim', 'switch-button', 'full-screen', 'copy-document', 'mic', 'stopwatch', 'medal-1', 'medal', 'trophy', 'trophy-1', 'first-aid-kit', 'discover', 'place', 'location', 'location-outline', 'location-information', 'add-location', 'delete-location', 'map-location', 'alarm-clock', 'timer', 'watch-1', 'watch', 'lock', 'unlock', 'key', 'service', 'mobile-phone', 'bicycle', 'truck', 'ship', 'basketball', 'football', 'soccer', 'baseball', 'wind-power', 'light-rain', 'lightning', 'heavy-rain', 'sunrise', 'sunrise-1', 'sunset', 'sunny', 'cloudy', 'partly-cloudy', 'cloudy-and-sunny', 'moon', 'moon-night', 'dish', 'dish-1', 'food', 'chicken', 'fork-spoon', 'knife-fork', 'burger', 'tableware', 'sugar', 'dessert', 'ice-cream', 'hot-water', 'water-cup', 'coffee-cup', 'cold-drink', 'goblet', 'goblet-full', 'goblet-square', 'goblet-square-full', 'refrigerator', 'grape', 'watermelon', 'cherry', 'apple', 'pear', 'orange', 'coffee', 'ice-tea', 'ice-drink', 'milk-tea', 'potato-strips', 'lollipop', 'ice-cream-square', 'ice-cream-round'] | ||
| 2 | .map(s => 'el-icon-' + s) | ||
| 3 | export default icoNameList | ||
| 4 |
| ... | @@ -5,3 +5,26 @@ | ... | @@ -5,3 +5,26 @@ |
| 5 | export function isExternal (path) { | 5 | export function isExternal (path) { |
| 6 | return /^(https?:|mailto:|tel:)/.test(path) | 6 | return /^(https?:|mailto:|tel:)/.test(path) |
| 7 | } | 7 | } |
| 8 | // ex: {validator:validateCode,trigger:'blur'} | ||
| 9 | // 验证code | ||
| 10 | export const validateCode = (rule, value, callback) => { | ||
| 11 | const reg = /^[A-Z]{1}[A-Za-z0-9]*$/ | ||
| 12 | !reg.test(value) ? callback('字母开头、数字和字母组成') : callback() | ||
| 13 | } | ||
| 14 | // 验证 网址 | ||
| 15 | export const validateUrl = (rule, value, callback) => { | ||
| 16 | const reg = /^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/ | ||
| 17 | !reg.test(value) ? callback('URL格式不正确') : callback() | ||
| 18 | } | ||
| 19 | // 验证 电话 | ||
| 20 | export const validatePhone = (rule, value, callback) => { | ||
| 21 | const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ | ||
| 22 | const rel = /^[0]\d{2,3}-[1-9]\d{7}$/ | ||
| 23 | if (!value) { | ||
| 24 | callback() | ||
| 25 | } else { | ||
| 26 | !(phoneReg.test(value) || rel.test(value)) | ||
| 27 | ? callback(new Error('请输入正确的联系电话')) | ||
| 28 | : callback() | ||
| 29 | } | ||
| 30 | } | ... | ... |
| ... | @@ -33,19 +33,28 @@ class data extends filter { | ... | @@ -33,19 +33,28 @@ class data extends filter { |
| 33 | label: "不动产单元号", | 33 | label: "不动产单元号", |
| 34 | prop: "bdcdyh" | 34 | prop: "bdcdyh" |
| 35 | }, | 35 | }, |
| 36 | // { | ||
| 37 | // label: "不动产产权证号", | ||
| 38 | // prop: "bdcqzh" | ||
| 39 | // }, | ||
| 36 | { | 40 | { |
| 37 | label: "不动产产权证号", | 41 | label: "查封机关", |
| 38 | prop: "bdcqzh" | 42 | prop: "cfjg" |
| 39 | }, | 43 | }, |
| 40 | { | 44 | { |
| 41 | label: "查封(解封)机关", | 45 | label: "查封文号", |
| 42 | prop: "cjfjg" | 46 | prop: "cfwh" |
| 43 | }, | 47 | }, |
| 44 | { | 48 | { |
| 45 | label: "查封(解封)文号", | 49 | label: "解封机关", |
| 46 | prop: "cjfwh" | 50 | prop: "jfjg" |
| 47 | }, | 51 | }, |
| 48 | { | 52 | { |
| 53 | label: "解封文号", | ||
| 54 | prop: "jfwh" | ||
| 55 | }, | ||
| 56 | |||
| 57 | { | ||
| 49 | label: "查封开始时间", | 58 | label: "查封开始时间", |
| 50 | width: 140, | 59 | width: 140, |
| 51 | prop: "cfqssj" | 60 | prop: "cfqssj" | ... | ... |
| ... | @@ -19,18 +19,16 @@ | ... | @@ -19,18 +19,16 @@ |
| 19 | </el-select> | 19 | </el-select> |
| 20 | </el-form-item> | 20 | </el-form-item> |
| 21 | </el-col> | 21 | </el-col> |
| 22 | <el-col :span="5"> | 22 | <!-- <el-col :span="5"> |
| 23 | <el-form-item label="坐落"> | 23 | <el-form-item label="坐落"> |
| 24 | <el-input v-model="form.ZL" placeholder="坐落"></el-input> | 24 | <el-input v-model="form.ZL" placeholder="坐落"></el-input> |
| 25 | </el-form-item> | 25 | </el-form-item> |
| 26 | </el-col> | 26 | </el-col> --> |
| 27 | <el-col :span="5"> | 27 | <!-- <el-col :span="5"> |
| 28 | <el-form-item label="不动产权证号"> | 28 | <el-form-item label="不动产权证号"> |
| 29 | <el-input v-model="form.BDCQZH" placeholder="不动产权证号"></el-input> | 29 | <el-input v-model="form.BDCQZH" placeholder="不动产权证号"></el-input> |
| 30 | </el-form-item> | 30 | </el-form-item> |
| 31 | </el-col> | 31 | </el-col> --> |
| 32 | </el-row> | ||
| 33 | <el-row class="mt-10"> | ||
| 34 | <el-col :span="5"> | 32 | <el-col :span="5"> |
| 35 | <el-form-item label="权利人" label-width="80px"> | 33 | <el-form-item label="权利人" label-width="80px"> |
| 36 | <el-input v-model="form.QLR" placeholder="权利人"></el-input> | 34 | <el-input v-model="form.QLR" placeholder="权利人"></el-input> |
| ... | @@ -41,16 +39,30 @@ | ... | @@ -41,16 +39,30 @@ |
| 41 | <el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input> | 39 | <el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input> |
| 42 | </el-form-item> | 40 | </el-form-item> |
| 43 | </el-col> | 41 | </el-col> |
| 42 | |||
| 43 | </el-row> | ||
| 44 | <el-row class="mt-10"> | ||
| 45 | <el-col :span="5"> | ||
| 46 | <el-form-item label="查封机关" label-width="80px"> | ||
| 47 | <el-input v-model="form.CFJG" placeholder="查封机关"></el-input> | ||
| 48 | </el-form-item> | ||
| 49 | </el-col> | ||
| 50 | <el-col :span="5"> | ||
| 51 | <el-form-item label="查封文号"> | ||
| 52 | <el-input v-model="form.CFWH" placeholder="查封文号"></el-input> | ||
| 53 | </el-form-item> | ||
| 54 | </el-col> | ||
| 44 | <el-col :span="5"> | 55 | <el-col :span="5"> |
| 45 | <el-form-item label="查封(解封)机关"> | 56 | <el-form-item label="解封机关" label-width="80px"> |
| 46 | <el-input v-model="form.xxx" placeholder="查封(解封)机关"></el-input> | 57 | <el-input v-model="form.JFJG" placeholder="解封机关"></el-input> |
| 47 | </el-form-item> | 58 | </el-form-item> |
| 48 | </el-col> | 59 | </el-col> |
| 49 | <el-col :span="5"> | 60 | <el-col :span="5"> |
| 50 | <el-form-item label="查封(解封)文号"> | 61 | <el-form-item label="解封文号"> |
| 51 | <el-input v-model="form.xxx1" placeholder="查封(解封)文号"></el-input> | 62 | <el-input v-model="form.JFWH" placeholder="解封文号"></el-input> |
| 52 | </el-form-item> | 63 | </el-form-item> |
| 53 | </el-col> | 64 | </el-col> |
| 65 | |||
| 54 | <el-col :span="4" class="btnColRight"> | 66 | <el-col :span="4" class="btnColRight"> |
| 55 | <btn nativeType="cz" @click="resetForm">重置</btn> | 67 | <btn nativeType="cz" @click="resetForm">重置</btn> |
| 56 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 68 | <btn nativeType="cx" @click="handleSubmit">查询</btn> |
| ... | @@ -65,7 +77,7 @@ | ... | @@ -65,7 +77,7 @@ |
| 65 | </lb-table> | 77 | </lb-table> |
| 66 | </div> | 78 | </div> |
| 67 | <!-- 编辑 --> | 79 | <!-- 编辑 --> |
| 68 | <dataDetails ref="editLog" :title="title" /> | 80 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlCfdj'" /> |
| 69 | </div> | 81 | </div> |
| 70 | </template> | 82 | </template> |
| 71 | <script> | 83 | <script> |
| ... | @@ -85,8 +97,10 @@ export default { | ... | @@ -85,8 +97,10 @@ export default { |
| 85 | BDCQZH: '', | 97 | BDCQZH: '', |
| 86 | QLR: '', | 98 | QLR: '', |
| 87 | BDCDYH: '', | 99 | BDCDYH: '', |
| 88 | xxx: '', | 100 | JFJG: '', |
| 89 | xxx1: '', | 101 | JFWH: '', |
| 102 | CFJG: '', | ||
| 103 | CFWH: '', | ||
| 90 | currentPage: 1 | 104 | currentPage: 1 |
| 91 | }, | 105 | }, |
| 92 | tableData: { | 106 | tableData: { | ... | ... |
| ... | @@ -35,14 +35,14 @@ class data extends filter { | ... | @@ -35,14 +35,14 @@ class data extends filter { |
| 35 | }, | 35 | }, |
| 36 | { | 36 | { |
| 37 | label: "不动产权证号", | 37 | label: "不动产权证号", |
| 38 | prop: "bdcqzh" | 38 | prop: "bdcdjzmh" |
| 39 | }, | 39 | }, |
| 40 | { | 40 | { |
| 41 | label: "抵押类型", | 41 | label: "抵押类型", |
| 42 | render: (h, scope) => { | 42 | render: (h, scope) => { |
| 43 | return ( | 43 | return ( |
| 44 | <div> | 44 | <div> |
| 45 | <span>{this.dicStatus(scope.row.dylx, 'xxx')}</span> | 45 | <span>{this.dicStatus(scope.row.dybdclx, 'A27')}</span> |
| 46 | </div> | 46 | </div> |
| 47 | ) | 47 | ) |
| 48 | } | 48 | } |
| ... | @@ -63,11 +63,11 @@ class data extends filter { | ... | @@ -63,11 +63,11 @@ class data extends filter { |
| 63 | }, | 63 | }, |
| 64 | { | 64 | { |
| 65 | label: "被担保主债权数额", | 65 | label: "被担保主债权数额", |
| 66 | prop: "xxx" | 66 | prop: "bdbzzqse" |
| 67 | }, | 67 | }, |
| 68 | { | 68 | { |
| 69 | label: "最高债权额", | 69 | label: "最高债权额", |
| 70 | prop: "xxxx" | 70 | prop: "zgzqse" |
| 71 | }, | 71 | }, |
| 72 | { | 72 | { |
| 73 | label: "登记时间", | 73 | label: "登记时间", | ... | ... |
| ... | @@ -19,23 +19,23 @@ | ... | @@ -19,23 +19,23 @@ |
| 19 | </el-select> | 19 | </el-select> |
| 20 | </el-form-item> | 20 | </el-form-item> |
| 21 | </el-col> | 21 | </el-col> |
| 22 | <el-col :span="5"> | 22 | <!-- <el-col :span="5"> |
| 23 | <el-form-item label="坐落"> | 23 | <el-form-item label="坐落"> |
| 24 | <el-input v-model="form.ZL" placeholder="坐落"></el-input> | 24 | <el-input v-model="form.ZL" placeholder="坐落"></el-input> |
| 25 | </el-form-item> | 25 | </el-form-item> |
| 26 | </el-col> | 26 | </el-col> --> |
| 27 | <el-col :span="5"> | 27 | <el-col :span="5"> |
| 28 | <el-form-item label="不动产权证号"> | 28 | <el-form-item label="不动产权证号"> |
| 29 | <el-input v-model="form.BDCQZH" placeholder="不动产权证号"></el-input> | 29 | <el-input v-model="form.BDCQZH" placeholder="不动产权证号"></el-input> |
| 30 | </el-form-item> | 30 | </el-form-item> |
| 31 | </el-col> | 31 | </el-col> |
| 32 | </el-row> | ||
| 33 | <el-row class="mt-10"> | ||
| 34 | <el-col :span="5"> | 32 | <el-col :span="5"> |
| 35 | <el-form-item label="抵押人" label-width="80px"> | 33 | <el-form-item label="抵押人" label-width="80px"> |
| 36 | <el-input v-model="form.dyr" placeholder="抵押人"></el-input> | 34 | <el-input v-model="form.dyr" placeholder="抵押人"></el-input> |
| 37 | </el-form-item> | 35 | </el-form-item> |
| 38 | </el-col> | 36 | </el-col> |
| 37 | </el-row> | ||
| 38 | <el-row class="mt-10"> | ||
| 39 | <el-col :span="5"> | 39 | <el-col :span="5"> |
| 40 | <el-form-item label="不动产单元号"> | 40 | <el-form-item label="不动产单元号"> |
| 41 | <el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input> | 41 | <el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input> |
| ... | @@ -57,7 +57,8 @@ | ... | @@ -57,7 +57,8 @@ |
| 57 | </el-select> | 57 | </el-select> |
| 58 | </el-form-item> | 58 | </el-form-item> |
| 59 | </el-col> | 59 | </el-col> |
| 60 | <el-col :span="4" class="btnColRight"> | 60 | |
| 61 | <el-col :span="9" class="btnColRight"> | ||
| 61 | <btn nativeType="cz" @click="resetForm">重置</btn> | 62 | <btn nativeType="cz" @click="resetForm">重置</btn> |
| 62 | <btn nativeType="cx" @click="handleSubmit">查询</btn> | 63 | <btn nativeType="cx" @click="handleSubmit">查询</btn> |
| 63 | </el-col> | 64 | </el-col> |
| ... | @@ -66,12 +67,12 @@ | ... | @@ -66,12 +67,12 @@ |
| 66 | </div> | 67 | </div> |
| 67 | <div class="from-clues-content"> | 68 | <div class="from-clues-content"> |
| 68 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" | 69 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" |
| 69 | @selection-change="handleSelectionChange" @size-change="handleSizeChange" | 70 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" |
| 70 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> | 71 | :data="tableData.data"> |
| 71 | </lb-table> | 72 | </lb-table> |
| 72 | </div> | 73 | </div> |
| 73 | <!-- 编辑 --> | 74 | <!-- 编辑 --> |
| 74 | <dataDetails ref="editLog" :title="title" /> | 75 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlDyaq'" /> |
| 75 | </div> | 76 | </div> |
| 76 | </template> | 77 | </template> |
| 77 | 78 | ... | ... |
| ... | @@ -73,7 +73,7 @@ | ... | @@ -73,7 +73,7 @@ |
| 73 | </lb-table> | 73 | </lb-table> |
| 74 | </div> | 74 | </div> |
| 75 | <!-- 编辑 --> | 75 | <!-- 编辑 --> |
| 76 | <dataDetails ref="editLog" :title="title" /> | 76 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlDyiq'" /> |
| 77 | </div> | 77 | </div> |
| 78 | </template> | 78 | </template> |
| 79 | 79 | ... | ... |
| ... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
| 63 | :data="tableData.data"> | 63 | :data="tableData.data"> |
| 64 | </lb-table> | 64 | </lb-table> |
| 65 | </div> | 65 | </div> |
| 66 | <dataDetails ref="editLog" :title="title" /> | 66 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qltFwFdcqDz'"/> |
| 67 | </div> | 67 | </div> |
| 68 | </template> | 68 | </template> |
| 69 | 69 | ... | ... |
| ... | @@ -35,7 +35,7 @@ | ... | @@ -35,7 +35,7 @@ |
| 35 | :data="tableData.data"> | 35 | :data="tableData.data"> |
| 36 | </lb-table> | 36 | </lb-table> |
| 37 | </div> | 37 | </div> |
| 38 | <dataDetails ref="editLog" :title="title" /> | 38 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfFwFdcqQfsyq'" /> |
| 39 | </div> | 39 | </div> |
| 40 | </template> | 40 | </template> |
| 41 | 41 | ... | ... |
| ... | @@ -46,7 +46,7 @@ class data extends filter { | ... | @@ -46,7 +46,7 @@ class data extends filter { |
| 46 | }, | 46 | }, |
| 47 | { | 47 | { |
| 48 | label: "用途", | 48 | label: "用途", |
| 49 | prop: "tdyt" | 49 | prop: "ytmc" |
| 50 | }, | 50 | }, |
| 51 | { | 51 | { |
| 52 | label: "权利类型", | 52 | label: "权利类型", |
| ... | @@ -59,14 +59,8 @@ class data extends filter { | ... | @@ -59,14 +59,8 @@ class data extends filter { |
| 59 | }, | 59 | }, |
| 60 | }, | 60 | }, |
| 61 | { | 61 | { |
| 62 | label: "权力性质", | 62 | label: "房屋性质", |
| 63 | render: (h, scope) => { | 63 | prop: "fwxzmc" |
| 64 | return ( | ||
| 65 | <div> | ||
| 66 | <span>{this.dicStatus(scope.row.qlxz, 'A9')}</span> | ||
| 67 | </div> | ||
| 68 | ) | ||
| 69 | }, | ||
| 70 | }, | 64 | }, |
| 71 | { | 65 | { |
| 72 | label: "登记类型", | 66 | label: "登记类型", | ... | ... |
| ... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
| 63 | :data="tableData.data"> | 63 | :data="tableData.data"> |
| 64 | </lb-table> | 64 | </lb-table> |
| 65 | </div> | 65 | </div> |
| 66 | <dataDetails ref="editLog" :title="title" /> | 66 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qltFwFdcqYz'"/> |
| 67 | </div> | 67 | </div> |
| 68 | </template> | 68 | </template> |
| 69 | 69 | ... | ... |
| ... | @@ -60,7 +60,7 @@ | ... | @@ -60,7 +60,7 @@ |
| 60 | :data="tableData.data"> | 60 | :data="tableData.data"> |
| 61 | </lb-table> | 61 | </lb-table> |
| 62 | </div> | 62 | </div> |
| 63 | <dataDetails ref="editLog" :title="title" /> | 63 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qltQlGjzwsyq'" /> |
| 64 | </div> | 64 | </div> |
| 65 | </template> | 65 | </template> |
| 66 | 66 | ... | ... |
| ... | @@ -61,7 +61,7 @@ | ... | @@ -61,7 +61,7 @@ |
| 61 | </lb-table> | 61 | </lb-table> |
| 62 | <message-tips ref="msg" :message="message" /> | 62 | <message-tips ref="msg" :message="message" /> |
| 63 | </div> | 63 | </div> |
| 64 | <dataDetails ref="editLog" :title="title" /> | 64 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlHysyq'" /> |
| 65 | </div> | 65 | </div> |
| 66 | </template> | 66 | </template> |
| 67 | 67 | ... | ... |
| ... | @@ -58,7 +58,7 @@ | ... | @@ -58,7 +58,7 @@ |
| 58 | :data="tableData.data"> | 58 | :data="tableData.data"> |
| 59 | </lb-table> | 59 | </lb-table> |
| 60 | </div> | 60 | </div> |
| 61 | <dataDetails ref="editLog" :title="title" /> | 61 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlJsydsyq'"/> |
| 62 | </div> | 62 | </div> |
| 63 | </template> | 63 | </template> |
| 64 | 64 | ... | ... |
| ... | @@ -56,7 +56,7 @@ | ... | @@ -56,7 +56,7 @@ |
| 56 | :data="tableData.data"> | 56 | :data="tableData.data"> |
| 57 | </lb-table> | 57 | </lb-table> |
| 58 | </div> | 58 | </div> |
| 59 | <dataDetails ref="editLog" :title="title" /> | 59 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qltQlLq'" /> |
| 60 | </div> | 60 | </div> |
| 61 | </template> | 61 | </template> |
| 62 | 62 | ... | ... |
| ... | @@ -60,7 +60,7 @@ | ... | @@ -60,7 +60,7 @@ |
| 60 | :data="tableData.data"> | 60 | :data="tableData.data"> |
| 61 | </lb-table> | 61 | </lb-table> |
| 62 | </div> | 62 | </div> |
| 63 | <dataDetails ref="editLog" :title="title" /> | 63 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlNydsyq'" /> |
| 64 | </div> | 64 | </div> |
| 65 | </template> | 65 | </template> |
| 66 | 66 | ... | ... |
| ... | @@ -58,7 +58,7 @@ | ... | @@ -58,7 +58,7 @@ |
| 58 | :data="tableData.data"> | 58 | :data="tableData.data"> |
| 59 | </lb-table> | 59 | </lb-table> |
| 60 | </div> | 60 | </div> |
| 61 | <dataDetails ref="editLog" :title="title" /> | 61 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlTdsyq'" /> |
| 62 | </div> | 62 | </div> |
| 63 | </template> | 63 | </template> |
| 64 | 64 | ... | ... |
| ... | @@ -11,14 +11,14 @@ | ... | @@ -11,14 +11,14 @@ |
| 11 | </el-select> | 11 | </el-select> |
| 12 | </el-form-item> | 12 | </el-form-item> |
| 13 | </el-col> | 13 | </el-col> |
| 14 | <el-col :span="6"> | 14 | <!-- <el-col :span="6"> |
| 15 | <el-form-item label="权属状态"> | 15 | <el-form-item label="权属状态"> |
| 16 | <el-select v-model="form.QSZT" class="width100" clearable placeholder="权属状态"> | 16 | <el-select v-model="form.QSZT" class="width100" clearable placeholder="权属状态"> |
| 17 | <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 17 | <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
| 18 | </el-option> | 18 | </el-option> |
| 19 | </el-select> | 19 | </el-select> |
| 20 | </el-form-item> | 20 | </el-form-item> |
| 21 | </el-col> | 21 | </el-col> --> |
| 22 | <el-col :span="6"> | 22 | <el-col :span="6"> |
| 23 | <el-form-item label="不动产权证号"> | 23 | <el-form-item label="不动产权证号"> |
| 24 | <el-input v-model="form.BDCQZH" placeholder="不动产权证号"></el-input> | 24 | <el-input v-model="form.BDCQZH" placeholder="不动产权证号"></el-input> |
| ... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
| 67 | </lb-table> | 67 | </lb-table> |
| 68 | </div> | 68 | </div> |
| 69 | <!-- 编辑 --> | 69 | <!-- 编辑 --> |
| 70 | <dataDetails ref="editLog" :title="title" /> | 70 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlYgdj'" /> |
| 71 | </div> | 71 | </div> |
| 72 | </template> | 72 | </template> |
| 73 | 73 | ... | ... |
| ... | @@ -57,7 +57,7 @@ | ... | @@ -57,7 +57,7 @@ |
| 57 | </lb-table> | 57 | </lb-table> |
| 58 | </div> | 58 | </div> |
| 59 | <!-- 编辑 --> | 59 | <!-- 编辑 --> |
| 60 | <dataDetails ref="editLog" :title="title" /> | 60 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlYydj'" /> |
| 61 | </div> | 61 | </div> |
| 62 | </template> | 62 | </template> |
| 63 | 63 | ... | ... |
| ... | @@ -16,16 +16,16 @@ class data extends filter { | ... | @@ -16,16 +16,16 @@ class data extends filter { |
| 16 | ) | 16 | ) |
| 17 | }, | 17 | }, |
| 18 | }, | 18 | }, |
| 19 | { | 19 | // { |
| 20 | label: "权属状态", | 20 | // label: "权属状态", |
| 21 | render: (h, scope) => { | 21 | // render: (h, scope) => { |
| 22 | return ( | 22 | // return ( |
| 23 | <div> | 23 | // <div> |
| 24 | <span>{this.dicStatus(scope.row.QSZT, 'A22')}</span> | 24 | // <span>{this.dicStatus(scope.row.qszt, 'A22')}</span> |
| 25 | </div> | 25 | // </div> |
| 26 | ) | 26 | // ) |
| 27 | }, | 27 | // }, |
| 28 | }, | 28 | // }, |
| 29 | { | 29 | { |
| 30 | label: "业务号", | 30 | label: "业务号", |
| 31 | prop: "YWH" | 31 | prop: "YWH" |
| ... | @@ -43,10 +43,10 @@ class data extends filter { | ... | @@ -43,10 +43,10 @@ class data extends filter { |
| 43 | label: "权利人", | 43 | label: "权利人", |
| 44 | prop: "qlrmc" | 44 | prop: "qlrmc" |
| 45 | }, | 45 | }, |
| 46 | { | 46 | // { |
| 47 | label: "用途", | 47 | // label: "用途", |
| 48 | prop: "yt" | 48 | // prop: "yt" |
| 49 | }, | 49 | // }, |
| 50 | { | 50 | { |
| 51 | label: "权利类型", | 51 | label: "权利类型", |
| 52 | render: (h, scope) => { | 52 | render: (h, scope) => { |
| ... | @@ -57,16 +57,16 @@ class data extends filter { | ... | @@ -57,16 +57,16 @@ class data extends filter { |
| 57 | ) | 57 | ) |
| 58 | }, | 58 | }, |
| 59 | }, | 59 | }, |
| 60 | { | 60 | // { |
| 61 | label: "权利性质", | 61 | // label: "权利性质", |
| 62 | render: (h, scope) => { | 62 | // render: (h, scope) => { |
| 63 | return ( | 63 | // return ( |
| 64 | <div> | 64 | // <div> |
| 65 | <span>{this.dicStatus(scope.row.BDCQZH, 'A9')}</span> | 65 | // <span>{this.dicStatus(scope.row.BDCQZH, 'A9')}</span> |
| 66 | </div> | 66 | // </div> |
| 67 | ) | 67 | // ) |
| 68 | }, | 68 | // }, |
| 69 | }, | 69 | // }, |
| 70 | { | 70 | { |
| 71 | label: "登记时间", | 71 | label: "登记时间", |
| 72 | width: 140, | 72 | width: 140, | ... | ... |
| ... | @@ -11,19 +11,19 @@ | ... | @@ -11,19 +11,19 @@ |
| 11 | </el-select> | 11 | </el-select> |
| 12 | </el-form-item> | 12 | </el-form-item> |
| 13 | </el-col> | 13 | </el-col> |
| 14 | <el-col :span="6"> | 14 | <!-- <el-col :span="6"> |
| 15 | <el-form-item label="权属状态" label-width="105px"> | 15 | <el-form-item label="权属状态" label-width="105px"> |
| 16 | <el-select v-model="form.QSZT" class="width100" clearable placeholder="权属状态"> | 16 | <el-select v-model="form.QSZT" class="width100" clearable placeholder="权属状态"> |
| 17 | <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 17 | <el-option v-for="item in dicData['A22']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
| 18 | </el-option> | 18 | </el-option> |
| 19 | </el-select> | 19 | </el-select> |
| 20 | </el-form-item> | 20 | </el-form-item> |
| 21 | </el-col> | 21 | </el-col> --> |
| 22 | <el-col :span="6"> | 22 | <!-- <el-col :span="6"> |
| 23 | <el-form-item label="坐落"> | 23 | <el-form-item label="坐落"> |
| 24 | <el-input v-model="form.ZL" placeholder="请输入坐落"></el-input> | 24 | <el-input v-model="form.ZL" placeholder="请输入坐落"></el-input> |
| 25 | </el-form-item> | 25 | </el-form-item> |
| 26 | </el-col> | 26 | </el-col> --> |
| 27 | <el-col :span="6"> | 27 | <el-col :span="6"> |
| 28 | <el-form-item label="不动产权证号" label-width="105px"> | 28 | <el-form-item label="不动产权证号" label-width="105px"> |
| 29 | <el-input v-model="form.BDCQZH" placeholder="请输入不动产权证号"></el-input> | 29 | <el-input v-model="form.BDCQZH" placeholder="请输入不动产权证号"></el-input> |
| ... | @@ -61,7 +61,7 @@ | ... | @@ -61,7 +61,7 @@ |
| 61 | </lb-table> | 61 | </lb-table> |
| 62 | </div> | 62 | </div> |
| 63 | <!-- 编辑 --> | 63 | <!-- 编辑 --> |
| 64 | <dataDetails ref="editLog" :title="title" /> | 64 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlZxdj'" /> |
| 65 | </div> | 65 | </div> |
| 66 | </template> | 66 | </template> |
| 67 | 67 | ... | ... |
| ... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
| 6 | </div> | 6 | </div> |
| 7 | <div class="card2 mt-10"> | 7 | <div class="card2 mt-10"> |
| 8 | <div class="title">数据趋势</div> | 8 | <div class="title">数据趋势</div> |
| 9 | <brokenline class="Brokenline" /> | 9 | <brokenline class="brokenline" /> |
| 10 | </div> | 10 | </div> |
| 11 | </div> | 11 | </div> |
| 12 | </template> | 12 | </template> |
| ... | @@ -78,7 +78,7 @@ export default { | ... | @@ -78,7 +78,7 @@ export default { |
| 78 | margin-bottom: 10px; | 78 | margin-bottom: 10px; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | .Brokenline { | 81 | .brokenline { |
| 82 | margin: auto; | 82 | margin: auto; |
| 83 | width: 100%; | 83 | width: 100%; |
| 84 | } | 84 | } | ... | ... |
| ... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
| 18 | </p> | 18 | </p> |
| 19 | <p> | 19 | <p> |
| 20 | <span>成功率</span> | 20 | <span>成功率</span> |
| 21 | <span class="cg">99%</span> | 21 | <span class="cg">{{qxcgl}}</span> |
| 22 | </p> | 22 | </p> |
| 23 | </div> | 23 | </div> |
| 24 | </div> | 24 | </div> |
| ... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
| 41 | </p> | 41 | </p> |
| 42 | <p> | 42 | <p> |
| 43 | <span>成功率</span> | 43 | <span>成功率</span> |
| 44 | <span class="cg">99%</span> | 44 | <span class="cg">{{stcgl}}</span> |
| 45 | </p> | 45 | </p> |
| 46 | </div> | 46 | </div> |
| 47 | </div> | 47 | </div> |
| ... | @@ -60,12 +60,14 @@ export default { | ... | @@ -60,12 +60,14 @@ export default { |
| 60 | data () { | 60 | data () { |
| 61 | return { | 61 | return { |
| 62 | // 日均接入量 | 62 | // 日均接入量 |
| 63 | qxerrer: 0, | 63 | qxerrer: "", |
| 64 | qxsuccess: 0, | 64 | qxsuccess: "", |
| 65 | sterrer: 0, | 65 | sterrer: "", |
| 66 | stsuccess: 0, | 66 | stsuccess: "", |
| 67 | qxjrl: 50300, | 67 | qxjrl: "", |
| 68 | stjrl: 50300, | 68 | stjrl: "", |
| 69 | qxcgl:"", | ||
| 70 | stcgl:"" | ||
| 69 | }; | 71 | }; |
| 70 | }, | 72 | }, |
| 71 | mounted () { | 73 | mounted () { |
| ... | @@ -79,12 +81,6 @@ export default { | ... | @@ -79,12 +81,6 @@ export default { |
| 79 | stjrlList: function () { | 81 | stjrlList: function () { |
| 80 | return this.stjrl.toString().split(""); | 82 | return this.stjrl.toString().split(""); |
| 81 | }, | 83 | }, |
| 82 | sbqkgsList: function () { | ||
| 83 | const numbers = this.sbqkgs.toString().split("").reverse(); | ||
| 84 | const segs = []; | ||
| 85 | while (numbers.length) segs.push(numbers.splice(0, 3).join("")); | ||
| 86 | return segs.join(",").split("").reverse().join(""); | ||
| 87 | }, | ||
| 88 | }, | 84 | }, |
| 89 | methods: { | 85 | methods: { |
| 90 | getsthjqxjrtotal () { | 86 | getsthjqxjrtotal () { |
| ... | @@ -96,6 +92,18 @@ export default { | ... | @@ -96,6 +92,18 @@ export default { |
| 96 | XZQDM: "A20", | 92 | XZQDM: "A20", |
| 97 | }; | 93 | }; |
| 98 | let res = await work.getsthjqxjrtotal(p); | 94 | let res = await work.getsthjqxjrtotal(p); |
| 95 | this.stjrl=Number(res.result.sum) | ||
| 96 | this.qxjrl=Number(res.result.sum) | ||
| 97 | this.qxerrer=Number(res.result.qxjrerrer) | ||
| 98 | this.sterrer=Number(res.result.sthjerrer) | ||
| 99 | if(res.result.sum=="0"){ | ||
| 100 | this.qxcgl="100%" | ||
| 101 | this.stcgl="100%" | ||
| 102 | }else{ | ||
| 103 | this.qxcgl=Number(res.result.qxjrsuccess)/this.qxjrl*100+"%" | ||
| 104 | this.stcgl=Number(res.result.sthjsuccess)/Number(res.result.sum)*100+"%" | ||
| 105 | } | ||
| 106 | |||
| 99 | } catch (error) { | 107 | } catch (error) { |
| 100 | this.$refs.msg.messageShow(); | 108 | this.$refs.msg.messageShow(); |
| 101 | } | 109 | } | ... | ... |
| ... | @@ -4,9 +4,12 @@ | ... | @@ -4,9 +4,12 @@ |
| 4 | <!-- 头部搜索 --> | 4 | <!-- 头部搜索 --> |
| 5 | <div class="from-clues-header"> | 5 | <div class="from-clues-header"> |
| 6 | <el-form ref="ruleForm" :model="form" label-width="80px"> | 6 | <el-form ref="ruleForm" :model="form" label-width="80px"> |
| 7 | <el-form-item> | ||
| 8 | <Breadcrumb /> | ||
| 9 | </el-form-item> | ||
| 7 | <el-row> | 10 | <el-row> |
| 8 | <el-col :span="6"> | 11 | <el-col :span="6"> |
| 9 | <el-form-item label="行政区" label-width="60px"> | 12 | <el-form-item label="行政区"> |
| 10 | <el-select v-model="form.areacode" class="width100" filterable placeholder="请选择行政区"> | 13 | <el-select v-model="form.areacode" class="width100" filterable placeholder="请选择行政区"> |
| 11 | <el-option v-for="item in dicData['XZQ']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 14 | <el-option v-for="item in dicData['XZQ']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
| 12 | </el-option> | 15 | </el-option> | ... | ... |
src/views/home/index1.vue
deleted
100644 → 0
| 1 | <template> | ||
| 2 | <div class="home"> | ||
| 3 | <div class="home-left bgbk"> | ||
| 4 | <div class="header titlebg"> | ||
| 5 | 汉中市接入概括 | ||
| 6 | </div> | ||
| 7 | <!-- 地图 --> | ||
| 8 | <CenterLeft2Chart class="map" /> | ||
| 9 | </div> | ||
| 10 | <div class="home-right"> | ||
| 11 | <!-- 陕西省接入概括 --> | ||
| 12 | <div class="jrgk homebk"> | ||
| 13 | <div class="header titlebg"> | ||
| 14 | 陕西省接入概括 | ||
| 15 | </div> | ||
| 16 | <!-- 陕西省接入概括列表 --> | ||
| 17 | <el-row> | ||
| 18 | <el-col :span="9"> | ||
| 19 | <ul class="gkList"> | ||
| 20 | <li>总数量</li> | ||
| 21 | <div class="zsl"> | ||
| 22 | <dv-digital-flop :config="config" style="height:70px;" /> | ||
| 23 | <p></p> | ||
| 24 | </div> | ||
| 25 | </ul> | ||
| 26 | </el-col> | ||
| 27 | <el-col :span="5"> | ||
| 28 | <ul class="jrl"> | ||
| 29 | <div class="jrlList jrllsit1"> | ||
| 30 | <p v-for="(item, index) in jrlList" :key="index">{{ item }}</p> | ||
| 31 | </div> | ||
| 32 | <li>日均接入量</li> | ||
| 33 | </ul> | ||
| 34 | </el-col> | ||
| 35 | <el-col :span="5"> | ||
| 36 | <ul class="jrl"> | ||
| 37 | <div class="jrlList jrllsit2"> | ||
| 38 | <p v-for="(item, index) in dtjrlList" :key="index">{{ item }}</p> | ||
| 39 | </div> | ||
| 40 | <li>日均接入量</li> | ||
| 41 | </ul> | ||
| 42 | </el-col> | ||
| 43 | <el-col :span="5"> | ||
| 44 | <ul class="jrl"> | ||
| 45 | <div class="jrlList jrllsit3"> | ||
| 46 | <p v-for="(item, index) in ztzlList" :key="index">{{ item }}</p> | ||
| 47 | </div> | ||
| 48 | <li>总体质量</li> | ||
| 49 | </ul> | ||
| 50 | </el-col> | ||
| 51 | </el-row> | ||
| 52 | </div> | ||
| 53 | <div class="jrdgk"> | ||
| 54 | <!-- 接入点概括 --> | ||
| 55 | <div class="sxsjr homebk"> | ||
| 56 | <div class="header titlebg"> | ||
| 57 | 接入点概括 | ||
| 58 | </div> | ||
| 59 | <el-row> | ||
| 60 | <el-col :span="8" class="jrdList" v-for="(item, index) in jrdList" :key="index"> | ||
| 61 | <ul> | ||
| 62 | <li>{{ item.value }}</li> | ||
| 63 | <li>{{ item.title }}</li> | ||
| 64 | </ul> | ||
| 65 | </el-col> | ||
| 66 | </el-row> | ||
| 67 | </div> | ||
| 68 | <!-- 上报情况概括 --> | ||
| 69 | <div class="sbqkgk homebk"> | ||
| 70 | <div class="header titlebg"> | ||
| 71 | 上报情况概括 | ||
| 72 | </div> | ||
| 73 | <ul class="sbqkgs"> | ||
| 74 | <div class="sbqkgsList"> | ||
| 75 | <p v-for="(item, index) in sbqkgsList" :key="index" | ||
| 76 | :class="{ 'active': (typeof (item - 0) === 'number' && !isNaN(item - 0)) }"> | ||
| 77 | {{ item }} | ||
| 78 | </p> | ||
| 79 | </div> | ||
| 80 | <li>总数量</li> | ||
| 81 | </ul> | ||
| 82 | </div> | ||
| 83 | </div> | ||
| 84 | <!-- 底部表格 --> | ||
| 85 | <div class="jrxxlb tableClass bgbk"> | ||
| 86 | <div class="title titlebg">陕西省平台接入情况</div> | ||
| 87 | <!-- 陕西省平台接入情况table --> | ||
| 88 | <lb-table ref="table" :pagination="false" :heightNum="515" :column="tableData.columns" :data="tableData.data"> | ||
| 89 | </lb-table> | ||
| 90 | </div> | ||
| 91 | </div> | ||
| 92 | </div> | ||
| 93 | </template> | ||
| 94 | |||
| 95 | <script> | ||
| 96 | // 上报首页 | ||
| 97 | import wgsl from "./wgsl.vue"; | ||
| 98 | import CenterLeft2Chart from "@/components/Echart/Map"; | ||
| 99 | // 引入表格数据 | ||
| 100 | import data from "./data" | ||
| 101 | export default { | ||
| 102 | name: "home", | ||
| 103 | components: { wgsl, CenterLeft2Chart }, | ||
| 104 | data () { | ||
| 105 | function formatter (number) { | ||
| 106 | const numbers = number.toString().split('').reverse() | ||
| 107 | const segs = [] | ||
| 108 | while (numbers.length) segs.push(numbers.splice(0, 3).join('')) | ||
| 109 | return segs.join(',').split('').reverse().join('') | ||
| 110 | } | ||
| 111 | return { | ||
| 112 | // 总数量 | ||
| 113 | config: { | ||
| 114 | number: [6523], | ||
| 115 | content: '{nt}', | ||
| 116 | formatter, | ||
| 117 | style: { | ||
| 118 | fontSize: 50, | ||
| 119 | fontWeight: 700, | ||
| 120 | fill: '#FFDD00' | ||
| 121 | } | ||
| 122 | }, | ||
| 123 | // 日均接入量 | ||
| 124 | jjrl: 300, | ||
| 125 | // 当天接入量 | ||
| 126 | dtjrl: 100, | ||
| 127 | // 总体质量 | ||
| 128 | ztzl: 3620, | ||
| 129 | // 上报情况概括 | ||
| 130 | sbqkgs: 6296, | ||
| 131 | // 接入点概括 | ||
| 132 | jrdList: [ | ||
| 133 | { | ||
| 134 | value: 60, | ||
| 135 | title: '总数量' | ||
| 136 | }, | ||
| 137 | { | ||
| 138 | value: 60, | ||
| 139 | title: '正常' | ||
| 140 | }, | ||
| 141 | { | ||
| 142 | value: 60, | ||
| 143 | title: '异常' | ||
| 144 | } | ||
| 145 | ], | ||
| 146 | // 表格数据 | ||
| 147 | tableData: { | ||
| 148 | // 表格头部信息 | ||
| 149 | columns: data.columns(), | ||
| 150 | // 表格列表数据 | ||
| 151 | data: [{ | ||
| 152 | xzqmc: '咸阳市', | ||
| 153 | xzqzs: 100, | ||
| 154 | jrl: 300, | ||
| 155 | jscgl: 20, | ||
| 156 | dk: 60, | ||
| 157 | wjrqx: '长安县', | ||
| 158 | jrdf: 50 | ||
| 159 | }, | ||
| 160 | { | ||
| 161 | xzqmc: '咸阳市', | ||
| 162 | xzqzs: 100, | ||
| 163 | jrl: 300, | ||
| 164 | jscgl: 20, | ||
| 165 | dk: 60, | ||
| 166 | wjrqx: '长安县', | ||
| 167 | jrdf: 50 | ||
| 168 | }] | ||
| 169 | } | ||
| 170 | } | ||
| 171 | }, | ||
| 172 | computed: { | ||
| 173 | jrlList: function () { | ||
| 174 | return this.jjrl.toString().split('') | ||
| 175 | }, | ||
| 176 | dtjrlList: function () { | ||
| 177 | return this.dtjrl.toString().split('') | ||
| 178 | }, | ||
| 179 | ztzlList: function () { | ||
| 180 | return this.ztzl.toString().split('') | ||
| 181 | }, | ||
| 182 | sbqkgsList: function () { | ||
| 183 | const numbers = this.sbqkgs.toString().split('').reverse() | ||
| 184 | const segs = [] | ||
| 185 | while (numbers.length) segs.push(numbers.splice(0, 3).join('')) | ||
| 186 | return segs.join(',').split('').reverse().join('') | ||
| 187 | } | ||
| 188 | }, | ||
| 189 | methods: { | ||
| 190 | } | ||
| 191 | } | ||
| 192 | </script> | ||
| 193 | <style scoped lang="scss"> | ||
| 194 | @import "~@/styles/mixin.scss"; | ||
| 195 | @import "~@/styles/public.scss"; | ||
| 196 | @import "./home.scss"; | ||
| 197 | </style> |
| ... | @@ -8,7 +8,7 @@ class data extends filter { | ... | @@ -8,7 +8,7 @@ class data extends filter { |
| 8 | { | 8 | { |
| 9 | prop: 'jcjg', | 9 | prop: 'jcjg', |
| 10 | label: '检查结果', | 10 | label: '检查结果', |
| 11 | width: 100, | 11 | width: 90, |
| 12 | render: (h, scope) => { | 12 | render: (h, scope) => { |
| 13 | return ( | 13 | return ( |
| 14 | <div> | 14 | <div> |
| ... | @@ -22,7 +22,7 @@ class data extends filter { | ... | @@ -22,7 +22,7 @@ class data extends filter { |
| 22 | { | 22 | { |
| 23 | prop: 'rkjg', | 23 | prop: 'rkjg', |
| 24 | label: '入库结果', | 24 | label: '入库结果', |
| 25 | width: 100, | 25 | width: 80, |
| 26 | render: (h, scope) => { | 26 | render: (h, scope) => { |
| 27 | return ( | 27 | return ( |
| 28 | <div> | 28 | <div> |
| ... | @@ -36,12 +36,12 @@ class data extends filter { | ... | @@ -36,12 +36,12 @@ class data extends filter { |
| 36 | { | 36 | { |
| 37 | prop: "areacode", | 37 | prop: "areacode", |
| 38 | label: "行政区代码", | 38 | label: "行政区代码", |
| 39 | width: 100, | 39 | width: 70, |
| 40 | }, | 40 | }, |
| 41 | { | 41 | { |
| 42 | prop: "areaName", | 42 | prop: "areaName", |
| 43 | label: "行政区名称", | 43 | label: "行政区名称", |
| 44 | width: 100, | 44 | width: 70, |
| 45 | }, | 45 | }, |
| 46 | { | 46 | { |
| 47 | prop: "bizMsgid", | 47 | prop: "bizMsgid", |
| ... | @@ -50,10 +50,12 @@ class data extends filter { | ... | @@ -50,10 +50,12 @@ class data extends filter { |
| 50 | { | 50 | { |
| 51 | prop: "createdate", | 51 | prop: "createdate", |
| 52 | label: "创建时间", | 52 | label: "创建时间", |
| 53 | width: 140, | ||
| 53 | }, | 54 | }, |
| 54 | { | 55 | { |
| 55 | prop: "recflowid", | 56 | prop: "recflowid", |
| 56 | label: "业务流水号", | 57 | label: "业务流水号", |
| 58 | width: 95, | ||
| 57 | }, | 59 | }, |
| 58 | { | 60 | { |
| 59 | prop: "estatenum", | 61 | prop: "estatenum", |
| ... | @@ -63,14 +65,23 @@ class data extends filter { | ... | @@ -63,14 +65,23 @@ class data extends filter { |
| 63 | { | 65 | { |
| 64 | prop: "rectype", | 66 | prop: "rectype", |
| 65 | label: "业务编码", | 67 | label: "业务编码", |
| 68 | width: 70, | ||
| 66 | }, | 69 | }, |
| 67 | { | 70 | { |
| 68 | prop: "rectypeName", | 71 | prop: "rectypeName", |
| 69 | label: "业务名称", | 72 | label: "业务名称", |
| 73 | render: (h, scope) => { | ||
| 74 | return ( | ||
| 75 | <div> | ||
| 76 | {scope.row.rectypeName} | ||
| 77 | </div> | ||
| 78 | ) | ||
| 79 | } | ||
| 70 | }, | 80 | }, |
| 71 | { | 81 | { |
| 72 | prop: "receiveDate", | 82 | prop: "receiveDate", |
| 73 | label: "接收时间", | 83 | label: "接收时间", |
| 84 | width: 140 | ||
| 74 | } | 85 | } |
| 75 | ] | 86 | ] |
| 76 | } | 87 | } | ... | ... |
| ... | @@ -4,6 +4,9 @@ | ... | @@ -4,6 +4,9 @@ |
| 4 | <!-- 头部搜索 --> | 4 | <!-- 头部搜索 --> |
| 5 | <div class="from-clues-header"> | 5 | <div class="from-clues-header"> |
| 6 | <el-form ref="ruleForm" :model="form" label-width="100px"> | 6 | <el-form ref="ruleForm" :model="form" label-width="100px"> |
| 7 | <el-form-item> | ||
| 8 | <Breadcrumb /> | ||
| 9 | </el-form-item> | ||
| 7 | <el-row class="mb-5"> | 10 | <el-row class="mb-5"> |
| 8 | <el-col :span="6"> | 11 | <el-col :span="6"> |
| 9 | <el-form-item label="行政区" prop="qxdm"> | 12 | <el-form-item label="行政区" prop="qxdm"> |
| ... | @@ -77,7 +80,7 @@ | ... | @@ -77,7 +80,7 @@ |
| 77 | <el-form-item> | 80 | <el-form-item> |
| 78 | <btn nativeType="cz" @click="resetForm">重置</btn> | 81 | <btn nativeType="cz" @click="resetForm">重置</btn> |
| 79 | <btn nativeType="cx" @click="featchData">查询</btn> | 82 | <btn nativeType="cx" @click="featchData">查询</btn> |
| 80 | <btn nativeType="sb">入库</btn> | 83 | <btn nativeType="cx">入库</btn> |
| 81 | </el-form-item> | 84 | </el-form-item> |
| 82 | </el-col> | 85 | </el-col> |
| 83 | </el-row> | 86 | </el-row> |
| ... | @@ -91,7 +94,7 @@ | ... | @@ -91,7 +94,7 @@ |
| 91 | </lb-table> | 94 | </lb-table> |
| 92 | </div> | 95 | </div> |
| 93 | <!-- 编辑 --> | 96 | <!-- 编辑 --> |
| 94 | <dataDetails ref="editLog" :title="title" /> | 97 | <dataDetails ref="editLog" :title="title" :visiableXml="true" /> |
| 95 | </div> | 98 | </div> |
| 96 | </template> | 99 | </template> |
| 97 | 100 | ||
| ... | @@ -173,7 +176,7 @@ export default { | ... | @@ -173,7 +176,7 @@ export default { |
| 173 | .concat([ | 176 | .concat([ |
| 174 | { | 177 | { |
| 175 | label: "操作", | 178 | label: "操作", |
| 176 | width: "160", | 179 | width: "90", |
| 177 | render: (h, scope) => { | 180 | render: (h, scope) => { |
| 178 | return ( | 181 | return ( |
| 179 | <div> | 182 | <div> | ... | ... |
| ... | @@ -23,6 +23,7 @@ class data extends filter { | ... | @@ -23,6 +23,7 @@ class data extends filter { |
| 23 | }, | 23 | }, |
| 24 | { | 24 | { |
| 25 | label: '汇交状态', | 25 | label: '汇交状态', |
| 26 | width: '110', | ||
| 26 | render: (h, scope) => { | 27 | render: (h, scope) => { |
| 27 | return ( | 28 | return ( |
| 28 | <div> | 29 | <div> |
| ... | @@ -38,12 +39,12 @@ class data extends filter { | ... | @@ -38,12 +39,12 @@ class data extends filter { |
| 38 | { | 39 | { |
| 39 | prop: "areacode", | 40 | prop: "areacode", |
| 40 | label: "行政区代码", | 41 | label: "行政区代码", |
| 41 | width: 100, | 42 | width: 80, |
| 42 | }, | 43 | }, |
| 43 | { | 44 | { |
| 44 | prop: "areaName", | 45 | prop: "areaName", |
| 45 | label: "行政区名称", | 46 | label: "行政区名称", |
| 46 | width: 100, | 47 | width: 90, |
| 47 | }, | 48 | }, |
| 48 | { | 49 | { |
| 49 | prop: "bizMsgid", | 50 | prop: "bizMsgid", | ... | ... |
| ... | @@ -4,6 +4,9 @@ | ... | @@ -4,6 +4,9 @@ |
| 4 | <!-- 头部搜索 --> | 4 | <!-- 头部搜索 --> |
| 5 | <div class="from-clues-header"> | 5 | <div class="from-clues-header"> |
| 6 | <el-form ref="ruleForm" :model="form" label-width="100px"> | 6 | <el-form ref="ruleForm" :model="form" label-width="100px"> |
| 7 | <el-form-item> | ||
| 8 | <Breadcrumb /> | ||
| 9 | </el-form-item> | ||
| 7 | <el-row class="mb-5"> | 10 | <el-row class="mb-5"> |
| 8 | <el-col :span="6"> | 11 | <el-col :span="6"> |
| 9 | <el-form-item label="行政区" prop="qxdm"> | 12 | <el-form-item label="行政区" prop="qxdm"> |
| ... | @@ -42,17 +45,17 @@ | ... | @@ -42,17 +45,17 @@ |
| 42 | <el-input v-model="form.ywh" class="width100" placeholder="业务号"></el-input> | 45 | <el-input v-model="form.ywh" class="width100" placeholder="业务号"></el-input> |
| 43 | </el-form-item> | 46 | </el-form-item> |
| 44 | </el-col> | 47 | </el-col> |
| 45 | <el-col :span="3"> | 48 | <el-col :span="6"> |
| 46 | <el-form-item label="权利类型" prop="qllx"> | 49 | <el-form-item label="权利类型" prop="qllx"> |
| 47 | <el-select v-model="form.ywmc" class="width100" clearable placeholder="权利类型"> | 50 | <el-select v-model="form.qllx" class="width100" clearable placeholder="权利类型"> |
| 48 | <el-option v-for="item in dicData['A8']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 51 | <el-option v-for="item in dicData['A8']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
| 49 | </el-option> | 52 | </el-option> |
| 50 | </el-select> | 53 | </el-select> |
| 51 | </el-form-item> | 54 | </el-form-item> |
| 52 | </el-col> | 55 | </el-col> |
| 53 | <el-col :span="3"> | 56 | <el-col :span="6"> |
| 54 | <el-form-item label="登记类型" prop="djlx"> | 57 | <el-form-item label="登记类型" prop="djlx"> |
| 55 | <el-select v-model="form.ywmc" class="width100" clearable placeholder="登记类型"> | 58 | <el-select v-model="form.djlx" class="width100" clearable placeholder="登记类型"> |
| 56 | <el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> | 59 | <el-option v-for="item in dicData['A21']" :key="item.DCODE" :label="item.DNAME" :value="item.DCODE"> |
| 57 | </el-option> | 60 | </el-option> |
| 58 | </el-select> | 61 | </el-select> |
| ... | @@ -95,7 +98,7 @@ export default { | ... | @@ -95,7 +98,7 @@ export default { |
| 95 | components: { | 98 | components: { |
| 96 | dataDetails, | 99 | dataDetails, |
| 97 | }, | 100 | }, |
| 98 | data() { | 101 | data () { |
| 99 | return { | 102 | return { |
| 100 | isShow: false, | 103 | isShow: false, |
| 101 | // 开始结束日期限制 | 104 | // 开始结束日期限制 |
| ... | @@ -161,16 +164,16 @@ export default { | ... | @@ -161,16 +164,16 @@ export default { |
| 161 | title: "", | 164 | title: "", |
| 162 | }; | 165 | }; |
| 163 | }, | 166 | }, |
| 164 | mounted() { | 167 | mounted () { |
| 165 | sendThis(this); | 168 | sendThis(this); |
| 166 | }, | 169 | }, |
| 167 | methods: { | 170 | methods: { |
| 168 | // 重置表单 | 171 | // 重置表单 |
| 169 | resetForm() { | 172 | resetForm () { |
| 170 | this.$refs.ruleForm.resetFields(); | 173 | this.$refs.ruleForm.resetFields(); |
| 171 | }, | 174 | }, |
| 172 | // 初始化数据 | 175 | // 初始化数据 |
| 173 | queryClick() { | 176 | queryClick () { |
| 174 | getDataReportPage({ ...this.form, ...this.pageData }).then((res) => { | 177 | getDataReportPage({ ...this.form, ...this.pageData }).then((res) => { |
| 175 | if (res.code === 200) { | 178 | if (res.code === 200) { |
| 176 | let { total, records } = res.result; | 179 | let { total, records } = res.result; |
| ... | @@ -180,11 +183,11 @@ export default { | ... | @@ -180,11 +183,11 @@ export default { |
| 180 | }); | 183 | }); |
| 181 | }, | 184 | }, |
| 182 | // 多选 | 185 | // 多选 |
| 183 | handleSelectionChange(val) {}, | 186 | handleSelectionChange (val) { }, |
| 184 | // 上报 | 187 | // 上报 |
| 185 | handleEscalation() {}, | 188 | handleEscalation () { }, |
| 186 | // 详情 | 189 | // 详情 |
| 187 | handleDetail(row) { | 190 | handleDetail (row) { |
| 188 | this.title = row.rectypeName; | 191 | this.title = row.rectypeName; |
| 189 | this.$refs.editLog.isShow(row); | 192 | this.$refs.editLog.isShow(row); |
| 190 | }, | 193 | }, | ... | ... |
| ... | @@ -6,37 +6,22 @@ class data extends filter { | ... | @@ -6,37 +6,22 @@ class data extends filter { |
| 6 | columns () { | 6 | columns () { |
| 7 | return [ | 7 | return [ |
| 8 | { | 8 | { |
| 9 | prop: "job_name", | 9 | prop: "name", |
| 10 | label: "任务名称", | 10 | label: "菜单名称", |
| 11 | width: 130 | ||
| 12 | }, | ||
| 13 | { | ||
| 14 | prop: "description", | ||
| 15 | label: "任务描述", | ||
| 16 | width: 300 | 11 | width: 300 |
| 17 | }, | 12 | }, |
| 18 | { | 13 | { |
| 19 | prop: "cron_expression", | 14 | prop: "code", |
| 20 | label: "cron表达式" | 15 | label: "菜单代码" |
| 21 | }, | 16 | }, |
| 22 | { | 17 | { |
| 23 | prop: "bean_class", | 18 | prop: "uri", |
| 24 | width: 260, | 19 | width: 260, |
| 25 | label: "任务类" | 20 | label: "链接路径" |
| 26 | }, | 21 | }, |
| 27 | { | 22 | { |
| 28 | prop: "job_group", | 23 | prop: "icon", |
| 29 | label: "任务分组" | 24 | label: "图标" |
| 30 | }, | ||
| 31 | { | ||
| 32 | label: "状态", | ||
| 33 | render: (h, scope) => { | ||
| 34 | return ( | ||
| 35 | <div> | ||
| 36 | { this.stateStatus(scope.row.job_status) } | ||
| 37 | </div> | ||
| 38 | ) | ||
| 39 | }, | ||
| 40 | } | 25 | } |
| 41 | ] | 26 | ] |
| 42 | } | 27 | } | ... | ... |
src/views/system/menus/edit-dialog.vue
0 → 100644
| 1 | <template> | ||
| 2 | <div> | ||
| 3 | <Dialog | ||
| 4 | :title="title" | ||
| 5 | :show.sync="visible" | ||
| 6 | :width="'767px'" | ||
| 7 | @close="close()" | ||
| 8 | > | ||
| 9 | <template slot="content"> | ||
| 10 | <el-form ref="form" :model="form" :rules="rules"> | ||
| 11 | <el-row :gutter="24"> | ||
| 12 | <el-col :span="12"> | ||
| 13 | <el-form-item label="菜单名称:" prop="name" label-width="124px"> | ||
| 14 | <el-input v-model="form.name" placeholder="请输入菜单名称" /> | ||
| 15 | </el-form-item> | ||
| 16 | </el-col> | ||
| 17 | <el-col :span="12"> | ||
| 18 | <el-form-item label="图标:" label-width="54px"> | ||
| 19 | <el-input | ||
| 20 | v-model="form.icon" | ||
| 21 | placeholder="请选择图标" | ||
| 22 | :prefix-icon="form.icon" | ||
| 23 | clearable | ||
| 24 | @focus="getIconList" | ||
| 25 | /> | ||
| 26 | </el-form-item> | ||
| 27 | </el-col> | ||
| 28 | </el-row> | ||
| 29 | <el-row :gutter="24"> | ||
| 30 | <el-col :span="12"> | ||
| 31 | <el-form-item label="上级菜单:" label-width="124px"> | ||
| 32 | <el-cascader | ||
| 33 | :key="menuKey" | ||
| 34 | v-model="form.parentId" | ||
| 35 | :options="parentMenuList" | ||
| 36 | :props="setProps" | ||
| 37 | placeholder="请选择上级菜单" | ||
| 38 | clearable | ||
| 39 | @change="handleChange" | ||
| 40 | /> | ||
| 41 | </el-form-item> | ||
| 42 | </el-col> | ||
| 43 | <el-col :span="12"> | ||
| 44 | <el-form-item label="代码:" prop="code" label-width="54px"> | ||
| 45 | <el-input | ||
| 46 | v-model="codeComputed" | ||
| 47 | placeholder="请输入菜单代码" | ||
| 48 | :disabled="type === 1" | ||
| 49 | /> | ||
| 50 | </el-form-item> | ||
| 51 | </el-col> | ||
| 52 | </el-row> | ||
| 53 | <el-row :gutter="24"> | ||
| 54 | <el-col :span="24"> | ||
| 55 | <el-form-item label="链接路径:" label-width="124px"> | ||
| 56 | <el-input v-model="form.uri" placeholder="请输入链接路径" /> | ||
| 57 | </el-form-item> | ||
| 58 | </el-col> | ||
| 59 | </el-row> | ||
| 60 | <el-row :gutter="24"> | ||
| 61 | <el-col :span="24"> | ||
| 62 | <el-form-item label="浏览器跳转模式:" label-width="124px"> | ||
| 63 | <el-select | ||
| 64 | v-model="form.jumpMode" | ||
| 65 | placeholder="请选择浏览器跳转模式" | ||
| 66 | > | ||
| 67 | <el-option | ||
| 68 | v-for="item in jumpModeList" | ||
| 69 | :key="item.value" | ||
| 70 | :label="item.name" | ||
| 71 | :value="item.value" | ||
| 72 | /> | ||
| 73 | </el-select> | ||
| 74 | </el-form-item> | ||
| 75 | </el-col> | ||
| 76 | </el-row> | ||
| 77 | <el-row :gutter="24"> | ||
| 78 | <el-col :span="24"> | ||
| 79 | <el-form-item | ||
| 80 | label="配置参数:" | ||
| 81 | label-width="124px" | ||
| 82 | class="form-item-mb0" | ||
| 83 | > | ||
| 84 | <!-- 配置参数 --> | ||
| 85 | <JsonEditor | ||
| 86 | :result-infos="form.metadata" | ||
| 87 | @getJsonString="getJsonString" | ||
| 88 | /> | ||
| 89 | </el-form-item> | ||
| 90 | </el-col> | ||
| 91 | </el-row> | ||
| 92 | </el-form> | ||
| 93 | </template> | ||
| 94 | <template slot="footer"> | ||
| 95 | <el-button class="cancel-button" @click="close()">取消</el-button> | ||
| 96 | <el-button type="primary" @click="submitForm()">保存</el-button> | ||
| 97 | </template> | ||
| 98 | </Dialog> | ||
| 99 | <!-- 图标列表 --> | ||
| 100 | <IconList ref="iconList" @iconName="getIconName" /> | ||
| 101 | </div> | ||
| 102 | </template> | ||
| 103 | |||
| 104 | <script> | ||
| 105 | import Dialog from "@/components/Dialog/"; | ||
| 106 | // import JsonEditor from '@components/JsonEditors' | ||
| 107 | import JsonEditor from '../../../components/JsonEditors' | ||
| 108 | // import IconList from '@components/IconList' | ||
| 109 | import IconList from '../../../components/IconList' | ||
| 110 | import { validateCode } from '../../../utils/validate'; | ||
| 111 | export default { | ||
| 112 | name: "EditDialog", | ||
| 113 | components: { | ||
| 114 | Dialog, | ||
| 115 | JsonEditor, | ||
| 116 | IconList, | ||
| 117 | }, | ||
| 118 | data() { | ||
| 119 | return { | ||
| 120 | form: { | ||
| 121 | icon: "", | ||
| 122 | code: "", | ||
| 123 | }, | ||
| 124 | rules: { | ||
| 125 | name: [{ required: true, message: "请输入菜单名称", trigger: "blur" }], | ||
| 126 | code: [ | ||
| 127 | { required: true, message: "必填", trigger: "blur" }, | ||
| 128 | { validator: validateCode, trigger: "blur" }, | ||
| 129 | ], | ||
| 130 | }, | ||
| 131 | title: "", | ||
| 132 | type: "", | ||
| 133 | visible: false, | ||
| 134 | parentMenuList: [], | ||
| 135 | menuKey: 0, | ||
| 136 | jumpModeList: [ | ||
| 137 | { name: "在当前页面显示", value: 1 }, | ||
| 138 | { name: "跳转到新页面", value: 2 }, | ||
| 139 | ], | ||
| 140 | setProps: { | ||
| 141 | value: "id", | ||
| 142 | label: "name", | ||
| 143 | children: "children", | ||
| 144 | expandTrigger: "hover", | ||
| 145 | checkStrictly: true, // 可取消关联,选择任意一级选项 | ||
| 146 | emitPath: false, | ||
| 147 | }, | ||
| 148 | // dataUrl: api.menus, | ||
| 149 | }; | ||
| 150 | }, | ||
| 151 | computed: { | ||
| 152 | codeComputed: { | ||
| 153 | get: function() { | ||
| 154 | return this.form.code | ||
| 155 | }, | ||
| 156 | set: function(val) { | ||
| 157 | this.form.code = val.toUpperCase() | ||
| 158 | } | ||
| 159 | } | ||
| 160 | }, | ||
| 161 | created() {}, | ||
| 162 | mounted() {}, | ||
| 163 | methods: { | ||
| 164 | getParentMenuList() { | ||
| 165 | // getParentMenuListAction(id).then((res) => { | ||
| 166 | // if (res.status === 1) { | ||
| 167 | // const list = this.$dealArrChildren(res.content) | ||
| 168 | // if (id) { | ||
| 169 | // this.parentMenuList = this.$dealArrDisabled( | ||
| 170 | // this.$deepCopy(list), | ||
| 171 | // id | ||
| 172 | // ) | ||
| 173 | // this.menuKey++ | ||
| 174 | // } else { | ||
| 175 | // this.parentMenuList = list | ||
| 176 | // } | ||
| 177 | // } else { | ||
| 178 | // this.$message.error({ message: res.message, showClose: true }) | ||
| 179 | // } | ||
| 180 | // }) | ||
| 181 | }, | ||
| 182 | getIconList() { | ||
| 183 | this.$refs.iconList.show(true); | ||
| 184 | }, | ||
| 185 | // 选择图标 | ||
| 186 | getIconName(data) { | ||
| 187 | this.form.icon = data; | ||
| 188 | }, | ||
| 189 | getJsonString(data) { | ||
| 190 | this.form.metadata = data; | ||
| 191 | }, | ||
| 192 | add() { | ||
| 193 | // console.log(this.productId) | ||
| 194 | // if (!this.productId) { | ||
| 195 | // this.$message.info({ | ||
| 196 | // message: '请先选择子系统才能添加菜单,如果没有,请先添加子系统!', | ||
| 197 | // showClose: true | ||
| 198 | // }) | ||
| 199 | // return | ||
| 200 | // } | ||
| 201 | // this.getParentMenuList(this.productId) | ||
| 202 | this.visible = true; | ||
| 203 | // this.type = 0 | ||
| 204 | // this.form.jumpMode = 1 | ||
| 205 | }, | ||
| 206 | edit(record) { | ||
| 207 | // this.type = 1 | ||
| 208 | // // 若有id为编辑 | ||
| 209 | // if (record.id) { | ||
| 210 | // this.$nextTick(() => { | ||
| 211 | // this.form = Object.assign({}, record) | ||
| 212 | // this.getParentMenuList(this.productId) | ||
| 213 | // }) | ||
| 214 | // } | ||
| 215 | this.visible = true; | ||
| 216 | }, | ||
| 217 | addChild(record) { | ||
| 218 | // this.getParentMenuList(this.productId) | ||
| 219 | this.visible = true; | ||
| 220 | // this.type = 2 | ||
| 221 | // this.form.jumpMode = 1 | ||
| 222 | // this.form.parentId = record.id | ||
| 223 | }, | ||
| 224 | handleChange(value) { | ||
| 225 | // this.form.parentId = value | ||
| 226 | }, | ||
| 227 | submitForm(submitType) { | ||
| 228 | // this.$refs.form.validate((valid) => { | ||
| 229 | // if (valid) { | ||
| 230 | // let method = ""; | ||
| 231 | // let url = ""; | ||
| 232 | // const formData = this.form; | ||
| 233 | // formData.productId = this.productId; | ||
| 234 | // if (!formData.id) { | ||
| 235 | // method = "post"; | ||
| 236 | // url = this.dataUrl; | ||
| 237 | // } else { | ||
| 238 | // method = "put"; | ||
| 239 | // url = `${this.dataUrl}/${formData.id}`; | ||
| 240 | // } | ||
| 241 | // httpAction(url, formData, method) | ||
| 242 | // .then((res) => { | ||
| 243 | // if (res.status === 1) { | ||
| 244 | // this.$message.success({ | ||
| 245 | // message: res.message, | ||
| 246 | // showClose: true, | ||
| 247 | // }); | ||
| 248 | // // this.$emit("ok"); | ||
| 249 | // // this.type 0新增 1编辑 2添加子 | ||
| 250 | // if (this.type === 0) { | ||
| 251 | // if (submitType === 1) { | ||
| 252 | // this.close(); | ||
| 253 | // } else { | ||
| 254 | // this.resetForm(); | ||
| 255 | // } | ||
| 256 | // } else if (this.type === 1) { | ||
| 257 | // this.close(); | ||
| 258 | // } else if (this.type === 2) { | ||
| 259 | // if (submitType === 1) { | ||
| 260 | // this.close(); | ||
| 261 | // } else { | ||
| 262 | // this.resetForm(); | ||
| 263 | // this.form.parentId = formData.parentId; | ||
| 264 | // } | ||
| 265 | // } | ||
| 266 | // this.$emit("ok"); | ||
| 267 | // } else { | ||
| 268 | // this.$message.error({ message: res.message, showClose: true }); | ||
| 269 | // } | ||
| 270 | // }) | ||
| 271 | // .catch((err) => { | ||
| 272 | // console.log(err); | ||
| 273 | // }); | ||
| 274 | // } | ||
| 275 | // }); | ||
| 276 | }, | ||
| 277 | resetForm() { | ||
| 278 | this.$refs.form.resetFields(); | ||
| 279 | this.form = { | ||
| 280 | icon: "", | ||
| 281 | code: "", | ||
| 282 | }; | ||
| 283 | }, | ||
| 284 | close() { | ||
| 285 | this.resetForm(); | ||
| 286 | this.visible = false; | ||
| 287 | }, | ||
| 288 | }, | ||
| 289 | }; | ||
| 290 | </script> | ||
| 291 | <style scoped lang="scss"> | ||
| 292 | .el-form { | ||
| 293 | .el-input { | ||
| 294 | .el-input__icon { | ||
| 295 | font-size: 14px; | ||
| 296 | // color: #3AA3F8 !important; | ||
| 297 | } | ||
| 298 | } | ||
| 299 | } | ||
| 300 | </style> |
This diff is collapsed.
Click to expand it.
| ... | @@ -7,36 +7,17 @@ class data extends filter { | ... | @@ -7,36 +7,17 @@ class data extends filter { |
| 7 | return [ | 7 | return [ |
| 8 | { | 8 | { |
| 9 | prop: "job_name", | 9 | prop: "job_name", |
| 10 | label: "任务名称", | 10 | label: "角色名称", |
| 11 | width: 130 | 11 | width: 330 |
| 12 | }, | 12 | }, |
| 13 | { | 13 | { |
| 14 | prop: "description", | 14 | prop: "description", |
| 15 | label: "任务描述", | 15 | label: "类别", |
| 16 | width: 300 | 16 | width: 400 |
| 17 | }, | 17 | }, |
| 18 | { | 18 | { |
| 19 | prop: "cron_expression", | 19 | prop: "cron_expression", |
| 20 | label: "cron表达式" | 20 | label: "备注" |
| 21 | }, | ||
| 22 | { | ||
| 23 | prop: "bean_class", | ||
| 24 | width: 260, | ||
| 25 | label: "任务类" | ||
| 26 | }, | ||
| 27 | { | ||
| 28 | prop: "job_group", | ||
| 29 | label: "任务分组" | ||
| 30 | }, | ||
| 31 | { | ||
| 32 | label: "状态", | ||
| 33 | render: (h, scope) => { | ||
| 34 | return ( | ||
| 35 | <div> | ||
| 36 | { this.stateStatus(scope.row.job_status) } | ||
| 37 | </div> | ||
| 38 | ) | ||
| 39 | }, | ||
| 40 | } | 21 | } |
| 41 | ] | 22 | ] |
| 42 | } | 23 | } | ... | ... |
src/views/system/roles/edit-dialog.vue
0 → 100644
| 1 | <!-- 新增 & 修改角色 --> | ||
| 2 | <template> | ||
| 3 | <Dialog | ||
| 4 | :title="dialogTitle" | ||
| 5 | :show.sync="showAddEditDialog" | ||
| 6 | :width="'767px'" | ||
| 7 | @close="handleCloseDialog()" | ||
| 8 | > | ||
| 9 | <template slot="content"> | ||
| 10 | <el-form ref="form" :model="dialogForm" :rules="rules" label-width="82px"> | ||
| 11 | <el-row :gutter="24"> | ||
| 12 | <el-col :span="12"> | ||
| 13 | <el-form-item label="角色名称:" prop="roleName"> | ||
| 14 | <el-input | ||
| 15 | v-model="dialogForm.roleName" | ||
| 16 | clearable | ||
| 17 | placeholder="请输入角色名称" | ||
| 18 | /> | ||
| 19 | </el-form-item> | ||
| 20 | </el-col> | ||
| 21 | <el-col :span="12"> | ||
| 22 | <el-form-item label="角色类型:" prop="roleType"> | ||
| 23 | <!-- <el-select v-model="dialogForm.roleType.value" placeholder="请输入角色类型"> | ||
| 24 | <el-option | ||
| 25 | v-for="item in roleTypeOptions" | ||
| 26 | :key="item.value" | ||
| 27 | :label="item.name" | ||
| 28 | :value="item.value"> | ||
| 29 | </el-option> | ||
| 30 | </el-select> --> | ||
| 31 | <el-input | ||
| 32 | v-model="dialogForm.roleType" | ||
| 33 | clearable | ||
| 34 | placeholder="请输入角色类型" | ||
| 35 | /> | ||
| 36 | </el-form-item> | ||
| 37 | </el-col> | ||
| 38 | </el-row> | ||
| 39 | <br> | ||
| 40 | <el-row> | ||
| 41 | <el-col :span="24"> | ||
| 42 | <el-form-item label="备注:" class="form-item-mb0"> | ||
| 43 | <el-input | ||
| 44 | v-model="dialogForm.roleTextArea" | ||
| 45 | type="textarea" | ||
| 46 | placeholder="请输入内容" | ||
| 47 | /> | ||
| 48 | </el-form-item> | ||
| 49 | </el-col> | ||
| 50 | </el-row> | ||
| 51 | </el-form> | ||
| 52 | </template> | ||
| 53 | <template slot="footer"> | ||
| 54 | <el-button | ||
| 55 | class="cancel-button" | ||
| 56 | @click="handleCloseDialog" | ||
| 57 | >取消</el-button> | ||
| 58 | |||
| 59 | <el-button | ||
| 60 | type="primary" | ||
| 61 | @click="handleSaveRole()" | ||
| 62 | >保存</el-button> | ||
| 63 | </template> | ||
| 64 | </Dialog> | ||
| 65 | </template> | ||
| 66 | |||
| 67 | <script> | ||
| 68 | import Dialog from "@/components/Dialog/"; | ||
| 69 | |||
| 70 | export default { | ||
| 71 | components: { | ||
| 72 | Dialog | ||
| 73 | }, | ||
| 74 | data() { | ||
| 75 | return { | ||
| 76 | dialogTitle: '', | ||
| 77 | showAddEditDialog: false, | ||
| 78 | menuType: '', | ||
| 79 | roleId: '', | ||
| 80 | sort: 0, | ||
| 81 | dialogForm: { | ||
| 82 | roleName: '', | ||
| 83 | roleType: '', | ||
| 84 | roleTextArea: '' | ||
| 85 | }, | ||
| 86 | rules: { | ||
| 87 | roleName: [ | ||
| 88 | { required: true, message: '请输入角色名称', trigger: 'blur' } | ||
| 89 | ], | ||
| 90 | roleType: [ | ||
| 91 | { required: true, message: '请输入角色类型', trigger: 'blur' } | ||
| 92 | ] | ||
| 93 | }, | ||
| 94 | roleTypeOptions: [ | ||
| 95 | { name: '定制', value: '定制' }, | ||
| 96 | { name: '其他', value: '其他' } | ||
| 97 | ] | ||
| 98 | } | ||
| 99 | }, | ||
| 100 | methods: { | ||
| 101 | // 保存新增或关闭事件 | ||
| 102 | handleSaveRole(val) { | ||
| 103 | this.$refs.form.validate((valid) => { | ||
| 104 | if (valid) { | ||
| 105 | try { | ||
| 106 | const params = { | ||
| 107 | category: this.menuType, | ||
| 108 | description: this.dialogForm.roleTextArea, | ||
| 109 | name: this.dialogForm.roleName, | ||
| 110 | sort: this.sort, | ||
| 111 | type: this.dialogForm.roleType | ||
| 112 | } | ||
| 113 | if (this.roleId) { | ||
| 114 | // params.id = this.roleId | ||
| 115 | // httpAction(`${api.roles}/${params.id}`, params, 'post').then( | ||
| 116 | // (res) => { | ||
| 117 | // if (res.status === 1) { | ||
| 118 | // this.$message.success({ | ||
| 119 | // message: '修改成功', | ||
| 120 | // showClose: true | ||
| 121 | // }) | ||
| 122 | // this.dialogForm = { | ||
| 123 | // roleName: '', | ||
| 124 | // roleType: '' | ||
| 125 | // } | ||
| 126 | // this.showAddEditDialog = val | ||
| 127 | // this.$emit('ok', this.menuType) | ||
| 128 | // } else { | ||
| 129 | // this.$message.error({ | ||
| 130 | // message: res.message, | ||
| 131 | // showClose: true | ||
| 132 | // }) | ||
| 133 | // } | ||
| 134 | // } | ||
| 135 | // ) | ||
| 136 | } else { | ||
| 137 | // httpAction(api.roles, params, 'post').then((res) => { | ||
| 138 | // if (res.status === 1) { | ||
| 139 | // this.$message.success({ | ||
| 140 | // message: '新增成功', | ||
| 141 | // showClose: true | ||
| 142 | // }) | ||
| 143 | // this.dialogForm = { | ||
| 144 | // roleName: '', | ||
| 145 | // roleType: '' | ||
| 146 | // } | ||
| 147 | // this.showAddEditDialog = val | ||
| 148 | // this.$emit('ok', this.menuType) | ||
| 149 | // } else { | ||
| 150 | // this.$message.error({ | ||
| 151 | // message: res.message, | ||
| 152 | // showClose: true | ||
| 153 | // }) | ||
| 154 | // } | ||
| 155 | // }) | ||
| 156 | } | ||
| 157 | } catch (e) { | ||
| 158 | console.error(e) | ||
| 159 | } | ||
| 160 | } | ||
| 161 | }) | ||
| 162 | }, | ||
| 163 | // 取消事件 | ||
| 164 | handleCloseDialog() { | ||
| 165 | this.dialogForm = { | ||
| 166 | roleName: '', | ||
| 167 | roleType: '' | ||
| 168 | } | ||
| 169 | this.showAddEditDialog = false | ||
| 170 | } | ||
| 171 | } | ||
| 172 | } | ||
| 173 | </script> | ||
| 174 | <style scoped lang="scss"></style> |
This diff is collapsed.
Click to expand it.
src/views/system/roles/roleslistdiglog.vue
0 → 100644
| 1 | <template> | ||
| 2 | <Dialog :title="title" :show.sync="visible" :width="'715px'" @close="close()"> | ||
| 3 | <template slot="content"> | ||
| 4 | <vxe-table | ||
| 5 | show-overflow | ||
| 6 | :data="memberList" | ||
| 7 | border | ||
| 8 | class="header-bg-type1" | ||
| 9 | auto-resize | ||
| 10 | :checkbox-config="{ highlight: true, range: true }" | ||
| 11 | highlight-hover-row | ||
| 12 | max-height="500px" | ||
| 13 | :empty-render="{ name: 'NotData' }" | ||
| 14 | > | ||
| 15 | <template #empty> | ||
| 16 | <table-empty /> | ||
| 17 | </template> | ||
| 18 | <vxe-table-column | ||
| 19 | type="checkbox" | ||
| 20 | width="60" | ||
| 21 | align="left" | ||
| 22 | fixed="left" | ||
| 23 | /> | ||
| 24 | <vxe-table-column | ||
| 25 | field="code" | ||
| 26 | title="工号" | ||
| 27 | fixed="left" | ||
| 28 | min-width="100" | ||
| 29 | show-header-overflow="tooltip" | ||
| 30 | show-overflow="tooltip" | ||
| 31 | align="left" | ||
| 32 | /> | ||
| 33 | <vxe-table-column | ||
| 34 | title="姓名" | ||
| 35 | fixed="left" | ||
| 36 | show-header-overflow="tooltip" | ||
| 37 | show-overflow="tooltip" | ||
| 38 | > | ||
| 39 | <template slot-scope="scope"> | ||
| 40 | <svg-icon | ||
| 41 | :icon-class=" | ||
| 42 | scope.row.sex === '0' | ||
| 43 | ? 'male' | ||
| 44 | : scope.row.sex === '1' | ||
| 45 | ? 'female' | ||
| 46 | : 'secrecy' | ||
| 47 | " | ||
| 48 | /> | ||
| 49 | {{ scope.row.name }} | ||
| 50 | </template> | ||
| 51 | </vxe-table-column> | ||
| 52 | <vxe-table-column | ||
| 53 | field="loginName" | ||
| 54 | title="用户名" | ||
| 55 | fixed="left" | ||
| 56 | show-header-overflow="tooltip" | ||
| 57 | show-overflow="tooltip" | ||
| 58 | /> | ||
| 59 | <vxe-table-column | ||
| 60 | field="departmentName" | ||
| 61 | title="部门" | ||
| 62 | show-header-overflow="tooltip" | ||
| 63 | show-overflow="tooltip" | ||
| 64 | /> | ||
| 65 | </vxe-table> | ||
| 66 | </template> | ||
| 67 | <template slot="footer"> | ||
| 68 | <el-button type="primary" class="save" @click="submitForm(1)" | ||
| 69 | >保存</el-button | ||
| 70 | > | ||
| 71 | <el-button class="cancel-button" @click="close()">取消</el-button> | ||
| 72 | </template> | ||
| 73 | </Dialog> | ||
| 74 | </template> | ||
| 75 | |||
| 76 | <script> | ||
| 77 | import Dialog from "@/components/Dialog/"; | ||
| 78 | export default { | ||
| 79 | name: "", | ||
| 80 | components: { Dialog }, | ||
| 81 | props: {}, | ||
| 82 | data() { | ||
| 83 | return { | ||
| 84 | form: { | ||
| 85 | sex: "0", | ||
| 86 | }, | ||
| 87 | memberList: [ | ||
| 88 | { | ||
| 89 | id: "3127e455-43ba-45ff-9326-0e02ef89485e", | ||
| 90 | createdAt: null, | ||
| 91 | updatedAt: "2022-08-04T03:38:27.626+0000", | ||
| 92 | createdBy: null, | ||
| 93 | updatedBy: "3127e455-43ba-45ff-9326-0e02ef89485e", | ||
| 94 | sort: 1, | ||
| 95 | name: "超级管理员", | ||
| 96 | loginName: "admin", | ||
| 97 | password: "05eb15777e8fd1d61c840472e7267f61d432f63340d86b59", | ||
| 98 | passwordSalt: "5178114777136485", | ||
| 99 | email: null, | ||
| 100 | lastLoginTime: null, | ||
| 101 | mobilePhone: "18291003568", | ||
| 102 | status: "ACTIVE", | ||
| 103 | passwordChangeTime: "2021-12-10T08:01:01.569+0000", | ||
| 104 | idCard: "612725202111021521", | ||
| 105 | departmentId: "2eae5304-544f-4f5b-b354-8f5d47433c9b", | ||
| 106 | organizationId: "0bca67ae-1d9e-4b41-b057-f165586d24aa", | ||
| 107 | sex: "0", | ||
| 108 | isDuty: true, | ||
| 109 | code: "123324", | ||
| 110 | jobLevel: null, | ||
| 111 | telephone: "028-87720898", | ||
| 112 | address: "办公地点修改测试", | ||
| 113 | isLocked: false, | ||
| 114 | departmentName: "研发部", | ||
| 115 | _X_ROW_KEY: "row_276", | ||
| 116 | }, | ||
| 117 | ], | ||
| 118 | title: "", | ||
| 119 | type: "", | ||
| 120 | visible: false, | ||
| 121 | showLoginName: false, | ||
| 122 | options: [], | ||
| 123 | setProps: { | ||
| 124 | value: "id", | ||
| 125 | label: "name", | ||
| 126 | children: "children", | ||
| 127 | expandTrigger: "hover", | ||
| 128 | checkStrictly: true, // 可取消关联,选择任意一级选项 | ||
| 129 | emitPath: false, | ||
| 130 | }, | ||
| 131 | sexList: [], | ||
| 132 | levelList: [], | ||
| 133 | organizationId: "", // 组织机构ID | ||
| 134 | departmentId: "", // 部门ID | ||
| 135 | }; | ||
| 136 | }, | ||
| 137 | computed: {}, | ||
| 138 | watch: {}, | ||
| 139 | created() {}, | ||
| 140 | mounted() {}, | ||
| 141 | methods: { | ||
| 142 | adds() { | ||
| 143 | this.visible = true; | ||
| 144 | }, | ||
| 145 | edit(record) { | ||
| 146 | this.visible = true; | ||
| 147 | }, | ||
| 148 | handleChange(value) { | ||
| 149 | this.form.departmentId = value; | ||
| 150 | }, | ||
| 151 | |||
| 152 | close() { | ||
| 153 | // this.resetForm() | ||
| 154 | this.visible = false; | ||
| 155 | }, | ||
| 156 | }, | ||
| 157 | }; | ||
| 158 | </script> | ||
| 159 | <style scoped lang="scss"> | ||
| 160 | .el-form { | ||
| 161 | .el-form-item__content { | ||
| 162 | .el-radio { | ||
| 163 | margin-right: 6px; | ||
| 164 | } | ||
| 165 | } | ||
| 166 | .el-checkbox { | ||
| 167 | line-height: 40px; | ||
| 168 | } | ||
| 169 | .col-pd0 { | ||
| 170 | padding: 0 !important; | ||
| 171 | } | ||
| 172 | } | ||
| 173 | </style> |
| ... | @@ -21,7 +21,6 @@ | ... | @@ -21,7 +21,6 @@ |
| 21 | :data="tableData.data"> | 21 | :data="tableData.data"> |
| 22 | </lb-table> | 22 | </lb-table> |
| 23 | <add-task ref="task" :taskData="taskData" /> | 23 | <add-task ref="task" :taskData="taskData" /> |
| 24 | <message-tips ref="msg" :message="message" /> | ||
| 25 | </div> | 24 | </div> |
| 26 | </div> | 25 | </div> |
| 27 | </template> | 26 | </template> |
| ... | @@ -123,7 +122,6 @@ export default { | ... | @@ -123,7 +122,6 @@ export default { |
| 123 | } | 122 | } |
| 124 | } catch (error) { | 123 | } catch (error) { |
| 125 | this.message = error | 124 | this.message = error |
| 126 | this.$refs.msg.messageShow() | ||
| 127 | } | 125 | } |
| 128 | }, | 126 | }, |
| 129 | // 暂停 | 127 | // 暂停 | ... | ... |
| ... | @@ -6,37 +6,35 @@ class data extends filter { | ... | @@ -6,37 +6,35 @@ class data extends filter { |
| 6 | columns () { | 6 | columns () { |
| 7 | return [ | 7 | return [ |
| 8 | { | 8 | { |
| 9 | prop: "job_name", | 9 | prop: "code", |
| 10 | label: "任务名称", | 10 | label: "工号", |
| 11 | width: 130 | 11 | width: 130 |
| 12 | }, | 12 | }, |
| 13 | { | 13 | { |
| 14 | prop: "description", | 14 | prop: "name", |
| 15 | label: "任务描述", | 15 | label: "姓名", |
| 16 | width: 300 | 16 | width: 300 |
| 17 | }, | 17 | }, |
| 18 | { | 18 | { |
| 19 | prop: "cron_expression", | 19 | prop: "loginName", |
| 20 | label: "cron表达式" | 20 | label: "用户名" |
| 21 | }, | 21 | }, |
| 22 | { | 22 | { |
| 23 | prop: "bean_class", | 23 | prop: "isDuty", |
| 24 | width: 260, | 24 | width: 260, |
| 25 | label: "任务类" | 25 | label: "负责人" |
| 26 | }, | 26 | }, |
| 27 | { | 27 | { |
| 28 | prop: "job_group", | 28 | prop: "departmentName", |
| 29 | label: "任务分组" | 29 | label: "所属部门" |
| 30 | }, | 30 | }, |
| 31 | { | 31 | { |
| 32 | label: "状态", | 32 | prop: "job_group", |
| 33 | render: (h, scope) => { | 33 | label: "职位" |
| 34 | return ( | ||
| 35 | <div> | ||
| 36 | { this.stateStatus(scope.row.job_status) } | ||
| 37 | </div> | ||
| 38 | ) | ||
| 39 | }, | 34 | }, |
| 35 | { | ||
| 36 | prop: "telephone", | ||
| 37 | label: "电话" | ||
| 40 | } | 38 | } |
| 41 | ] | 39 | ] |
| 42 | } | 40 | } | ... | ... |
src/views/system/users/edit-dialog.vue
0 → 100644
| 1 | <template> | ||
| 2 | <Dialog :title="title" :show.sync="visible" :width="'715px'" @close="close()"> | ||
| 3 | <template slot="content"> | ||
| 4 | <el-form ref="form" :model="form" :rules="rules"> | ||
| 5 | <el-row :gutter="24"> | ||
| 6 | <el-col :span="11"> | ||
| 7 | <el-form-item label="姓名:" prop="name" label-width="100px"> | ||
| 8 | <el-input v-model="form.name" placeholder="请输入姓名" /> | ||
| 9 | </el-form-item> | ||
| 10 | </el-col> | ||
| 11 | <el-col :span="13"> | ||
| 12 | <el-col :span="18" class="col-pd0"> | ||
| 13 | <el-form-item label="性别:" label-width="72px"> | ||
| 14 | <el-radio | ||
| 15 | v-for="(item, index) in sexList" | ||
| 16 | :key="index" | ||
| 17 | v-model="form.sex" | ||
| 18 | :label="item.value" | ||
| 19 | >{{ item.name }}</el-radio | ||
| 20 | > | ||
| 21 | </el-form-item> | ||
| 22 | </el-col> | ||
| 23 | <el-col :span="6"> | ||
| 24 | <el-checkbox v-model="form.isDuty">负责人</el-checkbox> | ||
| 25 | </el-col> | ||
| 26 | </el-col> | ||
| 27 | </el-row> | ||
| 28 | <el-row :gutter="24"> | ||
| 29 | <el-col :span="11"> | ||
| 30 | <el-form-item label="工号:" prop="code" label-width="100px"> | ||
| 31 | <el-input v-model="form.code" placeholder="请输入工号" /> | ||
| 32 | </el-form-item> | ||
| 33 | </el-col> | ||
| 34 | <el-col :span="13"> | ||
| 35 | <el-form-item label="用户名:" prop="loginName" label-width="72px"> | ||
| 36 | <el-input | ||
| 37 | v-model="form.loginName" | ||
| 38 | :disabled="showLoginName" | ||
| 39 | placeholder="请输入用户名" | ||
| 40 | /> | ||
| 41 | </el-form-item> | ||
| 42 | </el-col> | ||
| 43 | </el-row> | ||
| 44 | <el-row :gutter="24"> | ||
| 45 | <el-col :span="11"> | ||
| 46 | <el-form-item label="身份证号码:" label-width="100px"> | ||
| 47 | <el-input v-model="form.idCard" placeholder="请输入身份证号码" /> | ||
| 48 | </el-form-item> | ||
| 49 | </el-col> | ||
| 50 | <el-col :span="13"> | ||
| 51 | <el-form-item | ||
| 52 | label="手机号码:" | ||
| 53 | prop="mobilePhone" | ||
| 54 | label-width="72px" | ||
| 55 | > | ||
| 56 | <el-input | ||
| 57 | v-model="form.mobilePhone" | ||
| 58 | placeholder="请输入手机号码" | ||
| 59 | /> | ||
| 60 | </el-form-item> | ||
| 61 | </el-col> | ||
| 62 | </el-row> | ||
| 63 | <el-row :gutter="24"> | ||
| 64 | <el-col :span="11"> | ||
| 65 | <el-form-item label="最高职务级别:" label-width="100px"> | ||
| 66 | <el-select | ||
| 67 | v-model="form.jobLevel" | ||
| 68 | placeholder="请选择最高职务级别" | ||
| 69 | > | ||
| 70 | <el-option | ||
| 71 | v-for="item in levelList" | ||
| 72 | :key="item.value" | ||
| 73 | :label="item.name" | ||
| 74 | :value="item.value" | ||
| 75 | /> | ||
| 76 | </el-select> | ||
| 77 | </el-form-item> | ||
| 78 | </el-col> | ||
| 79 | <el-col :span="13"> | ||
| 80 | <el-form-item label="办公电话:" prop="telephone" label-width="72px"> | ||
| 81 | <el-input v-model="form.telephone" placeholder="请输入办公电话" /> | ||
| 82 | </el-form-item> | ||
| 83 | </el-col> | ||
| 84 | </el-row> | ||
| 85 | <el-row :gutter="24"> | ||
| 86 | <el-col :span="24"> | ||
| 87 | <el-form-item | ||
| 88 | label="办公地点:" | ||
| 89 | label-width="100px" | ||
| 90 | class="form-item-mb0" | ||
| 91 | > | ||
| 92 | <el-input v-model="form.address" placeholder="请输入办公地点" /> | ||
| 93 | </el-form-item> | ||
| 94 | </el-col> | ||
| 95 | </el-row> | ||
| 96 | </el-form> | ||
| 97 | </template> | ||
| 98 | <template slot="footer"> | ||
| 99 | <el-button type="primary" class="save" @click="submitForm(1)">保存</el-button> | ||
| 100 | <el-button class="cancel-button" @click="close()">取消</el-button> | ||
| 101 | </template> | ||
| 102 | </Dialog> | ||
| 103 | </template> | ||
| 104 | |||
| 105 | <script> | ||
| 106 | import Dialog from "@/components/Dialog/"; | ||
| 107 | export default { | ||
| 108 | name: "", | ||
| 109 | components: { Dialog }, | ||
| 110 | props: {}, | ||
| 111 | data() { | ||
| 112 | return { | ||
| 113 | form: { | ||
| 114 | sex: "0", | ||
| 115 | }, | ||
| 116 | rules: { | ||
| 117 | name: [{ required: true, message: "请输入姓名", trigger: "blur" }], | ||
| 118 | code: [{ required: true, message: "请输入工号", trigger: "blur" }], | ||
| 119 | mobilePhone: [{ validator: "sddd", trigger: "blur" }], | ||
| 120 | loginName: [ | ||
| 121 | { required: true, message: "请输入用户名", trigger: "blur" }, | ||
| 122 | ], | ||
| 123 | }, | ||
| 124 | title: "", | ||
| 125 | visible: false, | ||
| 126 | showLoginName: false, | ||
| 127 | sexList: [{lable:"0",value:"0",name:"男"},{lable:"1",value:"1",name:"女"}], | ||
| 128 | levelList: [{lable:"0",value:"0",name:"干事"},{lable:"1",value:"1",name:"经理"}], | ||
| 129 | organizationId: "", // 组织机构ID | ||
| 130 | departmentId: "", // 部门ID | ||
| 131 | }; | ||
| 132 | }, | ||
| 133 | computed: {}, | ||
| 134 | watch: {}, | ||
| 135 | created() {}, | ||
| 136 | mounted() {}, | ||
| 137 | methods: { | ||
| 138 | // initDictConfig() { | ||
| 139 | // getDictItems('XB').then((res) => { | ||
| 140 | // if (res.status === 1) { | ||
| 141 | // this.sexList = res.content | ||
| 142 | // } else { | ||
| 143 | // this.$message.error({ message: res.message, showClose: true }) | ||
| 144 | // } | ||
| 145 | // }) | ||
| 146 | // getDictItems('ZWJB').then((res) => { | ||
| 147 | // if (res.status === 1) { | ||
| 148 | // this.levelList = res.content | ||
| 149 | // } else { | ||
| 150 | // this.$message.error({ message: res.message, showClose: true }) | ||
| 151 | // } | ||
| 152 | // }) | ||
| 153 | // }, | ||
| 154 | add() { | ||
| 155 | this.visible = true; | ||
| 156 | // this.type = 0 | ||
| 157 | this.showLoginName = false | ||
| 158 | }, | ||
| 159 | edit(record) { | ||
| 160 | // this.initDictConfig() | ||
| 161 | this.showLoginName = true | ||
| 162 | // 若有id为编辑 | ||
| 163 | if (record) { | ||
| 164 | this.$nextTick(() => { | ||
| 165 | this.form = Object.assign({}, record) | ||
| 166 | }) | ||
| 167 | } | ||
| 168 | this.visible = true | ||
| 169 | }, | ||
| 170 | handleChange(value) { | ||
| 171 | this.form.departmentId = value; | ||
| 172 | }, | ||
| 173 | submitForm(submitType) { | ||
| 174 | this.$refs.form.validate((valid) => { | ||
| 175 | if (valid) { | ||
| 176 | let method = '' | ||
| 177 | let url = '' | ||
| 178 | const formData = this.form | ||
| 179 | if (!formData.id) { | ||
| 180 | method = 'post' | ||
| 181 | url = this.dataUrl | ||
| 182 | } else { | ||
| 183 | method = 'put' | ||
| 184 | url = `${this.dataUrl}/${formData.id}` | ||
| 185 | } | ||
| 186 | httpAction(url, formData, method).then((res) => { | ||
| 187 | if (res.status === 1) { | ||
| 188 | this.$message.success({ message: res.message, showClose: true }) | ||
| 189 | // this.type 0新增 1编辑 | ||
| 190 | if (this.type === 0) { | ||
| 191 | // submitType 1需要关闭页面 0保存&新增暂不关闭页面 | ||
| 192 | if (submitType === 1) { | ||
| 193 | this.close() | ||
| 194 | } else { | ||
| 195 | this.resetForm() | ||
| 196 | } | ||
| 197 | } else if (this.type === 1) { | ||
| 198 | this.close() | ||
| 199 | } | ||
| 200 | this.$emit('ok') | ||
| 201 | } else { | ||
| 202 | this.$message.error({ message: res.message, showClose: true }) | ||
| 203 | } | ||
| 204 | }) | ||
| 205 | } else { | ||
| 206 | console.log('提交错误!!!') | ||
| 207 | return false | ||
| 208 | } | ||
| 209 | }) | ||
| 210 | }, | ||
| 211 | resetForm() { | ||
| 212 | this.form = { | ||
| 213 | sex: '0' | ||
| 214 | } | ||
| 215 | this.$refs.form.resetFields() | ||
| 216 | }, | ||
| 217 | close() { | ||
| 218 | // this.resetForm() | ||
| 219 | this.visible = false; | ||
| 220 | }, | ||
| 221 | }, | ||
| 222 | }; | ||
| 223 | </script> | ||
| 224 | <style scoped lang="scss"> | ||
| 225 | .el-form { | ||
| 226 | .el-form-item__content { | ||
| 227 | .el-radio { | ||
| 228 | margin-right: 6px; | ||
| 229 | } | ||
| 230 | } | ||
| 231 | .el-checkbox { | ||
| 232 | line-height: 40px; | ||
| 233 | } | ||
| 234 | .col-pd0 { | ||
| 235 | padding: 0 !important; | ||
| 236 | } | ||
| 237 | } | ||
| 238 | </style> |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment