vue2-client 1.2.11 → 1.2.14

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/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **##1.2.9 - 1.2.11 -2022-03-24 @江超**
4
+ **##1.2.9 - 1.2.13 -2022-03-24 @江超**
5
5
  - 功能新增:
6
6
  - [查询配置生成]:下拉框表单选择业务逻辑作为数据源时,可以选择数据源加载方式
7
7
  - [XFormItem]:当数据源加载方式为懒加载搜索时,将渲染一个可以根据关键词实时查询的选择框
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.2.11",
3
+ "version": "1.2.14",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -241,11 +241,13 @@ export default {
241
241
  },
242
242
  // 获取数据
243
243
  getData (value, callback) {
244
- const logicName = this.attr.keyName
245
- const logic = logicName.substring(6)
246
- post('/webmeterapi/' + logic, value).then(res => {
247
- callback(res)
248
- })
244
+ if (value !== '') {
245
+ const logicName = this.attr.keyName
246
+ const logic = logicName.substring(6)
247
+ post('/webmeterapi/' + logic, value).then(res => {
248
+ callback(res)
249
+ })
250
+ }
249
251
  },
250
252
  filterOption (input, option) {
251
253
  if (option.componentOptions.children[0].text) {
@@ -273,6 +273,10 @@
273
273
  }
274
274
  },
275
275
  mounted () {
276
+ if (!this.currUser) {
277
+ this.$router.replace('/login')
278
+ return
279
+ }
276
280
  this.getCurrentUserPhone()
277
281
  this.fixedQueryForm['t_uploader'] = this.currUser.ename
278
282
  },