Commit 4dd4b07b5c33f3c871b0ec0bcc9e2939911c57b1

Authored by 杨鑫
1 parent 3658193b

'1'

admin-web-master/src/utils/request.js
@@ -17,6 +17,7 @@ let baseURL = '' @@ -17,6 +17,7 @@ let baseURL = ''
17 if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { 17 if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) {
18 // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; 18 // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1;
19 baseURL = 'http://192.168.2.225:9003'; 19 baseURL = 'http://192.168.2.225:9003';
  20 + // baseURL = 'http://192.168.2.36:9003';
20 } else { 21 } else {
21 console.error('---------------------') 22 console.error('---------------------')
22 console.error(hostall) 23 console.error(hostall)
admin-web-master/src/views/activity/activityBz.vue
@@ -119,8 +119,9 @@ @@ -119,8 +119,9 @@
119 </el-row> 119 </el-row>
120 <el-row :gutter="20"> 120 <el-row :gutter="20">
121 <el-col :span="12"> 121 <el-col :span="12">
122 - <el-form-item label="活动封面海报" prop="cover_poster" class="grid-content bg-purple">  
123 - <upimg v-model="ruleForm.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg> 122 + <el-form-item label="活动封面海报" prop="coverPoster" class="grid-content bg-purple">
  123 + <upimg filePath="act" :value="ruleForm.coverPoster" inputtype="coverPoster" :limit="1" @changimg="e=>changimg(e,'coverPoster')"></upimg>
  124 + <!-- <upimg v-model="ruleForm.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg> -->
124 </el-form-item> 125 </el-form-item>
125 </el-col> 126 </el-col>
126 </el-row> 127 </el-row>
@@ -280,13 +281,14 @@ @@ -280,13 +281,14 @@
280 <div style="padding: 10px 13px;font-size: 12px;border-bottom: 1px solid #E5E5E5;display: flex;"> 281 <div style="padding: 10px 13px;font-size: 12px;border-bottom: 1px solid #E5E5E5;display: flex;">
281 <div>相关附件</div> 282 <div>相关附件</div>
282 <div> 283 <div>
283 - <el-upload class="upload-demo" ref="upload" :on-preview="handlePreview" :on-remove="handleRemove" 284 + <upfile filePath="act" inputtype="otherImageVideos" :value="ruleForm.otherImageVideos" @changimg="e=>changimg(e,'otherImageVideos')"></upfile>
  285 + <!-- <el-upload class="upload-demo" ref="upload" :on-preview="handlePreview" :on-remove="handleRemove"
284 :action="uploadFileUrl" :on-success="handleUploadSuccess" :file-list="fileData" 286 :action="uploadFileUrl" :on-success="handleUploadSuccess" :file-list="fileData"
285 :show-file-list="false"> 287 :show-file-list="false">
286 <div style="color: #2d8a58;margin-left: 10px;" slot="trigger"> 288 <div style="color: #2d8a58;margin-left: 10px;" slot="trigger">
287 上传附件 289 上传附件
288 </div> 290 </div>
289 - </el-upload> 291 + </el-upload> -->
290 </div> 292 </div>
291 </div> 293 </div>
292 <div style="padding: 15px;"> 294 <div style="padding: 15px;">
@@ -382,6 +384,7 @@ @@ -382,6 +384,7 @@
382 } from '@/utils/request' 384 } from '@/utils/request'
383 import html2canvas from 'html2canvas' 385 import html2canvas from 'html2canvas'
384 import jsPDF from 'jspdf' 386 import jsPDF from 'jspdf'
  387 + import upfile from "@/components/fujianUpload/fujianList"
385 export default { 388 export default {
386 props: { 389 props: {
387 showAdd: { 390 showAdd: {
@@ -398,7 +401,8 @@ @@ -398,7 +401,8 @@
398 name: 'activityBz', 401 name: 'activityBz',
399 components: { 402 components: {
400 wangEditor, 403 wangEditor,
401 - upimg 404 + upimg,
  405 + upfile
402 }, 406 },
403 407
404 data() { 408 data() {
@@ -509,6 +513,10 @@ lishiList:&#39;&#39;, @@ -509,6 +513,10 @@ lishiList:&#39;&#39;,
509 this.lishi() 513 this.lishi()
510 }, 514 },
511 methods: { 515 methods: {
  516 + changimg(e,type) {
  517 + this.ruleForm[type] = e
  518 + console.log(e)
  519 + },
512 //获取当前时间 520 //获取当前时间
513 updateCurrentTime() { 521 updateCurrentTime() {
514 const now = new Date(); 522 const now = new Date();
@@ -543,6 +551,7 @@ lishiList:&#39;&#39;, @@ -543,6 +551,7 @@ lishiList:&#39;&#39;,
543 this.$refs.upload.submit(); 551 this.$refs.upload.submit();
544 }, 552 },
545 handleUploadSuccess(response, file, fileList) { 553 handleUploadSuccess(response, file, fileList) {
  554 + console.log(response, file, fileList)
546 this.dataList.push(file) 555 this.dataList.push(file)
547 }, 556 },
548 handleRemove(file, fileList) { 557 handleRemove(file, fileList) {
admin-web-master/src/views/activity/index.vue
@@ -140,7 +140,7 @@ @@ -140,7 +140,7 @@
140 <div style="width: 100%;"> 140 <div style="width: 100%;">
141 <div style="display: flex;padding:0px 20px 20px 20px; "> 141 <div style="display: flex;padding:0px 20px 20px 20px; ">
142 <div style="width: 150px;height: 80px;" v-if="secondData.coverPoster"> 142 <div style="width: 150px;height: 80px;" v-if="secondData.coverPoster">
143 - <img :src="secondData.coverPoster" alt="" style="width: 100%;height: 80px;" /> 143 + <img :src="$baseURL+secondData.coverPoster" alt="" style="width: 100%;height: 80px;" />
144 </div> 144 </div>
145 <div 145 <div
146 style="display: flex;flex-direction: column;justify-content: space-around;padding: 0 10px;font-size: 12px;"> 146 style="display: flex;flex-direction: column;justify-content: space-around;padding: 0 10px;font-size: 12px;">
@@ -961,9 +961,7 @@ @@ -961,9 +961,7 @@
961 </el-table-column> 961 </el-table-column>
962 <el-table-column label="类型" prop="planType" width="80"> 962 <el-table-column label="类型" prop="planType" width="80">
963 </el-table-column> 963 </el-table-column>
964 - <el-table-column label="发布状态" width="80" >  
965 964
966 - </el-table-column>  
967 <el-table-column label="审批状态" width="150"> 965 <el-table-column label="审批状态" width="150">
968 <template slot-scope="scope"> 966 <template slot-scope="scope">
969 {{scope.row.state == ''?'待提交':scope.row.state == '1'?'待审批':scope.row.state == '2'?'部门领导审批':scope.row.state == '3'?'公司领导审批':scope.row.state == '4'?'其他审批':scope.row.state == '5'?'审核通过':'已驳回'}} 967 {{scope.row.state == ''?'待提交':scope.row.state == '1'?'待审批':scope.row.state == '2'?'部门领导审批':scope.row.state == '3'?'公司领导审批':scope.row.state == '4'?'其他审批':scope.row.state == '5'?'审核通过':'已驳回'}}
@@ -971,14 +969,12 @@ @@ -971,14 +969,12 @@
971 </el-table-column> 969 </el-table-column>
972 <el-table-column label="修改时间" prop="createDate"width="250" > 970 <el-table-column label="修改时间" prop="createDate"width="250" >
973 </el-table-column> 971 </el-table-column>
974 - <el-table-column prop="createUser" label="上传人员" width="80">  
975 972
976 - </el-table-column>  
977 <el-table-column label="操作" width="350"> 973 <el-table-column label="操作" width="350">
978 <template slot-scope="scope"> 974 <template slot-scope="scope">
979 <div @click="shiyong(scope.row)" class="tableBtn greens">使用</div> 975 <div @click="shiyong(scope.row)" class="tableBtn greens">使用</div>
980 <!-- <div @click="actBian(scope.row)" class="tableBtn greens" v-if="scope.row.state == ''">修改</div> --> 976 <!-- <div @click="actBian(scope.row)" class="tableBtn greens" v-if="scope.row.state == ''">修改</div> -->
981 - <div @click="handleDelete(scope.row)" class="tableBtn greens">删除</div> 977 + <div @click="handleDel(scope.row)" class="tableBtn greens">删除</div>
982 </template> 978 </template>
983 </el-table-column> 979 </el-table-column>
984 </el-table> 980 </el-table>
@@ -1378,6 +1374,39 @@ @@ -1378,6 +1374,39 @@
1378 }) 1374 })
1379 } 1375 }
1380 }, 1376 },
  1377 + handleDel(val){
  1378 +
  1379 +
  1380 + const h = this.$createElement;
  1381 + this.$msgbox({
  1382 + title: '消息',
  1383 + message: h('p', null, [
  1384 + h('span', null, '是否删除 '),
  1385 + ]),
  1386 + showCancelButton: true,
  1387 + showClose: false,
  1388 + confirmButtonText: '确定',
  1389 + cancelButtonText: '取消',
  1390 + customClass: 'oe-dialog-btn',
  1391 + beforeClose: (action, instance, done) => {
  1392 + if (action === 'confirm') {
  1393 + deleteById({
  1394 + id:val.id
  1395 + }).then(res => {
  1396 + this.$message({
  1397 + message: '删除成功',
  1398 + type: 'success'
  1399 + })
  1400 + this.getAll()
  1401 + done();
  1402 + })
  1403 + } else {
  1404 + done();
  1405 + }
  1406 + }
  1407 + })
  1408 +
  1409 + },
1381 //查询 1410 //查询
1382 async onSubmit() { 1411 async onSubmit() {
1383 if (this.planName != '' && this.eventTheme == '') { 1412 if (this.planName != '' && this.eventTheme == '') {