Browse Source

修改数据任务标题回空的问题

xiaohaizhao 2 years ago
parent
commit
f5da46c295
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packageA/work/add.js

+ 3 - 2
packageA/work/add.js

@@ -301,7 +301,7 @@ Page({
             url: '/packageA/work/synchronization?data=' + JSON.stringify(this.data.synchronization),
             url: '/packageA/work/synchronization?data=' + JSON.stringify(this.data.synchronization),
         });
         });
         _Http.selectSync = (item, ownertable) => {
         _Http.selectSync = (item, ownertable) => {
-            let form = this.data.form,
+            let form = this.selectComponent("#Form").data.form,
                 index = form.findIndex(v => v.label == '任务内容');
                 index = form.findIndex(v => v.label == '任务内容');
             if (index != -1) {
             if (index != -1) {
                 if (ownertable == 'sat_orderclue') {
                 if (ownertable == 'sat_orderclue') {
@@ -408,7 +408,8 @@ Page({
             "justuserids": 1
             "justuserids": 1
         }
         }
         delete(content.member)
         delete(content.member)
-        if (content.ownerid && typeof (content.ownerid) == 'object') content.ownerid = content.ownerid.length == 2 ? content.ownerid[1][0] : ""
+        if (content.ownerid && typeof (content.ownerid) == 'object') content.ownerid = content.ownerid.length == 2 ? content.ownerid[1][0] : "";
+        if (!content.ownerid) content.ownertable = "";
         _Http.basic({
         _Http.basic({
             "id": 20221211112101,
             "id": 20221211112101,
             content
             content