cloud-web-corejs 1.0.110 → 1.0.112
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
CHANGED
@@ -24,30 +24,35 @@
|
|
24
24
|
@cell-dblclick="checkWithSubmit"
|
25
25
|
>
|
26
26
|
<template #form>
|
27
|
-
<
|
28
|
-
<
|
27
|
+
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
28
|
+
<template #buttonRight>
|
29
29
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
30
30
|
plain>{{ $t1('重置') }}
|
31
31
|
</vxe-button>
|
32
32
|
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
33
33
|
{{ $t1('搜索') }}
|
34
34
|
</vxe-button>
|
35
|
-
</
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
35
|
+
</template>
|
36
|
+
<template #saleOrgName>
|
37
|
+
<vxe-form-item :title="$t1('机构')+':'">
|
38
|
+
<template v-slot>
|
39
|
+
<el-input
|
40
|
+
class="search-input"
|
41
|
+
v-model="formData.saleOrgName"
|
42
|
+
clearable
|
43
|
+
@clear="
|
44
|
+
formData.saleOrgId = null;
|
45
|
+
formData.saleOrgName = null;
|
46
|
+
"
|
47
|
+
v-el-readonly
|
48
|
+
>
|
49
|
+
<i slot="suffix" class="el-input__icon el-icon-search"
|
50
|
+
@click="showSaleOrgDialog=true"></i>
|
51
|
+
</el-input>
|
52
|
+
</template>
|
53
|
+
</vxe-form-item>
|
54
|
+
</template>
|
55
|
+
</tableForm>
|
51
56
|
</template>
|
52
57
|
</vxe-grid>
|
53
58
|
</div>
|
@@ -62,7 +67,7 @@
|
|
62
67
|
class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
|
63
68
|
<div class="list">
|
64
69
|
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
65
|
-
<p>{{ getCheckLabel(checkRow,'nickName') }}</p>
|
70
|
+
<p>{{ getCheckLabel(checkRow, 'nickName') }}</p>
|
66
71
|
<a class="el-icon-close" @click="clearTable1Select(index)"></a>
|
67
72
|
</div>
|
68
73
|
</div>
|
@@ -78,14 +83,19 @@
|
|
78
83
|
{{ $t1('确 定') }}
|
79
84
|
</el-button>
|
80
85
|
</span>
|
86
|
+
<saleOrgDialog v-if="showSaleOrgDialog" :visiable.sync="showSaleOrgDialog" :multi="false"
|
87
|
+
@confirm="confirmSaleOrgDialog"></saleOrgDialog>
|
81
88
|
</el-dialog>
|
82
89
|
</template>
|
83
90
|
|
84
91
|
<script>
|
85
92
|
import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
93
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
94
|
+
import saleOrgDialog from "@base/views/user/sale_org/dialog.vue";
|
86
95
|
|
87
96
|
export default {
|
88
97
|
name: 'userDialog',
|
98
|
+
components: {tableForm, saleOrgDialog},
|
89
99
|
props: ['visiable', 'multi', 'rows', 'param'],
|
90
100
|
mixins: [selectDialogMixins],
|
91
101
|
created() {
|
@@ -110,7 +120,8 @@ export default {
|
|
110
120
|
saleOrgName: ''
|
111
121
|
},
|
112
122
|
selectMulti: true,
|
113
|
-
vxeOption: {}
|
123
|
+
vxeOption: {},
|
124
|
+
showSaleOrgDialog: false
|
114
125
|
};
|
115
126
|
},
|
116
127
|
methods: {
|
@@ -129,6 +140,11 @@ export default {
|
|
129
140
|
...this.param
|
130
141
|
}
|
131
142
|
},
|
143
|
+
searchColumns: [
|
144
|
+
{title: this.$t1('登录名'), field: "loginAccount", type: "input", common: true},
|
145
|
+
{title: this.$t1('姓名'), field: "nickName", type: "input", common: true},
|
146
|
+
{title: this.$t1('机构'), field: "saleOrgName", type: "input", common: true, slot: "saleOrgName"},
|
147
|
+
],
|
132
148
|
config: {
|
133
149
|
checkboxConfig: {
|
134
150
|
checkStrictly: true,
|
@@ -147,9 +163,9 @@ export default {
|
|
147
163
|
slots: {
|
148
164
|
default: ({row}) => {
|
149
165
|
if (row.enabled) {
|
150
|
-
return [<div class="txt-status">{
|
166
|
+
return [<div class="txt-status">{this.$t1('启用')}</div>];
|
151
167
|
} else {
|
152
|
-
return [<div class="txt-status s-3">{
|
168
|
+
return [<div class="txt-status s-3">{this.$t1('禁用')}</div>];
|
153
169
|
}
|
154
170
|
}
|
155
171
|
}
|
@@ -189,6 +205,13 @@ export default {
|
|
189
205
|
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
190
206
|
that.vxeOption = opts;
|
191
207
|
});
|
208
|
+
},
|
209
|
+
confirmSaleOrgDialog(rows) {
|
210
|
+
if (rows.length) {
|
211
|
+
let row = rows[0];
|
212
|
+
this.$set(this.formData, 'saleOrgId', row.id);
|
213
|
+
this.$set(this.formData, 'saleOrgName', row.name);
|
214
|
+
}
|
192
215
|
}
|
193
216
|
}
|
194
217
|
};
|
@@ -98,7 +98,7 @@
|
|
98
98
|
<el-input v-model="formData.starterName" size="small" clearable/>
|
99
99
|
</template>
|
100
100
|
</vxe-form-item>
|
101
|
-
|
101
|
+
<vxe-form-item title="启动时间:">
|
102
102
|
<template v-slot>
|
103
103
|
<el-date-picker
|
104
104
|
v-model="formData.startTime"
|
@@ -121,7 +121,7 @@
|
|
121
121
|
:picker-options="$baseEndPickerOptions(formData.startTime)"
|
122
122
|
></el-date-picker>
|
123
123
|
</template>
|
124
|
-
</vxe-form-item>
|
124
|
+
</vxe-form-item>
|
125
125
|
</vxe-form>
|
126
126
|
</template>
|
127
127
|
</vxe-grid>
|