cloud-web-corejs 1.0.54-dev.229 → 1.0.54-dev.230

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 (28) hide show
  1. package/package.json +1 -1
  2. package/src/mixins/selectDialog/index.js +1 -245
  3. package/src/store/config/index.js +6 -99
  4. package/src/views/bd/setting/config_manage/list.vue +47 -0
  5. package/src/views/bd/setting/form_script/edit.vue +9 -0
  6. package/src/views/bd/setting/form_script/edit1.vue +22 -0
  7. package/src/views/bd/setting/form_script/list1.vue +4 -4
  8. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  9. package/src/views/bd/setting/form_script/mixins/edit.js +193 -1
  10. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  11. package/src/views/bd/setting/form_script/mixins/list.js +24 -0
  12. package/src/views/bd/setting/form_script/mixins/list1.js +43 -2
  13. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +186 -0
  14. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  15. package/src/views/bd/setting/form_template/edit.vue +13 -0
  16. package/src/views/bd/setting/form_template/list.vue +4 -4
  17. package/src/views/bd/setting/form_template/mixins/edit.js +199 -1
  18. package/src/views/bd/setting/form_template/mixins/list.js +19 -3
  19. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +185 -0
  20. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  21. package/src/views/bd/setting/table_model/edit.vue +332 -304
  22. package/src/views/bd/setting/table_model/list.vue +4 -4
  23. package/src/views/bd/setting/table_model/mixins/edit.js +1119 -1
  24. package/src/views/bd/setting/table_model/mixins/list.js +44 -4
  25. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +193 -0
  26. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  27. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  28. package/src/views/user/fieldTranslation/list.vue +32 -32
@@ -7,7 +7,7 @@ import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
7
7
  import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
8
8
  import {treeScollx} from "@base/utils/global";
9
9
  import {getBdFlag} from "@base/api/user";
10
- import {getJsxBtn} from "@base/views/bd/setting/utils";
10
+ import {getJsxBtn, getJsxStatus} from "@base/views/bd/setting/utils";
11
11
 
12
12
  let modules = {};
13
13
  modules = {
@@ -93,6 +93,9 @@ modules = {
93
93
  },
94
94
  currentMenuKindName() {
95
95
  return this.currentFormType?.name || null
96
+ },
97
+ otherFlag() {
98
+ return this.currentFormType?.menuKindCode == "other"
96
99
  }
97
100
  },
98
101
  methods: {
@@ -124,9 +127,10 @@ modules = {
124
127
  tagCodes = this.checkTags.map(item => item.tagCode);
125
128
  }
126
129
  let currentFormType = this.currentFormType || {}
130
+ let menuKindCode = currentFormType.menuKindCode && !this.otherFlag ? currentFormType.menuKindCode : null;
127
131
  return {
128
132
  ...this.formData,
129
- menuKindCode: currentFormType.menuKindCode || null,
133
+ menuKindCode,
130
134
  tagCodes
131
135
  };
132
136
  },
@@ -135,7 +139,13 @@ modules = {
135
139
  vue: this,
136
140
  tableRef: 'table-m1',
137
141
  tableName: 'bd_table_model_list-m1',
138
- path: USER_PREFIX + '/szTaMb/listPage',
142
+ path: () => {
143
+ let url = USER_PREFIX + '/szTaMb/listPage';
144
+ if (this.otherFlag) {
145
+ url = USER_PREFIX + '/szTaMb/listOtherPage';
146
+ }
147
+ return url;
148
+ },
139
149
  param: () => {
140
150
  return this.getSearchParam();
141
151
  },
@@ -178,6 +188,20 @@ modules = {
178
188
  }
179
189
  }
180
190
  },
191
+ {
192
+ title: this.$t1("是否启用"),
193
+ field: "enabled",
194
+ width: 150,
195
+ slots: {
196
+ default: ({row}) => {
197
+ if (row.enabled) {
198
+ return getJsxStatus(null, this.$t1("启用"));
199
+ } else {
200
+ return getJsxStatus("s-3", this.$t1("禁用"));
201
+ }
202
+ },
203
+ },
204
+ },
181
205
  {title: this.$t1('表编码'), field: 'taCode', width: 150},
182
206
  {field: 'serviceName', title: this.$t1('服务名'), width: 150},
183
207
  {title: this.$t1('唯一标识'), field: 'sid', width: 280},
@@ -232,6 +256,16 @@ modules = {
232
256
  {title: this.$t1('实体名称'), field: "taEn", type: "input", common: true},
233
257
  {title: this.$t1('数据库表名'), field: "taBm", type: "input", common: true},
234
258
  {title: this.$t1('表描述'), field: "taCh", type: "input", common: true},
259
+ {
260
+ title: this.$t1("是否启用"),
261
+ field: "enabled",
262
+ type: "select",
263
+ common: true,
264
+ itemOption: [
265
+ {label: this.$t1("启用"), value: true},
266
+ {label: this.$t1("禁用"), value: false},
267
+ ],
268
+ },
235
269
  {title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
236
270
  {title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
237
271
  {title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
@@ -288,6 +322,12 @@ modules = {
288
322
  value.leaf = !value.hasChild;
289
323
  });
290
324
  if (node.level === 0) {
325
+ rows.push({
326
+ id: "other",
327
+ menuKindCode: "other",
328
+ name: "其他分类",
329
+ leaf: true
330
+ })
291
331
  if (rows.length > 0) {
292
332
  this.$nextTick(() => {
293
333
  let firstNode = node.childNodes[0];
@@ -359,7 +399,7 @@ modules = {
359
399
  width: 300,
360
400
  showOverflow: false,
361
401
  slots: {
362
- default: ({ row }, h) => {
402
+ default: ({row}, h) => {
363
403
  let impReturnMsg = row.impReturnMsg;
364
404
  let items = impReturnMsg
365
405
  .split(";")
@@ -0,0 +1,193 @@
1
+ import userDialog from "@base/views/user/user/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
+ sid: null,
31
+ szTaMbAuthDTOs:[]
32
+ },
33
+ vxeOption: {},
34
+ showUserDialog: false,
35
+ showPositionDialog: false,
36
+ showSaleOrgDialog: false,
37
+ operateIndex: 0,
38
+ showViewDialog: false,
39
+
40
+ tableData: [],
41
+ showUserRowDialog: false,
42
+ showUserAddDialog: false,
43
+ currentRow: null,
44
+ isDev: true
45
+
46
+ };
47
+ },
48
+ methods: {
49
+ getFieldDisabled() {
50
+
51
+ },
52
+ searchEvent() {
53
+ this.$refs['table-m1'].commitProxy('reload');
54
+ },
55
+ resetEvent() {
56
+ this.formData = {};
57
+ this.$refs['table-m1'].commitProxy('reload');
58
+ },
59
+ initBdEnv() {
60
+ return getBdEnv({
61
+ success: res => {
62
+ this.isDev = res.objx == "dev"
63
+ }
64
+ });
65
+ },
66
+ initTableList() {
67
+ let that = this;
68
+ let tableOption = {
69
+ vue: this,
70
+ tableRef: 'table-m1',
71
+ tableName: 'user_sz_ta_mb_auth-list-m1',
72
+ config: {
73
+ height: "auto"
74
+ },
75
+ columns: [
76
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
77
+ {
78
+ title: this.$t1('用户'),
79
+ field: 'nickName',
80
+ width: 250
81
+ },
82
+ {
83
+ width: 100,
84
+ fixed: 'right',
85
+ title: '',
86
+ sortable: false,
87
+ slots: {
88
+ default: ({row, rowIndex, $table}) => {
89
+ return getJsxBtn({
90
+ iconName: "el-icon-delete",
91
+ content: this.$t1('删除'),
92
+ onclick: () => {
93
+ this.tableData.splice(rowIndex, 1)
94
+ }
95
+ });
96
+ }
97
+ }
98
+ }
99
+ ]
100
+ };
101
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
102
+ this.vxeOption = opts;
103
+ });
104
+ this.initData();
105
+ },
106
+ initData() {
107
+ let sid = this.sid;
108
+ this.$http({
109
+ // aes: true,
110
+ url: USER_PREFIX + '/sz_ta_mb_auth/list',
111
+ method: `post`,
112
+ data: {
113
+ sid,
114
+ },
115
+ isLoading: true,
116
+ modalStrictly: true,
117
+ success: res1 => {
118
+ let rows = res1.objx || [];
119
+ this.tableData = rows;
120
+ /*this.formData = {
121
+ sid,
122
+ szTaMbAuthDTOs: rows
123
+ };*/
124
+
125
+ }
126
+ });
127
+ },
128
+ dialogClose() {
129
+ this.$emit('update:visiable', false)
130
+ },
131
+ dialogConfirm(){
132
+ this.$emit('confirm')
133
+ this.dialogClose()
134
+ },
135
+ openUserAddDialog(row, rowIndex) {
136
+ this.showUserAddDialog = true;
137
+ },
138
+ confirmtUserAddDialog(rows) {
139
+ if (rows.length) {
140
+ const tableData = this.tableData;
141
+ const map = {};
142
+ tableData.filter(item => !!item.userId).forEach(function (item) {
143
+ map[item.userId] = 1;
144
+ });
145
+ let items = [];
146
+
147
+ rows.forEach((row, index) => {
148
+ let item = this.createRow();
149
+ item.userId = row.id;
150
+ item.nickName = row.nickName;
151
+ if (!map[item.userId]) {
152
+ items.push(item);
153
+ }
154
+ });
155
+ this.tableData.push(...items);
156
+ }
157
+ },
158
+ saveData() {
159
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
160
+ var url = USER_PREFIX + `/sz_ta_mb_auth/save`;
161
+ this.$http({
162
+ // aes: true,
163
+ url: url,
164
+ method: `post`,
165
+ data: {
166
+ sid:this.sid,
167
+ szTaMbAuthDTOs: this.tableData
168
+ },
169
+ isLoading: true,
170
+ success: res => {
171
+ this.$message({
172
+ message: res.content,
173
+ type: 'success',
174
+ duration: 500,
175
+ onClose: t => {
176
+ this.dialogConfirm()
177
+ }
178
+ });
179
+ }
180
+ });
181
+ });
182
+ },
183
+ createRow() {
184
+ let row = {
185
+ nickName: null,
186
+ userId: null,
187
+ editAuth: 1
188
+ }
189
+ return row;
190
+ }
191
+ }
192
+ }
193
+ 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="500px"
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" :disabled="column.params.disabled"></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>
@@ -29,10 +29,10 @@
29
29
  :rules="[{ required: false, trigger: 'blur' }]" class="block">
30
30
  <el-input type="textarea" :rows="2" v-model="fieldTranslation[item.translationField]" clearable/>
31
31
  </el-form-item>
32
- <el-form-item :label="$t1('多语言标签')" prop="translation1" :rules="[{ required: false, trigger: 'blur' }]"
32
+ <!-- <el-form-item :label="$t1('多语言标签')" prop="translation1" :rules="[{ required: false, trigger: 'blur' }]"
33
33
  class="block">
34
34
  <langTagView v-model="fieldTranslation.fieldTranslationTagDTOs" :readonly="!isDev"></langTagView>
35
- </el-form-item>
35
+ </el-form-item>-->
36
36
  <el-form-item :label="$t1('创建时间')" prop="createDate" :rules="[{ required: false, trigger: 'blur' }]">
37
37
  <span>{{ fieldTranslation.createDate }}</span>
38
38
  </el-form-item>
@@ -53,23 +53,23 @@
53
53
  </el-button>
54
54
  </span>
55
55
  </el-dialog>
56
- <langTagDialog v-if="showLangTagDialog"
56
+ <!-- <langTagDialog v-if="showLangTagDialog"
57
57
  :visiable.sync="showLangTagDialog"
58
58
  @confirm="confirmLangTagDialog"
59
59
  :multi="true"
60
60
  :rows="fieldTranslationTagDTOs"
61
- fieldKey="tagCode"></langTagDialog>
61
+ fieldKey="tagCode"></langTagDialog>-->
62
62
  </div>
63
63
  </template>
64
64
 
65
65
  <script>
66
66
  import {getBdFlag} from "@base/api/user";
67
- import langTagDialog from "../../../views/user/lang_tag/dialog.vue";
68
- import langTagView from "@base/components/langTag/view.vue";
67
+ /*import langTagDialog from "../../../views/user/lang_tag/dialog.vue";
68
+ import langTagView from "@base/components/langTag/view.vue";*/
69
69
 
70
70
 
71
71
  export default {
72
- components: {langTagDialog, langTagView},
72
+ components: {/*langTagDialog, langTagView*/},
73
73
  props: {
74
74
  _dataId: [String, Number],
75
75
  currentDataType: Object
@@ -46,8 +46,8 @@
46
46
  <vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
47
47
  v-if="isDev">{{ $t1('导出发布') }}
48
48
  </vxe-button>
49
- <langTagAddButton :option="addProjectTagOption" v-if="isDev"></langTagAddButton>
50
- <langTagDeleteButton :option="deleteProjectTagOption" v-if="isDev"></langTagDeleteButton>
49
+ <!-- <langTagAddButton :option="addProjectTagOption" v-if="isDev"></langTagAddButton>
50
+ <langTagDeleteButton :option="deleteProjectTagOption" v-if="isDev"></langTagDeleteButton>-->
51
51
  </template>
52
52
  <template #buttonRight>
53
53
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
@@ -64,29 +64,29 @@
64
64
  </template>
65
65
  </vxe-form-item>
66
66
  </template>
67
- <template #tag>
68
- <vxe-form-item :title="$t1('多语言标签')+':'" field="tag">
69
- <template v-slot>
70
- <el-input
71
- class="search-input"
72
- max="200"
73
- :value="getTabNames()"
74
- @clear="
75
- checkTags = [];
76
- "
77
- v-el-readonly
78
- clearable
79
- >
80
- <i slot="suffix" class="el-input__icon el-icon-search" @click="openLangTagDialog3"></i>
81
- </el-input>
82
- </template>
83
- </vxe-form-item>
84
- </template>
67
+ <!-- <template #tag>
68
+ <vxe-form-item :title="$t1('多语言标签')+':'" field="tag">
69
+ <template v-slot>
70
+ <el-input
71
+ class="search-input"
72
+ max="200"
73
+ :value="getTabNames()"
74
+ @clear="
75
+ checkTags = [];
76
+ "
77
+ v-el-readonly
78
+ clearable
79
+ >
80
+ <i slot="suffix" class="el-input__icon el-icon-search" @click="openLangTagDialog3"></i>
81
+ </el-input>
82
+ </template>
83
+ </vxe-form-item>
84
+ </template>-->
85
85
  </tableForm>
86
86
  </template>
87
- <template #tag="{row}">
88
- <langTagView v-model="row.fieldTranslationTagDTOs" :readonly="true"></langTagView>
89
- </template>
87
+ <!-- <template #tag="{row}">
88
+ <langTagView v-model="row.fieldTranslationTagDTOs" :readonly="true"></langTagView>
89
+ </template>-->
90
90
  </vxe-grid>
91
91
  </div>
92
92
  </div>
@@ -95,11 +95,11 @@
95
95
  <fieldTranslationEditDialog v-if="showFieldTranslationEditDialog" :visiable.sync="showFieldTranslationEditDialog"
96
96
  :_dataId.sync="dataId" :currentDataType="currentDataType"
97
97
  @confirm="confirmFieldTranslationEditDialog"></fieldTranslationEditDialog>
98
- <langTagDialog v-if="showLangTagDialog3"
98
+ <!-- <langTagDialog v-if="showLangTagDialog3"
99
99
  :visiable.sync="showLangTagDialog3"
100
100
  @confirm="confirmLangTagDialog3"
101
101
  :rows="checkTags"
102
- :multi="true"></langTagDialog>
102
+ :multi="true"></langTagDialog>-->
103
103
  </div>
104
104
  </template>
105
105
 
@@ -108,16 +108,16 @@ import fieldTranslationEditDialog from "../../../views/user/fieldTranslation/edi
108
108
  import {treeScollx} from '@base/utils/global.js';
109
109
  import {getBdFlag} from "@base/api/user";
110
110
  import tableForm from "@base/components/table/tableForm.vue";
111
- import langTagDialog from "../../../views/user/lang_tag/dialog.vue";
111
+ /*import langTagDialog from "../../../views/user/lang_tag/dialog.vue";
112
112
  import langTagAddButton from "@base/components/langTag/addButton.vue";
113
113
  import langTagDeleteButton from "@base/components/langTag/deleteButton.vue";
114
- import langTagView from "@base/components/langTag/view.vue";
114
+ import langTagView from "@base/components/langTag/view.vue";*/
115
115
 
116
116
  export default {
117
117
  name: 'fieldTranslation:list',
118
118
  components: {
119
- langTagView,
120
- langTagDialog, tableForm, fieldTranslationEditDialog, langTagAddButton, langTagDeleteButton
119
+ tableForm, fieldTranslationEditDialog/*, langTagView,
120
+ langTagDialog, langTagAddButton, langTagDeleteButton*/
121
121
  },
122
122
  data() {
123
123
  return {
@@ -284,7 +284,7 @@ export default {
284
284
  }
285
285
  }
286
286
  },
287
- {
287
+ /*{
288
288
  title: this.$t1('多语言标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
289
289
  exportVal: ({row}) => {
290
290
  if (row.fieldTranslationTagDTOs) {
@@ -292,7 +292,7 @@ export default {
292
292
  }
293
293
  }
294
294
  }
295
- },
295
+ },*/
296
296
  {
297
297
  field: 'modifyDate',
298
298
  title: this.$t1('更新时间'),
@@ -337,7 +337,7 @@ export default {
337
337
  },
338
338
  {title: this.$t1('字段编码'), field: "fieldCode", type: "input", common: true},
339
339
  {title: this.$t1('中文'), field: "translation1", type: "input", common: true},
340
- {title: this.$t1('多语言标签'), field: "tag", type: "input", common: true, slot: "tag"},
340
+ // {title: this.$t1('多语言标签'), field: "tag", type: "input", common: true, slot: "tag"},
341
341
  ]
342
342
  };
343
343
  this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {