cloud-web-corejs 1.0.188 → 1.0.190

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.
Files changed (87) hide show
  1. package/package.json +273 -187
  2. package/src/components/baseAlert/index.vue +23 -19
  3. package/src/components/baseAlert/mixins.js +1 -1
  4. package/src/components/baseInputExport/index.vue +1 -1
  5. package/src/components/baseInputExport/mixins.js +1 -1
  6. package/src/components/errorMsg/index.vue +78 -78
  7. package/src/components/errorMsg/mixins.js +1 -1
  8. package/src/components/excelImport/mixins.js +1 -1
  9. package/src/components/fileLibrary/index.vue +17 -14
  10. package/src/components/hiprint/view/design/index.vue +139 -47
  11. package/src/components/hiprint/view/design/preview.vue +75 -52
  12. package/src/components/hiprint/view/json-view.vue +31 -31
  13. package/src/components/luckysheet/dialog.vue +159 -0
  14. package/src/components/luckysheet/export.js +5 -0
  15. package/src/components/luckysheet/fileUtils.js +1 -0
  16. package/src/components/luckysheet/index.js +1 -0
  17. package/src/components/luckysheet/templateJson.js +12078 -0
  18. package/src/components/luckysheet/view.vue +210 -0
  19. package/src/components/oplogTable/mixins.js +4 -4
  20. package/src/components/table/index.js +1 -1
  21. package/src/components/table/util/index.js +8 -1
  22. package/src/components/wf/content.vue +3 -2
  23. package/src/components/wf/wf.js +1 -1
  24. package/src/components/wf/wfUtil.js +1 -1
  25. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +1 -1
  26. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
  27. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  28. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +1 -1
  29. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +11 -1
  30. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -0
  31. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +92 -0
  32. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
  33. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +37 -37
  34. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +54 -47
  35. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
  36. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
  37. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
  38. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
  39. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +71 -0
  40. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  41. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +39 -34
  42. package/src/components/xform/form-render/container-item/data-table-item.vue +6 -1
  43. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  44. package/src/components/xform/form-render/index.vue +7 -7
  45. package/src/components/xform/form-render/indexMixin.js +2 -1
  46. package/src/components/xform/lang/zh-CN.js +2 -0
  47. package/src/components/xform/utils/formHttp.js +162 -0
  48. package/src/layout/components/extractedCode/viewDialog.vue +1 -0
  49. package/src/mixins/tableTree/index.js +4 -4
  50. package/src/store/modules/permission.js +41 -41
  51. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +1 -239
  52. package/src/views/bd/setting/form_script/edit.vue +9 -0
  53. package/src/views/bd/setting/form_script/edit1.vue +29 -3
  54. package/src/views/bd/setting/form_script/form_list.vue +99 -37
  55. package/src/views/bd/setting/form_script/list1.vue +181 -118
  56. package/src/views/bd/setting/form_script/mixins/dialog.js +1 -1
  57. package/src/views/bd/setting/form_script/mixins/edit.js +3 -2
  58. package/src/views/bd/setting/form_script/mixins/edit1.js +3 -2
  59. package/src/views/bd/setting/form_script/mixins/list.js +1 -1
  60. package/src/views/bd/setting/form_script/mixins/list1.js +1 -1
  61. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  62. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  63. package/src/views/bd/setting/form_template/edit.vue +13 -0
  64. package/src/views/bd/setting/form_template/list.vue +326 -214
  65. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +2 -1
  66. package/src/views/bd/setting/form_template/mixins/edit.js +10 -9
  67. package/src/views/bd/setting/form_template/mixins/list.js +3 -3
  68. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +7 -0
  69. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  70. package/src/views/bd/setting/logic_param/edit2.vue +17 -0
  71. package/src/views/bd/setting/menu_kind/list.vue +172 -87
  72. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +7 -7
  73. package/src/views/bd/setting/menu_kind/mixins/list.js +1 -201
  74. package/src/views/bd/setting/table_model/edit.vue +345 -304
  75. package/src/views/bd/setting/table_model/list.vue +190 -128
  76. package/src/views/bd/setting/table_model/mixins/edit.js +3 -1
  77. package/src/views/bd/setting/table_model/mixins/list.js +2 -2
  78. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +7 -0
  79. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  80. package/src/views/user/company_info/dialog.vue +80 -49
  81. package/src/views/user/home/default.vue +8 -6
  82. package/src/views/user/notify_message/dialog.vue +9 -7
  83. package/src/views/user/user/form_dialog.vue +158 -0
  84. package/src/views/user/user/modifyPasswordDialog.vue +64 -53
  85. package/src/views/user/wf/wfReport/index.vue +1 -0
  86. package/src/views/user/wf/wf_manage/list.vue +8 -1
  87. package/src/views/user/wf/wf_manage/wfContentDialog.vue +25 -22
@@ -0,0 +1,194 @@
1
+ import userDialog from "@base/views/user/user/form_dialog.vue";
2
+ import {getJsxBtn} from "@base/views/bd/setting/utils/index";
3
+ import {getBdEnv} from "@base/api/user";
4
+
5
+ let modules = {};
6
+ modules = {
7
+ props: {
8
+ currentMenuKind: Object,
9
+ sid:String
10
+ },
11
+ components: {
12
+ userDialog
13
+ },
14
+ computed: {
15
+
16
+ },
17
+ async mounted() {
18
+ // await this.initBdEnv();
19
+ this.initTableList();
20
+ },
21
+ data() {
22
+ let that = this;
23
+ return {
24
+ showDialog: true,
25
+ activeName: 'second',
26
+ value10: '',
27
+ dataId: '',
28
+ showEdit: false,
29
+ formData: {},
30
+ vxeOption: {},
31
+ showUserDialog: false,
32
+ showPositionDialog: false,
33
+ showSaleOrgDialog: false,
34
+ operateIndex: 0,
35
+ showViewDialog: false,
36
+
37
+ tableData: [],
38
+ showUserRowDialog: false,
39
+ showUserAddDialog: false,
40
+ currentRow: null,
41
+ isDev: true
42
+
43
+ };
44
+ },
45
+ methods: {
46
+ getFieldDisabled() {
47
+
48
+ },
49
+ searchEvent() {
50
+ this.$refs['table-m1'].commitProxy('reload');
51
+ },
52
+ resetEvent() {
53
+ this.formData = {};
54
+ this.$refs['table-m1'].commitProxy('reload');
55
+ },
56
+ initBdEnv() {
57
+ return getBdEnv({
58
+ success: res => {
59
+ this.isDev = res.objx == "dev"
60
+ }
61
+ });
62
+ },
63
+ initTableList() {
64
+ let that = this;
65
+ let tableOption = {
66
+ vue: this,
67
+ tableRef: 'table-m1',
68
+ tableName: 'user_form_script_auth-list-m1',
69
+ config: {
70
+ height: "auto"
71
+ },
72
+ columns: [
73
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
74
+ {
75
+ title: this.$t1('用户'),
76
+ field: 'nickName',
77
+ width: 250
78
+ },
79
+ {
80
+ title: this.$t1('编辑'),
81
+ field: 'editAuth',
82
+ width: 150,
83
+ slots: {
84
+ default: "switch"
85
+ }
86
+ },
87
+ {
88
+ width: 47,
89
+ fixed: 'right',
90
+ title: '',
91
+ sortable: false,
92
+ slots: {
93
+ default: ({row, rowIndex, $table}) => {
94
+ return getJsxBtn({
95
+ iconName: "el-icon-delete",
96
+ content: this.$t1('删除'),
97
+ onclick: () => {
98
+ this.tableData.splice(rowIndex, 1)
99
+ }
100
+ });
101
+ }
102
+ }
103
+ }
104
+ ]
105
+ };
106
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
107
+ this.vxeOption = opts;
108
+ });
109
+ this.initData();
110
+ },
111
+ initData() {
112
+ let sid = this.sid;
113
+ this.$http({
114
+ // aes: true,
115
+ url: USER_PREFIX + '/form_script_auth/list',
116
+ method: `post`,
117
+ data: {
118
+ sid,
119
+ },
120
+ isLoading: true,
121
+ modalStrictly: true,
122
+ success: res1 => {
123
+ let rows = res1.objx || [];
124
+ this.tableData = rows;
125
+
126
+ }
127
+ });
128
+ },
129
+ dialogClose() {
130
+ this.$emit('update:visiable', false)
131
+ },
132
+ dialogConfirm(){
133
+ this.$emit('confirm')
134
+ this.dialogClose()
135
+ },
136
+ openUserAddDialog(row, rowIndex) {
137
+ this.showUserAddDialog = true;
138
+ },
139
+ confirmtUserAddDialog(rows) {
140
+ if (rows.length) {
141
+ const tableData = this.tableData;
142
+ const map = {};
143
+ tableData.filter(item => !!item.userId).forEach(function (item) {
144
+ map[item.userId] = 1;
145
+ });
146
+ let items = [];
147
+
148
+ rows.forEach((row, index) => {
149
+ let item = this.createRow();
150
+ item.userId = row.id;
151
+ item.nickName = row.nickName;
152
+ if (!map[item.userId]) {
153
+ items.push(item);
154
+ }
155
+ });
156
+ this.tableData.push(...items);
157
+ }
158
+ },
159
+ saveData() {
160
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
161
+ var url = USER_PREFIX + `/form_script_auth/save`;
162
+ this.$http({
163
+ // aes: true,
164
+ url: url,
165
+ method: `post`,
166
+ data: {
167
+ sid:this.sid,
168
+ formScriptAuthDTOs: this.tableData
169
+ },
170
+ isLoading: true,
171
+ success: res => {
172
+ this.$message({
173
+ message: res.content,
174
+ type: 'success',
175
+ duration: 500,
176
+ onClose: t => {
177
+ this.dialogConfirm()
178
+ }
179
+ });
180
+ }
181
+ });
182
+ });
183
+ },
184
+ createRow() {
185
+ let row = {
186
+ nickName: null,
187
+ userId: null,
188
+ editAuth: 1
189
+ }
190
+ return row;
191
+ }
192
+ }
193
+ }
194
+ export default modules
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <div>
3
+ <el-dialog
4
+ :title="$t1('逻辑脚本分派')"
5
+ :append-to-body="true"
6
+ :modal-append-to-body="true"
7
+ :close-on-click-modal="false"
8
+ :visible.sync="showDialog"
9
+ :modal="false"
10
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
11
+ width="650px"
12
+ @close="dialogClose"
13
+ v-el-drag-dialog
14
+ v-el-dialog-center
15
+ >
16
+ <div class="cont">
17
+ <div class="grid-height" style="height: 500px">
18
+ <vxe-grid
19
+ class="is-pointer"
20
+ ref="table-m1"
21
+ :data="tableData"
22
+ v-bind="vxeOption"
23
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
24
+ @custom="$vxeTableUtil.customHandle"
25
+ >
26
+ <template #form>
27
+ <div class="clearfix screen-btns">
28
+ <div class="fl">
29
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openUserAddDialog">
30
+ {{ $t1('新增用户') }}
31
+ </vxe-button>
32
+ </div>
33
+ </div>
34
+ </template>
35
+ <template #user="{row,rowIndex}">
36
+ <el-input
37
+ class="search-input"
38
+ v-model="row.nickName"
39
+ clearable
40
+ @clear="
41
+ row.userId = null;
42
+ "
43
+ v-if="!row._isParent"
44
+ v-el-readonly
45
+ >
46
+ <i slot="suffix" class="el-input__icon el-icon-search" @click="openUserRowDialog(row,rowIndex)"></i>
47
+ </el-input>
48
+ <template v-else>{{ row.nickName }}</template>
49
+ </template>
50
+ <template #switch="{row,column,rowIndex}">
51
+ <el-switch v-model="row[column.field]" :key="column.field+rowIndex" :active-value="1"
52
+ :inactive-value="0"></el-switch>
53
+ </template>
54
+ </vxe-grid>
55
+ </div>
56
+ </div>
57
+ <span slot="footer" class="dialog-footer">
58
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
59
+ <i class="el-icon-close el-icon"></i>
60
+ {{ $t1('取 消') }}
61
+ </el-button>
62
+ <el-button type="primary" @click="saveData" class="button-sty">
63
+ <i class="el-icon-check el-icon"></i>
64
+ {{ $t1('确 定') }}
65
+ </el-button>
66
+ </span>
67
+ </el-dialog>
68
+ <userDialog v-if="showUserAddDialog" :visiable.sync="showUserAddDialog" @confirm="confirmtUserAddDialog"
69
+ multi="true" :param="{flag:8}"/>
70
+ </div>
71
+ </template>
72
+
73
+ <script>
74
+ import mixin from "./mixins/otherAuthDialog";
75
+
76
+ export default {
77
+ mixins: [mixin]
78
+ }
79
+ </script>
80
+
81
+ <style scoped>
82
+
83
+ </style>
@@ -7,6 +7,16 @@
7
7
  {{ dataId ? $t1('查看表单模板') : $t1('新增表单模板') }}
8
8
  </div>
9
9
  <div class="fr">
10
+ <el-button
11
+ type="primary"
12
+ plain
13
+ class="button-sty"
14
+ icon="el-icon-set-up"
15
+ @click="openOtherAuthDialog"
16
+ v-if="isDev && !!dataId && menuKindAuth.editAuth === 1 && !readonly && !otherFlag"
17
+ >
18
+ {{ $t1("分派") }}
19
+ </el-button>
10
20
  <el-button type="success" class="button-sty" @click="openDesignDialog"
11
21
  icon="iconfont icon-liuchengguanli-shejiqi_liucheng" v-if="!!dataId">{{ $t1('表单设计') }}
12
22
  </el-button>
@@ -78,6 +88,7 @@
78
88
  "
79
89
  v-el-readonly
80
90
  clearable
91
+ :disabled="otherFlag"
81
92
  >
82
93
  <i slot="suffix" class="el-input__icon el-icon-search" @click="showMenuKindDialog = true"></i>
83
94
  </el-input>
@@ -179,6 +190,8 @@
179
190
  />
180
191
  <preformDialog v-if="showPreformDialog" :visiable.sync="showPreformDialog"
181
192
  @confirm="confirmPreformDialog"></preformDialog>
193
+ <otherAuthDialog v-if="showOtherAuthDialog" :visiable.sync="showOtherAuthDialog" :sid="sid"
194
+ @confirm="confirmOtherAuthDialog"></otherAuthDialog>
182
195
  </div>
183
196
  </template>
184
197