Commit 2d80079a4600674209424f611fdf50a517bfa41c

Authored by 杨鑫
1 parent 7ab02d9a

测评bug 1.0

admin-web-master/src/components/fujianUpload/index.vue
... ... @@ -40,8 +40,8 @@
40 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 46 </div>
47 47  
... ...
admin-web-master/src/layout/index.vue
... ... @@ -254,8 +254,8 @@ export default {
254 254 }
255 255 }
256 256 return {
257   - msg:['招商服务系统'],
258   - // msg:['招商服务系统','推广策划系统','在线商城系统','支付服务模块','票务'],
  257 + // msg:['招商服务系统'],
  258 + msg:['招商服务系统','推广策划系统','在线商城系统','支付服务模块','票务'],
259 259 listMune:[],
260 260 list:[
261 261 // ['问卷调查'],
... ...
admin-web-master/src/utils/request.js
... ... @@ -20,7 +20,7 @@ if (host == &#39;172.16.61.48&#39; || host == &#39;172.16.61.49 :5173&#39; || host ==&#39;172.16.61.
20 20 // PREFIX = 'http://172.16.61.48/meserver/admin-server';
21 21 // PREFIX = 'http://192.168.2.98:9003';
22 22 // PREFIX = 'http://8.130.38.56:8019/admin-server';
23   - PREFIX = 'http://192.168.2.236:9003';
  23 + PREFIX = 'http://192.168.8.106:9003';
24 24 // PREFIX = 'https://jy.scjysm.asia:18086/meserver/admin-server';
25 25 // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server';
26 26  
... ...
admin-web-master/src/views/ads/fangli/bianform.vue
... ... @@ -381,7 +381,7 @@ guihuaDate:[],
381 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 385 // this.ruleForm = rest
386 386 // console.log(this.ruleForm)
387 387 // return
... ...
admin-web-master/src/views/ads/fangli/index.vue
... ... @@ -249,6 +249,13 @@ export default {
249 249 plan_Time:[],
250 250 formSel: {
251 251 planName:'',
  252 + pageNumber: 1,
  253 + pageSize: 10,
  254 + cereInvestmentPlanningManagement:{
  255 + implementationStartTime:'',
  256 + implementationEndTime:''
  257 + }
  258 +
252 259 },
253 260 secondData: {
254 261 card: 'first', // 切换
... ... @@ -297,21 +304,21 @@ export default {
297 304 // 查询全数据
298 305 async getAll() {
299 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 322 this.tableData = res.data.content
316 323 this.total = res.data.content.length
317 324  
... ... @@ -323,15 +330,20 @@ export default {
323 330 // 查询
324 331 async onSubmit() {
325 332 let forms ={
  333 + planName:'',
326 334 pageNumber: 1,
327 335 pageSize: 10,
  336 + cereInvestmentPlanningManagement:{
  337 + implementationStartTime:'',
  338 + implementationEndTime:''
  339 + }
328 340 }
329 341 if(this.formSel.planName !=''){
330 342 forms.planName = this.formSel.planName
331 343 }
332 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 348 const res = await fangGetAll(forms)
337 349 this.tableData = res.data.content
... ... @@ -381,10 +393,13 @@ export default {
381 393 // 重置按钮
382 394 resetting() {
383 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 404 this.plan_Time = []
390 405 this.getAll()
... ...
admin-web-master/src/views/detect/information.vue
... ... @@ -196,7 +196,12 @@
196 196 <upimg v-model="ruleForm.displayMainImage" :limit="1" :fileSize="1"></upimg>
197 197 </el-form-item>
198 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 205 </el-form-item>
201 206  
202 207 <el-form-item>
... ... @@ -301,8 +306,15 @@
301 306 <img :src="editbgid.displayMainImage" alt="" style="width:140px;height:140px;" v-else>
302 307 </el-form-item>
303 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 318 </el-form-item>
307 319 </el-form>
308 320 </div>
... ... @@ -488,6 +500,9 @@
488 500 import {
489 501 getToken, removeToken
490 502 } from '@/utils/auth'
  503 + import {
  504 + uploadUrl
  505 + } from '@/utils/request'
491 506 import MapMark from "@/components/MapContainer/MapMark";
492 507 import MapXian from "@/components/MapContainer/MapXian";
493 508 import upimg from "@/components/ImageUpload/index";
... ... @@ -497,6 +512,8 @@
497 512 name: 'information',
498 513 data() {
499 514 return {
  515 + uploadFileUrl: uploadUrl, // 请求地址
  516 + fileData:[],
500 517 edit: true, //编辑
501 518 formInline: {},
502 519 ggXin:true,//新增
... ... @@ -662,6 +679,9 @@ components: {MapMark,MapXian,upimg,upvidio},
662 679 addpush(formName){
663 680 this.$refs[formName].validate((valid) => {
664 681 if (valid) {
  682 + if(this.fileData.length !=0){
  683 + this.ruleForm.displayMainVidio = this.fileData[0].url
  684 + }
665 685 this.ruleForm.createDate = this.updateCurrentTime()
666 686 this.ruleForm.mapPunctuation = JSON.stringify(this.mapData)
667 687 this.ruleForm.rentalStatus=0
... ... @@ -734,6 +754,9 @@ components: {MapMark,MapXian,upimg,upvidio},
734 754 },
735 755 //查看编辑确定
736 756 async editpush(){
  757 + if(this.fileData.length !=0){
  758 + this.editbgid.displayMainVidio = this.fileData[0].url
  759 + }
737 760 this.editbgid.updateDate = this.updateCurrentTime()
738 761 this.editbgid.mapPunctuation = JSON.stringify(this.mapData)
739 762 await editList(this.editbgid)
... ... @@ -743,6 +766,7 @@ components: {MapMark,MapXian,upimg,upvidio},
743 766 },
744 767 //新增
745 768 addbuss(){
  769 + this.fileData = []
746 770 this.ggXin = false
747 771 this.ruleForm={
748 772 shopName:'',
... ... @@ -796,6 +820,17 @@ getChildDate(mapData){
796 820 this.editbgid.belongingParkTrail = ''
797 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 836 </script>
... ...
admin-web-master/src/views/investigation/index.vue
... ... @@ -1850,6 +1850,11 @@ objectToArray(obj) {
1850 1850 this.secondData = item
1851 1851 Vue.set(this.plan_Time, 0, this.secondData.startDate)
1852 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 1858 this.secondDataTi = item.cereQuestionManagements
1854 1859 this.bainjiBox = true
1855 1860  
... ...