Commit 4dd4b07b5c33f3c871b0ec0bcc9e2939911c57b1

Authored by 杨鑫
1 parent 3658193b

'1'

admin-web-master/src/utils/request.js
... ... @@ -17,6 +17,7 @@ let baseURL = ''
17 17 if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) {
18 18 // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1;
19 19 baseURL = 'http://192.168.2.225:9003';
  20 + // baseURL = 'http://192.168.2.36:9003';
20 21 } else {
21 22 console.error('---------------------')
22 23 console.error(hostall)
... ...
admin-web-master/src/views/activity/activityBz.vue
... ... @@ -119,8 +119,9 @@
119 119 </el-row>
120 120 <el-row :gutter="20">
121 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 125 </el-form-item>
125 126 </el-col>
126 127 </el-row>
... ... @@ -280,13 +281,14 @@
280 281 <div style="padding: 10px 13px;font-size: 12px;border-bottom: 1px solid #E5E5E5;display: flex;">
281 282 <div>相关附件</div>
282 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 286 :action="uploadFileUrl" :on-success="handleUploadSuccess" :file-list="fileData"
285 287 :show-file-list="false">
286 288 <div style="color: #2d8a58;margin-left: 10px;" slot="trigger">
287 289 上传附件
288 290 </div>
289   - </el-upload>
  291 + </el-upload> -->
290 292 </div>
291 293 </div>
292 294 <div style="padding: 15px;">
... ... @@ -382,6 +384,7 @@
382 384 } from '@/utils/request'
383 385 import html2canvas from 'html2canvas'
384 386 import jsPDF from 'jspdf'
  387 + import upfile from "@/components/fujianUpload/fujianList"
385 388 export default {
386 389 props: {
387 390 showAdd: {
... ... @@ -398,7 +401,8 @@
398 401 name: 'activityBz',
399 402 components: {
400 403 wangEditor,
401   - upimg
  404 + upimg,
  405 + upfile
402 406 },
403 407  
404 408 data() {
... ... @@ -509,6 +513,10 @@ lishiList:&#39;&#39;,
509 513 this.lishi()
510 514 },
511 515 methods: {
  516 + changimg(e,type) {
  517 + this.ruleForm[type] = e
  518 + console.log(e)
  519 + },
512 520 //获取当前时间
513 521 updateCurrentTime() {
514 522 const now = new Date();
... ... @@ -543,6 +551,7 @@ lishiList:&#39;&#39;,
543 551 this.$refs.upload.submit();
544 552 },
545 553 handleUploadSuccess(response, file, fileList) {
  554 + console.log(response, file, fileList)
546 555 this.dataList.push(file)
547 556 },
548 557 handleRemove(file, fileList) {
... ...
admin-web-master/src/views/activity/index.vue
... ... @@ -140,7 +140,7 @@
140 140 <div style="width: 100%;">
141 141 <div style="display: flex;padding:0px 20px 20px 20px; ">
142 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 144 </div>
145 145 <div
146 146 style="display: flex;flex-direction: column;justify-content: space-around;padding: 0 10px;font-size: 12px;">
... ... @@ -961,9 +961,7 @@
961 961 </el-table-column>
962 962 <el-table-column label="类型" prop="planType" width="80">
963 963 </el-table-column>
964   - <el-table-column label="发布状态" width="80" >
965 964  
966   - </el-table-column>
967 965 <el-table-column label="审批状态" width="150">
968 966 <template slot-scope="scope">
969 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 969 </el-table-column>
972 970 <el-table-column label="修改时间" prop="createDate"width="250" >
973 971 </el-table-column>
974   - <el-table-column prop="createUser" label="上传人员" width="80">
975 972  
976   - </el-table-column>
977 973 <el-table-column label="操作" width="350">
978 974 <template slot-scope="scope">
979 975 <div @click="shiyong(scope.row)" class="tableBtn greens">使用</div>
980 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 978 </template>
983 979 </el-table-column>
984 980 </el-table>
... ... @@ -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 1411 async onSubmit() {
1383 1412 if (this.planName != '' && this.eventTheme == '') {
... ...