Commit 43fe14a3caf95e71ae6f6b8055fafa5bce792c03
Merge branch 'master' of http://39.98.150.180/webapp/GreenwayWeb
Showing
6 changed files
with
84 additions
and
29 deletions
admin-web-master/src/components/fujianUpload/index.vue
| @@ -40,8 +40,8 @@ | @@ -40,8 +40,8 @@ | ||
| 40 | class="el-upload__tip" | 40 | class="el-upload__tip" |
| 41 | > | 41 | > |
| 42 | 请上传 | 42 | 请上传 |
| 43 | - <template v-if="fileSize"> 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b></template> | ||
| 44 | - <template v-if="fileType"> 格式为 <b style="color: #f56c6c">{{ fileType.join('/') }}</b></template> | 43 | + <template v-if="fileSize"> 大小不超过 <b style="color: #3F9B6A">{{ fileSize }}MB</b></template> |
| 44 | + <template v-if="fileType"> 格式为 <b style="color: #3F9B6A">{{ fileType.join('/') }}</b></template> | ||
| 45 | 的文件 | 45 | 的文件 |
| 46 | </div> | 46 | </div> |
| 47 | 47 |
admin-web-master/src/utils/request.js
| @@ -20,8 +20,8 @@ if (host == '172.16.61.48' || host == '172.16.61.49 :5173' || host =='172.16.61. | @@ -20,8 +20,8 @@ if (host == '172.16.61.48' || host == '172.16.61.49 :5173' || host =='172.16.61. | ||
| 20 | // PREFIX = 'http://172.16.61.48/meserver/admin-server'; | 20 | // PREFIX = 'http://172.16.61.48/meserver/admin-server'; |
| 21 | // PREFIX = 'http://192.168.2.98:9003'; | 21 | // PREFIX = 'http://192.168.2.98:9003'; |
| 22 | // PREFIX = 'http://8.130.38.56:8019/admin-server'; | 22 | // PREFIX = 'http://8.130.38.56:8019/admin-server'; |
| 23 | - // PREFIX = 'http://192.168.2.236:9003'; | ||
| 24 | - PREFIX = 'https://jy.scjysm.asia:18086/meserver/admin-server'; | 23 | + PREFIX = 'http://192.168.8.106:9003'; |
| 24 | + // PREFIX = 'https://jy.scjysm.asia:18086/meserver/admin-server'; | ||
| 25 | // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server'; | 25 | // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server'; |
| 26 | 26 | ||
| 27 | }else{ | 27 | }else{ |
admin-web-master/src/views/ads/fangli/bianform.vue
| @@ -381,7 +381,7 @@ guihuaDate:[], | @@ -381,7 +381,7 @@ guihuaDate:[], | ||
| 381 | this.ruleForm.resourceManagement = JSON.stringify(this.ruleForm.resourceManagement) | 381 | this.ruleForm.resourceManagement = JSON.stringify(this.ruleForm.resourceManagement) |
| 382 | } | 382 | } |
| 383 | 383 | ||
| 384 | -const { pageNumber, pageSize, ...rest } = this.ruleForm | 384 | +// const { pageNumber, pageSize, ...rest } = this.ruleForm |
| 385 | // this.ruleForm = rest | 385 | // this.ruleForm = rest |
| 386 | // console.log(this.ruleForm) | 386 | // console.log(this.ruleForm) |
| 387 | // return | 387 | // return |
admin-web-master/src/views/ads/fangli/index.vue
| @@ -249,6 +249,13 @@ export default { | @@ -249,6 +249,13 @@ export default { | ||
| 249 | plan_Time:[], | 249 | plan_Time:[], |
| 250 | formSel: { | 250 | formSel: { |
| 251 | planName:'', | 251 | planName:'', |
| 252 | + pageNumber: 1, | ||
| 253 | + pageSize: 10, | ||
| 254 | + cereInvestmentPlanningManagement:{ | ||
| 255 | + implementationStartTime:'', | ||
| 256 | + implementationEndTime:'' | ||
| 257 | + } | ||
| 258 | + | ||
| 252 | }, | 259 | }, |
| 253 | secondData: { | 260 | secondData: { |
| 254 | card: 'first', // 切换 | 261 | card: 'first', // 切换 |
| @@ -297,21 +304,21 @@ export default { | @@ -297,21 +304,21 @@ export default { | ||
| 297 | // 查询全数据 | 304 | // 查询全数据 |
| 298 | async getAll() { | 305 | async getAll() { |
| 299 | const res = await fangGetAll(this.pageindex); | 306 | const res = await fangGetAll(this.pageindex); |
| 300 | - let result = []; | ||
| 301 | - res.data.content.forEach(item => { | ||
| 302 | - item.cereResourceStrategy.forEach(strategy => { | ||
| 303 | - // 复制原始数据的部分字段 | ||
| 304 | - let newItem = { | ||
| 305 | - planName: item.planName, | ||
| 306 | - cereInvestmentPlanningManagement: item.cereInvestmentPlanningManagement, | ||
| 307 | - auditStatus: item.auditStatus, | ||
| 308 | - // ...其他需要合并显示的字段 | ||
| 309 | - }; | ||
| 310 | - // 添加cereResourceStrategy中的字段 | ||
| 311 | - newItem.cereResourceStrategy = strategy; | ||
| 312 | - result.push(newItem); | ||
| 313 | - }) | ||
| 314 | - }) | 307 | + // let result = []; |
| 308 | + // res.data.content.forEach(item => { | ||
| 309 | + // item.cereResourceStrategy.forEach(strategy => { | ||
| 310 | + // // 复制原始数据的部分字段 | ||
| 311 | + // let newItem = { | ||
| 312 | + // planName: item.planName, | ||
| 313 | + // cereInvestmentPlanningManagement: item.cereInvestmentPlanningManagement, | ||
| 314 | + // auditStatus: item.auditStatus, | ||
| 315 | + // // ...其他需要合并显示的字段 | ||
| 316 | + // }; | ||
| 317 | + // // 添加cereResourceStrategy中的字段 | ||
| 318 | + // newItem.cereResourceStrategy = strategy; | ||
| 319 | + // result.push(newItem); | ||
| 320 | + // }) | ||
| 321 | + // }) | ||
| 315 | this.tableData = res.data.content | 322 | this.tableData = res.data.content |
| 316 | this.total = res.data.content.length | 323 | this.total = res.data.content.length |
| 317 | 324 | ||
| @@ -323,15 +330,20 @@ export default { | @@ -323,15 +330,20 @@ export default { | ||
| 323 | // 查询 | 330 | // 查询 |
| 324 | async onSubmit() { | 331 | async onSubmit() { |
| 325 | let forms ={ | 332 | let forms ={ |
| 333 | + planName:'', | ||
| 326 | pageNumber: 1, | 334 | pageNumber: 1, |
| 327 | pageSize: 10, | 335 | pageSize: 10, |
| 336 | + cereInvestmentPlanningManagement:{ | ||
| 337 | + implementationStartTime:'', | ||
| 338 | + implementationEndTime:'' | ||
| 339 | + } | ||
| 328 | } | 340 | } |
| 329 | if(this.formSel.planName !=''){ | 341 | if(this.formSel.planName !=''){ |
| 330 | forms.planName = this.formSel.planName | 342 | forms.planName = this.formSel.planName |
| 331 | } | 343 | } |
| 332 | if(this.plan_Time.length!=0){ | 344 | if(this.plan_Time.length!=0){ |
| 333 | - forms.implementationStartTime = this.plan_Time[0] | ||
| 334 | - forms.implementationEndTime = this.plan_Time[1] | 345 | + forms.cereInvestmentPlanningManagement.implementationStartTime = this.plan_Time[0] |
| 346 | + forms.cereInvestmentPlanningManagement.implementationEndTime = this.plan_Time[1] | ||
| 335 | } | 347 | } |
| 336 | const res = await fangGetAll(forms) | 348 | const res = await fangGetAll(forms) |
| 337 | this.tableData = res.data.content | 349 | this.tableData = res.data.content |
| @@ -381,10 +393,13 @@ export default { | @@ -381,10 +393,13 @@ export default { | ||
| 381 | // 重置按钮 | 393 | // 重置按钮 |
| 382 | resetting() { | 394 | resetting() { |
| 383 | this.formSel = { | 395 | this.formSel = { |
| 384 | - affiliation: '', | ||
| 385 | - createUser: '', | ||
| 386 | - createDate: '', | ||
| 387 | - contacts: '', | 396 | + planName:'', |
| 397 | + pageNumber: 1, | ||
| 398 | + pageSize: 10, | ||
| 399 | + cereInvestmentPlanningManagement:{ | ||
| 400 | + implementationStartTime:'', | ||
| 401 | + implementationEndTime:'' | ||
| 402 | + } | ||
| 388 | } | 403 | } |
| 389 | this.plan_Time = [] | 404 | this.plan_Time = [] |
| 390 | this.getAll() | 405 | this.getAll() |
admin-web-master/src/views/detect/information.vue
| @@ -196,7 +196,12 @@ | @@ -196,7 +196,12 @@ | ||
| 196 | <upimg v-model="ruleForm.displayMainImage" :limit="1" :fileSize="1"></upimg> | 196 | <upimg v-model="ruleForm.displayMainImage" :limit="1" :fileSize="1"></upimg> |
| 197 | </el-form-item> | 197 | </el-form-item> |
| 198 | <el-form-item label="其他图片/视频" prop="displayMainVidio"> | 198 | <el-form-item label="其他图片/视频" prop="displayMainVidio"> |
| 199 | - <upvidio v-model="ruleForm.displayMainVidio" :limit="3"></upvidio> | 199 | + <!-- <upvidio v-model="ruleForm.displayMainVidio" :limit="3"></upvidio> --> |
| 200 | + <el-upload class="upload-demo" ref="upload" :on-remove="handleRemove" | ||
| 201 | + :action="uploadFileUrl" :on-success="handleUploadSuccess" :file-list="fileData" | ||
| 202 | + :auto-upload="true" v-if="fileData.length==0"> | ||
| 203 | + <el-button style="background-color: #fff;color: #3F9B6A;border: 1px solid #dcdfe6;" class="buttonHover" v-if="fileData.length==0">+点击上传</el-button> | ||
| 204 | + </el-upload> | ||
| 200 | </el-form-item> | 205 | </el-form-item> |
| 201 | 206 | ||
| 202 | <el-form-item> | 207 | <el-form-item> |
| @@ -301,8 +306,15 @@ | @@ -301,8 +306,15 @@ | ||
| 301 | <img :src="editbgid.displayMainImage" alt="" style="width:140px;height:140px;" v-else> | 306 | <img :src="editbgid.displayMainImage" alt="" style="width:140px;height:140px;" v-else> |
| 302 | </el-form-item> | 307 | </el-form-item> |
| 303 | <el-form-item label="其他图片/视频" prop="displayMainVidio"> | 308 | <el-form-item label="其他图片/视频" prop="displayMainVidio"> |
| 304 | - <upvidio v-model="editbgid.displayMainVidio" :limit="3" v-if="edit==false"></upvidio> | ||
| 305 | - <img :src="editbgid.displayMainVidio" alt="" style="width:140px;height:140px;" v-else> | 309 | + <div v-if="edit">{{editbgid.displayMainVidio}}</div> |
| 310 | + <el-upload class="upload-demo" ref="upload" :on-remove="handleRemove" | ||
| 311 | + :action="uploadFileUrl" :on-success="handleUploadSuccess" :file-list="fileData" | ||
| 312 | + :auto-upload="true" v-if="fileData.length==0" v-else> | ||
| 313 | + <el-button style="background-color: #fff;color: #3F9B6A;border: 1px solid #dcdfe6;" class="buttonHover" v-if="fileData.length==0">+点击上传</el-button> | ||
| 314 | + </el-upload> | ||
| 315 | + | ||
| 316 | + <!-- <upvidio v-model="editbgid.displayMainVidio" :limit="3" v-if="edit==false"></upvidio> | ||
| 317 | + <img :src="editbgid.displayMainVidio" alt="" style="width:140px;height:140px;" v-else> --> | ||
| 306 | </el-form-item> | 318 | </el-form-item> |
| 307 | </el-form> | 319 | </el-form> |
| 308 | </div> | 320 | </div> |
| @@ -488,6 +500,9 @@ | @@ -488,6 +500,9 @@ | ||
| 488 | import { | 500 | import { |
| 489 | getToken, removeToken | 501 | getToken, removeToken |
| 490 | } from '@/utils/auth' | 502 | } from '@/utils/auth' |
| 503 | + import { | ||
| 504 | + uploadUrl | ||
| 505 | + } from '@/utils/request' | ||
| 491 | import MapMark from "@/components/MapContainer/MapMark"; | 506 | import MapMark from "@/components/MapContainer/MapMark"; |
| 492 | import MapXian from "@/components/MapContainer/MapXian"; | 507 | import MapXian from "@/components/MapContainer/MapXian"; |
| 493 | import upimg from "@/components/ImageUpload/index"; | 508 | import upimg from "@/components/ImageUpload/index"; |
| @@ -497,6 +512,8 @@ | @@ -497,6 +512,8 @@ | ||
| 497 | name: 'information', | 512 | name: 'information', |
| 498 | data() { | 513 | data() { |
| 499 | return { | 514 | return { |
| 515 | + uploadFileUrl: uploadUrl, // 请求地址 | ||
| 516 | + fileData:[], | ||
| 500 | edit: true, //编辑 | 517 | edit: true, //编辑 |
| 501 | formInline: {}, | 518 | formInline: {}, |
| 502 | ggXin:true,//新增 | 519 | ggXin:true,//新增 |
| @@ -662,6 +679,9 @@ components: {MapMark,MapXian,upimg,upvidio}, | @@ -662,6 +679,9 @@ components: {MapMark,MapXian,upimg,upvidio}, | ||
| 662 | addpush(formName){ | 679 | addpush(formName){ |
| 663 | this.$refs[formName].validate((valid) => { | 680 | this.$refs[formName].validate((valid) => { |
| 664 | if (valid) { | 681 | if (valid) { |
| 682 | + if(this.fileData.length !=0){ | ||
| 683 | + this.ruleForm.displayMainVidio = this.fileData[0].url | ||
| 684 | + } | ||
| 665 | this.ruleForm.createDate = this.updateCurrentTime() | 685 | this.ruleForm.createDate = this.updateCurrentTime() |
| 666 | this.ruleForm.mapPunctuation = JSON.stringify(this.mapData) | 686 | this.ruleForm.mapPunctuation = JSON.stringify(this.mapData) |
| 667 | this.ruleForm.rentalStatus=0 | 687 | this.ruleForm.rentalStatus=0 |
| @@ -734,6 +754,9 @@ components: {MapMark,MapXian,upimg,upvidio}, | @@ -734,6 +754,9 @@ components: {MapMark,MapXian,upimg,upvidio}, | ||
| 734 | }, | 754 | }, |
| 735 | //查看编辑确定 | 755 | //查看编辑确定 |
| 736 | async editpush(){ | 756 | async editpush(){ |
| 757 | + if(this.fileData.length !=0){ | ||
| 758 | + this.editbgid.displayMainVidio = this.fileData[0].url | ||
| 759 | + } | ||
| 737 | this.editbgid.updateDate = this.updateCurrentTime() | 760 | this.editbgid.updateDate = this.updateCurrentTime() |
| 738 | this.editbgid.mapPunctuation = JSON.stringify(this.mapData) | 761 | this.editbgid.mapPunctuation = JSON.stringify(this.mapData) |
| 739 | await editList(this.editbgid) | 762 | await editList(this.editbgid) |
| @@ -743,6 +766,7 @@ components: {MapMark,MapXian,upimg,upvidio}, | @@ -743,6 +766,7 @@ components: {MapMark,MapXian,upimg,upvidio}, | ||
| 743 | }, | 766 | }, |
| 744 | //新增 | 767 | //新增 |
| 745 | addbuss(){ | 768 | addbuss(){ |
| 769 | + this.fileData = [] | ||
| 746 | this.ggXin = false | 770 | this.ggXin = false |
| 747 | this.ruleForm={ | 771 | this.ruleForm={ |
| 748 | shopName:'', | 772 | shopName:'', |
| @@ -796,6 +820,17 @@ getChildDate(mapData){ | @@ -796,6 +820,17 @@ getChildDate(mapData){ | ||
| 796 | this.editbgid.belongingParkTrail = '' | 820 | this.editbgid.belongingParkTrail = '' |
| 797 | this.gongyuan1(vaule) | 821 | this.gongyuan1(vaule) |
| 798 | }, | 822 | }, |
| 823 | + handleRemove(file, fileList) { | ||
| 824 | + this.fileData = [] | ||
| 825 | + }, | ||
| 826 | + handleUploadSuccess(response, file, fileList) { | ||
| 827 | + const fileMsg = { | ||
| 828 | + name:file.name, | ||
| 829 | + url: file.response.data.url, | ||
| 830 | + } | ||
| 831 | + // 将文件地址存储在 uploadedFiles 数组中 | ||
| 832 | + this.fileData.push(fileMsg); | ||
| 833 | + }, | ||
| 799 | } | 834 | } |
| 800 | } | 835 | } |
| 801 | </script> | 836 | </script> |
admin-web-master/src/views/investigation/index.vue
| @@ -1850,6 +1850,11 @@ objectToArray(obj) { | @@ -1850,6 +1850,11 @@ objectToArray(obj) { | ||
| 1850 | this.secondData = item | 1850 | this.secondData = item |
| 1851 | Vue.set(this.plan_Time, 0, this.secondData.startDate) | 1851 | Vue.set(this.plan_Time, 0, this.secondData.startDate) |
| 1852 | Vue.set(this.plan_Time, 1, this.secondData.endDate) | 1852 | Vue.set(this.plan_Time, 1, this.secondData.endDate) |
| 1853 | + if (typeof item.question == 'string') { | ||
| 1854 | + item.question = JSON.parse(item.question) | ||
| 1855 | + } | ||
| 1856 | + | ||
| 1857 | + console.log(item.question) | ||
| 1853 | this.secondDataTi = item.cereQuestionManagements | 1858 | this.secondDataTi = item.cereQuestionManagements |
| 1854 | this.bainjiBox = true | 1859 | this.bainjiBox = true |
| 1855 | 1860 |