cloud-web-corejs 1.0.54-dev.34 → 1.0.54-dev.36

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.
@@ -0,0 +1,189 @@
1
+ <template>
2
+ <el-dialog
3
+ custom-class="dialog-style list-dialog"
4
+ :title="'流程单据定义('+formTemplate.formName+')'"
5
+ :visible.sync="dialogVisible"
6
+ :show-close="!0"
7
+ :append-to-body="false"
8
+ :modal="false"
9
+ :close-on-click-modal="!1"
10
+ :close-on-press-escape="!1"
11
+ :destroy-on-close="!0"
12
+ width="1220px"
13
+ top="5vh"
14
+ v-dialog-drag
15
+ @close="closeDialog"
16
+ >
17
+ <div class="cont">
18
+ <el-form ref="editForm" :model="formData">
19
+ <el-table
20
+ ref="singleTable"
21
+ width="100%"
22
+ :data="formData.wfObjConfigDTOs"
23
+ height="500"
24
+ border=""
25
+ row-key="columnId"
26
+ stripe=""
27
+ >
28
+ <el-table-column type="index" width="35" fixed="left"></el-table-column>
29
+ <el-table-column :label="i18nt('表单类型名称')" width="250" prop="objTypeName">
30
+ <template slot-scope="scope">
31
+ <el-form-item :prop="'wfObjConfigDTOs.'+scope.$index+'.objTypeName'"
32
+ :rules="[{ required: true, trigger: 'blur' }]">
33
+ <el-input v-model="scope.row.objTypeName" clearable></el-input>
34
+ </el-form-item>
35
+ </template>
36
+ </el-table-column>
37
+ <el-table-column :label="i18nt('组织名称')" width="150" prop="companyCode">
38
+ <template slot-scope="scope">
39
+ {{ scope.row.companyName }}
40
+ </template>
41
+ </el-table-column>
42
+ <el-table-column :label="i18nt('表单类型编码')" width="200" prop="objTypeCode"></el-table-column>
43
+ <el-table-column :label="i18nt('服务名')" width="150" prop="serviceId"></el-table-column>
44
+ <el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
45
+ <template #header>
46
+ <span>{{ i18nt('designer.setting.actionColumn') }}</span>
47
+ <el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
48
+ icon="el-icon-plus" @click="openCompanyDialog"></el-button>
49
+ </template>
50
+ <template slot-scope="scope">
51
+ <el-button
52
+ :title="i18nt('designer.setting.deleteTableColumn')"
53
+ size="mini"
54
+ type=""
55
+ circle=""
56
+ icon="el-icon-minus"
57
+ @click="formData.wfObjConfigDTOs.splice(scope.$index,1)"
58
+ ></el-button>
59
+ </template>
60
+ </el-table-column>
61
+
62
+ </el-table>
63
+ </el-form>
64
+ </div>
65
+ <div class="dialog-footer" slot="footer">
66
+ <el-button @click="closeDialog" class="button-sty" icon="el-icon-close">
67
+ {{ i18nt('designer.hint.cancel') }}
68
+ </el-button>
69
+ <el-button type="primary" @click="saveData" class="button-sty" icon="el-icon-check">
70
+ {{ i18nt('designer.hint.confirm') }}
71
+ </el-button>
72
+ </div>
73
+ <companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
74
+ @confirm="confirmCompanyDialog" multi="false"/>
75
+ </el-dialog>
76
+ </template>
77
+ <script>
78
+ import i18n from '../../../../components/xform/utils/i18n';
79
+ import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
80
+
81
+ export default {
82
+ components: {companyInfoDialog},
83
+ props: ['formTemplate'],
84
+ mixins: [i18n],
85
+ data() {
86
+ return {
87
+ dialogVisible: true,
88
+ formData: {
89
+ objTypeCode: null,
90
+ wfObjConfigDTOs: []
91
+ },
92
+ operateIndex: 0,
93
+ showCompanyInfoDialog: false
94
+ }
95
+ },
96
+ created() {
97
+
98
+ },
99
+ mounted() {
100
+ this.formData.objTypeCode = this.formTemplate.objTypeCode;
101
+ this.getListByObjTypeCode();
102
+ },
103
+ methods: {
104
+ getListByObjTypeCode(callback) {
105
+ let formTemplate = this.formTemplate
106
+ this.$http({
107
+ url: `/${formTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
108
+ method: `post`,
109
+ data: {
110
+ stringOne: formTemplate.objTypeCode
111
+ },
112
+ isLoading: true,
113
+ success: res => {
114
+ let rows = res.objx || [];
115
+ this.formData.wfObjConfigDTOs = rows;
116
+ callback && callback(rows)
117
+ }
118
+ });
119
+ },
120
+ saveData() {
121
+ this.$refs.editForm.$baseValidate(valid => {
122
+ if (valid) {
123
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
124
+ var url = `/${this.formTemplate.serviceName}/wf_obj_config/saveUpdates`;
125
+ this.$http({
126
+ url: url,
127
+ method: `post`,
128
+ data: this.formData,
129
+ isLoading: true,
130
+ success: res => {
131
+ this.$message({
132
+ message: res.content,
133
+ type: 'success',
134
+ duration: 1000
135
+ });
136
+ this.getListByObjTypeCode(rows => {
137
+ this.$emit('confirm', rows)
138
+ this.closeDialog();
139
+ })
140
+ }
141
+ });
142
+ });
143
+ }
144
+ });
145
+ },
146
+ addItem() {
147
+ let formTemplate = this.formTemplate;
148
+ let row = {
149
+ objTypeCode: formTemplate.objTypeCode,
150
+ objTypeName: formTemplate.objTypeName,
151
+ serviceId: formTemplate.serviceName,
152
+ url: "form",
153
+ companyCode: null,
154
+ companyName: null
155
+ }
156
+ this.formData.wfObjConfigDTOs.push(row);
157
+ },
158
+ closeDialog() {
159
+ this.dialogVisible = false;
160
+ this.$emit("update:visiable", false);
161
+ },
162
+ openCompanyDialog() {
163
+ this.showCompanyInfoDialog = true;
164
+ },
165
+ confirmCompanyDialog(rows) {
166
+ if (rows.length) {
167
+ let row = rows[0];
168
+ let formTemplate = this.formTemplate;
169
+ if (!this.formData.wfObjConfigDTOs.find(item => item.companyCode == row.companyCode)) {
170
+ let newrow = {
171
+ objTypeCode: formTemplate.objTypeCode,
172
+ objTypeName: formTemplate.formName,
173
+ serviceId: formTemplate.serviceName,
174
+ url: "form",
175
+ companyCode: row.companyCode,
176
+ companyName: row.companyName
177
+ }
178
+ this.formData.wfObjConfigDTOs.push(newrow);
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ </script>
185
+
186
+
187
+ <style scoped>
188
+
189
+ </style>
@@ -76,6 +76,7 @@ export default {
76
76
  if (this.dataId && !isNaN(this.dataId)) {
77
77
  this.isEdit = true;
78
78
  this.$commonHttp({
79
+ aes:true,
79
80
  url: USER_PREFIX + `/groups/get`,
80
81
  method: `post`,
81
82
  data: {
@@ -95,6 +96,7 @@ export default {
95
96
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
96
97
  var url = USER_PREFIX + (this.isEdit ? `/groups/update` : `/groups/save`);
97
98
  this.$http({
99
+ aes:true,
98
100
  url: url,
99
101
  method: `post`,
100
102
  data: this.groups,
@@ -86,6 +86,7 @@ export default {
86
86
  vue: this,
87
87
  tableRef: 'table-m1',
88
88
  tableName: 'user_groups_list-m1',
89
+ aes: true,
89
90
  path: USER_PREFIX + '/groups/listPage',
90
91
  param: () => {
91
92
  return this.formData;
@@ -137,6 +137,7 @@
137
137
  <script>
138
138
  import xeUtils from "xe-utils";
139
139
  import groudDialog from "@base/views/user/groups/dialog.vue";
140
+ import {getBdEnv} from "@base/api/user";
140
141
 
141
142
  export default {
142
143
  name: 'UserEdit',
@@ -229,8 +230,9 @@ export default {
229
230
  userInfo: {},
230
231
  userGroups: [],
231
232
  showGroupDialog: false,
232
- vxeOption:{},
233
- menuKindAuthDTOs:[]
233
+ vxeOption: {},
234
+ menuKindAuthDTOs: [],
235
+ isDev: true
234
236
  };
235
237
  },
236
238
  computed: {
@@ -247,6 +249,7 @@ export default {
247
249
  this.getUserGroups()
248
250
  this.getData();
249
251
  this.getConpanyInfo()
252
+ await this.initBdEnv();
250
253
  this.initTableM1();
251
254
  },
252
255
  methods: {
@@ -254,6 +257,7 @@ export default {
254
257
  if (this.dataId && !isNaN(this.dataId)) {
255
258
  this.isEdit = true;
256
259
  this.$commonHttp({
260
+ aes: true,
257
261
  url: USER_PREFIX + `/user/get`,
258
262
  method: `post`,
259
263
  data: {
@@ -297,6 +301,7 @@ export default {
297
301
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
298
302
  var url = USER_PREFIX + (this.isEdit ? '/user/update' : '/user/save');
299
303
  this.$http({
304
+ aes: true,
300
305
  url: url,
301
306
  method: `post`,
302
307
  data: this.user,
@@ -327,6 +332,7 @@ export default {
327
332
  getSaleOrgData() {
328
333
  if (this.dataId) {
329
334
  this.$http({
335
+ aes: true,
330
336
  url: USER_PREFIX + '/user/getUserSaleOrg',
331
337
  method: `post`,
332
338
  data: {id: this.dataId},
@@ -347,6 +353,7 @@ export default {
347
353
  getUserRoleData() {
348
354
  if (this.dataId) {
349
355
  this.$http({
356
+ aes: true,
350
357
  url: USER_PREFIX + '/user/getUserRole',
351
358
  method: `post`,
352
359
  data: {id: this.dataId},
@@ -370,6 +377,7 @@ export default {
370
377
  getCompanyInfoData(callback) {
371
378
  if (this.dataId) {
372
379
  this.$http({
380
+ aes: true,
373
381
  url: USER_PREFIX + '/user/getUserCompanyInfo',
374
382
  method: `post`,
375
383
  data: {id: this.dataId},
@@ -419,6 +427,7 @@ export default {
419
427
  },
420
428
  getConpanyInfo() {
421
429
  this.$http({
430
+ aes: true,
422
431
  url: USER_PREFIX + '/company_info/getCurrent',
423
432
  method: `post`,
424
433
  isLoading: true,
@@ -445,6 +454,7 @@ export default {
445
454
  this.$baseConfirm(this.$t1('您确定要解锁吗?')).then(() => {
446
455
  var url = USER_PREFIX + '/user/unlockLoginAccount';
447
456
  this.$http({
457
+ aes: true,
448
458
  url: url,
449
459
  method: `post`,
450
460
  data: {
@@ -473,6 +483,7 @@ export default {
473
483
  },
474
484
  getUserInfo() {
475
485
  return this.$http({
486
+ aes: true,
476
487
  url: USER_PREFIX + '/user/currentUser',
477
488
  method: 'post',
478
489
  success: res => {
@@ -486,6 +497,7 @@ export default {
486
497
  },
487
498
  getUserGroups() {
488
499
  return this.$http({
500
+ aes: true,
489
501
  url: USER_PREFIX + '/groups/listPage',
490
502
  method: 'post',
491
503
  data: {},
@@ -507,6 +519,48 @@ export default {
507
519
  width: 350,
508
520
  fixed: 'left'
509
521
  },
522
+ {
523
+ title: this.$t1('编辑'),
524
+ field: 'editAuth',
525
+ width: 150,
526
+ slots: {
527
+ default: ({row}) => {
528
+ if (row.editAuth) {
529
+ return [<div class="txt-status">{this.$t1('是')}</div>];
530
+ } else {
531
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
532
+ }
533
+ }
534
+ }
535
+ },
536
+ {
537
+ title: this.$t1('导出发布'),
538
+ field: 'exportAuth',
539
+ width: 150,
540
+ slots: {
541
+ default: ({row}) => {
542
+ if (row.exportAuth) {
543
+ return [<div class="txt-status">{this.$t1('是')}</div>];
544
+ } else {
545
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
546
+ }
547
+ }
548
+ }
549
+ },
550
+ ...(this.isDev ? [{
551
+ title: this.$t1('可选导出发布类型'),
552
+ field: 'selectTypeAuth',
553
+ width: 200,
554
+ slots: {
555
+ default: ({row}) => {
556
+ if (row.selectTypeAuth) {
557
+ return [<div class="txt-status">{this.$t1('是')}</div>];
558
+ } else {
559
+ return [<div class="txt-status s-3">{this.$t1('否')}</div>];
560
+ }
561
+ }
562
+ }
563
+ }] : []),
510
564
  {
511
565
  width: 47,
512
566
  fixed: 'right',
@@ -534,6 +588,13 @@ export default {
534
588
  });
535
589
  }
536
590
  },
591
+ initBdEnv() {
592
+ return getBdEnv({
593
+ success: res => {
594
+ this.isDev = res.objx == "dev"
595
+ }
596
+ });
597
+ },
537
598
  }
538
599
  };
539
600
  </script>
@@ -222,6 +222,7 @@ export default {
222
222
  getUserGroups() {
223
223
  return new Promise((resolve, reject) => {
224
224
  this.$http({
225
+ aes: true,
225
226
  url: USER_PREFIX + '/groups/listPage',
226
227
  method: 'post',
227
228
  data: {},