cloud-web-corejs 1.0.54-dev.154 → 1.0.54-dev.156

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.154",
4
+ "version": "1.0.54-dev.156",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -274,8 +274,9 @@ export default {
274
274
  return !this.designState && label ? this.$t2(label, path, param) : label;
275
275
  },
276
276
  initShowType() {
277
+ if (!!this.designer)return
277
278
  let that = this.$parent
278
- let formRef = that.getFormRef();
279
+ let formRef = that.getFormRef?that.getFormRef():that;
279
280
  let bdService = formRef.bdService;
280
281
  let companyCode = this.$store.getters.companyCode;
281
282
  let loginAccount = this.$store.getters.loginAccount;
@@ -2114,7 +2114,7 @@ modules = {
2114
2114
  return newFieldSchema
2115
2115
  },*/
2116
2116
  clearRowWidgets(){
2117
- this.widgetMap = {};
2117
+ // this.widgetMap = {};
2118
2118
  },
2119
2119
  deleteRowWidgets(row) {
2120
2120
  this.rowWidgetList.forEach(widget=>{
@@ -9,15 +9,22 @@ modules = {
9
9
  ...opts
10
10
  });
11
11
  },*/
12
- handleDecryptData(obj){
13
- let toDo = (data)=>{
14
- if(Array.isArray(data)){
12
+ handleDecryptData(data){
13
+ if(data){
14
+ if (Array.isArray(data)) {
15
15
  data.forEach(item=>{
16
- item = toDo(item)
16
+ this.handleDecryptData(item)
17
17
  })
18
+ } else if (Object.prototype.toString.call(item) === "[object Object]") {
19
+ this.handleDecryptData(data)
20
+ } else {
21
+ let str = "ATEN*-";
22
+ if(data.startWith(str)){
23
+ data = data.slice(str.length)
24
+ }
18
25
  }
19
26
  }
20
- toDo(obj);
27
+ return data;
21
28
  },
22
29
  formHttp(opts) {
23
30
  let data = opts.data;
@@ -91,12 +98,9 @@ modules = {
91
98
  ...reqData
92
99
  },
93
100
  success: res => {
94
- if(res.objx){
95
- if(res.objx){
96
- let objx = res.objx;
97
-
98
- }
99
- }
101
+ /*if(res.objx){
102
+ res.objx = this.handleDecryptData(res.objx);
103
+ }*/
100
104
  if (opts.successMsg) {
101
105
  this.$message({
102
106
  message: res.content,