cloud-web-corejs 1.0.54-dev.789 → 1.0.54-dev.790
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/views/user/company_info/edit.vue +149 -88
package/package.json
CHANGED
|
@@ -3,87 +3,149 @@
|
|
|
3
3
|
<el-form ref="editForm" :model="companyInfo">
|
|
4
4
|
<div class="d-header clearfix">
|
|
5
5
|
<div class="fl">
|
|
6
|
-
<i class="el-icon-info"/>
|
|
7
|
-
{{ $t1(
|
|
6
|
+
<i class="el-icon-info" />
|
|
7
|
+
{{ $t1("查看组织信息") }}
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
|
-
<el-button
|
|
11
|
-
|
|
10
|
+
<el-button
|
|
11
|
+
type="primary"
|
|
12
|
+
plain
|
|
13
|
+
class="button-sty"
|
|
14
|
+
@click="$baseReload()"
|
|
15
|
+
icon="el-icon-refresh-right"
|
|
16
|
+
>
|
|
17
|
+
{{ $t1("重置") }}
|
|
12
18
|
</el-button>
|
|
13
|
-
<el-button
|
|
19
|
+
<el-button
|
|
20
|
+
type="primary"
|
|
21
|
+
class="button-sty"
|
|
22
|
+
icon="el-icon-check"
|
|
23
|
+
@click="saveData"
|
|
24
|
+
>{{ $t1("保存") }}
|
|
14
25
|
</el-button>
|
|
15
26
|
</div>
|
|
16
27
|
</div>
|
|
17
28
|
<div class="d-cont">
|
|
18
29
|
<div class="d-item">
|
|
19
|
-
<div class="title first"
|
|
30
|
+
<div class="title first">
|
|
31
|
+
<b>{{ $t1("基本信息") }}</b>
|
|
32
|
+
</div>
|
|
20
33
|
<table class="table-detail">
|
|
21
34
|
<tbody>
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
<el-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
35
|
+
<tr></tr>
|
|
36
|
+
<tr>
|
|
37
|
+
<th>
|
|
38
|
+
<em class="f-red">*</em>
|
|
39
|
+
{{ $t1("组织全称") }}
|
|
40
|
+
</th>
|
|
41
|
+
<td>
|
|
42
|
+
<el-form-item
|
|
43
|
+
prop="companyName"
|
|
44
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
45
|
+
>
|
|
46
|
+
<el-input
|
|
47
|
+
type="text"
|
|
48
|
+
autocomplete="off"
|
|
49
|
+
v-model="companyInfo.companyName"
|
|
50
|
+
clearable
|
|
51
|
+
/>
|
|
52
|
+
</el-form-item>
|
|
53
|
+
</td>
|
|
54
|
+
<th>
|
|
55
|
+
<em class="f-red">*</em>
|
|
56
|
+
{{ $t1("组织简称") }}
|
|
57
|
+
</th>
|
|
58
|
+
<td>
|
|
59
|
+
<el-form-item
|
|
60
|
+
prop="simpleName"
|
|
61
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
62
|
+
>
|
|
63
|
+
<el-input
|
|
64
|
+
type="text"
|
|
65
|
+
autocomplete="off"
|
|
66
|
+
v-model="companyInfo.simpleName"
|
|
67
|
+
clearable
|
|
68
|
+
/>
|
|
69
|
+
</el-form-item>
|
|
70
|
+
</td>
|
|
71
|
+
<th>
|
|
72
|
+
<em class="f-red">*</em>
|
|
73
|
+
{{ $t1("组织编码") }}
|
|
74
|
+
</th>
|
|
75
|
+
<td>{{ companyInfo.companyCode }}</td>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr></tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<th>
|
|
80
|
+
{{ $t1("组织默认首页") }}
|
|
81
|
+
</th>
|
|
82
|
+
<td colspan="3">
|
|
83
|
+
<el-form-item
|
|
84
|
+
prop="defaultHomePage"
|
|
85
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
86
|
+
>
|
|
87
|
+
<el-input
|
|
88
|
+
type="text"
|
|
89
|
+
autocomplete="off"
|
|
90
|
+
v-model="companyInfo.defaultHomePage"
|
|
91
|
+
clearable
|
|
92
|
+
/>
|
|
93
|
+
</el-form-item>
|
|
94
|
+
</td>
|
|
95
|
+
<th>{{ $t1("环境编码") }}</th>
|
|
96
|
+
<td>
|
|
97
|
+
<el-form-item prop="envCode">
|
|
98
|
+
<el-input
|
|
99
|
+
type="text"
|
|
100
|
+
autocomplete="off"
|
|
101
|
+
v-model="companyInfo.envCode"
|
|
102
|
+
clearable
|
|
103
|
+
/>
|
|
104
|
+
</el-form-item>
|
|
105
|
+
</td>
|
|
106
|
+
</tr>
|
|
107
|
+
<tr>
|
|
108
|
+
<th>{{ $t1("备注") }}</th>
|
|
109
|
+
<td colspan="5">
|
|
110
|
+
<el-input
|
|
111
|
+
type="textarea"
|
|
112
|
+
:rows="2"
|
|
113
|
+
:placeholder="$t1('请输入内容')"
|
|
114
|
+
size="small"
|
|
115
|
+
v-model="companyInfo.note"
|
|
116
|
+
clearable
|
|
117
|
+
></el-input>
|
|
118
|
+
</td>
|
|
119
|
+
</tr>
|
|
120
|
+
<tr>
|
|
121
|
+
<th>logo</th>
|
|
122
|
+
<td colspan="5">
|
|
123
|
+
<baseUpload
|
|
124
|
+
:limit="1"
|
|
125
|
+
accept="image/png, image/jpeg"
|
|
126
|
+
multi="false"
|
|
127
|
+
:file.sync="companyInfo.logoUrl"
|
|
128
|
+
dataType="medium"
|
|
129
|
+
></baseUpload>
|
|
130
|
+
</td>
|
|
131
|
+
</tr>
|
|
132
|
+
<tr>
|
|
133
|
+
<th>
|
|
134
|
+
<em class="f-red">*</em>
|
|
135
|
+
{{ $t1("组织唯一标志") }}
|
|
136
|
+
</th>
|
|
137
|
+
<td colspan="3">{{ companyInfo.uniqueIdentify }}</td>
|
|
138
|
+
</tr>
|
|
139
|
+
<tr>
|
|
140
|
+
<th>{{ $t1("创建人") }}</th>
|
|
141
|
+
<td>{{ companyInfo.createBy }}</td>
|
|
142
|
+
<th>{{ $t1("创建时间") }}</th>
|
|
143
|
+
<td>{{ companyInfo.createDate }}</td>
|
|
144
|
+
<th>{{ $t1("更新人") }}</th>
|
|
145
|
+
<td>{{ companyInfo.modifyBy }}</td>
|
|
146
|
+
<th>{{ $t1("更新时间") }}</th>
|
|
147
|
+
<td>{{ companyInfo.modifyDate }}</td>
|
|
148
|
+
</tr>
|
|
87
149
|
</tbody>
|
|
88
150
|
</table>
|
|
89
151
|
</div>
|
|
@@ -94,7 +156,7 @@
|
|
|
94
156
|
|
|
95
157
|
<script>
|
|
96
158
|
export default {
|
|
97
|
-
name:
|
|
159
|
+
name: "company_info:view",
|
|
98
160
|
components: {},
|
|
99
161
|
data() {
|
|
100
162
|
return {
|
|
@@ -102,11 +164,10 @@ export default {
|
|
|
102
164
|
isEdit: false,
|
|
103
165
|
companyInfo: {},
|
|
104
166
|
showAreaDialog: false,
|
|
105
|
-
activeName:
|
|
167
|
+
activeName: "first",
|
|
106
168
|
};
|
|
107
169
|
},
|
|
108
|
-
created() {
|
|
109
|
-
},
|
|
170
|
+
created() {},
|
|
110
171
|
mounted() {
|
|
111
172
|
this.getData();
|
|
112
173
|
},
|
|
@@ -114,43 +175,43 @@ export default {
|
|
|
114
175
|
getData() {
|
|
115
176
|
this.isEdit = true;
|
|
116
177
|
this.$commonHttp({
|
|
117
|
-
url: USER_PREFIX +
|
|
178
|
+
url: USER_PREFIX + "/company_info/getCurrent",
|
|
118
179
|
method: `post`,
|
|
119
180
|
isLoading: true,
|
|
120
181
|
modalStrictly: true,
|
|
121
|
-
success: res => {
|
|
182
|
+
success: (res) => {
|
|
122
183
|
this.companyInfo = res.objx || {};
|
|
123
|
-
}
|
|
184
|
+
},
|
|
124
185
|
});
|
|
125
186
|
},
|
|
126
187
|
saveData() {
|
|
127
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
188
|
+
this.$refs.editForm.$baseValidate((valid) => {
|
|
128
189
|
if (valid) {
|
|
129
|
-
this.$baseConfirm(this.$t1(
|
|
130
|
-
var url = USER_PREFIX +
|
|
190
|
+
this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
|
|
191
|
+
var url = USER_PREFIX + "/company_info/update";
|
|
131
192
|
this.$http({
|
|
132
193
|
url: url,
|
|
133
194
|
method: `post`,
|
|
134
195
|
data: this.companyInfo,
|
|
135
196
|
isLoading: true,
|
|
136
|
-
success: res => {
|
|
197
|
+
success: (res) => {
|
|
137
198
|
if (this.isEdit) {
|
|
138
199
|
//更新
|
|
139
200
|
this.$message({
|
|
140
201
|
message: res.content,
|
|
141
|
-
type:
|
|
202
|
+
type: "success",
|
|
142
203
|
duration: 500,
|
|
143
|
-
onClose: t => {
|
|
204
|
+
onClose: (t) => {
|
|
144
205
|
this.$baseReload();
|
|
145
|
-
}
|
|
206
|
+
},
|
|
146
207
|
});
|
|
147
208
|
}
|
|
148
|
-
}
|
|
209
|
+
},
|
|
149
210
|
});
|
|
150
211
|
});
|
|
151
212
|
}
|
|
152
213
|
});
|
|
153
|
-
}
|
|
154
|
-
}
|
|
214
|
+
},
|
|
215
|
+
},
|
|
155
216
|
};
|
|
156
217
|
</script>
|