cloud-web-corejs 1.0.54-dev.367 → 1.0.54-dev.369
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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
v-el-drag-dialog
|
|
13
13
|
v-el-dialog-center
|
|
14
14
|
>
|
|
15
|
-
<div class="cont" style="height:65vh">
|
|
15
|
+
<div class="cont" style="height: 65vh">
|
|
16
16
|
<vxe-grid
|
|
17
17
|
class="is-pointer"
|
|
18
18
|
ref="table-m1"
|
|
@@ -26,24 +26,41 @@
|
|
|
26
26
|
<template #form>
|
|
27
27
|
<div class="clearfix screen-btns">
|
|
28
28
|
<div class="fr">
|
|
29
|
-
<vxe-button
|
|
30
|
-
|
|
29
|
+
<vxe-button
|
|
30
|
+
icon="el-icon-brush"
|
|
31
|
+
class="button-sty"
|
|
32
|
+
@click="resetEvent"
|
|
33
|
+
type="text"
|
|
34
|
+
status="primary"
|
|
35
|
+
plain
|
|
36
|
+
>{{ $t1("重置") }}
|
|
31
37
|
</vxe-button>
|
|
32
|
-
<vxe-button
|
|
33
|
-
|
|
38
|
+
<vxe-button
|
|
39
|
+
status="warning"
|
|
40
|
+
icon="el-icon-search"
|
|
41
|
+
class="button-sty"
|
|
42
|
+
@click="searchEvent"
|
|
43
|
+
>
|
|
44
|
+
{{ $t1("搜索") }}
|
|
34
45
|
</vxe-button>
|
|
35
46
|
</div>
|
|
36
47
|
</div>
|
|
37
|
-
<vxe-form
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
<vxe-form
|
|
49
|
+
class="screen-box"
|
|
50
|
+
title-width="92px"
|
|
51
|
+
title-align="right"
|
|
52
|
+
:data="formData"
|
|
53
|
+
@submit="searchEvent"
|
|
54
|
+
@reset="resetEvent"
|
|
55
|
+
>
|
|
56
|
+
<vxe-form-item :title="$t1('用户角色') + ':'" field="name">
|
|
40
57
|
<template v-slot>
|
|
41
|
-
<el-input v-model="formData.name" size="small" clearable/>
|
|
58
|
+
<el-input v-model="formData.name" size="small" clearable />
|
|
42
59
|
</template>
|
|
43
60
|
</vxe-form-item>
|
|
44
|
-
<vxe-form-item :title="$t1('角色编码')+':'" field="code">
|
|
61
|
+
<vxe-form-item :title="$t1('角色编码') + ':'" field="code">
|
|
45
62
|
<template v-slot>
|
|
46
|
-
<el-input v-model="formData.code" size="small" clearable/>
|
|
63
|
+
<el-input v-model="formData.code" size="small" clearable />
|
|
47
64
|
</template>
|
|
48
65
|
</vxe-form-item>
|
|
49
66
|
<vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
|
|
@@ -58,9 +75,12 @@
|
|
|
58
75
|
</div>
|
|
59
76
|
</label>
|
|
60
77
|
<div class="multipleChoice">
|
|
61
|
-
<el-tooltip
|
|
62
|
-
|
|
63
|
-
|
|
78
|
+
<el-tooltip
|
|
79
|
+
:enterable="false"
|
|
80
|
+
effect="dark"
|
|
81
|
+
:content="$t1('全部删除')"
|
|
82
|
+
placement="top"
|
|
83
|
+
><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a>
|
|
64
84
|
</el-tooltip>
|
|
65
85
|
<div class="list">
|
|
66
86
|
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
|
@@ -70,25 +90,27 @@
|
|
|
70
90
|
</div>
|
|
71
91
|
</div>
|
|
72
92
|
<span slot="footer" class="dialog-footer">
|
|
73
|
-
<span class="fl tips" v-if="!selectMulti">{{
|
|
93
|
+
<span class="fl tips" v-if="!selectMulti">{{
|
|
94
|
+
$t1("注:双击确认选择(单选)")
|
|
95
|
+
}}</span>
|
|
74
96
|
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
75
97
|
<i class="el-icon-close el-icon"></i>
|
|
76
|
-
{{ $t1(
|
|
98
|
+
{{ $t1("取 消") }}
|
|
77
99
|
</el-button>
|
|
78
100
|
<el-button type="primary" @click="dialogPrimary" class="button-sty">
|
|
79
101
|
<i class="el-icon-check el-icon"></i>
|
|
80
|
-
{{ $t1(
|
|
102
|
+
{{ $t1("确 定") }}
|
|
81
103
|
</el-button>
|
|
82
104
|
</span>
|
|
83
105
|
</el-dialog>
|
|
84
106
|
</template>
|
|
85
107
|
|
|
86
108
|
<script>
|
|
87
|
-
import {selectDialogMixins} from
|
|
109
|
+
import { selectDialogMixins } from "@base/mixins/selectDialog/index.js";
|
|
88
110
|
|
|
89
111
|
export default {
|
|
90
|
-
name:
|
|
91
|
-
props: [
|
|
112
|
+
name: "roleDialog",
|
|
113
|
+
props: ["visiable", "multi", "rows", "param"],
|
|
92
114
|
mixins: [selectDialogMixins],
|
|
93
115
|
created() {
|
|
94
116
|
this.initSetting();
|
|
@@ -103,64 +125,64 @@ export default {
|
|
|
103
125
|
falseValue: false,
|
|
104
126
|
selectMulti: true,
|
|
105
127
|
formData: {},
|
|
106
|
-
vxeOption: {}
|
|
128
|
+
vxeOption: {},
|
|
107
129
|
};
|
|
108
130
|
},
|
|
109
131
|
methods: {
|
|
110
132
|
initTableM1() {
|
|
111
133
|
let that = this;
|
|
112
|
-
let url = USER_PREFIX +
|
|
134
|
+
let url = USER_PREFIX + "/role/listCurrentPage";
|
|
113
135
|
let tableOption = {
|
|
114
136
|
vue: that,
|
|
115
|
-
tableRef:
|
|
116
|
-
tableName:
|
|
137
|
+
tableRef: "table-m1",
|
|
138
|
+
tableName: "basic_role_dialog-m1",
|
|
117
139
|
path: url,
|
|
118
140
|
param: () => {
|
|
119
141
|
return {
|
|
120
142
|
...this.formData,
|
|
121
|
-
...this.param
|
|
143
|
+
...this.param,
|
|
122
144
|
};
|
|
123
145
|
},
|
|
124
146
|
columns: [
|
|
125
|
-
{type:
|
|
126
|
-
{title: this.$t1(
|
|
127
|
-
{title: this.$t1(
|
|
128
|
-
{title: this.$t1(
|
|
147
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
148
|
+
{ title: this.$t1("用户角色"), field: "name", width: 250, fixed: "left" },
|
|
149
|
+
{ title: this.$t1("角色编码"), field: "code", width: 150 },
|
|
150
|
+
{ title: this.$t1("角色描述"), field: "description", width: 150 },
|
|
129
151
|
{
|
|
130
|
-
title: this.$t1(
|
|
131
|
-
field:
|
|
152
|
+
title: this.$t1("是否内置"),
|
|
153
|
+
field: "systems",
|
|
132
154
|
width: 150,
|
|
133
155
|
slots: {
|
|
134
|
-
default: ({row}) => {
|
|
156
|
+
default: ({ row }) => {
|
|
135
157
|
if (row.systems) {
|
|
136
|
-
return this.$t1(
|
|
158
|
+
return this.$t1("是");
|
|
137
159
|
} else {
|
|
138
|
-
return this.$t1(
|
|
160
|
+
return this.$t1("否");
|
|
139
161
|
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
162
|
+
},
|
|
163
|
+
},
|
|
142
164
|
},
|
|
143
|
-
{title: this.$t1(
|
|
144
|
-
{title: this.$t1(
|
|
165
|
+
{ title: this.$t1("所属组织"), field: "companyName", width: 150 },
|
|
166
|
+
{ title: this.$t1("创建时间"), field: "createDate", width: 150 },
|
|
145
167
|
{
|
|
146
168
|
width: 47,
|
|
147
|
-
fixed:
|
|
148
|
-
title:
|
|
149
|
-
sortable: false
|
|
150
|
-
}
|
|
169
|
+
fixed: "right",
|
|
170
|
+
title: "",
|
|
171
|
+
sortable: false,
|
|
172
|
+
},
|
|
151
173
|
],
|
|
152
174
|
config: {
|
|
153
175
|
checkboxConfig: {
|
|
154
176
|
checkStrictly: true,
|
|
155
177
|
showHeader: this.selectMulti,
|
|
156
|
-
trigger:
|
|
157
|
-
}
|
|
158
|
-
}
|
|
178
|
+
trigger: "row",
|
|
179
|
+
},
|
|
180
|
+
},
|
|
159
181
|
};
|
|
160
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
182
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
161
183
|
that.vxeOption = opts;
|
|
162
184
|
});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
185
|
+
},
|
|
186
|
+
},
|
|
165
187
|
};
|
|
166
188
|
</script>
|