|
@@ -368,49 +368,31 @@ function handleSubmit(type,item) {
|
|
item.ccTo1 = item.ccTo.split(",").map(function (value, index) {
|
|
item.ccTo1 = item.ccTo.split(",").map(function (value, index) {
|
|
return Number(value);
|
|
return Number(value);
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
|
|
/** 查询树结构用户列表 回显抄送人*/
|
|
/** 查询树结构用户列表 回显抄送人*/
|
|
|
|
|
|
- projectApi()
|
|
|
|
- .deptUserTreeSelect({
|
|
|
|
- }).then((requset) => {
|
|
|
|
- state.tree = requset.data;
|
|
|
|
- item.treeSelectNodes = proxy.$common.findTreeNodes(state.tree, item.ccTo1);
|
|
|
|
- var ccToString=''
|
|
|
|
- item.treeSelectNodes.forEach((aa,index) => {
|
|
|
|
- if(index==item.treeSelectNodes.length-1){
|
|
|
|
- ccToString+=aa.nickName+''
|
|
|
|
- }else{
|
|
|
|
- ccToString+=aa.nickName+','
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
- item.tomorrowPlan=item.tomorrowPlan?item.tomorrowPlan:'-';
|
|
|
|
- item.coordinateWork=item.coordinateWork?item.coordinateWork:'-'
|
|
|
|
- // 触发方法
|
|
|
|
- proxy.$common.uniCopy({
|
|
|
|
- content: workLongString+ "\n" +
|
|
|
|
- "明日计划:\n" + item.tomorrowPlan + "\n" +
|
|
|
|
- "工作协调:\n" + item.coordinateWork,
|
|
|
|
- success: (res) => {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res,
|
|
|
|
- icon: "none",
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- error: (e) => {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: e,
|
|
|
|
- icon: "none",
|
|
|
|
- duration: 3000,
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+ item.tomorrowPlan=item.tomorrowPlan?item.tomorrowPlan:'-';
|
|
|
|
+ item.coordinateWork=item.coordinateWork?item.coordinateWork:'-'
|
|
|
|
+ // 触发方法
|
|
|
|
+ proxy.$common.uniCopy({
|
|
|
|
+ content: workLongString+ "\n" +
|
|
|
|
+ "明日计划:\n" + item.tomorrowPlan + "\n" +
|
|
|
|
+ "工作协调:\n" + item.coordinateWork,
|
|
|
|
+ success: (res) => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res,
|
|
|
|
+ icon: "none",
|
|
});
|
|
});
|
|
- state.popup.show = false;
|
|
|
|
- })
|
|
|
|
- .catch((err) => {
|
|
|
|
- })
|
|
|
|
|
|
+ },
|
|
|
|
+ error: (e) => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: e,
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 3000,
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ state.popup.show = false;
|
|
|
|
|
|
|
|
|
|
} else if (type === "delete") {
|
|
} else if (type === "delete") {
|