Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
13 changed files
with
81 additions
and
150 deletions
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-30 15:28:52 | 4 | * @LastEditTime: 2023-06-20 10:02:14 |
| 5 | */ | 5 | */ |
| 6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
| 7 | import App from './App' | 7 | import App from './App' |
| ... | @@ -16,12 +16,10 @@ import Loading from '@/components/Loading/index.js'; | ... | @@ -16,12 +16,10 @@ import Loading from '@/components/Loading/index.js'; |
| 16 | import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' | 16 | import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' |
| 17 | Vue.mixin(mixin); | 17 | Vue.mixin(mixin); |
| 18 | Vue.use(Loading.directive); | 18 | Vue.use(Loading.directive); |
| 19 | import rules from './utils/rule.js' | ||
| 20 | // 引入xml | 19 | // 引入xml |
| 21 | import x2js from 'x2js' | 20 | import x2js from 'x2js' |
| 22 | Vue.prototype.$x2js = new x2js() | 21 | Vue.prototype.$x2js = new x2js() |
| 23 | // 全局方法挂载 | 22 | // 全局方法挂载 |
| 24 | Vue.prototype.$rules = rules | ||
| 25 | // 全局加载 | 23 | // 全局加载 |
| 26 | Vue.prototype.$startLoading = startLoadingAddCount | 24 | Vue.prototype.$startLoading = startLoadingAddCount |
| 27 | Vue.prototype.$endLoading = endLoadingSubCount | 25 | Vue.prototype.$endLoading = endLoadingSubCount | ... | ... |
src/utils/dictionary.js
0 → 100644
src/utils/rule.js
deleted
100644 → 0
| 1 | // 手机号码验证 | ||
| 2 | const validatePhone = (rule, value, callback) => { | ||
| 3 | const patter = new RegExp('^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$') | ||
| 4 | if (!patter.test(value)) { | ||
| 5 | return callback(new Error('请输入正确格式的手机号!')) | ||
| 6 | } else { | ||
| 7 | callback() // 必须有此项回调,否则验证会一直不通过 | ||
| 8 | } | ||
| 9 | } | ||
| 10 | export default { | ||
| 11 | common: { | ||
| 12 | phone: [{// 手机号 | ||
| 13 | required: true, | ||
| 14 | message: '手机号不能为空' | ||
| 15 | }, { | ||
| 16 | validator: validatePhone, | ||
| 17 | trigger: 'blur' | ||
| 18 | }] | ||
| 19 | } | ||
| 20 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description : 房地产权2 | 2 | * @Description : 房地产权2 |
| 3 | * @Autor : miaofang | 3 | * @Autor : miaofang |
| 4 | * @LastEditTime : 2023-06-16 16:53:36 | 4 | * @LastEditTime: 2023-06-20 09:59:18 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="djxxTable"> | 7 | <div class="djxxTable"> |
| ... | @@ -47,9 +47,9 @@ | ... | @@ -47,9 +47,9 @@ |
| 47 | </template> | 47 | </template> |
| 48 | 48 | ||
| 49 | <script> | 49 | <script> |
| 50 | import { getFdcq2List } from "@/api/registerBook.js"; | 50 | import { getFdcq2List } from "@/api/registerBook.js"; |
| 51 | import { datas } from "./qlxxFormData.js"; | 51 | import { datas } from "./qlxxFormData.js"; |
| 52 | export default { | 52 | export default { |
| 53 | data () { | 53 | data () { |
| 54 | return { | 54 | return { |
| 55 | title: "房地产权登记信息(独幢、层、套、间房屋)", | 55 | title: "房地产权登记信息(独幢、层、套、间房屋)", |
| ... | @@ -76,7 +76,6 @@ export default { | ... | @@ -76,7 +76,6 @@ export default { |
| 76 | qszt: this.checkList, | 76 | qszt: this.checkList, |
| 77 | }).then((res) => { | 77 | }).then((res) => { |
| 78 | if (res.code === 200) { | 78 | if (res.code === 200) { |
| 79 | console.log("国有建设",res); | ||
| 80 | this.tableData = res.result; | 79 | this.tableData = res.result; |
| 81 | if (this.tableData.length < datas.columns().emptycolNum) { | 80 | if (this.tableData.length < datas.columns().emptycolNum) { |
| 82 | this.emptycolNum = | 81 | this.emptycolNum = |
| ... | @@ -107,7 +106,7 @@ export default { | ... | @@ -107,7 +106,7 @@ export default { |
| 107 | }, | 106 | }, |
| 108 | 107 | ||
| 109 | // 编辑 | 108 | // 编辑 |
| 110 | editDialog(row){ | 109 | editDialog (row) { |
| 111 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | 110 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { |
| 112 | confirmButtonText: '确定', | 111 | confirmButtonText: '确定', |
| 113 | cancelButtonText: '取消', | 112 | cancelButtonText: '取消', |
| ... | @@ -134,7 +133,7 @@ export default { | ... | @@ -134,7 +133,7 @@ export default { |
| 134 | 133 | ||
| 135 | }, | 134 | }, |
| 136 | // 删除 | 135 | // 删除 |
| 137 | deleteDialog(row){ | 136 | deleteDialog (row) { |
| 138 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | 137 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
| 139 | confirmButtonText: '确定', | 138 | confirmButtonText: '确定', |
| 140 | cancelButtonText: '取消', | 139 | cancelButtonText: '取消', |
| ... | @@ -164,9 +163,9 @@ export default { | ... | @@ -164,9 +163,9 @@ export default { |
| 164 | } | 163 | } |
| 165 | 164 | ||
| 166 | }, | 165 | }, |
| 167 | }; | 166 | }; |
| 168 | </script> | 167 | </script> |
| 169 | 168 | ||
| 170 | <style lang="scss" scoped> | 169 | <style lang="scss" scoped> |
| 171 | @import "./qlxxCommon.scss"; | 170 | @import "./qlxxCommon.scss"; |
| 172 | </style> | 171 | </style> | ... | ... |
| ... | @@ -8,8 +8,7 @@ | ... | @@ -8,8 +8,7 @@ |
| 8 | <el-checkbox | 8 | <el-checkbox |
| 9 | v-for="item in qsztList" | 9 | v-for="item in qsztList" |
| 10 | :key="item.value" | 10 | :key="item.value" |
| 11 | :label="item.value" | 11 | :label="item.value">{{ item.label }}</el-checkbox> |
| 12 | >{{ item.label }}</el-checkbox> | ||
| 13 | </el-checkbox-group> | 12 | </el-checkbox-group> |
| 14 | </div> | 13 | </div> |
| 15 | </div> | 14 | </div> |
| ... | @@ -24,12 +23,7 @@ | ... | @@ -24,12 +23,7 @@ |
| 24 | row.qszt == '2' ? 'lishi' : '', | 23 | row.qszt == '2' ? 'lishi' : '', |
| 25 | row.qszt == '0' ? 'linshi' : '', | 24 | row.qszt == '0' ? 'linshi' : '', |
| 26 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', | 25 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', |
| 27 | ]" | 26 | ]"> |
| 28 | > | ||
| 29 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
| 30 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
| 31 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
| 32 | </div> | ||
| 33 | <div class="icon" v-if="item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))">正在办理</div> | 27 | <div class="icon" v-if="item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))">正在办理</div> |
| 34 | <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span> | 28 | <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span> |
| 35 | 29 | ||
| ... | @@ -44,10 +38,11 @@ | ... | @@ -44,10 +38,11 @@ |
| 44 | </template> | 38 | </template> |
| 45 | 39 | ||
| 46 | <script> | 40 | <script> |
| 47 | import { getCfdjList } from "@/api/registerBook.js"; | 41 | import { datas } from "./qlxxFormData.js"; |
| 48 | import { datas } from "./qlxxFormData.js"; | 42 | import { getSjlx } from "@/utils/dictionary.js"; |
| 49 | export default { | 43 | import { getCfdjList } from "@/api/registerBook.js"; |
| 50 | data() { | 44 | export default { |
| 45 | data () { | ||
| 51 | return { | 46 | return { |
| 52 | title: "查封登记信息", | 47 | title: "查封登记信息", |
| 53 | qsztList: datas.columns().qsztList, | 48 | qsztList: datas.columns().qsztList, |
| ... | @@ -62,16 +57,11 @@ export default { | ... | @@ -62,16 +57,11 @@ export default { |
| 62 | columns: datas.columns().CFDJ, | 57 | columns: datas.columns().CFDJ, |
| 63 | }; | 58 | }; |
| 64 | }, | 59 | }, |
| 65 | created() { | 60 | created () { |
| 66 | this.loadData(); | 61 | this.loadData(); |
| 67 | }, | 62 | }, |
| 68 | methods: { | 63 | methods: { |
| 69 | loadData() { | 64 | loadData () { |
| 70 | if(this.$parent.addRepairRecord){ | ||
| 71 | this.columns.unshift({prop:"cz", | ||
| 72 | label:"操作" | ||
| 73 | }) | ||
| 74 | } | ||
| 75 | getCfdjList({ | 65 | getCfdjList({ |
| 76 | bdcdyid: this.propsParam.bdcdyid, | 66 | bdcdyid: this.propsParam.bdcdyid, |
| 77 | qllx: this.propsParam.qllx, | 67 | qllx: this.propsParam.qllx, |
| ... | @@ -79,6 +69,9 @@ export default { | ... | @@ -79,6 +69,9 @@ export default { |
| 79 | }).then((res) => { | 69 | }).then((res) => { |
| 80 | if (res.code === 200) { | 70 | if (res.code === 200) { |
| 81 | this.tableData = res.result; | 71 | this.tableData = res.result; |
| 72 | this.tableData.forEach(item => { | ||
| 73 | item.sjlx = getSjlx(item.sjlx) | ||
| 74 | }) | ||
| 82 | this.tableData.forEach((item, index) => { | 75 | this.tableData.forEach((item, index) => { |
| 83 | if (item.sfbxf == "1") { | 76 | if (item.sfbxf == "1") { |
| 84 | item.zxywh = ""; | 77 | item.zxywh = ""; |
| ... | @@ -95,7 +88,7 @@ export default { | ... | @@ -95,7 +88,7 @@ export default { |
| 95 | } | 88 | } |
| 96 | }); | 89 | }); |
| 97 | }, | 90 | }, |
| 98 | checkChange() { | 91 | checkChange () { |
| 99 | if (this.checkList.length === 0) { | 92 | if (this.checkList.length === 0) { |
| 100 | this.tableData = []; | 93 | this.tableData = []; |
| 101 | this.emptycolNum = datas.columns().emptycolNum; | 94 | this.emptycolNum = datas.columns().emptycolNum; |
| ... | @@ -103,7 +96,7 @@ export default { | ... | @@ -103,7 +96,7 @@ export default { |
| 103 | this.loadData(); | 96 | this.loadData(); |
| 104 | } | 97 | } |
| 105 | }, | 98 | }, |
| 106 | getQsztName(code) { | 99 | getQsztName (code) { |
| 107 | let name = ""; | 100 | let name = ""; |
| 108 | for (let item of this.qsztList) { | 101 | for (let item of this.qsztList) { |
| 109 | if (item.value == code) { | 102 | if (item.value == code) { |
| ... | @@ -114,9 +107,9 @@ export default { | ... | @@ -114,9 +107,9 @@ export default { |
| 114 | return name; | 107 | return name; |
| 115 | }, | 108 | }, |
| 116 | }, | 109 | }, |
| 117 | }; | 110 | }; |
| 118 | </script> | 111 | </script> |
| 119 | 112 | ||
| 120 | <style lang="scss" scoped> | 113 | <style lang="scss" scoped> |
| 121 | @import "./qlxxCommon.scss"; | 114 | @import "./qlxxCommon.scss"; |
| 122 | </style> | 115 | </style> | ... | ... |
| ... | @@ -42,9 +42,10 @@ | ... | @@ -42,9 +42,10 @@ |
| 42 | </template> | 42 | </template> |
| 43 | 43 | ||
| 44 | <script> | 44 | <script> |
| 45 | import { getDiyaqList } from "@/api/registerBook.js"; | 45 | import { datas } from "./qlxxFormData.js"; |
| 46 | import { datas } from "./qlxxFormData.js"; | 46 | import { getSjlx } from "@/utils/dictionary.js"; |
| 47 | export default { | 47 | import { getDiyaqList } from "@/api/registerBook.js"; |
| 48 | export default { | ||
| 48 | data () { | 49 | data () { |
| 49 | return { | 50 | return { |
| 50 | title: "抵押权登记信息", | 51 | title: "抵押权登记信息", |
| ... | @@ -65,11 +66,6 @@ export default { | ... | @@ -65,11 +66,6 @@ export default { |
| 65 | }, | 66 | }, |
| 66 | methods: { | 67 | methods: { |
| 67 | loadData () { | 68 | loadData () { |
| 68 | if(this.$parent.addRepairRecord){ | ||
| 69 | this.columns.unshift({prop:"cz", | ||
| 70 | label:"操作" | ||
| 71 | }) | ||
| 72 | } | ||
| 73 | getDiyaqList({ | 69 | getDiyaqList({ |
| 74 | bdcdyid: this.propsParam.bdcdyid, | 70 | bdcdyid: this.propsParam.bdcdyid, |
| 75 | qllx: this.propsParam.qllx, | 71 | qllx: this.propsParam.qllx, |
| ... | @@ -77,6 +73,9 @@ export default { | ... | @@ -77,6 +73,9 @@ export default { |
| 77 | }).then((res) => { | 73 | }).then((res) => { |
| 78 | if (res.code === 200) { | 74 | if (res.code === 200) { |
| 79 | this.tableData = res.result; | 75 | this.tableData = res.result; |
| 76 | this.tableData.forEach(item => { | ||
| 77 | item.sjlx = getSjlx(item.sjlx) | ||
| 78 | }) | ||
| 80 | if (this.tableData.length < datas.columns().emptycolNum) { | 79 | if (this.tableData.length < datas.columns().emptycolNum) { |
| 81 | this.emptycolNum = | 80 | this.emptycolNum = |
| 82 | datas.columns().emptycolNum - this.tableData.length; | 81 | datas.columns().emptycolNum - this.tableData.length; |
| ... | @@ -105,9 +104,9 @@ export default { | ... | @@ -105,9 +104,9 @@ export default { |
| 105 | return name; | 104 | return name; |
| 106 | }, | 105 | }, |
| 107 | }, | 106 | }, |
| 108 | }; | 107 | }; |
| 109 | </script> | 108 | </script> |
| 110 | 109 | ||
| 111 | <style lang="scss" scoped> | 110 | <style lang="scss" scoped> |
| 112 | @import "./qlxxCommon.scss"; | 111 | @import "./qlxxCommon.scss"; |
| 113 | </style> | 112 | </style> | ... | ... |
| ... | @@ -42,9 +42,10 @@ | ... | @@ -42,9 +42,10 @@ |
| 42 | </template> | 42 | </template> |
| 43 | 43 | ||
| 44 | <script> | 44 | <script> |
| 45 | import { getDiyiqList } from "@/api/registerBook.js"; | 45 | import { datas } from "./qlxxFormData.js"; |
| 46 | import { datas } from "./qlxxFormData.js"; | 46 | import { getSjlx } from "@/utils/dictionary.js"; |
| 47 | export default { | 47 | import { getDiyiqList } from "@/api/registerBook.js"; |
| 48 | export default { | ||
| 48 | data () { | 49 | data () { |
| 49 | return { | 50 | return { |
| 50 | title: "地役权登记信息", | 51 | title: "地役权登记信息", |
| ... | @@ -65,11 +66,6 @@ export default { | ... | @@ -65,11 +66,6 @@ export default { |
| 65 | }, | 66 | }, |
| 66 | methods: { | 67 | methods: { |
| 67 | loadData () { | 68 | loadData () { |
| 68 | if(this.$parent.addRepairRecord){ | ||
| 69 | this.columns.unshift({prop:"cz", | ||
| 70 | label:"操作" | ||
| 71 | }) | ||
| 72 | } | ||
| 73 | getDiyiqList({ | 69 | getDiyiqList({ |
| 74 | bdcdyid: this.propsParam.bdcdyid, | 70 | bdcdyid: this.propsParam.bdcdyid, |
| 75 | qllx: this.propsParam.qllx, | 71 | qllx: this.propsParam.qllx, |
| ... | @@ -77,6 +73,9 @@ export default { | ... | @@ -77,6 +73,9 @@ export default { |
| 77 | }).then((res) => { | 73 | }).then((res) => { |
| 78 | if (res.code === 200) { | 74 | if (res.code === 200) { |
| 79 | this.tableData = res.result; | 75 | this.tableData = res.result; |
| 76 | this.tableData.forEach(item => { | ||
| 77 | item.sjlx = getSjlx(item.sjlx) | ||
| 78 | }) | ||
| 80 | if (this.tableData.length < datas.columns().emptycolNum) { | 79 | if (this.tableData.length < datas.columns().emptycolNum) { |
| 81 | this.emptycolNum = | 80 | this.emptycolNum = |
| 82 | datas.columns().emptycolNum - this.tableData.length; | 81 | datas.columns().emptycolNum - this.tableData.length; |
| ... | @@ -105,9 +104,9 @@ export default { | ... | @@ -105,9 +104,9 @@ export default { |
| 105 | return name; | 104 | return name; |
| 106 | }, | 105 | }, |
| 107 | }, | 106 | }, |
| 108 | }; | 107 | }; |
| 109 | </script> | 108 | </script> |
| 110 | 109 | ||
| 111 | <style lang="scss" scoped> | 110 | <style lang="scss" scoped> |
| 112 | @import "./qlxxCommon.scss"; | 111 | @import "./qlxxCommon.scss"; |
| 113 | </style> | 112 | </style> | ... | ... |
| ... | @@ -47,8 +47,9 @@ | ... | @@ -47,8 +47,9 @@ |
| 47 | </template> | 47 | </template> |
| 48 | 48 | ||
| 49 | <script> | 49 | <script> |
| 50 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
| 51 | import { datas } from "./qlxxFormData.js"; | 50 | import { datas } from "./qlxxFormData.js"; |
| 51 | import { getSjlx } from "@/utils/dictionary.js"; | ||
| 52 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
| 52 | export default { | 53 | export default { |
| 53 | data () { | 54 | data () { |
| 54 | return { | 55 | return { |
| ... | @@ -82,6 +83,9 @@ | ... | @@ -82,6 +83,9 @@ |
| 82 | }).then((res) => { | 83 | }).then((res) => { |
| 83 | if (res.code === 200) { | 84 | if (res.code === 200) { |
| 84 | this.tableData = res.result; | 85 | this.tableData = res.result; |
| 86 | this.tableData.forEach(item => { | ||
| 87 | item.sjlx = getSjlx(item.sjlx) | ||
| 88 | }) | ||
| 85 | if (this.tableData.length < datas.columns().emptycolNum) { | 89 | if (this.tableData.length < datas.columns().emptycolNum) { |
| 86 | this.emptycolNum = | 90 | this.emptycolNum = |
| 87 | datas.columns().emptycolNum - this.tableData.length; | 91 | datas.columns().emptycolNum - this.tableData.length; | ... | ... |
| ... | @@ -42,9 +42,10 @@ | ... | @@ -42,9 +42,10 @@ |
| 42 | </template> | 42 | </template> |
| 43 | 43 | ||
| 44 | <script> | 44 | <script> |
| 45 | import { getFdcq2List } from "@/api/registerBook.js"; | 45 | import { datas } from "./qlxxFormData.js"; |
| 46 | import { datas } from "./qlxxFormData.js"; | 46 | import { getSjlx } from "@/utils/dictionary.js"; |
| 47 | export default { | 47 | import { getFdcq2List } from "@/api/registerBook.js"; |
| 48 | export default { | ||
| 48 | data () { | 49 | data () { |
| 49 | return { | 50 | return { |
| 50 | title: "房地产权登记信息(独幢、层、套、间房屋)", | 51 | title: "房地产权登记信息(独幢、层、套、间房屋)", |
| ... | @@ -65,11 +66,6 @@ export default { | ... | @@ -65,11 +66,6 @@ export default { |
| 65 | }, | 66 | }, |
| 66 | methods: { | 67 | methods: { |
| 67 | loadData () { | 68 | loadData () { |
| 68 | if(this.$parent.addRepairRecord){ | ||
| 69 | this.columns.unshift({prop:"cz", | ||
| 70 | label:"操作" | ||
| 71 | }) | ||
| 72 | } | ||
| 73 | getFdcq2List({ | 69 | getFdcq2List({ |
| 74 | bdcdyid: this.propsParam.bdcdyid, | 70 | bdcdyid: this.propsParam.bdcdyid, |
| 75 | qllx: this.propsParam.qllx, | 71 | qllx: this.propsParam.qllx, |
| ... | @@ -77,6 +73,9 @@ export default { | ... | @@ -77,6 +73,9 @@ export default { |
| 77 | }).then((res) => { | 73 | }).then((res) => { |
| 78 | if (res.code === 200) { | 74 | if (res.code === 200) { |
| 79 | this.tableData = res.result; | 75 | this.tableData = res.result; |
| 76 | this.tableData.forEach(item => { | ||
| 77 | item.sjlx = getSjlx(item.sjlx) | ||
| 78 | }) | ||
| 80 | if (this.tableData.length < datas.columns().emptycolNum) { | 79 | if (this.tableData.length < datas.columns().emptycolNum) { |
| 81 | this.emptycolNum = | 80 | this.emptycolNum = |
| 82 | datas.columns().emptycolNum - this.tableData.length; | 81 | datas.columns().emptycolNum - this.tableData.length; |
| ... | @@ -104,66 +103,10 @@ export default { | ... | @@ -104,66 +103,10 @@ export default { |
| 104 | } | 103 | } |
| 105 | return name; | 104 | return name; |
| 106 | }, | 105 | }, |
| 107 | // 编辑 | ||
| 108 | editDialog(row){ | ||
| 109 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | ||
| 110 | confirmButtonText: '确定', | ||
| 111 | cancelButtonText: '取消', | ||
| 112 | type: 'warning' | ||
| 113 | }).then(() => { | ||
| 114 | this.$parent.addRepairRecord(row) | ||
| 115 | |||
| 116 | this.$message({ | ||
| 117 | type: 'success', | ||
| 118 | message: '补录成功!' | ||
| 119 | }); | ||
| 120 | }).catch(() => { | ||
| 121 | this.$message({ | ||
| 122 | type: 'info', | ||
| 123 | message: '取消编辑' | ||
| 124 | }); | ||
| 125 | }); | ||
| 126 | |||
| 127 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { | ||
| 128 | // datalist:this.columns, | ||
| 129 | // data: row, | ||
| 130 | |||
| 131 | // }) | ||
| 132 | |||
| 133 | }, | ||
| 134 | // 删除 | ||
| 135 | deleteDialog(row){ | ||
| 136 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
| 137 | confirmButtonText: '确定', | ||
| 138 | cancelButtonText: '取消', | ||
| 139 | type: 'warning' | ||
| 140 | }).then(() => { | ||
| 141 | // let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx | ||
| 142 | // deleteClmx(bsmClmx).then(res => { | ||
| 143 | // if (res.code == 200) { | ||
| 144 | // that.$emit('updateList', res.result) | ||
| 145 | // that.$message({ | ||
| 146 | // message: '删除成功!', | ||
| 147 | // type: 'success' | ||
| 148 | // }) | ||
| 149 | // } | ||
| 150 | // }) | ||
| 151 | this.$message({ | ||
| 152 | type: 'success', | ||
| 153 | message: '删除成功!' | ||
| 154 | }); | ||
| 155 | }).catch(() => { | ||
| 156 | this.$message({ | ||
| 157 | type: 'info', | ||
| 158 | message: '已取消删除' | ||
| 159 | }); | ||
| 160 | }); | ||
| 161 | |||
| 162 | } | ||
| 163 | }, | 106 | }, |
| 164 | }; | 107 | }; |
| 165 | </script> | 108 | </script> |
| 166 | 109 | ||
| 167 | <style lang="scss" scoped> | 110 | <style lang="scss" scoped> |
| 168 | @import "./qlxxCommon.scss"; | 111 | @import "./qlxxCommon.scss"; |
| 169 | </style> | 112 | </style> | ... | ... |
| ... | @@ -47,8 +47,9 @@ | ... | @@ -47,8 +47,9 @@ |
| 47 | </template> | 47 | </template> |
| 48 | 48 | ||
| 49 | <script> | 49 | <script> |
| 50 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
| 51 | import { datas } from "./qlxxFormData.js"; | 50 | import { datas } from "./qlxxFormData.js"; |
| 51 | import { getSjlx } from "@/utils/dictionary.js"; | ||
| 52 | import { getJsydsyqList } from "@/api/registerBook.js"; | ||
| 52 | export default { | 53 | export default { |
| 53 | data () { | 54 | data () { |
| 54 | return { | 55 | return { |
| ... | @@ -82,6 +83,9 @@ | ... | @@ -82,6 +83,9 @@ |
| 82 | }).then((res) => { | 83 | }).then((res) => { |
| 83 | if (res.code === 200) { | 84 | if (res.code === 200) { |
| 84 | this.tableData = res.result; | 85 | this.tableData = res.result; |
| 86 | this.tableData.forEach(item => { | ||
| 87 | item.sjlx = getSjlx(item.sjlx) | ||
| 88 | }) | ||
| 85 | if (this.tableData.length < datas.columns().emptycolNum) { | 89 | if (this.tableData.length < datas.columns().emptycolNum) { |
| 86 | this.emptycolNum = | 90 | this.emptycolNum = |
| 87 | datas.columns().emptycolNum - this.tableData.length; | 91 | datas.columns().emptycolNum - this.tableData.length; | ... | ... |
| ... | @@ -70,8 +70,9 @@ | ... | @@ -70,8 +70,9 @@ |
| 70 | </template> | 70 | </template> |
| 71 | 71 | ||
| 72 | <script> | 72 | <script> |
| 73 | import { getNydsyqList } from "@/api/registerBook.js"; | ||
| 74 | import { datas } from "./qlxxFormData.js"; | 73 | import { datas } from "./qlxxFormData.js"; |
| 74 | import { getSjlx } from "@/utils/dictionary.js"; | ||
| 75 | import { getNydsyqList } from "@/api/registerBook.js"; | ||
| 75 | export default { | 76 | export default { |
| 76 | data () { | 77 | data () { |
| 77 | return { | 78 | return { |
| ... | @@ -111,6 +112,9 @@ | ... | @@ -111,6 +112,9 @@ |
| 111 | }).then((res) => { | 112 | }).then((res) => { |
| 112 | if (res.code === 200) { | 113 | if (res.code === 200) { |
| 113 | this.tableData = res.result; | 114 | this.tableData = res.result; |
| 115 | this.tableData.forEach(item => { | ||
| 116 | item.sjlx = getSjlx(item.sjlx) | ||
| 117 | }) | ||
| 114 | if (this.tableData.length < datas.columns().emptycolNum) { | 118 | if (this.tableData.length < datas.columns().emptycolNum) { |
| 115 | this.emptycolNum = | 119 | this.emptycolNum = |
| 116 | datas.columns().emptycolNum - this.tableData.length; | 120 | datas.columns().emptycolNum - this.tableData.length; | ... | ... |
| ... | @@ -4,7 +4,7 @@ class data extends filter { | ... | @@ -4,7 +4,7 @@ class data extends filter { |
| 4 | constructor() { | 4 | constructor() { |
| 5 | super() | 5 | super() |
| 6 | } | 6 | } |
| 7 | columns() { | 7 | columns () { |
| 8 | return { | 8 | return { |
| 9 | //空列值个数 | 9 | //空列值个数 |
| 10 | emptycolNum: 3, | 10 | emptycolNum: 3, |
| ... | @@ -172,7 +172,7 @@ class data extends filter { | ... | @@ -172,7 +172,7 @@ class data extends filter { |
| 172 | label: "坐落", | 172 | label: "坐落", |
| 173 | }, | 173 | }, |
| 174 | { | 174 | { |
| 175 | prop: "gyfs", | 175 | prop: "gyqk", |
| 176 | label: "共有情况", | 176 | label: "共有情况", |
| 177 | }, | 177 | }, |
| 178 | { | 178 | { |
| ... | @@ -216,7 +216,7 @@ class data extends filter { | ... | @@ -216,7 +216,7 @@ class data extends filter { |
| 216 | label: "房地产交易价格(万元)", | 216 | label: "房地产交易价格(万元)", |
| 217 | }, | 217 | }, |
| 218 | { | 218 | { |
| 219 | prop: "ytmc", | 219 | prop: "ghyt", |
| 220 | label: "规划用途", | 220 | label: "规划用途", |
| 221 | }, | 221 | }, |
| 222 | { | 222 | { | ... | ... |
| ... | @@ -5,8 +5,8 @@ | ... | @@ -5,8 +5,8 @@ |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| 8 | <div class="slxx"> | 8 | <div class="slxx loadingtext"> |
| 9 | <el-form :model="ruleForm" :rules="rules" class="loadingtext" ref="ruleForm" :label-position="flag ? 'top' : ''" | 9 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-position="flag ? 'top' : ''" |
| 10 | :inline="flag" label-width="120px"> | 10 | :inline="flag" label-width="120px"> |
| 11 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 11 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
| 12 | <div class="slxx_title title-block"> | 12 | <div class="slxx_title title-block"> |
| ... | @@ -202,8 +202,8 @@ | ... | @@ -202,8 +202,8 @@ |
| 202 | Init(formdata).then((res) => { | 202 | Init(formdata).then((res) => { |
| 203 | if (res.code === 200 && res.result) { | 203 | if (res.code === 200 && res.result) { |
| 204 | this.ruleForm = res.result; | 204 | this.ruleForm = res.result; |
| 205 | this.$endLoading(); | ||
| 206 | } | 205 | } |
| 206 | this.$endLoading(); | ||
| 207 | }); | 207 | }); |
| 208 | }, | 208 | }, |
| 209 | components: { qlrCommonTable }, | 209 | components: { qlrCommonTable }, | ... | ... |
-
Please register or sign in to post a comment