Bladeren bron

Merge branch 'master' of http://10.1.235.20:3000/asiainfo/ebc.git

konghl 4 jaren geleden
bovenliggende
commit
fe61027787

+ 6 - 3
ebc-middle-platform/src/modules/attendance/attendance.vue

@ -27,8 +27,8 @@
27 27
          </div>
28 28
        </div>
29 29
        <div class="btns">
30
          <t-button color="secondary" class="reset-btn" @click="onReset">重置</t-button>
31 30
          <t-button color="success" icon="search-outline" @click="onSearch">查询</t-button>
31
          <t-button color="secondary" icon="loading" class="reset-btn" @click="onReset">重置</t-button>
32 32
          <t-button color="secondary" icon="upload-outline" @click="toExport">导出至Excel</t-button>
33 33
        </div>
34 34
      </div>
@ -158,11 +158,14 @@ export default {
158 158
  },
159 159
  mounted() {
160 160
    this.getList()
161
    this.queryCondition.singleDateVal = this.getTime(2)
161 162
  },
162 163
  methods: {
163 164
    changeType(index) {
164 165
      this.queryCondition.currentIndex = index
165
      this.queryCondition.singleDateVal = ''
166
      if (this.queryCondition.singleDateVal == '') {
167
        this.queryCondition.singleDateVal = this.getTime(2)
168
      }
166 169
      this.queryCondition.dateType = !(index === 2)
167 170
      this.getList()
168 171
    },
@ -180,7 +183,7 @@ export default {
180 183
          '日', '周', '月'
181 184
        ],
182 185
        currentIndex: 0,
183
        singleDateVal: '',
186
        singleDateVal: this.getTime(2),
184 187
        alarmPerson: ''
185 188
      }
186 189
      this.table.pager.currentPage = 1

+ 1 - 1
ebc-middle-platform/src/modules/attendance/track.vue

@ -19,8 +19,8 @@
19 19
          </div>
20 20
        </div>
21 21
        <div class="btns">
22
          <t-button color="secondary" class="reset-btn" @click="onReset">重置</t-button>
23 22
          <t-button color="success" icon="search-outline" @click="onSearch">查询</t-button>
23
          <t-button color="secondary" icon="loading" class="reset-btn" @click="onReset">重置</t-button>
24 24
          <t-button color="secondary" icon="upload-outline" @click="toExport">导出至Excel</t-button>
25 25
        </div>
26 26
      </div>

+ 1 - 1
ebc-middle-platform/src/modules/system-management/equipment-management.vue

@ -26,8 +26,8 @@
26 26
          </div>
27 27
        </div>
28 28
        <div class="btns">
29
          <t-button color="secondary" class="reset-btn" @click="onReset">重置</t-button>
30 29
          <t-button color="success" icon="search-outline" @click="onSearch">查询</t-button>
30
          <t-button color="secondary" icon="loading" class="reset-btn" @click="onReset">重置</t-button>
31 31
          <t-button color="secondary" icon="upload-outline" @click="toExport">导出至Excel</t-button>
32 32
          <t-button color="secondary" icon="delete-outline" @click="toExport">删除</t-button>
33 33
        </div>

+ 3 - 9
ebc-middle-platform/src/modules/system-management/map-mark.vue

@ -13,15 +13,9 @@
13 13
            </div>
14 14
          </div>
15 15
          <div class="btns">
16
            <t-button color="secondary" class="reset-btn" @click="onReset"
17
            >重置</t-button
18
            >
19
            <t-button color="success" icon="search-outline" @click="onSearch"
20
            >查询</t-button
21
            >
22
            <t-button color="secondary" icon="upload-outline" @click="toExport"
23
            >导出至Excel</t-button
24
            >
16
            <t-button color="success" icon="search-outline" @click="onSearch">查询</t-button>
17
            <t-button color="secondary" icon="loading" class="reset-btn" @click="onReset">重置</t-button>
18
            <t-button color="secondary" icon="upload-outline" @click="toExport">导出至Excel</t-button>
25 19
          </div>
26 20
        </div>
27 21
        <div class="btns">

+ 6 - 6
ebc-middle-platform/src/modules/system-management/terminal-management.vue

@ -18,8 +18,8 @@
18 18
          </div>
19 19
        </div>
20 20
        <div class="btns">
21
          <t-button color="secondary" class="reset-btn" @click="onReset">重置</t-button>
22 21
          <t-button color="success" icon="search-outline" @click="onSearch">查询</t-button>
22
          <t-button color="secondary" icon="loading" class="reset-btn" @click="onReset">重置</t-button>
23 23
          <t-button color="secondary" icon="upload-outline" @click="toExport">导出至Excel</t-button>
24 24
          <t-button color="secondary" icon="unlock-outline" @click="toExport">解绑用户</t-button>
25 25
          <t-button color="secondary" icon="delete-outline" @click="toExport">删除</t-button>
@ -78,7 +78,7 @@
78 78
    <t-modal :visibled.sync="modal" title="新增终端" >
79 79
      <t-form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-width="80" label-position="left">
80 80
        <t-form-item label="终端编号" prop="number">
81
          <t-input v-model="formValidate.number" placeholder="请输入6位数字"></t-input>
81
          <t-input v-model="formValidate.number" placeholder="请输入6位以内数字"></t-input>
82 82
        </t-form-item>
83 83
        <t-form-item label="备注" prop="desc">
84 84
          <t-input
@ -240,10 +240,10 @@ export default {
240 240
            trigger: 'blur'
241 241
          },
242 242
          {
243
            message: '请输入6位数字#',
243
            message: '请输入6位以内数字',
244 244
            trigger: 'blur',
245 245
            validator: function(rule, value, callback) {
246
              if (!/^\d{6}$/.test(value)) {
246
              if (!/^[0-9][0-9]{0,5}$/.test(value)) {
247 247
                callback(rule.message)
248 248
              } else {
249 249
                // TODO 判断编号重复
@ -289,9 +289,9 @@ export default {
289 289
                  ).then(res => {
290 290
                    // 请求成功处理...
291 291
                    if (res.data.result !== null) {
292
                      that.relevanceValidate.PARTY_TERMINAL_ID = res.data.result.PARTY_TERMINAL_ID
292
                      that.relevanceValidate.PARTY_TERMINAL_ID = res.data.result.ID
293 293
                      that.relevanceValidate.msgisShow = true
294
                      that.relevanceValidate.msg = res.data.result.PARTY_NAME + ' 已关联终端 ' + res.data.result.DEVICE_ID + ' ,点击保存更改关联关系'
294
                      that.relevanceValidate.msg = res.data.result.NAME + ' 已关联终端 ' + res.data.result.DEVICE_ID + ' ,点击保存更改关联关系'
295 295
                    } else {
296 296
                      that.relevanceValidate.msgisShow = false
297 297
                    }