style:宗地基本信息
Showing
5 changed files
with
117 additions
and
90 deletions
| ... | @@ -17,8 +17,9 @@ | ... | @@ -17,8 +17,9 @@ |
| 17 | <div class="thumb-wrap"> | 17 | <div class="thumb-wrap"> |
| 18 | <div class="thumb-wrap-button"> | 18 | <div class="thumb-wrap-button"> |
| 19 | <el-button type="primary" @click="clickImage">(放大) 显示(缩小)</el-button> | 19 | <el-button type="primary" @click="clickImage">(放大) 显示(缩小)</el-button> |
| 20 | <el-upload class="fileUpdate" action="" :show-file-list="false" multiple :auto-upload="false" | 20 | <el-upload class="fileUpdate" ref="upload" action="" :show-file-list="false" :multiple="true" :auto-upload="false" |
| 21 | :on-change="handleChange" accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg" :before-upload="beforeUpload"> | 21 | :on-change="handleChange" |
| 22 | accept=".JPG, .PNG, .JPEG,.jpg, .png, .jpeg" :before-upload="beforeUpload"> | ||
| 22 | <el-button icon="el-icon-upload" type="primary" v-if="!this.$route.query.viewtype">上传</el-button> | 23 | <el-button icon="el-icon-upload" type="primary" v-if="!this.$route.query.viewtype">上传</el-button> |
| 23 | </el-upload> | 24 | </el-upload> |
| 24 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete" v-if="!this.$route.query.viewtype">删除</el-button> | 25 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete" v-if="!this.$route.query.viewtype">删除</el-button> |
| ... | @@ -36,10 +37,10 @@ | ... | @@ -36,10 +37,10 @@ |
| 36 | </div> | 37 | </div> |
| 37 | </template> | 38 | </template> |
| 38 | <script> | 39 | <script> |
| 39 | import PhotoZoom from '@/components/PhotoZoom' | 40 | import PhotoZoom from '@/components/PhotoZoom' |
| 40 | import { uploadSjClmx, deleteClmx } from "@/api/clxx.js"; | 41 | import { uploadSjClmx, deleteClmx } from "@/api/clxx.js"; |
| 41 | import publicPicture from '@/components/publicPicture/index.vue' | 42 | import publicPicture from '@/components/publicPicture/index.vue' |
| 42 | export default { | 43 | export default { |
| 43 | name: 'PreviewImage', | 44 | name: 'PreviewImage', |
| 44 | props: { | 45 | props: { |
| 45 | previewImg: { | 46 | previewImg: { |
| ... | @@ -57,6 +58,7 @@ export default { | ... | @@ -57,6 +58,7 @@ export default { |
| 57 | scale: 1, | 58 | scale: 1, |
| 58 | degree: 0 | 59 | degree: 0 |
| 59 | }, | 60 | }, |
| 61 | maxLength: 0, | ||
| 60 | // 缩略图 | 62 | // 缩略图 |
| 61 | thumbnailImages: [], | 63 | thumbnailImages: [], |
| 62 | showViewer: false, | 64 | showViewer: false, |
| ... | @@ -74,6 +76,7 @@ export default { | ... | @@ -74,6 +76,7 @@ export default { |
| 74 | } | 76 | } |
| 75 | }, | 77 | }, |
| 76 | created () { | 78 | created () { |
| 79 | this.maxLength = 0; | ||
| 77 | this.allLi = _.cloneDeep(this.previewImg.imgList).map(item => item.fjurl) | 80 | this.allLi = _.cloneDeep(this.previewImg.imgList).map(item => item.fjurl) |
| 78 | this.thumbnailImages = this.previewImg.imgList | 81 | this.thumbnailImages = this.previewImg.imgList |
| 79 | }, | 82 | }, |
| ... | @@ -129,21 +132,32 @@ export default { | ... | @@ -129,21 +132,32 @@ export default { |
| 129 | this.imgHidden = (isJPG || isJPEG || isPNG || isGIF) && isLt5M | 132 | this.imgHidden = (isJPG || isJPEG || isPNG || isGIF) && isLt5M |
| 130 | return this.imgHidden | 133 | return this.imgHidden |
| 131 | }, | 134 | }, |
| 132 | async handleChange (file) { | 135 | async handleChange (file, files) { |
| 133 | let data = _.cloneDeep(this.previewImg.imgList[this.previewImg.index]) | 136 | // 清空 fileList 数组 |
| 134 | var formdata = new FormData(); | 137 | let length = files.length; |
| 135 | formdata.append("file", file.raw); | 138 | this.maxLength = Math.max(length, this.maxLength) |
| 136 | formdata.append("bsmSj", this.previewImg.bsmSj); | 139 | this.$refs.upload.clearFiles(); |
| 137 | formdata.append("bsmSlsq", this.previewImg.bsmSlsq); | 140 | setTimeout(() => { |
| 138 | uploadSjClmx(formdata).then((res) => { | 141 | if (length !== this.maxLength) return |
| 142 | console.log(files); | ||
| 143 | // let data = _.cloneDeep(this.previewImg.imgList[this.previewImg.index]) | ||
| 144 | var formData = new FormData(); | ||
| 145 | files.forEach(file => { | ||
| 146 | formData.append('file', file.raw) | ||
| 147 | }) | ||
| 148 | formData.append("bsmSj", this.previewImg.bsmSj); | ||
| 149 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); | ||
| 150 | uploadSjClmx(formData).then((res) => { | ||
| 139 | if (res.code == 200) { | 151 | if (res.code == 200) { |
| 140 | this.$emit('updateList', res.result) | 152 | this.$emit('updateList', res.result) |
| 141 | this.$message({ | 153 | this.$message({ |
| 142 | message: '上传成功!', | 154 | message: '上传成功!', |
| 143 | type: 'success' | 155 | type: 'success' |
| 144 | }) | 156 | }) |
| 157 | |||
| 145 | } | 158 | } |
| 146 | }) | 159 | }) |
| 160 | }) | ||
| 147 | }, | 161 | }, |
| 148 | handleDelete () { | 162 | handleDelete () { |
| 149 | let that = this | 163 | let that = this |
| ... | @@ -170,12 +184,11 @@ export default { | ... | @@ -170,12 +184,11 @@ export default { |
| 170 | }) | 184 | }) |
| 171 | } | 185 | } |
| 172 | } | 186 | } |
| 173 | } | 187 | } |
| 174 | </script> | 188 | </script> |
| 175 | |||
| 176 | <style lang="scss" scoped> | 189 | <style lang="scss" scoped> |
| 177 | // 查看大图 | 190 | // 查看大图 |
| 178 | .rlPopup { | 191 | .rlPopup { |
| 179 | position: relative; | 192 | position: relative; |
| 180 | width: 100%; | 193 | width: 100%; |
| 181 | text-align: center; | 194 | text-align: center; |
| ... | @@ -204,7 +217,6 @@ export default { | ... | @@ -204,7 +217,6 @@ export default { |
| 204 | background-color: rgb(185, 183, 183); | 217 | background-color: rgb(185, 183, 183); |
| 205 | } | 218 | } |
| 206 | 219 | ||
| 207 | |||
| 208 | .prev { | 220 | .prev { |
| 209 | left: 1%; | 221 | left: 1%; |
| 210 | } | 222 | } |
| ... | @@ -269,29 +281,29 @@ export default { | ... | @@ -269,29 +281,29 @@ export default { |
| 269 | border-color: #409eff; | 281 | border-color: #409eff; |
| 270 | } | 282 | } |
| 271 | } | 283 | } |
| 272 | } | 284 | } |
| 273 | </style> | 285 | </style> |
| 274 | <style> | 286 | <style> |
| 275 | .zoom-on-hover { | 287 | .zoom-on-hover { |
| 276 | position: relative; | 288 | position: relative; |
| 277 | overflow: hidden; | 289 | overflow: hidden; |
| 278 | } | 290 | } |
| 279 | 291 | ||
| 280 | .zoom-on-hover .normal { | 292 | .zoom-on-hover .normal { |
| 281 | width: 100%; | 293 | width: 100%; |
| 282 | } | 294 | } |
| 283 | 295 | ||
| 284 | .zoom-on-hover .zoom { | 296 | .zoom-on-hover .zoom { |
| 285 | position: absolute; | 297 | position: absolute; |
| 286 | opacity: 0; | 298 | opacity: 0; |
| 287 | transform-origin: top left; | 299 | transform-origin: top left; |
| 288 | } | 300 | } |
| 289 | 301 | ||
| 290 | .zoom-on-hover.zoomed .zoom { | 302 | .zoom-on-hover.zoomed .zoom { |
| 291 | opacity: 1; | 303 | opacity: 1; |
| 292 | } | 304 | } |
| 293 | 305 | ||
| 294 | .zoom-on-hover.zoomed .normal { | 306 | .zoom-on-hover.zoomed .normal { |
| 295 | opacity: 0; | 307 | opacity: 0; |
| 296 | } | 308 | } |
| 297 | </style> | 309 | </style> | ... | ... |
| ... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
| 39 | </tr> | 39 | </tr> |
| 40 | <tr> | 40 | <tr> |
| 41 | <td>权利设定方式</td> | 41 | <td>权利设定方式</td> |
| 42 | <td>{{ zdjbxx.qlsdfs }}</td> | 42 | <td>{{zdjbxx.qlsdfs | qlsdfs}}</td> |
| 43 | <td>容积率</td> | 43 | <td>容积率</td> |
| 44 | <td>{{ zdjbxx.rjl }}</td> | 44 | <td>{{ zdjbxx.rjl }}</td> |
| 45 | </tr> | 45 | </tr> |
| ... | @@ -122,16 +122,15 @@ | ... | @@ -122,16 +122,15 @@ |
| 122 | <td>{{ zdbhqks[0].dbr }}</td> | 122 | <td>{{ zdbhqks[0].dbr }}</td> |
| 123 | </tr> --> | 123 | </tr> --> |
| 124 | 124 | ||
| 125 | |||
| 126 | |||
| 127 | </table> | 125 | </table> |
| 128 | </div> | 126 | </div> |
| 129 | </template> | 127 | </template> |
| 130 | 128 | ||
| 131 | <script> | 129 | <script> |
| 132 | import { getZdjjxxBybdcdyid } from "@/api/registerBook.js"; | 130 | import store from '@/store/index.js' |
| 131 | import { getZdjjxxBybdcdyid } from "@/api/registerBook.js"; | ||
| 133 | 132 | ||
| 134 | export default { | 133 | export default { |
| 135 | data () { | 134 | data () { |
| 136 | return { | 135 | return { |
| 137 | bhqkColumns: [ | 136 | bhqkColumns: [ |
| ... | @@ -176,6 +175,15 @@ export default { | ... | @@ -176,6 +175,15 @@ export default { |
| 176 | bdclxList: ["", "宗地", "宗海", "自然幢", "多幢", "构筑物", "林权", "户"], | 175 | bdclxList: ["", "宗地", "宗海", "自然幢", "多幢", "构筑物", "林权", "户"], |
| 177 | }; | 176 | }; |
| 178 | }, | 177 | }, |
| 178 | filters: { | ||
| 179 | qlsdfs: function (value) { | ||
| 180 | const foundItem = store.getters.dictData['A10'].find(item => item.dcode === String(value)); | ||
| 181 | if (foundItem) { | ||
| 182 | console.log(foundItem.dname, 'foundItem.dname'); | ||
| 183 | return foundItem.dname; | ||
| 184 | } | ||
| 185 | } | ||
| 186 | }, | ||
| 179 | created () { | 187 | created () { |
| 180 | this.loadData(); | 188 | this.loadData(); |
| 181 | }, | 189 | }, |
| ... | @@ -192,9 +200,9 @@ export default { | ... | @@ -192,9 +200,9 @@ export default { |
| 192 | }); | 200 | }); |
| 193 | }, | 201 | }, |
| 194 | }, | 202 | }, |
| 195 | }; | 203 | }; |
| 196 | </script> | 204 | </script> |
| 197 | 205 | ||
| 198 | <style lang="scss" scoped> | 206 | <style lang="scss" scoped> |
| 199 | @import "~@/styles/tablecss.scss"; | 207 | @import "~@/styles/tablecss.scss"; |
| 200 | </style> | 208 | </style> | ... | ... |
| ... | @@ -36,11 +36,11 @@ | ... | @@ -36,11 +36,11 @@ |
| 36 | </div> | 36 | </div> |
| 37 | </template> | 37 | </template> |
| 38 | <script> | 38 | <script> |
| 39 | import { mapGetters } from "vuex"; | 39 | import { mapGetters } from "vuex"; |
| 40 | import clxxAddDialog from "./clxxAddDialog.vue"; | 40 | import clxxAddDialog from "./dialog/clxxAddDialog.vue"; |
| 41 | import imagePreview from '@/views/components/imagePreview.vue' | 41 | import imagePreview from '@/views/components/imagePreview.vue' |
| 42 | import {InitClml,saveClml,deleteSjClml,moveClml} from "@/api/clxx.js"; | 42 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; |
| 43 | export default { | 43 | export default { |
| 44 | components: { clxxAddDialog, imagePreview }, | 44 | components: { clxxAddDialog, imagePreview }, |
| 45 | data () { | 45 | data () { |
| 46 | return { | 46 | return { |
| ... | @@ -239,7 +239,7 @@ export default { | ... | @@ -239,7 +239,7 @@ export default { |
| 239 | formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); | 239 | formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); |
| 240 | formdata.append("bsmSlsq", this.$parent.bsmSlsq); | 240 | formdata.append("bsmSlsq", this.$parent.bsmSlsq); |
| 241 | InitClml(formdata).then((res) => { | 241 | InitClml(formdata).then((res) => { |
| 242 | if(res.result.code == 200){ | 242 | if (res.result.code == 200) { |
| 243 | resolve(res.code) | 243 | resolve(res.code) |
| 244 | if (res.result.result && res.result.result.length > 0) { | 244 | if (res.result.result && res.result.result.length > 0) { |
| 245 | this.tableData = res.result.result; | 245 | this.tableData = res.result.result; |
| ... | @@ -251,7 +251,7 @@ export default { | ... | @@ -251,7 +251,7 @@ export default { |
| 251 | this.previewImg.imgList = this.tableData[0]?.children; | 251 | this.previewImg.imgList = this.tableData[0]?.children; |
| 252 | this.previewImg.bsmSj = this.tableData[0]?.bsmSj; | 252 | this.previewImg.bsmSj = this.tableData[0]?.bsmSj; |
| 253 | } | 253 | } |
| 254 | }else{ | 254 | } else { |
| 255 | this.$message.error(res.result.message) | 255 | this.$message.error(res.result.message) |
| 256 | } | 256 | } |
| 257 | }) | 257 | }) |
| ... | @@ -401,27 +401,27 @@ export default { | ... | @@ -401,27 +401,27 @@ export default { |
| 401 | } | 401 | } |
| 402 | }, | 402 | }, |
| 403 | }, | 403 | }, |
| 404 | }; | 404 | }; |
| 405 | </script> | 405 | </script> |
| 406 | <style scoped lang='scss'> | 406 | <style scoped lang='scss'> |
| 407 | @import "~@/styles/mixin.scss"; | 407 | @import "~@/styles/mixin.scss"; |
| 408 | 408 | ||
| 409 | .active { | 409 | .active { |
| 410 | background: $light-blue !important; | 410 | background: $light-blue !important; |
| 411 | color: #fff; | 411 | color: #fff; |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | .required { | 414 | .required { |
| 415 | font-size: 12px; | 415 | font-size: 12px; |
| 416 | color: $pink; | 416 | color: $pink; |
| 417 | float: left; | 417 | float: left; |
| 418 | } | 418 | } |
| 419 | 419 | ||
| 420 | .cl_number { | 420 | .cl_number { |
| 421 | float: right; | 421 | float: right; |
| 422 | } | 422 | } |
| 423 | 423 | ||
| 424 | .clxx { | 424 | .clxx { |
| 425 | width: 100%; | 425 | width: 100%; |
| 426 | display: flex; | 426 | display: flex; |
| 427 | padding-left: 5px; | 427 | padding-left: 5px; |
| ... | @@ -436,7 +436,7 @@ export default { | ... | @@ -436,7 +436,7 @@ export default { |
| 436 | width: 28px; | 436 | width: 28px; |
| 437 | height: 49%; | 437 | height: 49%; |
| 438 | @include flex-center; | 438 | @include flex-center; |
| 439 | background-color: #E4E7ED; | 439 | background-color: #e4e7ed; |
| 440 | border-bottom-right-radius: 10px; | 440 | border-bottom-right-radius: 10px; |
| 441 | padding: 5px; | 441 | padding: 5px; |
| 442 | cursor: pointer; | 442 | cursor: pointer; |
| ... | @@ -479,7 +479,6 @@ export default { | ... | @@ -479,7 +479,6 @@ export default { |
| 479 | border-right: 1px dotted #d9d9d9; | 479 | border-right: 1px dotted #d9d9d9; |
| 480 | padding: 0 15px; | 480 | padding: 0 15px; |
| 481 | 481 | ||
| 482 | |||
| 483 | .item { | 482 | .item { |
| 484 | line-height: 30px; | 483 | line-height: 30px; |
| 485 | padding-top: 5px; | 484 | padding-top: 5px; |
| ... | @@ -528,5 +527,5 @@ export default { | ... | @@ -528,5 +527,5 @@ export default { |
| 528 | } | 527 | } |
| 529 | } | 528 | } |
| 530 | } | 529 | } |
| 531 | } | 530 | } |
| 532 | </style> | 531 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -24,18 +24,18 @@ | ... | @@ -24,18 +24,18 @@ |
| 24 | </div> | 24 | </div> |
| 25 | </div> | 25 | </div> |
| 26 | <clxxAddDialog v-model="isDialog" /> | 26 | <clxxAddDialog v-model="isDialog" /> |
| 27 | <clxxDetailDialog v-model="detailDialog" :data="tableData"/> | 27 | <clxxDetailDialog v-model="detailDialog" :data="tableData" /> |
| 28 | </div> | 28 | </div> |
| 29 | </template> | 29 | </template> |
| 30 | <script> | 30 | <script> |
| 31 | import { mapGetters } from "vuex"; | 31 | import { mapGetters } from "vuex"; |
| 32 | import clxxAddDialog from "./clxxAddDialog.vue"; | 32 | import clxxAddDialog from "./dialog/clxxAddDialog.vue"; |
| 33 | import clxxDetailDialog from "./clxxDetailDialog.vue"; | 33 | import clxxDetailDialog from "./clxxDetailDialog.vue"; |
| 34 | import imagePreview from '@/views/components/imagePreview.vue' | 34 | import imagePreview from '@/views/components/imagePreview.vue' |
| 35 | import {InitClml,saveClml,deleteSjClml,moveClml} from "@/api/clxx.js"; | 35 | import { InitClml, saveClml, deleteSjClml, moveClml } from "@/api/clxx.js"; |
| 36 | import { popupDialog } from "@/utils/popup.js"; | 36 | import { popupDialog } from "@/utils/popup.js"; |
| 37 | export default { | 37 | export default { |
| 38 | components: { clxxAddDialog, imagePreview,clxxDetailDialog }, | 38 | components: { clxxAddDialog, imagePreview, clxxDetailDialog }, |
| 39 | data () { | 39 | data () { |
| 40 | return { | 40 | return { |
| 41 | isDialog: false, | 41 | isDialog: false, |
| ... | @@ -91,24 +91,24 @@ export default { | ... | @@ -91,24 +91,24 @@ export default { |
| 91 | formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); | 91 | formdata.append("bsmSldy", this.unitData[0]?.bsmSldy); |
| 92 | formdata.append("bsmSlsq", this.$parent.bsmSlsq); | 92 | formdata.append("bsmSlsq", this.$parent.bsmSlsq); |
| 93 | InitClml(formdata).then((res) => { | 93 | InitClml(formdata).then((res) => { |
| 94 | if(res.code == 200){ | 94 | if (res.code == 200) { |
| 95 | resolve(res.code) | 95 | resolve(res.code) |
| 96 | if (res.result && res.result.length > 0) { | 96 | if (res.result && res.result.length > 0) { |
| 97 | this.tableData = res.result; | 97 | this.tableData = res.result; |
| 98 | if(type == 1){ | 98 | if (type == 1) { |
| 99 | this.treeClick(this.tableData[0],0); | 99 | this.treeClick(this.tableData[0], 0); |
| 100 | }else{ | 100 | } else { |
| 101 | //新增材料后刷新列表焦点置于新增的对象上 | 101 | //新增材料后刷新列表焦点置于新增的对象上 |
| 102 | this.treeClick(this.tableData[this.tableData.length - 1],this.tableData.length - 1); | 102 | this.treeClick(this.tableData[this.tableData.length - 1], this.tableData.length - 1); |
| 103 | } | 103 | } |
| 104 | } | 104 | } |
| 105 | }else{ | 105 | } else { |
| 106 | this.$message.error(res.message) | 106 | this.$message.error(res.message) |
| 107 | } | 107 | } |
| 108 | }) | 108 | }) |
| 109 | }) | 109 | }) |
| 110 | }, | 110 | }, |
| 111 | setChecked(item){ | 111 | setChecked (item) { |
| 112 | this.treeCheckId = item.bsmSj; | 112 | this.treeCheckId = item.bsmSj; |
| 113 | this.title = item.sjmc; | 113 | this.title = item.sjmc; |
| 114 | this.titleYs = 1; | 114 | this.titleYs = 1; |
| ... | @@ -192,37 +192,37 @@ export default { | ... | @@ -192,37 +192,37 @@ export default { |
| 192 | } | 192 | } |
| 193 | }, | 193 | }, |
| 194 | //查看明细 | 194 | //查看明细 |
| 195 | viewDetail(){ | 195 | viewDetail () { |
| 196 | this.detailDialog = true; | 196 | this.detailDialog = true; |
| 197 | }, | 197 | }, |
| 198 | //设置tableData | 198 | //设置tableData |
| 199 | setTableData(tableData){ | 199 | setTableData (tableData) { |
| 200 | this.$nextTick(res => { | 200 | this.$nextTick(res => { |
| 201 | this.tableData = tableData; | 201 | this.tableData = tableData; |
| 202 | }) | 202 | }) |
| 203 | }, | 203 | }, |
| 204 | }, | 204 | }, |
| 205 | }; | 205 | }; |
| 206 | </script> | 206 | </script> |
| 207 | <style scoped lang='scss'> | 207 | <style scoped lang='scss'> |
| 208 | @import "~@/styles/mixin.scss"; | 208 | @import "~@/styles/mixin.scss"; |
| 209 | 209 | ||
| 210 | .active { | 210 | .active { |
| 211 | background: $light-blue !important; | 211 | background: $light-blue !important; |
| 212 | color: #fff; | 212 | color: #fff; |
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | .required { | 215 | .required { |
| 216 | font-size: 12px; | 216 | font-size: 12px; |
| 217 | color: $pink; | 217 | color: $pink; |
| 218 | float: left; | 218 | float: left; |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | .cl_number { | 221 | .cl_number { |
| 222 | float: right; | 222 | float: right; |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | .clxx { | 225 | .clxx { |
| 226 | width: 100%; | 226 | width: 100%; |
| 227 | display: flex; | 227 | display: flex; |
| 228 | padding-left: 5px; | 228 | padding-left: 5px; |
| ... | @@ -237,7 +237,7 @@ export default { | ... | @@ -237,7 +237,7 @@ export default { |
| 237 | width: 28px; | 237 | width: 28px; |
| 238 | height: 49%; | 238 | height: 49%; |
| 239 | @include flex-center; | 239 | @include flex-center; |
| 240 | background-color: #E4E7ED; | 240 | background-color: #e4e7ed; |
| 241 | border-bottom-right-radius: 10px; | 241 | border-bottom-right-radius: 10px; |
| 242 | padding: 5px; | 242 | padding: 5px; |
| 243 | cursor: pointer; | 243 | cursor: pointer; |
| ... | @@ -280,7 +280,6 @@ export default { | ... | @@ -280,7 +280,6 @@ export default { |
| 280 | border-right: 1px dotted #d9d9d9; | 280 | border-right: 1px dotted #d9d9d9; |
| 281 | padding: 0 15px; | 281 | padding: 0 15px; |
| 282 | 282 | ||
| 283 | |||
| 284 | .item { | 283 | .item { |
| 285 | line-height: 30px; | 284 | line-height: 30px; |
| 286 | padding-top: 5px; | 285 | padding-top: 5px; |
| ... | @@ -329,5 +328,5 @@ export default { | ... | @@ -329,5 +328,5 @@ export default { |
| 329 | } | 328 | } |
| 330 | } | 329 | } |
| 331 | } | 330 | } |
| 332 | } | 331 | } |
| 333 | </style> | 332 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-05-09 09:20:10 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> |
| 2 | <dialogBox title="新建材料信息" width="20%" isMain v-model="myValue" @closeDialog="closeDialog" @submitForm="handleSubmit" | 7 | <dialogBox title="新建材料信息" width="20%" isMain v-model="myValue" @closeDialog="closeDialog" @submitForm="handleSubmit" |
| 3 | :isFullscreen="false"> | 8 | :isFullscreen="false"> |
| ... | @@ -24,8 +29,8 @@ | ... | @@ -24,8 +29,8 @@ |
| 24 | </template> | 29 | </template> |
| 25 | 30 | ||
| 26 | <script> | 31 | <script> |
| 27 | import { mapGetters } from "vuex"; | 32 | import { mapGetters } from "vuex"; |
| 28 | export default { | 33 | export default { |
| 29 | props: { | 34 | props: { |
| 30 | value: { type: Boolean, default: false }, | 35 | value: { type: Boolean, default: false }, |
| 31 | }, | 36 | }, |
| ... | @@ -56,16 +61,20 @@ export default { | ... | @@ -56,16 +61,20 @@ export default { |
| 56 | }, | 61 | }, |
| 57 | handleSubmit () { | 62 | handleSubmit () { |
| 58 | this.$parent.addSave(this.ruleForm); | 63 | this.$parent.addSave(this.ruleForm); |
| 64 | this.ruleForm = { | ||
| 65 | cllx: "", | ||
| 66 | clmc: "", | ||
| 67 | } | ||
| 59 | this.$emit("input", false); | 68 | this.$emit("input", false); |
| 60 | }, | 69 | }, |
| 61 | }, | 70 | }, |
| 62 | }; | 71 | }; |
| 63 | </script> | 72 | </script> |
| 64 | <style scoped lang="scss"> | 73 | <style scoped lang="scss"> |
| 65 | .submit-button { | 74 | .submit-button { |
| 66 | text-align: center; | 75 | text-align: center; |
| 67 | height: 52px; | 76 | height: 52px; |
| 68 | padding-top: 10px; | 77 | padding-top: 10px; |
| 69 | background-color: #fff; | 78 | background-color: #fff; |
| 70 | } | 79 | } |
| 71 | </style> | 80 | </style> | ... | ... |
-
Please register or sign in to post a comment