linwe
2024-05-30 9f59b404ac029e4679df6eb75d3edf84f4e39129
E呼即办优化
4 files modified
283 ■■■■■ changed files
src/api/task/eCallEventTwo.js 12 ●●●●● patch | view | raw | blame | history
src/page/index/top/index.vue 58 ●●●● patch | view | raw | blame | history
src/views/cGovernance/statisticalAnalysis/index.vue 139 ●●●● patch | view | raw | blame | history
src/views/cGovernance/taskECallTwo/index.vue 74 ●●●● patch | view | raw | blame | history
src/api/task/eCallEventTwo.js
@@ -53,3 +53,15 @@
    data: row
  })
}
export const getCount = (current, size, params) => {
  return request({
    url: '/api/blade-eCallEventTwo/eCallEventTwo/getCount',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
src/page/index/top/index.vue
@@ -94,11 +94,23 @@
    </div>
</template>
<script>
import { getStore } from "@/util/store"
import { setTheme } from "@/util/util"
import { resetRouter } from '@/router/router'
import { mapGetters, mapState } from "vuex"
import { fullscreenToggel, listenfullscreen } from "@/util/util"
  import {
    getStore
  } from "@/util/store"
  import {
    setTheme
  } from "@/util/util"
  import {
    resetRouter
  } from '@/router/router'
  import {
    mapGetters,
    mapState
  } from "vuex"
  import {
    fullscreenToggel,
    listenfullscreen
  } from "@/util/util"
import topLock from "./top-lock"
import topMenu from "./top-menu"
import topSearch from "./top-search"
@@ -122,7 +134,9 @@
    name: "top",
    data () {
        return {
            webType: getStore({ name: "webType" }),
        webType: getStore({
          name: "webType"
        }),
            searchShow: false,
            userBox: false,
            userForm: {
@@ -134,8 +148,7 @@
                submitBtn: true,
                emptyBtn: false,
                submitText: '切换',
                column: [
                    {
          column: [{
                        label: '部门',
                        prop: 'deptId',
                        type: 'select',
@@ -171,8 +184,12 @@
                    },
                ]
            },
            showMenu: getStore({ name: "showMenu" }),
            globalUserInfo: getStore({ name: "userInfo" }),
        showMenu: getStore({
          name: "showMenu"
        }),
        globalUserInfo: getStore({
          name: "userInfo"
        }),
        }
    },
    filters: {},
@@ -203,6 +220,7 @@
            "logsFlag"
        ]),
        topBarImg () {
        // console.log("*******this.userInfo*********" + JSON.stringify(this.userInfo))
            if (this.userInfo.avatar.indexOf('upload') != -1) {
                return this.website.minioUrl + this.userInfo.avatar
            } else {
@@ -233,7 +251,9 @@
        submitSwitch (form, done) {
            this.$store.dispatch("refreshToken", form).then(() => {
                this.userBox = false
                this.$router.push({ path: "/" })
          this.$router.push({
            path: "/"
          })
            })
            done()
        },
@@ -247,13 +267,21 @@
                    resetRouter()
                    if (this.webType == 'default') {
                        this.$router.push({ path: "/login" })
              this.$router.push({
                path: "/login"
              })
                    } else if (this.webType == 'govern') {
                        this.$router.push({ path: "/governLogin" })
              this.$router.push({
                path: "/governLogin"
              })
                    }  else if (this.webType == 'ecall'){
                        this.$router.push({ path: "/ecallLogin" })
              this.$router.push({
                path: "/ecallLogin"
              })
                    } else {
                        this.$router.push({ path: "/tenementLogin" })
              this.$router.push({
                path: "/tenementLogin"
              })
                    }
                })
            })
src/views/cGovernance/statisticalAnalysis/index.vue
@@ -7,10 +7,16 @@
      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
      <template slot="menuLeft">
        <el-button type="success" size="small" plain icon="el-icon-upload2" @click="handleImport">调度单位
        <!-- <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleOrg('Y')">主办单位
        </el-button>
        <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">主办单位
        </el-button>
        <el-button type="success" size="small" plain icon="el-icon-upload2" @click="handleOrg('N')">调度单位
        </el-button> -->
        <el-radio-group @change="handleOrg" v-model="radio1">
          <el-radio-button label="主办单位"></el-radio-button>
          <el-radio-button label="调度单位"></el-radio-button>
        </el-radio-group>
      </template>
    </avue-crud>
@@ -30,7 +36,8 @@
    remove,
    update,
    add,
    getDetail
    getDetail,
    getCount
  } from "@/api/task/eCallEventTwo"
  import {
    add as circleAdd,
@@ -47,10 +54,14 @@
  export default {
    data() {
      return {
        radio1: '主办单位',
        editPopup: false,
        form: {},
        editForm: {},
        query: {},
        query: {
          tagMain: 'Y',
          mainFlag: 1
        },
        loading: true,
        page: {
          pageSize: 10,
@@ -63,130 +74,126 @@
        circleRadio: 0,
        shareCircleRow: {},
        option: {
          // labelWidth: 130,
          // searchLabelWidth: 96,
          // searchShow: true,
          // searchMenuSpan: 3,
          // menuWidth: 310,
          delBtn: false,
          editBtn: false,
          addBtn: false,
          menu: false,
          height: "auto",
          calcHeight: 54,
          dialogWidth: 950,
          tip: false,
          border: true,
          //stripe:true,
          index: true,
          viewBtn: true,
          selection: true,
          // excelBtn: true,
          dialogClickModal: false,
          column: [{
              label: "单位",
              prop: "orderCode",
              span: 12,
              hide: true,
            },
              label: "单位名称",
              prop: "orgName",
              search: true,
              overHidden: true,
            },
            {
              label: "时间区间",
              prop: "dateTime",
              type: "datetimerange",
              format: "yyyy-MM-dd HH:mm:ss",
              valueFormat: "yyyy-MM-dd HH:mm:ss",
              searchSpan: 6,
              searchRange: true,
              hide: true,
              addDisplay: false,
              editDisplay: false,
              viewDisplay: false,
              search: true,
              rules: [{
                required: true,
                message: "请选择时间区间",
                trigger: "blur",
              }, ],
            },
            {
              label: "工单数",
              prop: "orderCode",
              prop: "orderNumber",
              span: 12,
              searchSpan: 4,
              width: 160,
              hide: true,
              // overHidden: true,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
            {
              hide: true,
              label: "派发单数",
              prop: "orderCode",
              prop: "dispatchNumber",
              span: 12,
              searchSpan: 4,
              width: 160,
              overHidden: true,
              display: false,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
            {
              label: "办理单数(率)",
              prop: "orderCode",
              prop: "handRate",
              span: 12,
              searchSpan: 4,
              width: 160,
              overHidden: true,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
            {
              label: "办结单数(率)",
              prop: "orderCode",
              prop: "checkRate",
              span: 12,
              searchSpan: 4,
              width: 160,
              overHidden: true,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
            {
              label: "答复单数(率)",
              prop: "orderCode",
              prop: "doneRate",
              span: 12,
              searchSpan: 4,
              width: 160,
              overHidden: true,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
            {
              label: "回访单数(率)",
              prop: "orderCode",
              prop: "respRate",
              span: 12,
              searchSpan: 4,
              width: 160,
              overHidden: true,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
            {
              label: "核实单数(率)",
              prop: "orderCode",
              prop: "reviewRate",
              span: 12,
              searchSpan: 4,
              width: 160,
              overHidden: true,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
            {
              label: "督办单数",
              prop: "orderCode",
              prop: "superviseNumber",
              span: 12,
              searchSpan: 4,
              width: 160,
              overHidden: true,
              // search: true,
              searchLabelWidth: 76,
              addDisplay: false,
            },
          ],
        },
        data: [],
        tagMain: 'Y'
      }
    },
@@ -222,6 +229,17 @@
      }
    },
    methods: {
      handleOrg(tagMain) {
        console.log("***************" + tagMain)
        if (tagMain === '主办单位') {
          this.query.tagMain = "Y"
          this.query.mainFlag = 1
        } else {
          this.query.tagMain = "N"
          this.query.mainFlag = 2
        }
        this.onLoad(this.page, this.query)
      },
      openMap() {
        this.$refs.avueInputMap.box = true
        console.log(this.$refs.avueInputMap)
@@ -244,13 +262,6 @@
      },
      rowSave(row, done, loading) {
        console.log("777777777777777777777" + JSON.stringify(row))
        // let local = this.locationDispose(row.sceneAddr)
        // row.sceneAddr = local.sceneAddr
        // row.sceneGeoLat = local.latitude
        // row.sceneGeoLng = local.longitude
        console.log("88888888888888888888888888" + JSON.stringify(row))
        add(row).then(
          () => {
            this.onLoad(this.page)
@@ -322,8 +333,14 @@
        this.onLoad(this.page)
      },
      searchChange(params, done) {
        this.query = params
        Object.assign(this.query, params)
        this.page.currentPage = 1
        console.log("*******params**********" + JSON.stringify(params))
        if (this.query.mainFlag == 1) {
          params.sinkOrgName = params.orgName
        } else {
          params.subjectOrgName = params.orgName
        }
        this.onLoad(this.page, params)
        done()
      },
@@ -421,6 +438,7 @@
        } = this.query
        let values = {
          ...params,
          ...this.query,
        }
        if (dateTime) {
          values = {
@@ -432,25 +450,12 @@
          values.dateTime = null
        }
        this.loading = true
        getList(page.currentPage, page.pageSize, values).then((res) => {
        getCount(this.page.currentPage, this.page.pageSize, values).then((res) => {
          const data = res.data.data
          this.page.total = data.total
          this.data = data.records
          this.data.forEach(item => {
            // this.$set(item, 'phoneflag', false)
            // if (item.imageUrls) {
            //   if (item.imageUrls.length > 0) {
            //     var urls = []
            //     var names = item.imageUrls.split(",")
            //     names.forEach(name => {
            //       urls.push(website.minioUrl + name)
            //     })
            //     item.imageUrls = urls.join(",")
            //   }
            // }
          })
          this.loading = false
          this.selectionClear()
          // this.selectionClear()
        })
      }
    },
src/views/cGovernance/taskECallTwo/index.vue
@@ -87,6 +87,9 @@
    getDetatil as getHouseDetail
  } from "@/api/doorplateAddress/doorplateAddress.js"
  import {
    getDept
  } from "@/api/system/dept"
  import {
    mapGetters
  } from "vuex"
  import website from '@/config/website'
@@ -171,39 +174,19 @@
              width: 100,
              label: "诉求来源",
              prop: "issueOrigin",
              disabled: true,
              span: 12,
              searchSpan: 4,
              dataType: "number",
              type: "select",
              dicData: [{
                label: "热线",
                value: 0
              }, {
                label: "公安110",
                value: 1
              }, {
                label: "微信",
                value: 2
              }, {
                label: "微博",
                value: 3
              }],
              dicUrl: "/api/blade-system/dict-biz/dictionary?code=ehjb_org",
              props: {
                label: "dictValue",
                value: "dictKey",
              },
              rules: [{
                required: true,
                message: "请选择诉求来源",
                trigger: "blur",
              }, ],
            },
            {
              label: "诉求内容",
              parent: false,
              prop: "issueContent",
              search: false,
              width: 160,
              overHidden: true,
              rules: [{
                required: true,
                message: "请选择诉求内容",
                trigger: "blur",
              }, ],
            },
@@ -272,6 +255,21 @@
                  trigger: 'blur'
                }
              ],
            },
            {
              label: "诉求内容",
              parent: false,
              prop: "issueContent",
              search: false,
              type: 'textarea',
              width: 160,
              span: 24,
              overHidden: true,
              rules: [{
                required: true,
                message: "请选择诉求内容",
                trigger: "blur",
              }, ],
            },
            {
              label: "事发地址",
@@ -463,6 +461,7 @@
          ],
        },
        data: [],
        dept: {},
      }
    },
    watch: {
@@ -543,6 +542,13 @@
      }
    },
    methods: {
      getDeptInfo() {
        getDept(this.userInfo.dept_id).then(res => {
          this.dept = res.data.data
          this.form.issueOrigin = res.data.data.sort
          // console.log("*********res.data.data*************" + JSON.stringify(res.data.data))
        })
      },
      openMap() {
        this.$refs.avueInputMap.box = true
        console.log(this.$refs.avueInputMap)
@@ -753,23 +759,13 @@
          values.dateTime = null
        }
        this.loading = true
        this.getDeptInfo();
        getList(page.currentPage, page.pageSize, values).then((res) => {
          const data = res.data.data
          this.page.total = data.total
          this.data = data.records
          this.data.forEach(item => {
            // this.$set(item, 'phoneflag', false)
            // if (item.imageUrls) {
            //   if (item.imageUrls.length > 0) {
            //     var urls = []
            //     var names = item.imageUrls.split(",")
            //     names.forEach(name => {
            //       urls.push(website.minioUrl + name)
            //     })
            //     item.imageUrls = urls.join(",")
            //   }
            // }
          })
          this.loading = false
          this.selectionClear()
        })