centaline-data-driven 1.1.25 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -166,7 +166,6 @@
166
166
  this.$set(this, 'focus', false);
167
167
  },
168
168
  clickHandle: function () {
169
- debugger;
170
169
  if (this.model.lock) {
171
170
  return false;
172
171
  }
@@ -233,7 +233,7 @@ const Base = function (source) {
233
233
  getFormParentFieldPara() {
234
234
  if (rtn.form && typeof rtn.parentField !== 'undefined' && rtn.parentField.length > 0) {
235
235
  if (typeof rtn.form.getRefFieldPara === 'function') {
236
- return JSON.stringify(rtn.form.getParentFieldPara(rtn.parentField));
236
+ return rtn.form.getParentFieldPara(rtn.parentField);
237
237
  }
238
238
  }
239
239
  return null;
@@ -624,7 +624,18 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
624
624
  parentFieldNameArr.forEach((v) => {
625
625
  submitData[v] = tempFormData[v];
626
626
  });
627
- return submitData;
627
+
628
+ if(JSON.stringify(submitData) == "{}"){
629
+ return '';
630
+ }
631
+ else{
632
+ if(parentFieldNameArr.length>1){
633
+ return JSON.stringify(submitData);
634
+ }
635
+ else{
636
+ return submitData[parentFieldNameArr[0]];
637
+ }
638
+ }
628
639
  },
629
640
  //检查是否关闭tab后触发来源页面操作
630
641
  checkCloseTabThen(notification) {
@@ -185,7 +185,17 @@ const SearchScreen = function (source, callBack, screenPara) {
185
185
  if(n.fieldName1==v)submitData[v] = n.searchValue1;
186
186
  });
187
187
  });
188
- return submitData;
188
+ if(JSON.stringify(submitData) == "{}"){
189
+ return '';
190
+ }
191
+ else{
192
+ if(parentFieldNameArr.length>1){
193
+ return JSON.stringify(submitData);
194
+ }
195
+ else{
196
+ return submitData[parentFieldNameArr[0]];
197
+ }
198
+ }
189
199
  },
190
200
  };
191
201
  return rtn;
package/src/main.js CHANGED
@@ -27,7 +27,7 @@ Vue.use(centaline, {
27
27
  // 获取请求头
28
28
  getRequestHeaders: function () {
29
29
  return {
30
- oldToken: 'faefb8a4-f885-4f49-a0fc-dc6c0943bf4a',
30
+ oldToken: 'd09609ec-e13a-4b97-8c15-e003b1c36cbc',
31
31
  estateId: '20210729104021C49F04B55C50F6AF58',
32
32
  };
33
33
  },