国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

基于若依的ruoyi-nbcio的flowable流程管理系統(tǒng)增加服務任務和我的抄送功能

這篇具有很好參考價值的文章主要介紹了基于若依的ruoyi-nbcio的flowable流程管理系統(tǒng)增加服務任務和我的抄送功能。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

更多ruoyi-nbcio功能請看演示系統(tǒng)

gitee源代碼地址

前后端代碼:?https://gitee.com/nbacheng/ruoyi-nbcio

演示地址:RuoYi-Nbcio后臺管理系統(tǒng)

1、增加一個狀態(tài)字段

wf_copy增加下面兩個字段

基于若依的ruoyi-nbcio的flowable流程管理系統(tǒng)增加服務任務和我的抄送功能,ruoyi-nbcio,flowable,若依,javascript,java,vue.js,若依,ruoyi-nbcio,flowable

就用未讀已讀來區(qū)分

2、前端

api接口增加如下:

// 查詢流程我的抄送列表
export function listMyCopyProcess(query) {
  return request({
    url: '/workflow/process/myCopyList',
    method: 'get',
    params: query
  })
}

//抄送人已讀狀態(tài)
export function updateCcReaded(parameter) {
  return request({
    url: '/workflow/process/updateViewStatust',
    method:'get',
    params: parameter
  })
}
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="流程名稱" prop="processName">
        <el-input
          v-model="queryParams.processName"
          placeholder="請輸入流程名稱"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="發(fā)起人" prop="originatorName">
        <el-input
          v-model="queryParams.originatorName"
          placeholder="請輸入發(fā)起人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          v-hasPermi="['workflow:process:copyExport']"
          @click="handleExport"
        >導出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="copyList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="抄送編號" align="center" prop="copyId" />
      <el-table-column label="標題" align="center" prop="title" :show-overflow-tooltip="true" />
      <el-table-column label="流程名稱" align="center" prop="processName" :show-overflow-tooltip="true" />
      <el-table-column label="發(fā)起人" align="center" prop="originatorName" />
      <el-table-column label="創(chuàng)建時間" align="center" prop="createTime">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-tickets"
            @click="handleFlowRecord(scope.row)"
            v-hasPermi="['workflow:process:query']"
          >詳情</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
  </div>
</template>

<script>
import { listMyCopyProcess } from "@/api/workflow/process"

export default {
  name: "myCopy",
  data() {
    return {
      // 按鈕loading
      buttonLoading: false,
      // 遮罩層
      loading: true,
      // 選中數(shù)組
      ids: [],
      // 非單個禁用
      single: true,
      // 非多個禁用
      multiple: true,
      // 顯示搜索條件
      showSearch: true,
      // 總條數(shù)
      total: 0,
      // 流程抄送表格數(shù)據(jù)
      copyList: [],
      // 彈出層標題
      title: "",
      // 是否顯示彈出層
      open: false,
      // 查詢參數(shù)
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        processId: undefined,
        processName: undefined,
        categoryId: undefined,
        taskId: undefined,
        userId: undefined,
        originatorName: undefined,
      },
      // 表單參數(shù)
      form: {},
      // 表單校驗
      rules: {
        copyId: [
          { required: true, message: "抄送主鍵不能為空", trigger: "blur" }
        ],
        processId: [
          { required: true, message: "流程主鍵不能為空", trigger: "blur" }
        ],
        processName: [
          { required: true, message: "流程名稱不能為空", trigger: "blur" }
        ],
        categoryId: [
          { required: true, message: "流程分類主鍵不能為空", trigger: "blur" }
        ],
        taskId: [
          { required: true, message: "任務主鍵不能為空", trigger: "blur" }
        ],
        userId: [
          { required: true, message: "用戶主鍵不能為空", trigger: "blur" }
        ]
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查詢流程抄送列表 */
    getList() {
      this.loading = true;
      listMyCopyProcess(this.queryParams).then(response => {
        this.copyList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按鈕
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表單重置
    reset() {
      this.form = {
        copyId: undefined,
        processId: undefined,
        processName: undefined,
        categoryId: undefined,
        taskId: undefined,
        userId: undefined,
        originatorName: undefined,
        createBy: undefined,
        createTime: undefined,
        updateBy: undefined,
        updateTime: undefined,
        delFlag: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按鈕操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按鈕操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多選框選中數(shù)據(jù)
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.copyId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 查看詳情 */
    handleFlowRecord(row){
      console.log(row);
      this.$router.push({
        path: '/workflow/process/detail/' + row.instanceId,
        query: {
          taskId: row.taskId,
          processed: false
        }
      })
    },
    /** 導出按鈕操作 */
    handleExport() {
      this.download('workflow/process/copyExport', {
        ...this.queryParams
      }, `wf_copy_process_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>

上面是我的抄送,主要是接口不一樣。

抄送點擊詳情的時候更新一下狀態(tài)

 /** 查看詳情 */
    handleFlowRecord(row){
      console.log(row);
      updateCcReaded({ id: row.copyId }).then(res => {
        if (res.success) {
          console.log(res);
        }
      })
      this.$router.push({
        path: '/workflow/process/detail/' + row.instanceId,
        query: {
          taskId: row.taskId,
          processed: false
        }
      })
    },

3、后端

查詢我的抄送代碼:

 
    /**
     * 查詢我的流程抄送列表
     *
     * @param bo 流程抄送
     * @return 流程抄送
     */
    @Override
    public TableDataInfo<WfCopyVo> selectMyPageList(WfCopyBo bo, PageQuery pageQuery) {
        LambdaQueryWrapper<WfCopy> lqw = buildMyQueryWrapper(bo);
        lqw.orderByDesc(WfCopy::getCreateTime);
        Page<WfCopyVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
        return TableDataInfo.build(result);
    }

    /**
     * 查詢流程抄送列表
     *
     * @param bo 流程抄送
     * @return 流程抄送
     */
    @Override
    public List<WfCopyVo> selectList(WfCopyBo bo) {
        LambdaQueryWrapper<WfCopy> lqw = buildQueryWrapper(bo);
        return baseMapper.selectVoList(lqw);
    }
    
    private LambdaQueryWrapper<WfCopy> buildMyQueryWrapper(WfCopyBo bo) {
        Map<String, Object> params = bo.getParams();
        LoginUser sysUser = commonService.getLoginUser();
        LambdaQueryWrapper<WfCopy> lqw = Wrappers.lambdaQuery();
        lqw.eq(bo.getUserId() == sysUser.getUserId(), WfCopy::getOriginatorId, bo.getUserId());
        return lqw;
    }

更新抄送代碼如下:

 @Override
    public Boolean makeCopy(WfTaskBo taskBo) {
        if (StringUtils.isBlank(taskBo.getCopyUserIds())) {
            // 若抄送用戶為空,則不需要處理,返回成功
            return true;
        }
        HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery()
            .processInstanceId(taskBo.getProcInsId()).singleResult();
        String[] ids = taskBo.getCopyUserIds().split(",");
        List<WfCopy> copyList = new ArrayList<>(ids.length);
        Long originatorId = LoginHelper.getUserId();
        String originatorName = LoginHelper.getNickName();
        String title = historicProcessInstance.getProcessDefinitionName() + "-" + taskBo.getTaskName();
        for (String id : ids) {
            Long userId = Long.valueOf(id);
            WfCopy copy = new WfCopy();
            copy.setTitle(title);
            copy.setProcessId(historicProcessInstance.getProcessDefinitionId());
            copy.setProcessName(historicProcessInstance.getProcessDefinitionName());
            copy.setDeploymentId(historicProcessInstance.getDeploymentId());
            copy.setInstanceId(taskBo.getProcInsId());
            copy.setTaskId(taskBo.getTaskId());
            copy.setUserId(userId);
            copy.setOriginatorId(originatorId);
            copy.setOriginatorName(originatorName);
            copy.setState("未讀");
            copyList.add(copy);
        }
        return baseMapper.insertBatch(copyList);
    }

	@Override
	public void updateStatus(String id) {
		baseMapper.updateState(id);
	}


    <update id="updateState" parameterType="com.ruoyi.workflow.domain.WfCopy">
        update wf_copy
        set state = '已讀'
            WHERE copy_id=#{id}
    </update>

4、效果圖如下:

基于若依的ruoyi-nbcio的flowable流程管理系統(tǒng)增加服務任務和我的抄送功能,ruoyi-nbcio,flowable,若依,javascript,java,vue.js,若依,ruoyi-nbcio,flowable

基于若依的ruoyi-nbcio的flowable流程管理系統(tǒng)增加服務任務和我的抄送功能,ruoyi-nbcio,flowable,若依,javascript,java,vue.js,若依,ruoyi-nbcio,flowable文章來源地址http://www.zghlxwxcb.cn/news/detail-756139.html

到了這里,關于基于若依的ruoyi-nbcio的flowable流程管理系統(tǒng)增加服務任務和我的抄送功能的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉載,請注明出處: 如若內(nèi)容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • 基于若依的ruoyi-nbcio流程管理系統(tǒng)修復自定義業(yè)務表單的收回功能

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) 更多nbcio-boot功能請看演示系統(tǒng) gitee源代碼地址 后端代碼: https://gitee.com/nbacheng/nbcio-boot 前端代碼:https://gitee.com/nbacheng/nbcio-vue.git 在線演示(包括H

    2024年01月18日
    瀏覽(23)
  • 基于若依ruoyi-nbcio支持flowable流程增加自定義業(yè)務表單(二)

    基于若依ruoyi-nbcio支持flowable流程增加自定義業(yè)務表單(二)

    ?更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼:?https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) 之前講了自定義業(yè)務表單,現(xiàn)在講如何與流程進行關聯(lián) 1、后端部分 WfCustomFormMapper.xml WfCustomFormMapper.java control接口 CustomFormVo.java 2、前端部分 custo

    2024年02月07日
    瀏覽(18)
  • 基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(二)

    基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(二)

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) 更多nbcio-boot功能請看演示系統(tǒng) gitee源代碼地址 后端代碼: https://gitee.com/nbacheng/nbcio-boot 前端代碼:https://gitee.com/nbacheng/nbcio-vue.git 在線演示(包括H

    2024年01月25日
    瀏覽(23)
  • 基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(一)

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) 更多nbcio-boot功能請看演示系統(tǒng) gitee源代碼地址 后端代碼: https://gitee.com/nbacheng/nbcio-boot 前端代碼:https://gitee.com/nbacheng/nbcio-vue.git 在線演示(包括H

    2024年01月20日
    瀏覽(17)
  • 基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(五)

    基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(五)

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) 更多nbcio-boot功能請看演示系統(tǒng) gitee源代碼地址 后端代碼: https://gitee.com/nbacheng/nbcio-boot 前端代碼:https://gitee.com/nbacheng/nbcio-vue.git 在線演示(包括H

    2024年01月24日
    瀏覽(19)
  • 基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(三)

    基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(三)

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) 更多nbcio-boot功能請看演示系統(tǒng) gitee源代碼地址 后端代碼: https://gitee.com/nbacheng/nbcio-boot 前端代碼:https://gitee.com/nbacheng/nbcio-vue.git 在線演示(包括H

    2024年01月24日
    瀏覽(28)
  • 基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(四)

    基于若依的ruoyi-nbcio流程管理系統(tǒng)一種簡單的動態(tài)表單模擬測試實現(xiàn)(四)

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) 更多nbcio-boot功能請看演示系統(tǒng) gitee源代碼地址 后端代碼: https://gitee.com/nbacheng/nbcio-boot 前端代碼:https://gitee.com/nbacheng/nbcio-vue.git 在線演示(包括H

    2024年01月23日
    瀏覽(24)
  • 基于RuoYi-Flowable-Plus的若依ruoyi-nbcio支持自定義業(yè)務表單流程(二)

    基于RuoYi-Flowable-Plus的若依ruoyi-nbcio支持自定義業(yè)務表單流程(二)

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼:?https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) ? ? ?之前講到了流程保存的時候還要看是否是自定義業(yè)務流程應用類型,若是保存的時候不再檢查是否有關聯(lián)表單。?? ? ? 那接下來就需要一個自

    2024年02月07日
    瀏覽(24)
  • nbcio-boot移植到若依ruoyi-nbcio平臺里一formdesigner部分(一)

    nbcio-boot移植到若依ruoyi-nbcio平臺里一formdesigner部分(一)

    nbcio-boot項目移植到ruoyi-nbcio項目中, 今天主要講formdesigner的移植 1、把formdesigner的源代碼拷貝到component里,并修改成formdesigner,如下: 2、form下的index.vue修改如下: 主要是修改新增,修改按鈕的路由到新的formdesigner,還有詳情的修改,同時引入preview組件。 3、界面如下:

    2024年02月09日
    瀏覽(25)
  • ruoyi-nbcio-plus基于vue3的flowable增加開始節(jié)點的表單綁定修改

    ruoyi-nbcio-plus基于vue3的flowable增加開始節(jié)點的表單綁定修改

    更多ruoyi-nbcio功能請看演示系統(tǒng) gitee源代碼地址 前后端代碼: https://gitee.com/nbacheng/ruoyi-nbcio 演示地址:RuoYi-Nbcio后臺管理系統(tǒng) http://122.227.135.243:9666/ 更多nbcio-boot功能請看演示系統(tǒng)? gitee源代碼地址 后端代碼: https://gitee.com/nbacheng/nbcio-boot 前端代碼:https://gitee.com/nbacheng/nbcio

    2024年03月23日
    瀏覽(20)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包