style:代码整理
Showing
13 changed files
with
267 additions
and
687 deletions
src/components/formMenu/qlr.vue
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
src/components/formMenu/qlxz.vue
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
| 1 | <template> | ||
| 2 | <div class="temp"> | ||
| 3 | <el-row class="qlxzModule" v-for="(items, index) in countList" :key="items.id"> | ||
| 4 | <template v-for="(childItem, childIndex) in items.list"> | ||
| 5 | <el-col :span="2" class="btnCol" :key="childIndex + '1'" :class="childIndex > 0 ? 'childYT noTopBorder' : ''"> | ||
| 6 | <el-button v-show="childIndex < 1" type="primary" class="changeBtn addMinus outAdd" | ||
| 7 | @click="handleClick(index, 'add')">+</el-button> | ||
| 8 | <el-button v-show="childIndex < 1" type="primary" class="changeBtn addMinus outMinus" | ||
| 9 | @click="handleClick(index, 'minus')">-</el-button> | ||
| 10 | <div :class="items.hasNotBorder ? 'itemShow whiteItem' : 'whiteItem'" v-if="items.isInside"></div> | ||
| 11 | </el-col> | ||
| 12 | <el-col :span="2" class="btnCol" :key="childIndex + '8'" :class="childIndex > 0 ? 'childYT' : ''"> | ||
| 13 | <!-- <template v-if="childIndex>0"> --> | ||
| 14 | <span class="qlxz" v-show="childIndex < 1">权利性质</span><br /> | ||
| 15 | <el-button type="primary" class="changeBtn addMinus inAdd" @click="handleInClick(index, childIndex, 'add')">+ | ||
| 16 | </el-button> | ||
| 17 | <el-button type="primary" class="changeBtn addMinus inMinus" | ||
| 18 | @click="handleInClick(index, childIndex, 'minus')">-</el-button> | ||
| 19 | <!-- </template> --> | ||
| 20 | </el-col> | ||
| 21 | <el-col :span="5" :key="childIndex + '7'" :class="childIndex > 0 ? 'childYT' : ''"> | ||
| 22 | <ul> | ||
| 23 | <li>批准用途</li> | ||
| 24 | <li>实际用途</li> | ||
| 25 | <li>土地使用起始时间<i class="requisite">*</i></li> | ||
| 26 | </ul> | ||
| 27 | </el-col> | ||
| 28 | <el-col :span="5" :key="childIndex + '6'" :class="childIndex > 0 ? 'childYT' : ''"> | ||
| 29 | <ul> | ||
| 30 | <li> | ||
| 31 | <el-select-tree v-if="show" :default-expand-all="defaultExpandAll" :multiple="multiple" | ||
| 32 | :placeholder="placeholder" :disabled="disabled" :data="$store.state.tdytList" :props="treeProps" | ||
| 33 | :check-strictly="checkStrictly" :clearable="clearable" v-model="childItem.pzytdm"></el-select-tree> | ||
| 34 | </li> | ||
| 35 | <li> | ||
| 36 | <el-select-tree v-if="show" :default-expand-all="defaultExpandAll" :multiple="multiple" | ||
| 37 | :placeholder="placeholder" :disabled="disabled" :data="$store.state.tdytList" :props="treeProps" | ||
| 38 | :check-strictly="checkStrictly" :clearable="clearable" v-model="childItem.sjytdm"></el-select-tree> | ||
| 39 | </li> | ||
| 40 | <li> | ||
| 41 | <el-date-picker v-model="childItem.tdsyqssj" :picker-options="childItem.pickerStart" type="date" | ||
| 42 | value-format="yyyy-MM-dd" placeholder="选择日期" @input="startTime(index, childIndex)"> | ||
| 43 | </el-date-picker> | ||
| 44 | </li> | ||
| 45 | </ul> | ||
| 46 | </el-col> | ||
| 47 | <el-col :span="5" :key="childIndex + '5'" :class="childIndex > 0 ? 'childYT' : ''"> | ||
| 48 | <ul> | ||
| 49 | <li>地类编码</li> | ||
| 50 | <li>地类编码</li> | ||
| 51 | <li>土地使用结束时间<i class="requisite">*</i></li> | ||
| 52 | </ul> | ||
| 53 | </el-col> | ||
| 54 | <el-col :span="5" :key="childIndex + '4'" :class="childIndex > 0 ? 'childYT' : ''"> | ||
| 55 | <ul> | ||
| 56 | <li> | ||
| 57 | <input type="text" style="top: -1px;" v-model="childItem.pzytdm" class="formInput" /> | ||
| 58 | </li> | ||
| 59 | <li> | ||
| 60 | <input type="text" v-model="childItem.sjytdm" class="formInput" /> | ||
| 61 | </li> | ||
| 62 | <li> | ||
| 63 | <el-date-picker v-model="childItem.tdsyjssj" type="date" value-format="yyyy-MM-dd" | ||
| 64 | :picker-options="childItem.pickerEnd" placeholder="选择日期" @input="endTime(index, childIndex)"> | ||
| 65 | </el-date-picker> | ||
| 66 | </li> | ||
| 67 | </ul> | ||
| 68 | </el-col> | ||
| 69 | </template> | ||
| 70 | |||
| 71 | <div class="title"> | ||
| 72 | <el-select class="formSelect" v-model="items.qlxzdm"> | ||
| 73 | <el-option v-for="item in $store.state.qlxzList" :key="item.dm" :label="item.mc" :value="item.dm"> | ||
| 74 | </el-option> | ||
| 75 | </el-select> | ||
| 76 | </div> | ||
| 77 | </el-row> | ||
| 78 | </div> | ||
| 79 | </template> | ||
| 80 | |||
| 81 | <script> | ||
| 82 | // import { getDdicByMC } from "@api/common"; | ||
| 83 | export default { | ||
| 84 | props: { | ||
| 85 | // widtd: { | ||
| 86 | // type: String, | ||
| 87 | default: "70%", | ||
| 88 | , | ||
| 89 | a () { | ||
| 90 | return { | ||
| 91 | //树型结构 | ||
| 92 | how: true, | ||
| 93 | arable: true, | ||
| 94 | aultExpandAll: true, | ||
| 95 | tiple: false, | ||
| 96 | ceholder: "请选择", | ||
| 97 | abled: false, | ||
| 98 | ckStrictly: true, | ||
| 99 | eProps: { | ||
| 100 | lue: "dm", | ||
| 101 | ildren: "children", | ||
| 102 | bel: "mc", | ||
| 103 | |||
| 104 | ntList: [ | ||
| 105 | |||
| 106 | id: Math.random(), | ||
| 107 | isInside: false, | ||
| 108 | hasNotBorder: false, | ||
| 109 | bsm: "", //权利性质标识码 | ||
| 110 | lbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM | ||
| 111 | lxzdm: "", | ||
| 112 | zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 | ||
| 113 | list: [ | ||
| 114 | { | ||
| 115 | pzdjbsm: "", | ||
| 116 | pzdjmc: "", | ||
| 117 | pzytdm: "", | ||
| 118 | pzytmc: "", | ||
| 119 | pzytmj: 0, | ||
| 120 | qlxzbsm: "", | ||
| 121 | sjdjbsm: "", | ||
| 122 | sjdjmc: "", | ||
| 123 | sjytdm: "", | ||
| 124 | sjytmc: "", | ||
| 125 | jytmj: 0, | ||
| 126 | syqx: "", | ||
| 127 | tdsyjssj: "", | ||
| 128 | tdsyqssj: "", | ||
| 129 | pickerStart: {}, | ||
| 130 | pickerEnd: {}, | ||
| 131 | tdzh: "", | ||
| 132 | }, | ||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | Num: 0, | ||
| 137 | |||
| 138 | |||
| 139 | ed () { }, | ||
| 140 | hods: { | ||
| 141 | 外层操作 | ||
| 142 | ndleClick (ind, type) { | ||
| 143 | outsideObj = { | ||
| 144 | Math.random(), | ||
| 145 | Inside: false, | ||
| 146 | sNotBorder: false, | ||
| 147 | "", //权利性质标识码 | ||
| 148 | bsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM | ||
| 149 | xzdm: "", | ||
| 150 | zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 | ||
| 151 | list: [ | ||
| 152 | { | ||
| 153 | pzdjbsm: "", | ||
| 154 | pzdjmc: "", | ||
| 155 | pzytdm: "", | ||
| 156 | pzytmc: "", | ||
| 157 | pzytmj: 0, | ||
| 158 | qlxzbsm: "", | ||
| 159 | sjdjbsm: "", | ||
| 160 | sjdjmc: "", | ||
| 161 | sjytdm: "", | ||
| 162 | sjytmc: "", | ||
| 163 | sjytmj: 0, | ||
| 164 | syqx: "", | ||
| 165 | tdsyjssj: "", | ||
| 166 | tdsyqssj: "", | ||
| 167 | tdzh: "", | ||
| 168 | |||
| 169 | |||
| 170 | }; | ||
| 171 | (type === "add") { | ||
| 172 | is.countList.push(outsideObj); | ||
| 173 | is.outNum++; | ||
| 174 | lse { | ||
| 175 | .countList.forEach((item, index) => { | ||
| 176 | f (index == ind && this.countList.length > 1) { | ||
| 177 | this.countList.splice(index, 1); | ||
| 178 | } | ||
| 179 | }); | ||
| 180 | this.outNum--; | ||
| 181 | |||
| 182 | Click (index, childIndex, type) { | ||
| 183 | eObj = { | ||
| 184 | ", | ||
| 185 | , | ||
| 186 | "", | ||
| 187 | "", | ||
| 188 | : 0, | ||
| 189 | m: "", | ||
| 190 | m: "", | ||
| 191 | "", | ||
| 192 | : "", | ||
| 193 | : "", | ||
| 194 | : 0, | ||
| 195 | "", | ||
| 196 | jssj: "", | ||
| 197 | sj: "", | ||
| 198 | : "", | ||
| 199 | e === "add") { | ||
| 200 | ountList[index].list.splice(childIndex + 1, 0, insideObj); | ||
| 201 | |||
| 202 | ountList[index].list.forEach((item, childInd) => { | ||
| 203 | (childIndex == childInd && this.countList[index].list.length > 1) { | ||
| 204 | this.countList[index].list.splice(childIndex, 1); | ||
| 205 | } | ||
| 206 | }); | ||
| 207 | |||
| 208 | s.hasBorderOrNot(); | ||
| 209 | 是否显示边框 | ||
| 210 | orderOrNot () { | ||
| 211 | s.countList.forEach((item, index) => { | ||
| 212 | (index == this.countList.length - 1) { | ||
| 213 | m.hasNotBorder = true; | ||
| 214 | { | ||
| 215 | sNotBorder = | ||
| 216 | sInside && !this.countList[index + 1].isInside ? true : false; | ||
| 217 | aList () { | ||
| 218 | this.countList; | ||
| 219 | 时间判断 | ||
| 220 | tTime (index, childIndex) { | ||
| 221 | tartTime = this.countList[index].list[childIndex].tdsyqssj; | ||
| 222 | endTime = this.countList[index].list[childIndex].tdsyjssj; | ||
| 223 | s.countList[index].list[childIndex].pickerEnd = { | ||
| 224 | bledDate: (time) => { | ||
| 225 | f (Object.keys(startTime).length > 0) { | ||
| 226 | return new Date(startTime).getTime() > time.getTime(); | ||
| 227 | lse { | ||
| 228 | rn time.getTime() < Date.now(); | ||
| 229 | t.keys(startTime).length > 0 && Object.keys(endTime).length > 0) { | ||
| 230 | ear = new Date(startTime).getFullYear(); | ||
| 231 | ear = new Date(endTime).getFullYear(); | ||
| 232 | ime (index, childIndex, e) { | ||
| 233 | onsole.log(e, 'eeeeee'); | ||
| 234 | let startTime = this.countList[index].list[childIndex].tdsyqssj; | ||
| 235 | let endTime = this.countList[index].list[childIndex].tdsyjssj; | ||
| 236 | this.countList[index].list[childIndex].pickerStart = { | ||
| 237 | disabledDate: (time) => { | ||
| 238 | if (Object.keys(endTime).length > 0) { | ||
| 239 | return new Date(endTime).getTime() < time.getTime(); | ||
| 240 | } else { | ||
| 241 | return time.getTime() > Date.now(); | ||
| 242 | } | ||
| 243 | } | ||
| 244 | } | ||
| 245 | if (Object.keys(startTime).length > 0 && Object.keys(endTime).length > 0) { | ||
| 246 | let startYear = new Date(startTime).getFullYear(); | ||
| 247 | let endYear = new Date(endTime).getFullYear(); | ||
| 248 | } | ||
| 249 | }, | ||
| 250 | }, | ||
| 251 | }; | ||
| 252 | </script> | ||
| 253 | <style lang="scss"> | ||
| 254 | .temp { | ||
| 255 | width: 100%; | ||
| 256 | |||
| 257 | .qlxzModule { | ||
| 258 | height: auto; | ||
| 259 | position: relative; | ||
| 260 | border-bottom: 1px solid #e6e6e6; | ||
| 261 | |||
| 262 | .el-col { | ||
| 263 | // height: 100%; | ||
| 264 | border-right: 1px solid #E6E6E6; | ||
| 265 | position: relative; | ||
| 266 | text-align: right; | ||
| 267 | padding-right: 10px; | ||
| 268 | |||
| 269 | .qlxz { | ||
| 270 | line-height: 34px; | ||
| 271 | } | ||
| 272 | |||
| 273 | ul { | ||
| 274 | margin-top: 34px; | ||
| 275 | |||
| 276 | li { | ||
| 277 | height: 37px; | ||
| 278 | line-height: 37px; | ||
| 279 | text-decoration: none; | ||
| 280 | border-bottom: 1px solid #e6e6e6; | ||
| 281 | |||
| 282 | .el-select { | ||
| 283 | width: 100%; | ||
| 284 | } | ||
| 285 | |||
| 286 | .el-input { | ||
| 287 | width: 100%; | ||
| 288 | } | ||
| 289 | |||
| 290 | .el-input__inner { | ||
| 291 | height: 34px; | ||
| 292 | } | ||
| 293 | |||
| 294 | input { | ||
| 295 | position: relative; | ||
| 296 | top: -2px; | ||
| 297 | height: 35px; | ||
| 298 | width: calc(100% - 1px) !important; | ||
| 299 | } | ||
| 300 | } | ||
| 301 | |||
| 302 | li:last-child { | ||
| 303 | border-bottom: none; | ||
| 304 | } | ||
| 305 | } | ||
| 306 | |||
| 307 | .whiteItem { | ||
| 308 | background-color: #fff; | ||
| 309 | position: absolute; | ||
| 310 | width: 100%; | ||
| 311 | height: 2px; | ||
| 312 | bottom: -1px; | ||
| 313 | left: 0; | ||
| 314 | } | ||
| 315 | |||
| 316 | .itemShow { | ||
| 317 | bottom: 2px; | ||
| 318 | } | ||
| 319 | } | ||
| 320 | |||
| 321 | .childYT { | ||
| 322 | height: 114px; | ||
| 323 | border-top: 1px solid #E6E6E6; | ||
| 324 | |||
| 325 | ul { | ||
| 326 | margin-top: 0; | ||
| 327 | |||
| 328 | li { | ||
| 329 | .el-input__inner { | ||
| 330 | height: 29px; | ||
| 331 | } | ||
| 332 | } | ||
| 333 | } | ||
| 334 | |||
| 335 | .changeBtn { | ||
| 336 | margin-top: -48px; | ||
| 337 | } | ||
| 338 | |||
| 339 | .el-button+.el-button { | ||
| 340 | margin-top: 4px; | ||
| 341 | } | ||
| 342 | } | ||
| 343 | |||
| 344 | .noTopBorder { | ||
| 345 | border-top: 0; | ||
| 346 | } | ||
| 347 | |||
| 348 | .noRightBorder { | ||
| 349 | border-right: 0; | ||
| 350 | } | ||
| 351 | |||
| 352 | .el-col:nth-last-child(2) { | ||
| 353 | border-right: none; | ||
| 354 | } | ||
| 355 | |||
| 356 | .title { | ||
| 357 | width: 83.33333%; | ||
| 358 | height: 34px; | ||
| 359 | line-height: 34px; | ||
| 360 | background-color: #fff; | ||
| 361 | border-bottom: 1px solid #E6E6E6; | ||
| 362 | position: absolute; | ||
| 363 | right: 0; | ||
| 364 | top: 0; | ||
| 365 | |||
| 366 | .formSelect { | ||
| 367 | top: -1px; | ||
| 368 | width: 100%; | ||
| 369 | |||
| 370 | .el-input__inner { | ||
| 371 | height: 32px; | ||
| 372 | } | ||
| 373 | } | ||
| 374 | } | ||
| 375 | } | ||
| 376 | |||
| 377 | .btnCol { | ||
| 378 | position: relative; | ||
| 379 | height: 146px; | ||
| 380 | |||
| 381 | .changeBtn { | ||
| 382 | width: 46px; | ||
| 383 | height: 46px; | ||
| 384 | font-size: 30px; | ||
| 385 | padding: 4px 6px; | ||
| 386 | position: absolute; | ||
| 387 | top: 50%; | ||
| 388 | left: 50%; | ||
| 389 | margin-top: -38px; | ||
| 390 | margin-left: -23px; | ||
| 391 | } | ||
| 392 | |||
| 393 | .el-button+.el-button { | ||
| 394 | margin-left: -23px; | ||
| 395 | margin-top: 16px; | ||
| 396 | } | ||
| 397 | } | ||
| 398 | |||
| 399 | .el-row:nth-last-child(1) { | ||
| 400 | border-bottom: none; | ||
| 401 | } | ||
| 402 | |||
| 403 | /deep/.el-select-tree { | ||
| 404 | width: 100%; | ||
| 405 | |||
| 406 | .el-input__inner { | ||
| 407 | height: 30px !important; | ||
| 408 | } | ||
| 409 | } | ||
| 410 | } | ||
| 411 | </style> | 
src/components/lineTree/lineItem.vue
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
src/components/lineTree/lineTree.vue
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| 1 |  | ||
| 2 | export default { | ||
| 3 | methods:{ | ||
| 4 | downloadTxt(text, fileName){ | ||
| 5 | let element = document.createElement('a') | ||
| 6 | element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) | ||
| 7 | element.setAttribute('download', fileName) | ||
| 8 | element.style.display = 'none' | ||
| 9 | element.click() | ||
| 10 | }, | ||
| 11 | createTextContent(jzdInfo){ | ||
| 12 | var textContent = ""; | ||
| 13 | for(var i = 0;i < jzdInfo.length;i++){ | ||
| 14 | textContent += jzdInfo[i].jzdh +","+jzdInfo[i].sxh+"," + | ||
| 15 | jzdInfo[i].x+","+jzdInfo[i].y+"\n" | ||
| 16 | } | ||
| 17 | return textContent; | ||
| 18 | }, | ||
| 19 | |||
| 20 | } | ||
| 21 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | 
This diff is collapsed.
Click to expand it.
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-19 16:04:43 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> | 
| 2 | <dialogBox title="新增法律法规" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" | 7 | <dialogBox title="新增法律法规" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" | 
| 3 | @closeDialog="closeDialog" v-model="value"> | 8 | @closeDialog="closeDialog" v-model="value"> | 
| ... | @@ -25,72 +30,71 @@ | ... | @@ -25,72 +30,71 @@ | 
| 25 | </template> | 30 | </template> | 
| 26 | 31 | ||
| 27 | <script> | 32 | <script> | 
| 28 | import { addSysNotice } from "@/api/sysNotice.js" | 33 | import { addSysNotice } from "@/api/sysNotice.js" | 
| 29 | import { upload } from "@/api/file.js" | 34 | import { upload } from "@/api/file.js" | 
| 30 | export default { | 35 | export default { | 
| 31 | props: { | 36 | props: { | 
| 32 | value: { type: Boolean, default: false }, | 37 | value: { type: Boolean, default: false }, | 
| 33 | }, | 38 | }, | 
| 34 | data () { | 39 | data () { | 
| 35 | return { | 40 | return { | 
| 36 | ruleForm: { | 41 | ruleForm: { | 
| 37 | noticeTitle: '', | 42 | noticeTitle: '', | 
| 38 | noticeContent: '', | 43 | noticeContent: '', | 
| 39 | noticeFileUrl: '', | 44 | noticeFileUrl: '', | 
| 40 | noticeType: '2' | 45 | noticeType: '2' | 
| 46 | }, | ||
| 47 | rules: { | ||
| 48 | noticeTitle: [ | ||
| 49 | { required: true, message: '请输入法律法规标题', trigger: 'blur' } | ||
| 50 | ] | ||
| 51 | }, | ||
| 52 | } | ||
| 53 | }, | ||
| 54 | |||
| 55 | methods: { | ||
| 56 | submitForm () { | ||
| 57 | let that = this; | ||
| 58 | that.$refs.ruleForm.validate(valid => { | ||
| 59 | if (valid) { | ||
| 60 | addSysNotice(this.ruleForm).then(res => { | ||
| 61 | if (res.code == 200) { | ||
| 62 | this.$message.success('保存成功') | ||
| 63 | this.$emit("input", false); | ||
| 64 | this.resetRuleForm(); | ||
| 65 | this.$parent.queryClick(); | ||
| 66 | } else { | ||
| 67 | this.$message.error(res.message) | ||
| 68 | } | ||
| 69 | }) | ||
| 70 | } else { | ||
| 71 | // console.log('error submit!!'); | ||
| 72 | return false; | ||
| 73 | } | ||
| 74 | }); | ||
| 75 | }, | ||
| 76 | //关闭窗口 | ||
| 77 | closeDialog () { | ||
| 78 | this.$emit("input", false); | ||
| 79 | this.resetRuleForm(); | ||
| 41 | }, | 80 | }, | 
| 42 | rules: { | 81 | // | 
| 43 | noticeTitle: [ | 82 | resetRuleForm () { | 
| 44 | { required: true, message: '请输入法律法规标题', trigger: 'blur' } | 83 | this.$refs['ruleForm'].resetFields(); | 
| 45 | ] | 84 | this.ruleForm.noticeType = '2' | 
| 85 | }, | ||
| 86 | beforeUpload (file) { | ||
| 87 | return true; | ||
| 88 | }, | ||
| 89 | async handleChange (file) { | ||
| 90 | var formdata = new FormData(); | ||
| 91 | formdata.append("file", file.raw); | ||
| 92 | upload(formdata).then(res => { | ||
| 93 | this.ruleForm.noticeFileUrl = res.message | ||
| 94 | }) | ||
| 46 | }, | 95 | }, | 
| 47 | } | 96 | } | 
| 48 | }, | ||
| 49 | |||
| 50 | methods: { | ||
| 51 | submitForm () { | ||
| 52 | let that = this; | ||
| 53 | that.$refs.ruleForm.validate(valid => { | ||
| 54 | if (valid) { | ||
| 55 | addSysNotice(this.ruleForm).then(res => { | ||
| 56 | if (res.code == 200) { | ||
| 57 | this.$message.success('保存成功') | ||
| 58 | this.$emit("input", false); | ||
| 59 | this.resetRuleForm(); | ||
| 60 | this.$parent.queryClick(); | ||
| 61 | } else { | ||
| 62 | this.$message.error(res.message) | ||
| 63 | } | ||
| 64 | }) | ||
| 65 | } else { | ||
| 66 | // console.log('error submit!!'); | ||
| 67 | return false; | ||
| 68 | } | ||
| 69 | }); | ||
| 70 | }, | ||
| 71 | //关闭窗口 | ||
| 72 | closeDialog () { | ||
| 73 | this.$emit("input", false); | ||
| 74 | this.resetRuleForm(); | ||
| 75 | }, | ||
| 76 | // | ||
| 77 | resetRuleForm () { | ||
| 78 | this.$refs['ruleForm'].resetFields(); | ||
| 79 | this.ruleForm.noticeType = '2' | ||
| 80 | }, | ||
| 81 | beforeUpload (file) { | ||
| 82 | return true; | ||
| 83 | }, | ||
| 84 | async handleChange (file) { | ||
| 85 | var formdata = new FormData(); | ||
| 86 | formdata.append("file", file.raw); | ||
| 87 | upload(formdata).then(res => { | ||
| 88 | this.ruleForm.noticeFileUrl = res.message | ||
| 89 | }) | ||
| 90 | }, | ||
| 91 | } | 97 | } | 
| 92 | } | ||
| 93 | </script> | 98 | </script> | 
| 94 | <style scoped lang="scss"> | 99 | <style scoped lang="scss"> | 
| 95 | |||
| 96 | </style> | 100 | </style> | ... | ... | 
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-19 16:04:47 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> | 
| 2 | <div class="from-clues"> | 7 | <div class="from-clues"> | 
| 3 | <!-- 表单部分 --> | 8 | <!-- 表单部分 --> | 
| ... | @@ -11,7 +16,7 @@ | ... | @@ -11,7 +16,7 @@ | 
| 11 | </el-col> | 16 | </el-col> | 
| 12 | <el-col :span="19" class="btnColRight"> | 17 | <el-col :span="19" class="btnColRight"> | 
| 13 | <el-form-item> | 18 | <el-form-item> | 
| 14 | <el-button type="primary" native-type="submit" @click="handleSearch">查询1</el-button> | 19 | <el-button type="primary" native-type="submit" @click="handleSearch">查询1</el-button> | 
| 15 | <el-button type="primary" @click="openDialog()">新增</el-button> | 20 | <el-button type="primary" @click="openDialog()">新增</el-button> | 
| 16 | </el-form-item> | 21 | </el-form-item> | 
| 17 | </el-col> | 22 | </el-col> | 
| ... | @@ -29,79 +34,79 @@ | ... | @@ -29,79 +34,79 @@ | 
| 29 | </div> | 34 | </div> | 
| 30 | </template> | 35 | </template> | 
| 31 | <script> | 36 | <script> | 
| 32 | import table from "@/utils/mixin/table"; | 37 | import table from "@/utils/mixin/table"; | 
| 33 | import { datas, sendThis } from "./flfgdata"; | 38 | import { datas, sendThis } from "./flfgdata"; | 
| 34 | import { getSysPolicyList, deleteSysNotice } from "@/api/sysNotice.js" | 39 | import { getSysPolicyList, deleteSysNotice } from "@/api/sysNotice.js" | 
| 35 | import addDialog from "./components/addDialog.vue"; | 40 | import addDialog from "./components/addDialog.vue"; | 
| 36 | export default { | 41 | export default { | 
| 37 | name: "flfg", | 42 | name: "flfg", | 
| 38 | components: { addDialog }, | 43 | components: { addDialog }, | 
| 39 | mixins: [table], | 44 | mixins: [table], | 
| 40 | mounted () { | 45 | mounted () { | 
| 41 | sendThis(this); | 46 | sendThis(this); | 
| 42 | this.queryClick() | 47 | this.queryClick() | 
| 43 | }, | ||
| 44 | data () { | ||
| 45 | return { | ||
| 46 | isDialog: false, | ||
| 47 | viewDialog: false, | ||
| 48 | ruleForm: { | ||
| 49 | noticeTitle: '' | ||
| 50 | }, | ||
| 51 | tableData: { | ||
| 52 | total: 0, | ||
| 53 | columns: datas.columns(), | ||
| 54 | data: [], | ||
| 55 | }, | ||
| 56 | isDiglog: false | ||
| 57 | } | ||
| 58 | }, | ||
| 59 | methods: { | ||
| 60 | // 列表渲染接口 | ||
| 61 | queryClick () { | ||
| 62 | this.$startLoading() | ||
| 63 | getSysPolicyList({ ...this.ruleForm, ...this.pageData }, { 'target': '#flfgLoading' }).then(res => { | ||
| 64 | if (res.code === 200) { | ||
| 65 | this.$endLoading() | ||
| 66 | let { total, records } = res.result | ||
| 67 | this.tableData.total = total; | ||
| 68 | this.tableData.data = records | ||
| 69 | } | ||
| 70 | }) | ||
| 71 | }, | 48 | }, | 
| 72 | //打开新增弹窗 | 49 | data () { | 
| 73 | openDialog () { | 50 | return { | 
| 74 | this.isDialog = true; | 51 | isDialog: false, | 
| 52 | viewDialog: false, | ||
| 53 | ruleForm: { | ||
| 54 | noticeTitle: '' | ||
| 55 | }, | ||
| 56 | tableData: { | ||
| 57 | total: 0, | ||
| 58 | columns: datas.columns(), | ||
| 59 | data: [], | ||
| 60 | }, | ||
| 61 | isDiglog: false | ||
| 62 | } | ||
| 75 | }, | 63 | }, | 
| 76 | downloadFile (item) { | 64 | methods: { | 
| 77 | const href = item.noticeFileUrl | 65 | // 列表渲染接口 | 
| 78 | window.open(href, '_blank'); | 66 | queryClick () { | 
| 79 | }, | 67 | this.$startLoading() | 
| 80 | //删除 | 68 | getSysPolicyList({ ...this.ruleForm, ...this.pageData }, { 'target': '#flfgLoading' }).then(res => { | 
| 81 | delNotice (item) { | 69 | if (res.code === 200) { | 
| 82 | this.$confirm('是否确定删除', '提示', { | 70 | this.$endLoading() | 
| 83 | confirmButtonText: '确定', | 71 | let { total, records } = res.result | 
| 84 | cancelButtonText: '取消', | 72 | this.tableData.total = total; | 
| 85 | type: 'warning' | 73 | this.tableData.data = records | 
| 86 | }).then(() => { | ||
| 87 | deleteSysNotice({ "bsmNotice": item.bsmNotice }).then(res => { | ||
| 88 | if (res.code == 200) { | ||
| 89 | this.$message.success('删除成功') | ||
| 90 | this.queryClick(); | ||
| 91 | } else { | ||
| 92 | this.$message.error(res.message) | ||
| 93 | } | 74 | } | 
| 94 | }) | 75 | }) | 
| 95 | }).catch(() => { | 76 | }, | 
| 96 | this.$message({ | 77 | //打开新增弹窗 | 
| 97 | type: 'info', | 78 | openDialog () { | 
| 98 | message: '已取消删除' | 79 | this.isDialog = true; | 
| 80 | }, | ||
| 81 | downloadFile (item) { | ||
| 82 | const href = item.noticeFileUrl | ||
| 83 | window.open(href, '_blank'); | ||
| 84 | }, | ||
| 85 | //删除 | ||
| 86 | delNotice (item) { | ||
| 87 | this.$confirm('是否确定删除', '提示', { | ||
| 88 | confirmButtonText: '确定', | ||
| 89 | cancelButtonText: '取消', | ||
| 90 | type: 'warning' | ||
| 91 | }).then(() => { | ||
| 92 | deleteSysNotice({ "bsmNotice": item.bsmNotice }).then(res => { | ||
| 93 | if (res.code == 200) { | ||
| 94 | this.$message.success('删除成功') | ||
| 95 | this.queryClick(); | ||
| 96 | } else { | ||
| 97 | this.$message.error(res.message) | ||
| 98 | } | ||
| 99 | }) | ||
| 100 | }).catch(() => { | ||
| 101 | this.$message({ | ||
| 102 | type: 'info', | ||
| 103 | message: '已取消删除' | ||
| 104 | }); | ||
| 99 | }); | 105 | }); | 
| 100 | }); | 106 | }, | 
| 101 | }, | 107 | }, | 
| 102 | }, | 108 | }; | 
| 103 | }; | ||
| 104 | </script> | 109 | </script> | 
| 105 | <style scoped lang="scss"> | 110 | <style scoped lang="scss"> | 
| 106 | @import "~@/styles/public.scss"; | 111 | @import "~@/styles/public.scss"; | 
| 107 | </style> | 112 | </style> | ... | ... | 
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-19 16:04:58 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> | 
| 2 | <div> | 7 | <div> | 
| 3 | <div class="qtjfjmb-edit-title"> | 8 | <div class="qtjfjmb-edit-title"> | 
| ... | @@ -117,140 +122,140 @@ | ... | @@ -117,140 +122,140 @@ | 
| 117 | </template> | 122 | </template> | 
| 118 | 123 | ||
| 119 | <script> | 124 | <script> | 
| 120 | import { updateSysSqywmbsz, getSysSqywmbszDetailById } from '@/api/sysSqywmbsz' | 125 | import { updateSysSqywmbsz, getSysSqywmbszDetailById } from '@/api/sysSqywmbsz' | 
| 121 | export default { | 126 | export default { | 
| 122 | props: { | 127 | props: { | 
| 123 | formData: { | 128 | formData: { | 
| 124 | type: Object, | 129 | type: Object, | 
| 125 | default: () => { } | 130 | default: () => { } | 
| 126 | } | 131 | } | 
| 127 | }, | 132 | }, | 
| 128 | mounted () { | 133 | mounted () { | 
| 129 | if (this.formData.bsmMb) { | 134 | if (this.formData.bsmMb) { | 
| 130 | this.$startLoading() | 135 | this.$startLoading() | 
| 131 | getSysSqywmbszDetailById(this.formData.bsmMb).then(res => { | 136 | getSysSqywmbszDetailById(this.formData.bsmMb).then(res => { | 
| 132 | this.$endLoading() | 137 | this.$endLoading() | 
| 133 | let { result } = res | 138 | let { result } = res | 
| 134 | this.ruleForm = result ? result : {} | 139 | this.ruleForm = result ? result : {} | 
| 135 | }) | 140 | }) | 
| 136 | } | 141 | } | 
| 137 | }, | 142 | }, | 
| 138 | data () { | 143 | data () { | 
| 139 | return { | 144 | return { | 
| 140 | n: 0, | 145 | n: 0, | 
| 141 | ruleForm: { | 146 | ruleForm: { | 
| 142 | qllx: '', | 147 | qllx: '', | 
| 143 | qllxmc: '', | 148 | qllxmc: '', | 
| 144 | bdcqzlx: '', | 149 | bdcqzlx: '', | 
| 145 | dymbbs: '', | 150 | dymbbs: '', | 
| 146 | qlqtzk: '', | 151 | qlqtzk: '', | 
| 147 | firstreg: '', | 152 | firstreg: '', | 
| 148 | }, | ||
| 149 | options: [ | ||
| 150 | { | ||
| 151 | value: '1', | ||
| 152 | label: '不动产权证书' | ||
| 153 | }, | 153 | }, | 
| 154 | { | 154 | options: [ | 
| 155 | value: '2', | 155 | { | 
| 156 | label: '不动产登记证明' | 156 | value: '1', | 
| 157 | } | 157 | label: '不动产权证书' | 
| 158 | ], | 158 | }, | 
| 159 | options1: [], | 159 | { | 
| 160 | rules: { | 160 | value: '2', | 
| 161 | qllx: [ | 161 | label: '不动产登记证明' | 
| 162 | { required: true, message: '请输入权利类型编码', trigger: 'blur' } | 162 | } | 
| 163 | ], | 163 | ], | 
| 164 | qllxmc: [ | 164 | options1: [], | 
| 165 | { required: true, message: '请输入权利类型名称', trigger: 'blur' } | 165 | rules: { | 
| 166 | ], | 166 | qllx: [ | 
| 167 | bdcqzlx: [ | 167 | { required: true, message: '请输入权利类型编码', trigger: 'blur' } | 
| 168 | { required: true, message: '请选择不动产权类型', trigger: 'change' } | 168 | ], | 
| 169 | ], | 169 | qllxmc: [ | 
| 170 | dymbbs: [ | 170 | { required: true, message: '请输入权利类型名称', trigger: 'blur' } | 
| 171 | { required: true, message: '请输入打印模板', trigger: 'blur' } | 171 | ], | 
| 172 | ], | 172 | bdcqzlx: [ | 
| 173 | qlqtztmb: [ | 173 | { required: true, message: '请选择不动产权类型', trigger: 'change' } | 
| 174 | { required: true, message: '请输入权利其他状况模板', trigger: 'blur' } | 174 | ], | 
| 175 | ], | 175 | dymbbs: [ | 
| 176 | }, | 176 | { required: true, message: '请输入打印模板', trigger: 'blur' } | 
| 177 | titleList: [ | 177 | ], | 
| 178 | { | 178 | qlqtztmb: [ | 
| 179 | name: '首次登记' | 179 | { required: true, message: '请输入权利其他状况模板', trigger: 'blur' } | 
| 180 | ], | ||
| 180 | }, | 181 | }, | 
| 181 | { | 182 | titleList: [ | 
| 182 | name: '转移登记' | 183 | { | 
| 183 | }, | 184 | name: '首次登记' | 
| 184 | { | 185 | }, | 
| 185 | name: '变更登记' | 186 | { | 
| 186 | }, | 187 | name: '转移登记' | 
| 187 | { | 188 | }, | 
| 188 | name: '注销登记' | 189 | { | 
| 189 | }, | 190 | name: '变更登记' | 
| 190 | { | 191 | }, | 
| 191 | name: '更正登记' | 192 | { | 
| 192 | }, | 193 | name: '注销登记' | 
| 193 | { | 194 | }, | 
| 194 | name: '补证登记' | 195 | { | 
| 195 | }, | 196 | name: '更正登记' | 
| 196 | { | 197 | }, | 
| 197 | name: '换证登记' | 198 | { | 
| 198 | } | 199 | name: '补证登记' | 
| 199 | ] | 200 | }, | 
| 200 | } | 201 | { | 
| 201 | }, | 202 | name: '换证登记' | 
| 202 | methods: { | 203 | } | 
| 203 | handleSelect (index) { | 204 | ] | 
| 204 | this.n = index | 205 | } | 
| 205 | }, | 206 | }, | 
| 206 | submitForm () { | 207 | methods: { | 
| 207 | let that = this | 208 | handleSelect (index) { | 
| 208 | updateSysSqywmbsz(this.ruleForm).then(res => { | 209 | this.n = index | 
| 209 | if (res.code === 200) { | 210 | }, | 
| 210 | this.$popupCacel() | 211 | submitForm () { | 
| 211 | that.$message({ | 212 | let that = this | 
| 212 | message: '修改成功', | 213 | updateSysSqywmbsz(this.ruleForm).then(res => { | 
| 213 | type: 'success' | 214 | if (res.code === 200) { | 
| 214 | }) | 215 | this.$popupCacel() | 
| 215 | } | 216 | that.$message({ | 
| 216 | }) | 217 | message: '修改成功', | 
| 218 | type: 'success' | ||
| 219 | }) | ||
| 220 | } | ||
| 221 | }) | ||
| 222 | } | ||
| 217 | } | 223 | } | 
| 218 | } | 224 | } | 
| 219 | } | ||
| 220 | </script> | 225 | </script> | 
| 221 | <style scoped lang="scss"> | 226 | <style scoped lang="scss"> | 
| 222 | @import "~@/styles/mixin.scss"; | 227 | @import "~@/styles/mixin.scss"; | 
| 223 | @import "~@/styles/dialogBoxheader.scss"; | 228 | @import "~@/styles/dialogBoxheader.scss"; | 
| 224 | 229 | ||
| 225 | .qtjfjmb-edit-title { | 230 | .qtjfjmb-edit-title { | 
| 226 | padding-bottom: 10px; | 231 | padding-bottom: 10px; | 
| 227 | border-bottom: 1px solid $borderColor; | 232 | border-bottom: 1px solid $borderColor; | 
| 228 | margin-bottom: 10px; | 233 | margin-bottom: 10px; | 
| 229 | } | 234 | } | 
| 230 | 235 | ||
| 231 | ul { | 236 | ul { | 
| 232 | @include flex; | 237 | @include flex; | 
| 233 | border-radius: 5px; | 238 | border-radius: 5px; | 
| 234 | overflow: hidden; | 239 | overflow: hidden; | 
| 235 | margin-bottom: 20px; | 240 | margin-bottom: 20px; | 
| 236 | 241 | ||
| 237 | .active { | 242 | .active { | 
| 238 | background: $light-blue; | 243 | background: $light-blue; | 
| 239 | color: #fff; | 244 | color: #fff; | 
| 240 | } | 245 | } | 
| 241 | 246 | ||
| 242 | li { | 247 | li { | 
| 243 | flex: 1; | 248 | flex: 1; | 
| 244 | line-height: 36px; | 249 | line-height: 36px; | 
| 245 | @include flex-center; | 250 | @include flex-center; | 
| 246 | border: 1px solid $borderColor; | 251 | border: 1px solid $borderColor; | 
| 247 | margin-left: -1px; | 252 | margin-left: -1px; | 
| 248 | cursor: pointer; | 253 | cursor: pointer; | 
| 249 | transition: all 0.3s; | 254 | transition: all 0.3s; | 
| 250 | 255 | ||
| 251 | &:hover { | 256 | &:hover { | 
| 252 | @extend .active; | 257 | @extend .active; | 
| 258 | } | ||
| 253 | } | 259 | } | 
| 254 | } | 260 | } | 
| 255 | } | ||
| 256 | </style> | 261 | </style> | ... | ... | 
| ... | @@ -3,9 +3,7 @@ const path = require('path') | ... | @@ -3,9 +3,7 @@ const path = require('path') | 
| 3 | function resolve (dir) { | 3 | function resolve (dir) { | 
| 4 | return path.join(__dirname, dir) | 4 | return path.join(__dirname, dir) | 
| 5 | } | 5 | } | 
| 6 | |||
| 7 | const port = process.env.port || process.env.npm_config_port || 8888 // dev port | 6 | const port = process.env.port || process.env.npm_config_port || 8888 // dev port | 
| 8 | |||
| 9 | // All configuration item explanations can be find in https://cli.vuejs.org/config/ | 7 | // All configuration item explanations can be find in https://cli.vuejs.org/config/ | 
| 10 | module.exports = { | 8 | module.exports = { | 
| 11 | /** | 9 | /** | ... | ... | 
- 
Please register or sign in to post a comment