xiejun
2023-10-19 421ee711aa469f00eaff610cfa85ad1d4b755688
Source/UBCS-WEB/src/views/wel/index.vue
@@ -7,13 +7,13 @@
    </el-row>
    <el-row>
      <el-col :span="24">
        <basic-container title="待办事项">
        <basic-container title="主数据统计">
          <Statistic></Statistic>
        </basic-container>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="16">
      <el-col :span="24">
        <basic-container title="待办流程任务">
          <avue-crud ref="crud" :table-loading="loading" :data="todoData" :option="todoOption"
                     @on-load="onLoad"
@@ -28,18 +28,18 @@
          </avue-crud>
        </basic-container>
      </el-col>
      <el-col :span="8">
        <el-row>
          <basic-container title="消息列表">
            <el-collapse v-model="logActiveNames" @change="handleChange">
              <el-collapse-item v-for="item in noticeData" :title="item.title" :name="item.id">
                <div>{{item.subtitle}}</div>
              </el-collapse-item>
            </el-collapse>
          </basic-container>
        </el-row>
<!--      <el-col :span="8">-->
<!--        <el-row>-->
<!--          <basic-container title="消息列表">-->
<!--            <el-collapse v-model="logActiveNames" @change="handleChange">-->
<!--              <el-collapse-item v-for="item in noticeData" :title="item.title" :name="item.id">-->
<!--                <div>{{item.subtitle}}</div>-->
<!--              </el-collapse-item>-->
<!--            </el-collapse>-->
<!--          </basic-container>-->
<!--        </el-row>-->
      </el-col>
<!--      </el-col>-->
    </el-row>
    <el-dialog title="修改密码" :visible.sync="dialogFormVisible" append-to-body  :close-on-press-escape="false" :before-close="Xdelhandle">
      <el-form :model="form"  :rules="rules" ref="form">
@@ -86,13 +86,15 @@
        todoData: [],
        // 代办流程任务option
        todoOption: {
          height:500,
          addBtn: false,
          header: false,
          align: 'center',
          index: true,
          menuWidth: 100,
          menuWidth: 80,
          editBtn: false,
          delBtn: false,
          border:true,
          column: [{
            label: '任务名称',
            prop: 'taskName',
@@ -100,6 +102,8 @@
            headerAlign:'center',
            align:'left',
            html: true,
            width:300,
            overHidden:true,
            formatter: (val) => {
              return '<a name="processname" href="javascript:;" style="color: #66b1ff;">' + val.variables.processName+'-'+val.taskName + '</a>'
            }
@@ -107,16 +111,19 @@
            {
              label: '上一步处理时间',
              sortable:true,
              prop: 'historyActivityDurationTime'
              width:150,
              prop: 'createTime'
            },
            {
              label: '上一步操作人',
              sortable:true,
              width:120,
              prop: 'historyActivityAssigneName'
            },
            {
              label: '流程描述',
              prop: 'processDesc',
              overHidden:true,
              formatter: (val) => {
                return  val.variables.processDesc
              }
@@ -124,6 +131,7 @@
            {
              label: '所属流程模板',
              sortable:true,
              overHidden:true,
              prop: 'categoryName'
            }
          ]
@@ -180,7 +188,11 @@
    created() {
      this.updataArr = JSON.parse(localStorage.getItem("updataid"))
      this.userid = this.$store.state.user.upadatastatus.user_id
      this.checkhandle()
      const pageFlag = localStorage.getItem("pageFlag")
      if (pageFlag === null) {
        this.checkhandle()
        localStorage.setItem("pageFlag", true)
      }
    },
    computed: {
      ...mapGetters(["userInfo", "flowRoutes"]),
@@ -189,8 +201,6 @@
      handleChange(val) {
        window.console.log(val);
      },
      //element组件关闭弹窗的延迟回调,这里没有用关闭弹窗的方法,因为当用户点击确认也是关闭弹窗,如果登录成功弹窗关闭后也是会清除token回到登录页
      //Xdelhandle是点击X号关闭弹唱,delhandle是点击取消关闭弹窗,在这分了两个事件
      Xdelhandle() {
        removeToken()
        this.dialogFormVisible = false
@@ -233,10 +243,10 @@
                this.dialogFormVisible = true
              }, 1500)
            } else if (res.data.data == 0) {
              this.$message({
                type: 'success',
                message: "操作成功"
              })
              // this.$message({
              //   type: 'success',
              //   message: "操作成功"
              // })
            }
          }).catch(res => {
            console.log(res)
@@ -260,7 +270,7 @@
        })
      },
      cellHandle(row, column, cell, event) {
        if (column.property == 'name') {
        if (column.property == 'taskName') {
          this.gotodo(row)
        }
      },