|
|
@@ -75,47 +75,46 @@ Component({
|
|
|
complete: ({
|
|
|
confirm
|
|
|
}) => {
|
|
|
- if (confirm) _Http.basic({
|
|
|
- "id": 20220930103701,
|
|
|
- "content": {
|
|
|
- ownertable: that.data.ownertable,
|
|
|
- ownerid: that.data.ownerid,
|
|
|
- userid: arr[0],
|
|
|
- // isaddoldleader: s.confirm ? 1 : 0
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("更换负责人", res)
|
|
|
- if (res.msg != '成功') return wx.showToast({
|
|
|
- title: res.data,
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- wx.showToast({
|
|
|
- title: '更换成功!',
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
- setTimeout(() => {
|
|
|
- getCurrentPages().forEach(v => {
|
|
|
- if (["packageA/project/index", "ackageA/setclient/index", "pages/group/index"].includes(v.__route__)) {
|
|
|
- v.getList(true);
|
|
|
- } else if (["packageA/setclient/detail", "packageA/project/detail"].includes(v.__route__)) {
|
|
|
- // v.getDetail()
|
|
|
- }
|
|
|
- })
|
|
|
- wx.navigateBack({
|
|
|
- delta: 2
|
|
|
- });
|
|
|
- }, 300)
|
|
|
- })
|
|
|
-
|
|
|
- /* wx.showModal({
|
|
|
+ if (confirm) wx.showModal({
|
|
|
title: '提示',
|
|
|
content: '是否参与该数据的后续工作',
|
|
|
confirmText: "参与",
|
|
|
cancelText: "不参与",
|
|
|
complete: (s) => {
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20220930103701,
|
|
|
+ "content": {
|
|
|
+ ownertable: that.data.ownertable,
|
|
|
+ ownerid: that.data.ownerid,
|
|
|
+ userid: arr[0],
|
|
|
+ isaddoldleader: s.confirm ? 1 : 0
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("更换负责人", res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.data,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ wx.showToast({
|
|
|
+ title: '更换成功!',
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ setTimeout(() => {
|
|
|
+ getCurrentPages().forEach(v => {
|
|
|
+ if (["packageA/project/index", "ackageA/setclient/index", "pages/group/index"].includes(v.__route__)) {
|
|
|
+ v.getList(true);
|
|
|
+ } else if (["packageA/setclient/detail", "packageA/project/detail"].includes(v.__route__)) {
|
|
|
+ // v.getDetail()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ wx.navigateBack({
|
|
|
+ delta: 2
|
|
|
+ });
|
|
|
+ }, 300)
|
|
|
+ })
|
|
|
|
|
|
}
|
|
|
- }) */
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|