system-phone 3.1.8-1-t7 → 3.1.8-1-t9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "3.1.8-1-t7",
3
+ "version": "3.1.8-1-t9",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -72,15 +72,17 @@ let asyncReady = async function (self, url) {
72
72
  let that = self
73
73
  const vueConfig={}
74
74
  const res = await Vue.resetget(`${url}/api/af-safecheck/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
75
+ self.delConfigKey(res.data)
75
76
  vueConfig.safecheck = res.data
76
77
  const dir_module = res.data.global.dir_module
77
78
  for(let mod in dir_module) {
78
79
  if (dir_module[mod].name !== 'af-safecheck') {
79
- let mod_url = `/api/${dir_module[mod].name}/vue`
80
+ let mod_url = `${url}/api/${dir_module[mod].name}/vue`
80
81
  if (!dir_module[mod].name.startsWith('af-')) {
81
- mod_url = `/${dir_module[mod].name}/rs/vue`
82
+ mod_url = `${url}/${dir_module[mod].name}/rs/vue`
82
83
  }
83
84
  const config = await Vue.resetget(mod_url, {data: {}}, {resolveMsg: null, rejectMsg: null})
85
+ self.delConfigKey(config.data)
84
86
  vueConfig[dir_module[mod].name] = config.data;
85
87
  }
86
88
  }
@@ -349,6 +351,18 @@ export default {
349
351
  console.error('登录异常,LoginApp的confirm函数错误', e)
350
352
  this.$showMessage('登陆失败!,')
351
353
  }
354
+ },
355
+ delConfigKey(obj){
356
+ // 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
357
+ Object.keys(obj).forEach(key =>{
358
+ Object.keys(obj[key]).forEach(col => {
359
+ // 检查键是否以$开头
360
+ if (col.startsWith('$')) {
361
+ // 使用delete操作符删除键
362
+ delete obj[key][col];
363
+ }
364
+ })
365
+ })
352
366
  }
353
367
  },
354
368
  watch: {
@@ -4,6 +4,14 @@
4
4
  <!-- </div>-->
5
5
  <div class="select-overspread auto" style="padding-bottom:5px;">
6
6
  <div class="auto repair-info-content compatible">
7
+ <div class="row" style="display: flex;align-items: center">
8
+ <div class="col-xs-3 col-sm-3 col-md-3 form-input-group">
9
+ 模糊查询:
10
+ </div>
11
+ <div class="col-xs-9 col-sm-9 col-md-9 form-input-group mg8">
12
+ <input type="text" class="form-control" v-model="model.f_userinfo" placeholder='模糊查询'>
13
+ </div>
14
+ </div>
7
15
  <div class="row" style="display: flex;align-items: center">
8
16
  <div class="col-xs-3 col-sm-3 col-md-3 form-input-group">
9
17
  用户编号:
@@ -92,6 +100,9 @@ export default {
92
100
  condition += this.model.f_userid ? ` and ti.f_userinfo_code = '${this.model.f_userid}'` : ' and 1=1'
93
101
  condition += this.model.f_username ? ` and ti.f_user_name like '%${this.model.f_username}%'` : ' and 1=1'
94
102
  condition += this.model.f_address ? ` and tua.f_address like '%${this.model.f_address}%'` : ' and 1=1'
103
+ if (this.model.f_userinfo){
104
+ condition += ` and (ti.f_userinfo_code like '%${this.model.f_userinfo}%' or ti.f_user_name like '%${this.model.f_userinfo}%' or ti.f_user_phone like '%${this.model.f_userinfo}%' or f_meternumber like '%${this.model.f_userinfo}%' or tua.f_address like '%${this.model.f_userinfo}%')`
105
+ }
95
106
  console.log(condition)
96
107
  this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_UserInfo`, {
97
108
  data: {