Browse Source

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

JX.LI 2 years ago
parent
commit
655534dbb6
5 changed files with 5776 additions and 5495 deletions
  1. 8 0
      src/api/forest.js
  2. 5 5
      src/components/ImageUpload/index.vue
  3. 3 0
      src/main.js
  4. 2627 2492
      src/views/eventdetailsdialog.vue
  5. 3133 2998
      src/views/firespread.vue

+ 8 - 0
src/api/forest.js

@@ -16,6 +16,14 @@ export function fireControlViewPoint(type, name) {
 
   })
 }
+// 事件审核
+export function eventExamine(param) {
+  return request({
+    url: '/center-event/eventcatalogue/eventExamine',
+    method: 'post',
+    data: param
+  })
+}
 export function getNewDataByDate(data) {
   return request({
     url: '/center-event/spread/getNewDataByDate?Date='+data,

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

@@ -53,12 +53,12 @@ export default {
     // 图片数量限制
     limit: {
       type: Number,
-      default: 5,
+      default: 1,
     },
     // 大小限制(MB)
     fileSize: {
        type: Number,
-      default: 5,
+      default: 10,
     },
     // 文件类型, 例如['png', 'jpg', 'jpeg']
     fileType: {
@@ -125,20 +125,20 @@ export default {
       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.$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.$emit("input", this.fileList);
         this.$modal.closeLoading();
       }
     },

+ 3 - 0
src/main.js

@@ -22,6 +22,8 @@ import '@/assets/styles/font.scss';//字体引入
 // 字典数据组件
 import DictData from '@/components/DictData'
 
+// 图片上传组件
+import ImageUpload from "@/components/ImageUpload"
 import './assets/icons' // icon
 import './permission' // permission control
 
@@ -44,6 +46,7 @@ Vue.use(VueCookies)
 Vue.use(directive)
 Vue.use(plugins)
 Vue.use(dataV)
+Vue.component('ImageUpload', ImageUpload)
 Vue.prototype.$echarts = echarts //挂载echarts
 DictData.install()
 

File diff suppressed because it is too large
+ 2627 - 2492
src/views/eventdetailsdialog.vue


File diff suppressed because it is too large
+ 3133 - 2998
src/views/firespread.vue