Bläddra i källkod

distWork合并代码 字段修改

master
kim131 4 år sedan
förälder
incheckning
ea8ace4fe5
8 ändrade filer med 152 tillägg och 89 borttagningar
  1. +1
    -1
      src/components/app-header/components/nav.vue
  2. +1
    -0
      src/utils/request.js
  3. +16
    -13
      src/views/components_web/distWork/distWork.vue
  4. +4
    -3
      src/views/main_web/workspace/service.js
  5. +114
    -69
      src/views/main_web/workspace/workspace.vue
  6. +5
    -2
      src/views/manage_system/index.vue
  7. +10
    -0
      src/views/manage_system/template/matrix.vue
  8. +1
    -1
      vue.config.js

+ 1
- 1
src/components/app-header/components/nav.vue Visa fil

@@ -4,7 +4,7 @@
class="app-nav-item"
v-for="navItem in list"
:key="navItem.key"
:class="{ 'app-nav-item-active': navItem.key === currentKey }"
:class="{ 'app-nav-item-active': currentKey.indexOf(navItem.key) === 0 }"
@click="goto(navItem.key)"
>
{{navItem.label}}


+ 1
- 0
src/utils/request.js Visa fil

@@ -114,6 +114,7 @@ function mapApiPathToFullPath(path) {
case "project/CreateProject":
case "project/EditProject":
case "project/assignedWork":
// case 'template/deleteTemplateNodeModelFile':
method = 'POST';
break;


+ 16
- 13
src/views/components_web/distWork/distWork.vue Visa fil

@@ -332,18 +332,18 @@
<!-- 添加协作群与工作 -->
<el-collapse-item name="1" class="nomidline">
<template slot="title">
<span class="fr mr_20">
<!-- <span class="fr mr_20">
<el-checkbox class="checkBoxCol" v-model="ischeckAll" @change="handleCheckTopAll">全选</el-checkbox>
</span>
</span> -->
<span>从部门中选择职员</span>
</template>
<el-collapse accordion v-for="(dept, group_index) in listDept" v-show="dept.listUser.length>0" :key="group_index">
<!-- 二级折叠面板 -->
<el-collapse-item>
<template slot="title">
<span class="fr mr_20">
<!-- <span class="fr mr_20">
<el-checkbox class="checkBoxCol" v-model="dept.selected" :key="group_index" @change="handleCheckItemAll(group_index,$event)">全选</el-checkbox>
</span>
</span> -->
<span>{{ dept.deptName }} </span>
</template>
<!-- <div class="user_info_item" v-for="(user, index) in listUserManager(
@@ -562,19 +562,19 @@
<span>工作负责人</span>
<div class="yiyun_line"></div>
<!-- 项目负责人选择前 -->
<!-- <div class="main_workerBox" v-if="listManagerComputed(selectedUser).length == 0"> -->
<div class="main_workerBox" v-if="selectedUser.length == 0">
<div class="main_workerBox" v-if="listManagerComputed(selectedUser).length == 0">
<!-- <div class="main_workerBox" v-if="selectedUser.length == 0"> -->
<i class="icon font_family icon-icon_huangguan-weijihuo largehuangguan"></i>
<div class="rentou_alrge"></div>
</div>
<!-- 项目负责人选择后 -->
<!-- <div v-if="listManagerComputed(selectedUser).length != 0"> -->
<div v-if="selectedUser.length != 0">
<div class="user_info_item mainpeople_H" v-for="(user, index) in listManagerComputed(
<div v-if="listManagerComputed(selectedUser).length != 0">
<!-- <div v-if="selectedUser.length != 0"> -->
<!-- <div class="user_info_item mainpeople_H" v-for="(user, index) in listManagerComputed(
selectedUser
)" :key="index">
)" :key="index"> -->
<div class="user_info_item mainpeople_H" v-for="(user, index) in listManagerComputed(selectedUser)" :key="index">
<i class="icon font_family icon-icon_huangguan-jihuo middlehuangguan fl" title="负责人"></i>
<!-- <img v-lazy="headSrc + user.headImgUrl" alt="" class="user_info_faceImg" /> -->
<img :src="user.headImgUrl | resolveAvator" alt="" class="user_info_faceImg" />
<span class="user_info_name">{{ user.cnName }}</span>
<el-popover placement="bottom-start" width="180" trigger="hover">
@@ -600,6 +600,7 @@
}},进行职员指派。
</p>
</div>
<!-- 选择职员 -->
<div v-if="isShowStaffList">
<div class="row_painfr" v-for="dept in listDept" v-show="dept.listUser.length > 0" :key="dept.id">
<div v-for="deptID in listDeptUserNoZero(selectedUser)" :key="deptID">
@@ -1116,8 +1117,10 @@ export default {
handleCheckTopAll(e) {
//首级全选
for (var j = 0; j < this.listDept.length; j++) {
if (this.listDept[j].listUser.length > 0) {
this.handleCheckItemAll(j, false); //清除已经被选中的状态
//this.handleCheckItemAll(j, false); //清除已经被选中的状态
this.handleCheckItemAll(j, e);
}
}
@@ -1130,7 +1133,7 @@ export default {
handleCheckItemAll(index, e) {
for (var i = 0; i < this.listDept[index].listUser.length; i++) {
if (e) {
this.handleCheckedOne(index, this.listDept[index].listUser[i], false);
//this.handleCheckedOne(index, this.listDept[index].listUser[i], false);
this.handleCheckedOne(index, this.listDept[index].listUser[i], e);
} else {
this.handleCheckedOne(index, this.listDept[index].listUser[i], e);


+ 4
- 3
src/views/main_web/workspace/service.js Visa fil

@@ -1,4 +1,4 @@
import { fetchApi } from '@/utils/request';
import { fetchApi ,wrapErrorHint} from '@/utils/request';
import { firstCharToLowerCase, firstCharToUpperCase } from '@/utils/tool';


@@ -23,6 +23,7 @@ export async function fetchFolderFileList(folderId, userId) {
return res;
}

export async function createSubFolder() {
const res = await fetchApi('folder/createSubfolder', {});
export async function createSubFolder(folderGroupData) {
const res = await fetchApi('folder/createSubfolder', folderGroupData);
return wrapErrorHint(res);
}

+ 114
- 69
src/views/main_web/workspace/workspace.vue Visa fil

@@ -2681,7 +2681,7 @@
</div>
<el-form-item>
<el-input
v-model="folderGroupData.folderGroupName"
v-model="folderGroupData.FolderName"
@keyup.enter.native="createFolderGroupSure"
></el-input>
</el-form-item>
@@ -2938,16 +2938,23 @@ export default {
isClient: back.isClient, // 是否是客户端
dialogNewFolderGroup: false, //新建文件分组组弹窗
folderGroupData: {
folderGroupID: "",
folderID: "",
superID: "",
levelId: "",
folderGroupName: "",
childCount: 0,
createUserID: "",
createTime: "",
modifyUserID: "",
modifyTime: "",
Id:"",
ProjId:"",
SuperId:"",
LevelId:"",
FirstFolderId:"",
FolderName:"",
TemplateId:"",
NodeId:"",
SysCode:"",
FileCount:0,
ChildCount:0,
Deleted:0,
Customed:0,
CreateUserId:"",
CreateTime:"",
ModifyUserId:"",
ModifyTime:"",
}, //文件分组数据
myListFolderGroups: [], // 我的文件分组数据
dbClickSelectedFolderGroupData: {}, //双击选中的当前文件夹分组对象
@@ -6412,27 +6419,27 @@ export default {
*/
newCreateFolderGroup: function () {
this.dialogNewFolderGroup = true;
this.folderGroupData = {
folderGroupID: "",
folderID: "",
superID: "",
levelId: "",
folderGroupName: "",
childCount: 0,
createUserID: "",
createTime: "",
modifyUserID: "",
modifyTime: "",
};
// this.folderGroupData = {
// folderGroupID: "",
// folderID: "",
// superID: "",
// levelId: "",
// folderGroupName: "",
// childCount: 0,
// createUserID: "",
// createTime: "",
// modifyUserID: "",
// modifyTime: "",
// };

},
/**
* 点击确定 保存文件夹组
*/
createFolderGroupSure: function () {
var thisApp = this;
async createFolderGroupSure(){
if (
this.folderGroupData.folderGroupName == null ||
this.folderGroupData.folderGroupName == ""
this.folderGroupData.FolderName == null ||
this.folderGroupData.FolderName == ""
) {
this.$notify({
title: "温馨提示",
@@ -6443,49 +6450,87 @@ export default {
});
return;
}
this.folderGroupData.folderGroupID = this.dbClickSelectedFolderGroupData.folderGroupID;
this.folderGroupData.superID = this.dbClickSelectedFolderGroupData.folderGroupID;
this.folderGroupData.levelId = this.dbClickSelectedFolderGroupData.levelId;
this.folderGroupData.folderID = this.nowFolder.folderID;
this.folderGroupData.createUserID = sessionStorage.userId;
debugger;
this.$axios({
method: "post",
url: encodeURI(process.env.API_HOST + "folders/foldergroup"),
data: this.folderGroupData,
})
.then((response) => {
this.dialogNewFolderGroup = false;
if (response.data.state == 1) {
thisApp.refreshPages();
this.$notify({
title: "恭喜您",
message: "文件夹创建成功!",
type: "success",
offset: 100,
duration: 2500,
});
} else {
this.$notify({
title: "温馨提示",
message: response.data.message,
type: "error",
offset: 100,
duration: 5000,
});
}
})
.catch((error) => {
console.log(error);
this.$notify({
title: "温馨提示",
message: "文件夹创建失败!",
type: "error",
offset: 100,
duration: 5000,
});
});
this.folderGroupData={
Id:sessionStorage.userId,
ProjId:sessionStorage.projId,
SuperId:this.nowFolder.id,
LevelId:this.nowFolder.levelId,
FirstFolderId:this.nowFolder.firstFolderId,
FolderName:this.folderGroupData.FolderName,
TemplateId:this.nowFolder.templateId,
SysCode:this.nowFolder.sysCode,
FileCount:0,
ChildCount:0,
Deleted:0,
Customed:2,
CreateUserId:sessionStorage.userId,
CreateTime:new Date(),
ModifyUserId:sessionStorage.userId,
ModifyTime:new Date(),
}
console.log(this.folderGroupData);
const Res = await services.createSubFolder(this.folderGroupData);
},

// createFolderGroupSure: function () {
// var thisApp = this;
// if (
// this.folderGroupData.folderGroupName == null ||
// this.folderGroupData.folderGroupName == ""
// ) {
// this.$notify({
// title: "温馨提示",
// message: "请输入文件夹名称!",
// type: "error",
// offset: 100,
// duration: 5000,
// });
// return;
// }
// this.folderGroupData.folderGroupID = this.dbClickSelectedFolderGroupData.folderGroupID;
// this.folderGroupData.superID = this.dbClickSelectedFolderGroupData.folderGroupID;
// this.folderGroupData.levelId = this.dbClickSelectedFolderGroupData.levelId;
// this.folderGroupData.folderID = this.nowFolder.folderID;
// this.folderGroupData.createUserID = sessionStorage.userId;
// debugger;
// this.$axios({
// method: "post",
// url: encodeURI(process.env.API_HOST + "folders/foldergroup"),
// data: this.folderGroupData,
// })
// .then((response) => {
// this.dialogNewFolderGroup = false;
// if (response.data.state == 1) {
// thisApp.refreshPages();
// this.$notify({
// title: "恭喜您",
// message: "文件夹创建成功!",
// type: "success",
// offset: 100,
// duration: 2500,
// });
// } else {
// this.$notify({
// title: "温馨提示",
// message: response.data.message,
// type: "error",
// offset: 100,
// duration: 5000,
// });
// }
// })
// .catch((error) => {
// console.log(error);
// this.$notify({
// title: "温馨提示",
// message: "文件夹创建失败!",
// type: "error",
// offset: 100,
// duration: 5000,
// });
// });
// },
/**
* 双击文件夹组名称 进入文件夹
*/


+ 5
- 2
src/views/manage_system/index.vue Visa fil

@@ -23,11 +23,14 @@ const navItem = (pathName, label) => ({ key: pathName, label });
const navList = [
navItem("system_customer", "客户列表"),
navItem("system_template", "流程模板"),
navItem("system_runmanage", "应用管理"),
navItem("system_template_matrix", "运行管理"),
navItem("system_appcenter", "应用管理"),
navItem("system_runmanage", "运行管理"),
navItem("system_setting", "总体权限"),
];
const hash = navList.reduce((h, item) => (h[item.key] = true, h), {});

hash['system_template_file'] = true;

const isInNavRange = name => hash[name];

export default {


+ 10
- 0
src/views/manage_system/template/matrix.vue Visa fil

@@ -8,6 +8,12 @@
-->
<template>
<div class="layout_content">
<app-header
showBackBtn
theme="white"
:title="topNodeName"
backBtnTitle="退出矩阵编辑器"
/>
<section class="title_section mt-10">
<div class="EC_col_8">
<h3>{{ topNodeName }}</h3>
@@ -228,11 +234,15 @@

<script>
import Vue from "vue";
import AppHeader from '@/components/app-header';
import fileUploader from "@/components/fileUploader/Index";
import * as services from "@/services/template";
import { notify } from "@/utils/tool";
Vue.use(fileUploader);
export default {
components: {
AppHeader,
},
data() {
return {
MatrixLookInfoMenuVisible: false,


+ 1
- 1
vue.config.js Visa fil

@@ -30,7 +30,7 @@ module.exports = {
proxy: {
'/api/pms': {
// target: 'http://47.104.91.134:8089',
target:'http://10.240.32.182:8089',
target:'http://10.240.32.204:8089',

changeOrigin: true,
secure: false,


Laddar…
Avbryt
Spara