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.
- package/package.json +1 -1
- package/src/mixins/selectDialog/index.js +1 -245
- package/src/store/config/index.js +6 -99
- package/src/views/bd/setting/config_manage/list.vue +47 -0
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +22 -0
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +193 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/list.js +24 -0
- package/src/views/bd/setting/form_script/mixins/list1.js +43 -2
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +186 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/edit.vue +13 -0
- package/src/views/bd/setting/form_template/list.vue +4 -4
- package/src/views/bd/setting/form_template/mixins/edit.js +199 -1
- package/src/views/bd/setting/form_template/mixins/list.js +19 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +185 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/table_model/edit.vue +332 -304
- package/src/views/bd/setting/table_model/list.vue +4 -4
- package/src/views/bd/setting/table_model/mixins/edit.js +1119 -1
- package/src/views/bd/setting/table_model/mixins/list.js +44 -4
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
@@ -0,0 +1,186 @@
|
|
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
|
+
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
|
+
width: 100,
|
81
|
+
fixed: 'right',
|
82
|
+
title: '',
|
83
|
+
sortable: false,
|
84
|
+
slots: {
|
85
|
+
default: ({row, rowIndex, $table}) => {
|
86
|
+
return getJsxBtn({
|
87
|
+
iconName: "el-icon-delete",
|
88
|
+
content: this.$t1('删除'),
|
89
|
+
onclick: () => {
|
90
|
+
this.tableData.splice(rowIndex, 1)
|
91
|
+
}
|
92
|
+
});
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
]
|
97
|
+
};
|
98
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
99
|
+
this.vxeOption = opts;
|
100
|
+
});
|
101
|
+
this.initData();
|
102
|
+
},
|
103
|
+
initData() {
|
104
|
+
let sid = this.sid;
|
105
|
+
this.$http({
|
106
|
+
// aes: true,
|
107
|
+
url: USER_PREFIX + '/form_script_auth/list',
|
108
|
+
method: `post`,
|
109
|
+
data: {
|
110
|
+
sid,
|
111
|
+
},
|
112
|
+
isLoading: true,
|
113
|
+
modalStrictly: true,
|
114
|
+
success: res1 => {
|
115
|
+
let rows = res1.objx || [];
|
116
|
+
this.tableData = rows;
|
117
|
+
|
118
|
+
}
|
119
|
+
});
|
120
|
+
},
|
121
|
+
dialogClose() {
|
122
|
+
this.$emit('update:visiable', false)
|
123
|
+
},
|
124
|
+
dialogConfirm(){
|
125
|
+
this.$emit('confirm')
|
126
|
+
this.dialogClose()
|
127
|
+
},
|
128
|
+
openUserAddDialog(row, rowIndex) {
|
129
|
+
this.showUserAddDialog = true;
|
130
|
+
},
|
131
|
+
confirmtUserAddDialog(rows) {
|
132
|
+
if (rows.length) {
|
133
|
+
const tableData = this.tableData;
|
134
|
+
const map = {};
|
135
|
+
tableData.filter(item => !!item.userId).forEach(function (item) {
|
136
|
+
map[item.userId] = 1;
|
137
|
+
});
|
138
|
+
let items = [];
|
139
|
+
|
140
|
+
rows.forEach((row, index) => {
|
141
|
+
let item = this.createRow();
|
142
|
+
item.userId = row.id;
|
143
|
+
item.nickName = row.nickName;
|
144
|
+
if (!map[item.userId]) {
|
145
|
+
items.push(item);
|
146
|
+
}
|
147
|
+
});
|
148
|
+
this.tableData.push(...items);
|
149
|
+
}
|
150
|
+
},
|
151
|
+
saveData() {
|
152
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
153
|
+
var url = USER_PREFIX + `/form_script_auth/save`;
|
154
|
+
this.$http({
|
155
|
+
// aes: true,
|
156
|
+
url: url,
|
157
|
+
method: `post`,
|
158
|
+
data: {
|
159
|
+
sid:this.sid,
|
160
|
+
formScriptAuthDTOs: this.tableData
|
161
|
+
},
|
162
|
+
isLoading: true,
|
163
|
+
success: res => {
|
164
|
+
this.$message({
|
165
|
+
message: res.content,
|
166
|
+
type: 'success',
|
167
|
+
duration: 500,
|
168
|
+
onClose: t => {
|
169
|
+
this.dialogConfirm()
|
170
|
+
}
|
171
|
+
});
|
172
|
+
}
|
173
|
+
});
|
174
|
+
});
|
175
|
+
},
|
176
|
+
createRow() {
|
177
|
+
let row = {
|
178
|
+
nickName: null,
|
179
|
+
userId: null,
|
180
|
+
editAuth: 1
|
181
|
+
}
|
182
|
+
return row;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
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>
|
@@ -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
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<el-tab-pane :label="$t1('常规')" name="first">
|
5
5
|
<editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :currentFormType="currentFormType"
|
6
6
|
:parent-target="_self" @reload="$reloadHandle"
|
7
|
-
@openDesignDialog="openDesingerDialogByChild"></editView>
|
7
|
+
@openDesignDialog="openDesingerDialogByChild" :otherFlag="otherFlag"></editView>
|
8
8
|
</el-tab-pane>
|
9
9
|
<el-tab-pane :label="$t1('列表')" name="second">
|
10
10
|
<div class="tree-box fl">
|
@@ -51,9 +51,9 @@
|
|
51
51
|
v-if="isDev && currentFormType.exportAuth===1">{{ $t1('导出发布') }}
|
52
52
|
</vxe-button>
|
53
53
|
<projectTagAddButton :option="addProjectTagOption"
|
54
|
-
v-if="isDev && currentFormType.editAuth===1"></projectTagAddButton>
|
54
|
+
v-if="isDev && (currentFormType.editAuth===1 || otherFlag)"></projectTagAddButton>
|
55
55
|
<projectTagDeleteButton :option="deleteProjectTagOption"
|
56
|
-
v-if="isDev && currentFormType.editAuth===1"></projectTagDeleteButton>
|
56
|
+
v-if="isDev && (currentFormType.editAuth===1 || otherFlag)"></projectTagDeleteButton>
|
57
57
|
</template>
|
58
58
|
<template #buttonRight>
|
59
59
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
@@ -107,7 +107,7 @@
|
|
107
107
|
:closable="true">
|
108
108
|
<editView v-if="tab.showContent" :_dataId="tab.dataId" :currentFormType="currentFormType"
|
109
109
|
:parent-target="_self"
|
110
|
-
@reload="reloadTabContent" @openDesignDialog="openDesingerDialogByChild"></editView>
|
110
|
+
@reload="reloadTabContent" @openDesignDialog="openDesingerDialogByChild" :otherFlag="otherFlag"></editView>
|
111
111
|
</el-tab-pane>
|
112
112
|
</template>
|
113
113
|
</x-tabs>
|