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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.789",
4
+ "version": "1.0.54-dev.790",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "dev:micro": "vue-cli-service serve --port 17527",
@@ -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 type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
- {{ $t1('重置') }}
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 type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
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"><b>{{ $t1('基本信息') }}</b></div>
30
+ <div class="title first">
31
+ <b>{{ $t1("基本信息") }}</b>
32
+ </div>
20
33
  <table class="table-detail">
21
34
  <tbody>
22
- <tr>
23
- <th>
24
- <em class="f-red">*</em>
25
- {{ $t1('组织全称') }}
26
- </th>
27
- <td>
28
- <el-form-item prop="companyName" :rules="[{ required: true, trigger: 'blur' }]">
29
- <el-input type="text" autocomplete="off" v-model="companyInfo.companyName" clearable/>
30
- </el-form-item>
31
- </td>
32
- <th>
33
- <em class="f-red">*</em>
34
- {{ $t1('组织简称') }}
35
- </th>
36
- <td>
37
- <el-form-item prop="simpleName" :rules="[{ required: true, trigger: 'blur' }]">
38
- <el-input type="text" autocomplete="off" v-model="companyInfo.simpleName" clearable/>
39
- </el-form-item>
40
- </td>
41
- <th>
42
- <em class="f-red">*</em>
43
- {{ $t1('组织编码') }}
44
- </th>
45
- <td>{{ companyInfo.companyCode }}</td>
46
- </tr>
47
- <tr>
48
- <th>
49
- {{ $t1('组织默认首页') }}
50
- </th>
51
- <td colspan="3">
52
- <el-form-item prop="defaultHomePage" :rules="[{ required: false, trigger: 'blur' }]">
53
- <el-input type="text" autocomplete="off" v-model="companyInfo.defaultHomePage" clearable/>
54
- </el-form-item>
55
- </td>
56
- <th>
57
- <em class="f-red">*</em>
58
- {{ $t1('组织唯一标志') }}
59
- </th>
60
- <td colspan="3">{{ companyInfo.uniqueIdentify }}</td>
61
- </tr>
62
- <tr>
63
- <th>{{ $t1('备注') }}</th>
64
- <td colspan="5">
65
- <el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
66
- v-model="companyInfo.note"
67
- clearable></el-input>
68
- </td>
69
- </tr>
70
- <tr>
71
- <th>logo</th>
72
- <td colspan="5">
73
- <baseUpload :limit="1" accept="image/png, image/jpeg" multi="false" :file.sync="companyInfo.logoUrl"
74
- dataType="medium"></baseUpload>
75
- </td>
76
- </tr>
77
- <tr>
78
- <th>{{ $t1('创建人') }}</th>
79
- <td>{{ companyInfo.createBy }}</td>
80
- <th>{{ $t1('创建时间') }}</th>
81
- <td>{{ companyInfo.createDate }}</td>
82
- <th>{{ $t1('更新人') }}</th>
83
- <td>{{ companyInfo.modifyBy }}</td>
84
- <th>{{ $t1('更新时间') }}</th>
85
- <td>{{ companyInfo.modifyDate }}</td>
86
- </tr>
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: 'company_info:view',
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: 'first'
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 + '/company_info/getCurrent',
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('您确定要保存吗?')).then(() => {
130
- var url = USER_PREFIX + '/company_info/update';
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: 'success',
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>