cloud-web-corejs 1.0.54-dev.526 → 1.0.54-dev.527
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/components/fileLibrary/index.vue +5 -0
- package/src/components/xform/form-render/indexMixin.js +1 -3495
- package/src/utils/request.js +1 -368
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/components/xform/form-render/indexMixin copy.js +0 -3462
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-el-drag-dialog
|
|
14
14
|
v-el-dialog-center
|
|
15
15
|
>
|
|
16
|
-
<div class="cont" style="height:65vh">
|
|
16
|
+
<div class="cont" style="height: 65vh">
|
|
17
17
|
<vxe-grid
|
|
18
18
|
class="is-pointer"
|
|
19
19
|
ref="table-m1"
|
|
@@ -27,19 +27,37 @@
|
|
|
27
27
|
<template #form>
|
|
28
28
|
<div class="clearfix screen-btns">
|
|
29
29
|
<div class="fr">
|
|
30
|
-
<vxe-button
|
|
31
|
-
|
|
30
|
+
<vxe-button
|
|
31
|
+
icon="el-icon-brush"
|
|
32
|
+
class="button-sty"
|
|
33
|
+
@click="resetEvent"
|
|
34
|
+
type="text"
|
|
35
|
+
status="primary"
|
|
36
|
+
plain
|
|
37
|
+
>{{ $t1("重置") }}
|
|
32
38
|
</vxe-button>
|
|
33
|
-
<vxe-button
|
|
34
|
-
|
|
39
|
+
<vxe-button
|
|
40
|
+
status="warning"
|
|
41
|
+
icon="el-icon-search"
|
|
42
|
+
class="button-sty"
|
|
43
|
+
@click="searchEvent"
|
|
44
|
+
>
|
|
45
|
+
{{ $t1("搜索") }}
|
|
35
46
|
</vxe-button>
|
|
36
47
|
</div>
|
|
37
48
|
</div>
|
|
38
|
-
<vxe-form
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
<vxe-form
|
|
50
|
+
class="screen-box"
|
|
51
|
+
title-width="92px"
|
|
52
|
+
title-align="right"
|
|
53
|
+
:data="formData"
|
|
54
|
+
@submit="searchEvent"
|
|
55
|
+
@reset="resetEvent"
|
|
56
|
+
v-if="!allCompany"
|
|
57
|
+
>
|
|
58
|
+
<vxe-form-item :title="$t1('组织名称') + ':'" field="companyName">
|
|
41
59
|
<template v-slot>
|
|
42
|
-
<el-input v-model="formData.companyName" size="small" clearable/>
|
|
60
|
+
<el-input v-model="formData.companyName" size="small" clearable />
|
|
43
61
|
</template>
|
|
44
62
|
</vxe-form-item>
|
|
45
63
|
<vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
|
|
@@ -54,8 +72,13 @@
|
|
|
54
72
|
</div>
|
|
55
73
|
</label>
|
|
56
74
|
<div class="multipleChoice">
|
|
57
|
-
<el-tooltip
|
|
58
|
-
|
|
75
|
+
<el-tooltip
|
|
76
|
+
:enterable="false"
|
|
77
|
+
effect="dark"
|
|
78
|
+
:content="$t1('全部删除')"
|
|
79
|
+
placement="top"
|
|
80
|
+
><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a
|
|
81
|
+
></el-tooltip>
|
|
59
82
|
<div class="list">
|
|
60
83
|
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
|
61
84
|
<p>{{ checkRow.companyName }}</p>
|
|
@@ -64,25 +87,27 @@
|
|
|
64
87
|
</div>
|
|
65
88
|
</div>
|
|
66
89
|
<span slot="footer" class="dialog-footer">
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
90
|
+
<span class="fl tips" v-if="!selectMulti">{{
|
|
91
|
+
$t1("注:双击确认选择(单选)")
|
|
92
|
+
}}</span>
|
|
93
|
+
<el-button type="primary" plain class="button-sty" @click="dialogCancel">
|
|
94
|
+
<i class="el-icon-close el-icon"></i>
|
|
95
|
+
{{ $t1("取 消") }}
|
|
96
|
+
</el-button>
|
|
97
|
+
<el-button type="primary" @click="dialogPrimary" class="button-sty">
|
|
98
|
+
<i class="el-icon-check el-icon"></i>
|
|
99
|
+
{{ $t1("确 定") }}
|
|
100
|
+
</el-button>
|
|
101
|
+
</span>
|
|
77
102
|
</el-dialog>
|
|
78
103
|
</template>
|
|
79
104
|
|
|
80
105
|
<script>
|
|
81
|
-
import {selectDialogMixins} from
|
|
106
|
+
import { selectDialogMixins } from "@base/mixins/selectDialog/index.js";
|
|
82
107
|
|
|
83
108
|
export default {
|
|
84
|
-
name:
|
|
85
|
-
props: [
|
|
109
|
+
name: "company_info_dialog",
|
|
110
|
+
props: ["title", "visiable", "multi", "rows", "param", "firstEnabled", "allCompany"],
|
|
86
111
|
mixins: [selectDialogMixins],
|
|
87
112
|
created() {
|
|
88
113
|
if (this.$attrs.fieldKey) this.fieldKey = this.$attrs.fieldKey;
|
|
@@ -103,45 +128,51 @@ export default {
|
|
|
103
128
|
methods: {
|
|
104
129
|
initTableM1() {
|
|
105
130
|
let that = this;
|
|
106
|
-
let path = USER_PREFIX +
|
|
107
|
-
let treeNodeUrl = USER_PREFIX +
|
|
131
|
+
let path = USER_PREFIX + "/user_company_info/getCurrentList";
|
|
132
|
+
let treeNodeUrl = USER_PREFIX + "/user_company_info/getChildren";
|
|
108
133
|
if (this.allCompany) {
|
|
109
|
-
path = USER_PREFIX +
|
|
110
|
-
treeNodeUrl = USER_PREFIX +
|
|
134
|
+
path = USER_PREFIX + "/company_info/getRoot";
|
|
135
|
+
treeNodeUrl = USER_PREFIX + "/company_info/getChildren";
|
|
111
136
|
}
|
|
112
137
|
let tableOption = {
|
|
113
138
|
vue: that,
|
|
114
|
-
tableRef:
|
|
115
|
-
tableName:
|
|
139
|
+
tableRef: "table-m1",
|
|
140
|
+
tableName: "basic_ompany_info_dialog_list",
|
|
116
141
|
path: path,
|
|
117
142
|
treeNodeUrl: treeNodeUrl,
|
|
118
143
|
treeNodeParam: function (row) {
|
|
119
|
-
return {enabled: true, parentCompanyCode: row.companyCode};
|
|
144
|
+
return { enabled: true, parentCompanyCode: row.companyCode };
|
|
120
145
|
},
|
|
121
146
|
param: () => {
|
|
122
147
|
return {
|
|
123
148
|
enabled: true,
|
|
124
|
-
...this.formData
|
|
125
|
-
}
|
|
149
|
+
...this.formData,
|
|
150
|
+
};
|
|
126
151
|
},
|
|
127
152
|
columns: [
|
|
128
|
-
{type:
|
|
129
|
-
{
|
|
130
|
-
|
|
153
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
154
|
+
{
|
|
155
|
+
title: this.$t1("组织名称"),
|
|
156
|
+
field: "companyName",
|
|
157
|
+
width: 250,
|
|
158
|
+
fixed: "left",
|
|
159
|
+
treeNode: true,
|
|
160
|
+
},
|
|
161
|
+
{ title: this.$t1("组织编码"), field: "companyCode", width: 200 },
|
|
131
162
|
{
|
|
132
163
|
width: 47,
|
|
133
|
-
fixed:
|
|
134
|
-
title:
|
|
135
|
-
sortable: false
|
|
136
|
-
}
|
|
164
|
+
fixed: "right",
|
|
165
|
+
title: "",
|
|
166
|
+
sortable: false,
|
|
167
|
+
},
|
|
137
168
|
],
|
|
138
169
|
config: {
|
|
139
170
|
checkboxConfig: {
|
|
140
171
|
checkStrictly: true,
|
|
141
172
|
showHeader: this.selectMulti,
|
|
142
|
-
trigger:
|
|
143
|
-
checkMethod: ({row}) => {
|
|
144
|
-
if (this.firstEnabled ===
|
|
173
|
+
trigger: "row",
|
|
174
|
+
checkMethod: ({ row }) => {
|
|
175
|
+
if (this.firstEnabled === "true" || this.firstEnabled === true) {
|
|
145
176
|
return true;
|
|
146
177
|
} else {
|
|
147
178
|
if (!row.parentCompanyCode) {
|
|
@@ -150,15 +181,15 @@ export default {
|
|
|
150
181
|
return true;
|
|
151
182
|
}
|
|
152
183
|
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
156
187
|
};
|
|
157
188
|
|
|
158
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
189
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
159
190
|
that.vxeOption = opts;
|
|
160
191
|
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
192
|
+
},
|
|
193
|
+
},
|
|
163
194
|
};
|
|
164
195
|
</script>
|