doway-coms 2.11.7 → 2.11.9

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": "doway-coms",
3
- "version": "2.11.7",
3
+ "version": "2.11.9",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -123,10 +123,13 @@ export default {
123
123
  this.historyList = res.content;
124
124
  });
125
125
  },
126
- historyData(val) {
126
+ async historyData(val) {
127
127
  if (val.logOperation && val.logOperation === 'print') {
128
128
  return
129
129
  }
130
+ await objectAuditLogReadApi({id: val.id}).then(res => {
131
+ val.logData = JSON.parse(res.content.logData);
132
+ })
130
133
  if (
131
134
  // eslint-disable-next-line no-prototype-builtins
132
135
  val.logData.hasOwnProperty("code") &&
@@ -452,6 +452,12 @@ export default {
452
452
  return ''
453
453
  },
454
454
  },
455
+ background: {
456
+ type: String,
457
+ default: function () {
458
+ return ''
459
+ },
460
+ },
455
461
  },
456
462
  computed: {
457
463
  computedformStyle(){
@@ -465,6 +471,9 @@ export default {
465
471
  overflowY: 'auto',
466
472
  paddingBottom:'7px'
467
473
  }
474
+ if(this.background){
475
+ layoutFormStyle['background'] = this.background
476
+ }
468
477
 
469
478
  if(this.layoutType==='grid'){
470
479
  // 计算最大的行和列
@@ -96,6 +96,15 @@ export function objectAuditLogApi(data) {
96
96
  data: data
97
97
  })
98
98
  }
99
+
100
+ export function objectAuditLogReadApi(data) {
101
+ return request({
102
+ url: store.getters.baseUrl + '/v1/objectAuditLog/read',
103
+ method: 'post',
104
+ data: data
105
+ })
106
+ }
107
+
99
108
  // 重置配置
100
109
  export function userResetApi(data) {
101
110
  return request({