兰宝车间质量管理系统-前端
dap
2024-05-15 ed66231d19ec5b0614b05c0ab8953e5d767dd9f1
Merge branch 'dev' of https://gitee.com/JavaLionLi/plus-ui into dev
已删除1个文件
已修改11个文件
156 ■■■■ 文件已修改
src/api/login.ts 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/tenant/index.ts 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/user/index.ts 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/workflow/task/index.ts 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/workflow/workflowUser/index.ts 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/bpmn/panel/TaskPanel.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Process/approvalRecord.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Process/multiInstanceUser.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/AppMain.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/profile/onlineDevice.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/profile/thirdParty.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/workflow/leave/leaveEdit.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/login.ts
@@ -20,7 +20,8 @@
    url: '/auth/login',
    headers: {
      isToken: false,
      isEncrypt: true
      isEncrypt: true,
      repeatSubmit: false
    },
    method: 'post',
    data: params
@@ -38,7 +39,8 @@
    url: '/auth/register',
    headers: {
      isToken: false,
      isEncrypt: true
      isEncrypt: true,
      repeatSubmit: false
    },
    method: 'post',
    data: params
src/api/system/tenant/index.ts
@@ -25,7 +25,8 @@
    url: '/system/tenant',
    method: 'post',
    headers: {
      isEncrypt: true
      isEncrypt: true,
      repeatSubmit: false
    },
    data: data
  });
src/api/system/user/index.ts
@@ -86,7 +86,8 @@
    url: '/system/user/resetPwd',
    method: 'put',
    headers: {
      isEncrypt: true
      isEncrypt: true,
      repeatSubmit: false
    },
    data: data
  });
@@ -145,7 +146,8 @@
    url: '/system/user/profile/updatePwd',
    method: 'put',
    headers: {
      isEncrypt: true
      isEncrypt: true,
      repeatSubmit: false
    },
    data: data
  });
src/api/workflow/task/index.ts
@@ -238,3 +238,27 @@
    data: data
  });
};
/**
 * æŸ¥è¯¢å·¥ä½œæµä»»åŠ¡ç”¨æˆ·é€‰æ‹©åŠ ç­¾äººå‘˜
 * @param taskId
 * @returns {*}
 */
export const getTaskUserIdsByAddMultiInstance = (taskId: string) => {
  return request({
    url: '/workflow/task/getTaskUserIdsByAddMultiInstance/' + taskId,
    method: 'get'
  });
};
/**
 * æŸ¥è¯¢å·¥ä½œæµé€‰æ‹©å‡ç­¾äººå‘˜
 * @param taskId
 * @returns {*}
 */
export const getListByDeleteMultiInstance = (taskId: string) => {
  return request({
    url: '/workflow/task/getListByDeleteMultiInstance/' + taskId,
    method: 'get'
  });
};
src/api/workflow/workflowUser/index.ts
ÎļþÒÑɾ³ý
src/bpmn/panel/TaskPanel.vue
@@ -50,7 +50,7 @@
            <el-tabs tab-position="left" class="demo-tabs">
              <el-tab-pane label="身份存储">
                <el-form-item label="分配人员">
                  <el-input v-model="formData.assignee">
                  <el-input v-model="formData.assignee" @blur="blurAssignee(formData.assignee)">
                    <template #append>
                      <el-button icon="Search" type="primary" @click="openSingleUserSelect" />
                    </template>
@@ -283,24 +283,23 @@
const isMultiple = ref(true);
const openUserSelect = () => {
  if (!formData.value.candidateUsers) {
    formData.value.candidateUsers = '-1';
  }
  userSelectRef.value.open();
};
const openSingleUserSelect = () => {
  if (formData.value.assignee.includes('$')) {
    formData.value.assignee = '';
  }
  singleUserSelectRef.value.open();
};
const openRoleSelect = () => {
  if (!formData.value.candidateGroups) {
    formData.value.candidateGroups = '-1';
  }
  roleSelectRef.value.open();
};
const openDueDate = (e) => {
  dueDateRef.value.openDialog();
};
const blurAssignee = (assignee) => {
  updateProperties({ 'flowable:assignee': assignee ? assignee : undefined });
};
const singleUserSelectCallBack = (data: UserVO[]) => {
  const user: UserVO = data.length !== 0 ? data[0] : undefined;
  updateProperties({ 'flowable:assignee': user?.userId });
src/components/Process/approvalRecord.vue
@@ -5,14 +5,14 @@
        <el-tab-pane label="流程图" name="bpmn">
          <BpmnView ref="bpmnViewRef"></BpmnView>
        </el-tab-pane>
        <el-tab-pane label="审批信息" name="info" v-loading="loading">
        <el-tab-pane v-loading="loading" label="审批信息" name="info">
          <div>
            <el-table :data="historyList" style="width: 100%" border fit>
              <el-table-column type="index" label="序号" align="center" width="60"></el-table-column>
              <el-table-column prop="name" label="任务名称" sortable align="center"></el-table-column>
              <el-table-column prop="nickName" label="办理人" sortable align="center">
              <el-table-column prop="nickName" :show-overflow-tooltip="true" label="办理人" sortable align="center">
                <template #default="scope">
                  <el-tag type="success">{{ scope.row.nickName||'无' }}</el-tag>
                  <el-tag type="success">{{ scope.row.nickName || '无' }}</el-tag>
                </template>
              </el-table-column>
              <el-table-column label="状态" sortable align="center">
@@ -71,7 +71,7 @@
const init = async (instanceId: string) => {
  visible.value = true;
  loading.value = true;
  tabActiveName.value = 'bpmn'
  tabActiveName.value = 'bpmn';
  historyList.value = [];
  processApi.getHistoryRecord(instanceId).then((resp) => {
    historyList.value = resp.data.historyRecordList;
src/components/Process/multiInstanceUser.vue
@@ -81,9 +81,13 @@
</template>
<script setup name="User" lang="ts">
import { deptTreeSelect } from '@/api/system/user';
import { getPageByAddMultiInstance, getListByDeleteMultiInstance, getUserListByIds } from '@/api/workflow/workflowUser';
import { addMultiInstanceExecution, deleteMultiInstanceExecution } from '@/api/workflow/task';
import { deptTreeSelect, listUser, optionSelect } from '@/api/system/user';
import {
  addMultiInstanceExecution,
  deleteMultiInstanceExecution,
  getTaskUserIdsByAddMultiInstance,
  getListByDeleteMultiInstance
} from '@/api/workflow/task';
import { UserVO } from '@/api/system/user/types';
import { DeptVO } from '@/api/system/dept/types';
import { ComponentInternalInstance } from 'vue';
@@ -149,12 +153,14 @@
  visible.value = true;
  queryParams.value.taskId = taskId;
  loading.value = true;
  const res = await getPageByAddMultiInstance(queryParams.value);
  const res1 = await getTaskUserIdsByAddMultiInstance(taskId);
  queryParams.value.excludeUserIds = res1.data;
  const res = await listUser(queryParams.value);
  loading.value = false;
  userList.value = res.rows;
  total.value = res.total;
  if (userList.value && userIds.value.length > 0) {
    const data = await getUserListByIds(userIds.value);
    const data = await optionSelect(userIds.value);
    if (data.data && data.data.length > 0) {
      chooseUserList.value = data.data;
      data.data.forEach((user: UserVO) => {
@@ -171,12 +177,14 @@
const getList = async () => {
  loading.value = true;
  const res = await getPageByAddMultiInstance(queryParams.value);
  const res1 = await getTaskUserIdsByAddMultiInstance(queryParams.value.taskId);
  queryParams.value.excludeUserIds = res1.data;
  const res = await listUser(queryParams.value);
  loading.value = false;
  userList.value = res.rows;
  total.value = res.total;
  if (userList.value && userIds.value.length > 0) {
    const data = await getUserListByIds(userIds.value);
    const data = await optionSelect(userIds.value);
    if (data.data && data.data.length > 0) {
      chooseUserList.value = data.data;
      data.data.forEach((user: UserVO) => {
src/layout/components/AppMain.vue
@@ -2,9 +2,12 @@
  <section class="app-main">
    <router-view v-slot="{ Component, route }">
      <transition :enter-active-class="animante" mode="out-in">
        <keep-alive :include="tagsViewStore.cachedViews">
          <component :is="Component" v-if="!route.meta.link" :key="route.path" />
        </keep-alive>
        <div>
          <keep-alive :include="tagsViewStore.cachedViews" v-if="!route.meta.noCache">
            <component v-if="!route.meta.link" :is="Component" :key="route.path" />
          </keep-alive>
          <component v-if="!route.meta.link && route.meta.noCache" :is="Component" :key="route.path" />
        </div>
      </transition>
    </router-view>
    <iframe-toggle />
src/views/system/user/profile/onlineDevice.vue
@@ -1,6 +1,6 @@
<template>
  <div>
    <el-table :data="devices" style="width: 100%; height: 100%; font-size: 10px">
    <el-table :data="devices" style="width: 100%; height: 100%; font-size: 14px">
      <el-table-column label="设备类型" align="center">
        <template #default="scope">
          <dict-tag :options="sys_device_type" :value="scope.row.deviceType" />
src/views/system/user/profile/thirdParty.vue
@@ -1,7 +1,7 @@
<template>
  <div>
    <el-table :data="auths" style="width: 100%; height: 100%; font-size: 10px">
      <el-table-column label="序号" width="50" type="index"></el-table-column>
    <el-table :data="auths" style="width: 100%; height: 100%; font-size: 14px">
      <el-table-column label="序号" width="50" type="index" />
      <el-table-column label="绑定账号平台" width="140" align="center" prop="source" show-overflow-tooltip />
      <el-table-column label="头像" width="120" align="center" prop="avatar">
        <template #default="scope">
src/views/workflow/leave/leaveEdit.vue
@@ -228,8 +228,8 @@
    taskVariables.value = {
      entity: data,
      leaveDays: data.leaveDays,
      userList: [1, 2],
      userList2: [1, 2]
      userList: [1, 3],
      userList2: [1, 3]
    };
    submitFormData.value.variables = taskVariables.value;
    const resp = await startWorkFlow(submitFormData.value);