Forráskód Böngészése

事件流程增加县区审核通过  审核不通过

王通 1 éve
szülő
commit
c7c567c2d0
5 módosított fájl, 1499 hozzáadás és 1288 törlés
  1. 8 0
      src/api/forest.js
  2. 17 17
      src/components/ImageUpload/index.vue
  3. 4 3
      src/main.js
  4. 685 570
      src/views/eventdetailsdialog.vue
  5. 785 698
      src/views/firespread.vue

+ 8 - 0
src/api/forest.js

@@ -207,6 +207,14 @@ export function selectTaskDtpts(param) {
     data:param
   })
 }
+// 事件审核
+export function eventExamine(param) {
+  return request({
+    url: '/center-event/eventcatalogue/eventExamine',
+    method: 'post',
+    data: param
+  })
+}
 // 任务领取
 export function receiveTask(param) {
   return request({

+ 17 - 17
src/components/ImageUpload/index.vue

@@ -46,19 +46,19 @@
 import { getToken } from "@/utils/auth";
 
 export default {
-    name: 'ImageUpload',
+  name: 'ImageUpload',
   props: {
-      ImageUpload: Function,
+    ImageUpload: Function,
     value: [String, Object, Array],
     // 图片数量限制
     limit: {
       type: Number,
-      default: 5,
+      default: 1,
     },
     // 大小限制(MB)
     fileSize: {
-       type: Number,
-      default: 5,
+      type: Number,
+      default: 10,
     },
     // 文件类型, 例如['png', 'jpg', 'jpeg']
     fileType: {
@@ -115,30 +115,30 @@ export default {
   },
 
   methods: {
-      clear: function(){
-          alert('2')
+    clear: function(){
+      alert('2')
 
 
-      },
+    },
     // 删除图片
     handleRemove(file, fileList) {
       const findex = this.fileList.map(f => f.name).indexOf(file.name);
       if(findex > -1) {
         this.fileList.splice(findex, 1);
-        this.$emit("input", this.listToString(this.fileList));
-          // this.ImageUpload.setUrl("")
+        this.$emit("input", this.fileList);
+        // this.ImageUpload.setUrl("")
       }
     },
     // 上传成功回调
     handleUploadSuccess(res) {
-      this.uploadList.push({ name: res.data.url, url: res.data.url });
+      this.uploadList.push({ name: res.data.url, url: res.data.webUrl });
       if (this.uploadList.length === this.number) {
         this.fileList = this.fileList.concat(this.uploadList);
         this.uploadList = [];
         this.number = 0;
         console.log("213",this.fileList)
-          // this.ImageUpload.setUrl(res.data.url)
-        this.$emit("input", this.listToString(this.fileList));
+        // this.ImageUpload.setUrl(res.data.url)
+        this.$emit("input", this.fileList);
         this.$modal.closeLoading();
       }
     },
@@ -202,17 +202,17 @@ export default {
 <style scoped lang="scss">
 // .el-upload--picture-card 控制加号部分
 ::v-deep.hide .el-upload--picture-card {
-    display: none;
+  display: none;
 }
 // 去掉动画效果
 ::v-deep .el-list-enter-active,
 ::v-deep .el-list-leave-active {
-    transition: all 0s;
+  transition: all 0s;
 }
 
 ::v-deep .el-list-enter, .el-list-leave-active {
-    opacity: 0;
-    transform: translateY(0);
+  opacity: 0;
+  transform: translateY(0);
 }
 </style>
 

+ 4 - 3
src/main.js

@@ -24,11 +24,12 @@ import DictData from '@/components/DictData'
 
 import './assets/icons' // icon
 import './permission' // permission control
-
+// 图片上传组件
+import ImageUpload from "@/components/ImageUpload"
 //DataV动效组件
 import dataV from '@jiaminghi/data-view'
 
-//公共过滤器 
+//公共过滤器
 import './filters'
 // //WebSocket封装方法
 // import * as socketApi from '@/api/socket'
@@ -38,7 +39,7 @@ Vue.prototype.$axios = axios
 Vue.config.productionTip = false
 Vue.prototype.selectDictLabel = selectDictLabel
 Vue.prototype.selectDictLabels = selectDictLabels
-
+Vue.component('ImageUpload', ImageUpload)
 Vue.use(ElementUI)
 Vue.use(VueCookies)
 Vue.use(directive)

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 685 - 570
src/views/eventdetailsdialog.vue


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 785 - 698
src/views/firespread.vue