cloud-web-corejs-haier 1.0.4 → 1.0.6

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 (144) hide show
  1. package/package.json +7 -4
  2. package/src/App.vue +30 -34
  3. package/src/api/user.js +8 -0
  4. package/src/components/Tinymce/index.vue +112 -71
  5. package/src/components/VabUpload/image-viewer.vue +2 -2
  6. package/src/components/VabUpload/index.js +1 -1
  7. package/src/components/VabUpload/mixins.js +1 -1
  8. package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
  9. package/src/components/VabUpload/view.vue +6 -2
  10. package/src/components/base-textarea/index.vue +104 -0
  11. package/src/components/baseAlert/mixins.js +1 -1
  12. package/src/components/baseAttachment/mixins.js +2 -1
  13. package/src/components/baseInputExport/index.vue +19 -12
  14. package/src/components/baseInputExport/mixins.js +1 -1
  15. package/src/components/baseTabs/mixins.js +1 -1
  16. package/src/components/code-editor/index.vue +102 -63
  17. package/src/components/confirmDialog/index.vue +24 -17
  18. package/src/components/confirmDialog/mixins.js +1 -1
  19. package/src/components/errorMsg/index.vue +42 -34
  20. package/src/components/errorMsg/mixins.js +1 -1
  21. package/src/components/excelExport/index.js +1 -2
  22. package/src/components/excelExport/mixins.js +1 -1
  23. package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
  24. package/src/components/fileLibrary/filterDialog.vue +45 -21
  25. package/src/components/fileLibrary/index.vue +579 -238
  26. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +4 -1
  27. package/src/components/fileLibrary/mixins/indexMixins.js +3 -0
  28. package/src/components/scriptDescription/button.vue +12 -4
  29. package/src/components/scriptTest/mixins.js +1 -1
  30. package/src/components/table/index.js +1 -1
  31. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
  32. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
  33. package/src/components/tempStorage/index.vue +1 -1
  34. package/src/components/vb-tabs/x-tabs.vue +0 -1
  35. package/src/components/wf/content.vue +32 -36
  36. package/src/components/wf/mixins/setCandidateDialog2.js +1 -1
  37. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -3
  38. package/src/components/wf/setCandidateDialog2.vue +76 -66
  39. package/src/components/wf/wf.js +2176 -1
  40. package/src/components/wf/wfFlowEleScriptDialog.vue +5 -1
  41. package/src/components/wf/wfStartDialog.vue +6 -10
  42. package/src/components/wf/wfUtil.js +279 -1
  43. package/src/components/xform/form-designer/designer.js +1 -1
  44. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
  45. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  46. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
  47. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  48. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -187
  49. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
  50. package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
  51. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
  52. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
  53. package/src/components/xform/form-designer/setting-panel/form-setting.vue +132 -118
  54. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
  55. package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
  56. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
  57. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
  58. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
  59. package/src/components/xform/form-render/index.vue +8 -0
  60. package/src/components/xform/form-render/indexMixin copy.js +3462 -0
  61. package/src/components/xform/form-render/indexMixin.js +3496 -1
  62. package/src/components/xform/mixins/defaultHandle.js +1 -1
  63. package/src/components/xform/utils/format.js +14 -4
  64. package/src/components/xform/utils/formula-util.js +0 -4
  65. package/src/components/xform/utils/util.js +1 -1
  66. package/src/index.js +215 -190
  67. package/src/lang/index.js +56 -51
  68. package/src/lang/locale/en/login.js +20 -0
  69. package/src/lang/locale/zh/login.js +20 -0
  70. package/src/layout/components/Sidebar/default.vue +1423 -1266
  71. package/src/layout/components/TagsView/index.vue +37 -11
  72. package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
  73. package/src/layout/components/extractedCode/viewDialog.vue +1 -0
  74. package/src/layout/defaultLayout.vue +1 -1
  75. package/src/layout/index.vue +3 -5
  76. package/src/mixins/table/index.js +151 -0
  77. package/src/permission.js +1 -18
  78. package/src/router/modules/customer.js +3 -8
  79. package/src/store/getters.js +24 -23
  80. package/src/store/modules/user.js +1 -30
  81. package/src/utils/index.js +1 -6
  82. package/src/utils/vab.js +1 -1
  83. package/src/views/bd/setting/config_manage/list.vue +36 -19
  84. package/src/views/bd/setting/form_script/edit.vue +9 -0
  85. package/src/views/bd/setting/form_script/edit1.vue +29 -3
  86. package/src/views/bd/setting/form_script/form_list.vue +99 -37
  87. package/src/views/bd/setting/form_script/list1.vue +181 -118
  88. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  89. package/src/views/bd/setting/form_script/mixins/edit.js +199 -1
  90. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  91. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  92. package/src/views/bd/setting/form_script/mixins/list1.js +410 -1
  93. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  94. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  95. package/src/views/bd/setting/form_template/edit.vue +13 -0
  96. package/src/views/bd/setting/form_template/list.vue +326 -214
  97. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
  98. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  99. package/src/views/bd/setting/form_template/mixins/list.js +667 -3
  100. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  101. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  102. package/src/views/bd/setting/logic_param/mixins/edit.js +1 -91
  103. package/src/views/bd/setting/logic_param/mixins/list.js +2 -362
  104. package/src/views/bd/setting/menu_kind/list.vue +172 -87
  105. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
  106. package/src/views/bd/setting/table_model/edit.vue +345 -304
  107. package/src/views/bd/setting/table_model/list.vue +190 -128
  108. package/src/views/bd/setting/table_model/mixins/edit.js +1191 -1
  109. package/src/views/bd/setting/table_model/mixins/list.js +428 -2
  110. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  111. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  112. package/src/views/user/access_log/list.vue +418 -349
  113. package/src/views/user/area/dialog.vue +223 -116
  114. package/src/views/user/area/list.vue +318 -0
  115. package/src/views/user/common_attribute/list.vue +4 -1
  116. package/src/views/user/extend_datasource/dialog.vue +3 -0
  117. package/src/views/user/extend_datasource/edit.vue +2 -1
  118. package/src/views/user/extend_datasource/list.vue +3 -0
  119. package/src/views/user/form/vform/designer.vue +2 -1
  120. package/src/views/user/home/bears/index.vue +1032 -0
  121. package/src/views/user/home/default.vue +6 -5
  122. package/src/views/user/home/taili/index.vue +1034 -0
  123. package/src/views/user/ledger_library/list.vue +10 -12
  124. package/src/views/user/login/default.vue +165 -36
  125. package/src/views/user/login/index.vue +4 -6
  126. package/src/views/user/login/indexMixin.js +184 -8
  127. package/src/views/user/menu/list.vue +24 -1
  128. package/src/views/user/notify_message/dialog.vue +2 -6
  129. package/src/views/user/outLink/index.vue +57 -18
  130. package/src/views/user/role/authConfig.vue +89 -0
  131. package/src/views/user/role/dialog.vue +70 -48
  132. package/src/views/user/role/edit.vue +114 -4
  133. package/src/views/user/user/form_dialog.vue +158 -0
  134. package/src/views/user/user/list.vue +652 -582
  135. package/src/views/user/user/modifyPasswordDialog.vue +64 -53
  136. package/src/views/user/wf/wfReport/index.vue +137 -28
  137. package/src/views/user/wf/wf_obj_config/itemEdit.vue +15 -116
  138. package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +414 -0
  139. package/src/views/user/wf/wf_obj_config/list.vue +84 -78
  140. package/src/views/user/wf/wf_transfer_setting/edit.vue +52 -0
  141. package/src/views/user/wf/wf_transfer_setting/list.vue +10 -0
  142. package/src/components/xform/form-render/container-item/data-table-mixin2.js +0 -2169
  143. package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
  144. package/src/views/user/login/index2.vue +0 -131
@@ -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