singleSetParticipants.vue 19.1 KB
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2 3 4 5 6 7 8 9 10
<template>
  <div class="single-set-participants-com">
    <div v-if="showTitle && taskParticipationData[0].data.length" class="flex-start participant-title-wrap">
      <div class="participant-title">设置参与者</div>
      <el-button type="primary" @click="setPartTemp">设置签审人员模板</el-button>
    </div>
    <dee-form
      ref="form"
      :form="form"
      :rules="rules"
wangdanlei's avatar
wangdanlei committed
11
      :label-width="labelWidth + 'px'"
wangdanlei's avatar
wangdanlei committed
12 13 14 15 16 17 18
      :form-data="taskParticipationData"
    />
  </div>
</template>

<script>
import { getParticipant } from '@/api/workflow/taskCenter.js'
wangdanlei's avatar
wangdanlei committed
19
import { getAllUsers, getContextUsers, getPboVariableUser, getUsersByAccount, getUserOrganizations, getUsersInOrgs, findInUserSameIndependentOrg } from '@/api/workflow/userSystem'
wangdanlei's avatar
wangdanlei committed
20
import _get from 'lodash.get'
wangdanlei's avatar
wangdanlei committed
21 22
export default {
  name: 'SingleSetParticipants',
wangdanlei's avatar
wangdanlei committed
23
  inject: ['routeFormCache'],
wangdanlei's avatar
wangdanlei committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
  props: {
    participantData: {
      type: Object,
      required: true
    },
    basicData: {
      type: Object,
      required: true
    },
    isCheckParticipant: {
      type: Boolean,
      default: false
    },
    formValue: {
      type: Object,
      default: null
    },
    showTitle: {
      type: Boolean,
      default: false
wangdanlei's avatar
wangdanlei committed
44 45 46 47
    },
    isCheckIncludeCurrUser: {
      type: Boolean,
      default: false
wangdanlei's avatar
wangdanlei committed
48 49 50 51
    }
  },
  data() {
    return {
wangdanlei's avatar
wangdanlei committed
52
      labelWidth: 100,
wangdanlei's avatar
wangdanlei committed
53 54 55 56 57 58 59
      // 参与者的原始数据
      userList: [],
      teamId: '',
      userNameList: [],
      oldVal: [],
      newVal: [],
      roleName: '',
wangdanlei's avatar
wangdanlei committed
60 61 62
      taskParticipationData: [
        { split: 3, data: [] }
      ],
wangdanlei's avatar
wangdanlei committed
63 64 65 66 67 68 69 70 71
      rules: {},
      userOption: [],
      form: {},
      dialogVisible: false
    }
  },
  computed: {
    selectData() {
      return JSON.stringify(this.form)
wangdanlei's avatar
wangdanlei committed
72 73 74 75
    },
    // 缓存的当前路由表单数据
    cacheForm() {
      return this.$utils._get(this.routeFormCache, this.participantData.selectRoute) || {}
wangdanlei's avatar
wangdanlei committed
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
    }
  },
  watch: {
    participantData: {
      immediate: true,
      handler: function(newV) {
        if (newV && newV.procDefId) {
          this.participantData = newV
          this.initData(newV)
        }
      },
      deep: true
    },
    formValue: {
      immediate: true,
      handler: function(val) {
        if (val) {
          this.form = val
        }
      },
      deep: true
    }
  },
  methods: {
    resetForm() {
      for (const key in this.form) {
        if (this.form[key]) {
          this.$set(this.form, key, '')
        }
      }
    },
    initUserOptions(val) {
      this.taskParticipationData[0].data.forEach((item, index) => {
        for (var key in val) {
          if (key === item.key && val[key].length) {
wangdanlei's avatar
wangdanlei committed
111
            this.getAllUser(index, val[key])
wangdanlei's avatar
wangdanlei committed
112 113 114 115 116 117 118 119 120
          }
        }
      })
    },
    setPartTemp() {
      this.$emit('setPartTemp')
    },
    getUser(item, index, query) {
      if (item.scope === 'ALL') {
wangdanlei's avatar
wangdanlei committed
121
        this.remoteMethod(index, query)
wangdanlei's avatar
wangdanlei committed
122 123 124 125
      } else if (item.scope === 'PBO_CONTEXT_TEAM') {
        this.getContextUser(index, query, item)
      } else if (item.scope === 'PBO_VARIABLE') {
        this.getPboVariableUser(index, query, item)
wangdanlei's avatar
wangdanlei committed
126 127 128
      } else if (item.scope === 'GROUP') {
        this.getGroupUser(index, item.scopeValues)
      } else if (item.scope === 'SAME_INDEPENDENT_ORG') {
wangdanlei's avatar
wangdanlei committed
129
        this.getSelectedSameIndependentOrgUsers(index, item)
wangdanlei's avatar
wangdanlei committed
130
      } else {
wangdanlei's avatar
wangdanlei committed
131 132 133 134 135 136 137 138 139 140 141 142
        const value = item.scope === 'SAME_ORGANIZATION' ? this.getCurrentUserOrgIds() : item.scopeValues
        if (value) {
          let params = []
          value.forEach(el => {
            if (Array.isArray(el)) {
              params = params.concat(el)
            } else {
              params.push(el)
            }
          })
          this.getOrgUser(index, params, item)
        }
wangdanlei's avatar
wangdanlei committed
143 144 145
      }
    },
    // 获取所有用户
wangdanlei's avatar
wangdanlei committed
146 147
    getAllUser(index, userArr, item) {
      const includeCurrentUser = item ? item.includeCurrentUser : _get(this.taskParticipationData[0].data[index], 'component.includeCurrentUser', false)
wangdanlei's avatar
wangdanlei committed
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
      const params = {
        'indices': [
          'USERS'
        ],
        'pageFrom': 1,
        'pageSize': 100,
        'openProps': [
          {
            'name': 'userAccounts',
            'pageFrom': 1,
            'pageSize': 9999
          }
        ],
        'sortItem': [
          {
            'fieldName': 'modifyTime',
            'sortOrder': 'desc'
          }
        ],
        'keyWord': null,
        'searchItems': {
          'operator': 'AND',
wangdanlei's avatar
wangdanlei committed
170
          'items': []
wangdanlei's avatar
wangdanlei committed
171 172
        }
      }
wangdanlei's avatar
wangdanlei committed
173 174 175 176 177 178
      if (!includeCurrentUser && this.isCheckIncludeCurrUser) {
        params.searchItems.items.push({
          'fieldName': 'id',
          'operator': 'NEQ',
          'value': localStorage.getItem('userId')
        })
wangdanlei's avatar
wangdanlei committed
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
      }
      if (userArr && userArr.length) {
        params.searchItems.children = [
          {
            'items': [
              {
                'fieldName': 'id',
                'operator': 'IN',
                'value': userArr
              }
            ]
          }
        ]
      }
      getAllUsers(params).then(res => {
        const items = res.items.content
wangdanlei's avatar
wangdanlei committed
195
        const userListOptions = items.map(item => {
wangdanlei's avatar
wangdanlei committed
196
          return {
wangdanlei's avatar
wangdanlei committed
197
            label: item.userName + '(' + item.userAccount + ')',
wangdanlei's avatar
wangdanlei committed
198 199 200 201
            value: item.id,
            style: { display: 'block' }
          }
        })
wangdanlei's avatar
wangdanlei committed
202 203 204 205 206
        this.filterData(index, userListOptions)
      })
    },
    remoteMethod(index, query) {
      const params = {
wangdanlei's avatar
wangdanlei committed
207
        userAccount: (query || '').trim()
wangdanlei's avatar
wangdanlei committed
208 209 210 211 212 213 214 215 216
      }
      const includeCurrentUser = _get(this.taskParticipationData[0].data[index], 'component.includeCurrentUser', false)
      getUsersByAccount(params).then(res => {
        if (res.items) {
          let userListOptions = res.items.map(item => {
            return {
              label: item.userName + '(' + item.userAccount + ')',
              value: item.id,
              style: { display: 'block' }
wangdanlei's avatar
wangdanlei committed
217
            }
wangdanlei's avatar
wangdanlei committed
218 219 220 221 222 223 224 225 226
          }).filter(r => r)
          if (!includeCurrentUser && this.isCheckIncludeCurrUser) {
            const userId = localStorage.getItem('userId')
            userListOptions = userListOptions.filter(u => (u.value).toString() !== userId)
          }
          this.filterData(index, userListOptions)
        }
      })
    },
wangdanlei's avatar
wangdanlei committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
    remoteSameIndependentOrgMethod(index, query, includeChildOrg) {
      findInUserSameIndependentOrg(includeChildOrg, (query || '').trim())
        .then(res => {
          if (Array.isArray(res.items)) {
            let userListOptions = []
            res.items.forEach(item => {
              // const user = item.target
              if (item.userId) {
                userListOptions.push({
                  label: item.userName + '(' + item.userAccount + ')',
                  value: item.userId,
                  style: { display: 'block' }
                })
              }
            })
            const includeCurrentUser = _get(this.taskParticipationData[0].data[index], 'component.includeCurrentUser', false)
            if (!includeCurrentUser && this.isCheckIncludeCurrUser) {
              const userId = localStorage.getItem('userId')
              userListOptions = userListOptions.filter(u => (u.value).toString() !== userId)
            }
            this.$set(this.taskParticipationData[0].data[index].component, 'options', userListOptions)
          }
        })
    },
wangdanlei's avatar
wangdanlei committed
251 252 253 254 255 256 257
    filterData(index, userNameList) {
      const arr = this.taskParticipationData[0].data[index].component.options || []
      arr.length && arr.forEach(user => {
        const isInclud = userNameList.find((item, index) => {
          const bool = item.value === user.value
          if (bool) {
            userNameList.splice(index, 1)
wangdanlei's avatar
wangdanlei committed
258
          }
wangdanlei's avatar
wangdanlei committed
259
          return bool
wangdanlei's avatar
wangdanlei committed
260
        })
wangdanlei's avatar
wangdanlei committed
261 262 263 264 265
        if (!isInclud) {
          user.style = { display: 'none' }
        } else {
          user.style = { display: 'block' }
        }
wangdanlei's avatar
wangdanlei committed
266
      })
wangdanlei's avatar
wangdanlei committed
267
      arr.push(...userNameList)
wangdanlei's avatar
wangdanlei committed
268
      this.removeNoneUser(arr, index)
wangdanlei's avatar
wangdanlei committed
269
      this.$set(this.taskParticipationData[0].data[index].component, 'options', arr)
wangdanlei's avatar
wangdanlei committed
270 271 272
    },
    // 获取上下文角色下的用户
    getContextUser(index, query, item) {
wangdanlei's avatar
wangdanlei committed
273
      if (this.basicData && this.basicData.businessObject && this.basicData.businessObject.dxContextId) {
wangdanlei's avatar
wangdanlei committed
274
        const params = {
wangdanlei's avatar
wangdanlei committed
275
          contextId: this.basicData.businessObject.dxContextId,
wangdanlei's avatar
wangdanlei committed
276 277 278 279
          teamCode: item.scopeValues.join(',')
        }
        getContextUsers(params).then(res => {
          if (res.items && res.items.length) {
wangdanlei's avatar
wangdanlei committed
280
            this.getAllUser(index, res.items)
wangdanlei's avatar
wangdanlei committed
281 282 283 284 285 286 287 288 289 290 291 292 293
          }
        })
      }
    },
    // 获取pbo属性下的用户
    getPboVariableUser(index, query, item) {
      if (this.basicData && this.basicData.instanceData) {
        const params = {
          proceInstId: this.basicData.instanceData.id,
          pboVariable: item.scopeValues.join('.')
        }
        getPboVariableUser(params).then(res => {
          if (res.items && res.items.length) {
wangdanlei's avatar
wangdanlei committed
294
            this.getAllUser(index, res.items)
wangdanlei's avatar
wangdanlei committed
295 296 297 298
          }
        })
      }
    },
wangdanlei's avatar
wangdanlei committed
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
    // 获取群组下的用户
    getGroupUser(index, group) {
      this.userListOptions = []
      const params = {
        'pageFrom': 1,
        'pageSize': 100,
        'searchItems': {
          'children': [

          ],
          'items': [
            {
              'fieldName': 'sourceId',
              'operator': 'IN',
              'value': group
            }
          ],
          'operator': 'AND'
        },
        'openProps': [
          {
            'name': 'target',
            'pageFrom': 1,
            'pageSize': 9999
          }
        ],
        'sortItem': [
          {
            'fieldName': 'modifyTime',
            'sortOrder': 'desc'
          }
        ]
      }
      this.$api.searchApi('DxGroupMemberLink', params).then(res => {
        const arr = res.items && res.items.content ? res.items.content.map((n) => {
wangdanlei's avatar
wangdanlei committed
334
          return {
wangdanlei's avatar
wangdanlei committed
335 336
            label: `${n.target.userName}(${n.target.userAccount})`,
            value: n.target.id
wangdanlei's avatar
wangdanlei committed
337 338
          }
        }) : []
wangdanlei's avatar
wangdanlei committed
339
        this.removeNoneUser(arr, index)
wangdanlei's avatar
wangdanlei committed
340 341 342 343 344 345 346 347 348 349 350 351
        this.$set(this.taskParticipationData[0].data[index].component, 'options', arr)
      })
    },
    // 获取组织下的用户
    getOrgUser(index, org, item) {
      this.userListOptions = []
      const includeCurrentUser = item.includeCurrentUser
      // 是否包含子组织
      getUsersInOrgs(item.includeChildOrg, org).then(res => {
        let arr = []
        if (res.items && res.items) {
          res.items.forEach((n) => {
wangdanlei's avatar
wangdanlei committed
352
            const findItem = arr.find(r => r.value === n.id)
wangdanlei's avatar
wangdanlei committed
353 354
            if (!findItem) {
              arr.push({
wangdanlei's avatar
wangdanlei committed
355 356
                label: `${n.userName}(${n.userAccount})`,
                value: n.id
wangdanlei's avatar
wangdanlei committed
357 358 359 360 361 362 363 364
              })
            }
          })
        }
        if (!includeCurrentUser && this.isCheckIncludeCurrUser) {
          const userId = localStorage.getItem('userId')
          arr = arr.filter(u => (u.value).toString() !== userId)
        }
wangdanlei's avatar
wangdanlei committed
365
        this.removeNoneUser(arr, index)
wangdanlei's avatar
wangdanlei committed
366 367 368
        this.$set(this.taskParticipationData[0].data[index].component, 'options', arr)
      })
    },
wangdanlei's avatar
wangdanlei committed
369 370 371 372 373 374 375 376 377
    // 用户所在的独立组织下的所有用户,以及该独立组织下自组织下的所有用户
    getUserOptions(index, item) {
      getUserOrganizations({ userId: localStorage.getItem('userId') }).then(res => {
        if (res.items && res.items.length) {
          const org = res.items.map(r => r.id)
          this.getOrgUser(index, org, item)
        }
      })
    },
wangdanlei's avatar
wangdanlei committed
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
    getSelectedSameIndependentOrgUsers(index, item) {
      const userIds = this.form[item.routerVariableName]
      if (Array.isArray(userIds) && userIds.length > 0) {
        this.getUserByIds(userIds, item, index)
      }
    },
    getUserByIds(userIds, item, index) {
      const params = {
        'indices': [
          'USERS'
        ],
        'keyWord': null,
        'pageFrom': 1,
        'pageSize': 100,
        'openProps': [
          {
            'name': 'userAccounts',
            'pageFrom': 1,
            'pageSize': 9999
          }
        ],
        'searchItems': {
          'operator': 'AND',
          'items': [
            {
              'fieldName': 'id',
              'operator': 'IN',
              'value': userIds
            }
          ]
        }
      }
      getAllUsers(params)
        .then(res => {
          const items = this.$utils._get(res, 'items.content') || []
          const userAccountItems = items.map(item => item.userAccount).filter(c => !!c)
          const reqItems = userAccountItems.map(userAccount => findInUserSameIndependentOrg(item.includeChildOrg, userAccount))
          Promise.all(reqItems).then(responses => {
            const users = responses.map(res => this.$utils._get(res, 'items[0].target')).filter(u => !!u)
            const ids = users.map(u => u.id)
            this.form[item.routerVariableName] = ids
            const userListOptions = users.map(item => {
              return {
                label: item.userName + '(' + item.userAccount + ')',
                value: item.id,
                style: { display: 'block' }
              }
            })
            this.filterData(index, userListOptions)
          })
        })
    },
wangdanlei's avatar
wangdanlei committed
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
    packageOptionsData(res, flag) {
      const arr1 = []
      for (const item of res) {
        const obj = {}
        obj.label = item.fullName + '(' + item.name + ')'
        obj.value = item.id
        arr1.push(obj)
      }
      return arr1
    },
    getArrDifference(arr1, arr2) {
      return arr1.concat(arr2).filter(function(v, i, arr) {
        return arr.indexOf(v) === arr.lastIndexOf(v)
      })
    },
    validate() {
      return this.$refs.form.validate()
    },
wangdanlei's avatar
wangdanlei committed
448 449 450 451 452 453 454 455 456 457
    getTextWidth(str) {
      let width = 0
      const html = document.createElement('span')
      html.innerText = str
      html.className = 'getTextWidth'
      document.querySelector('body').appendChild(html)
      width = document.querySelector('.getTextWidth').offsetWidth
      document.querySelector('.getTextWidth').remove()
      return width
    },
wangdanlei's avatar
wangdanlei committed
458
    initData(data) {
wangdanlei's avatar
wangdanlei committed
459 460 461 462 463 464 465
      const params = {
        'procDefId': data.procDefId,
        'procInstId': data.procInstId,
        'taskKey': data.taskKey,
        'selectRoute': data.selectRoute
      }
      getParticipant(params).then(res => {
wangdanlei's avatar
wangdanlei committed
466
        let labelWidth = 100
wangdanlei's avatar
wangdanlei committed
467 468 469 470 471 472 473 474 475 476 477
        const partData = res.items
        let i = 0
        this.taskParticipationData[0].data = []
        partData.map((item, index) => {
          let multipleLimit = 0
          if (!item.multiple) {
            multipleLimit = 1
          }
          if (item.displayName && item.displayName.length > i) {
            i = item.displayName.length
          }
wangdanlei's avatar
wangdanlei committed
478
          this.recoverRouteFormInfo(item)
wangdanlei's avatar
wangdanlei committed
479 480 481 482 483 484 485 486 487 488 489 490
          this.taskParticipationData[0].data.push({
            key: item.routerVariableName,
            title: item.displayName,
            width: 1,
            component: {
              multipleLimit: multipleLimit,
              placeholder: '',
              size: 'medium',
              name: 'el-select',
              multiple: true,
              disabled: !this.basicData.canDeal,
              filterable: true,
wangdanlei's avatar
wangdanlei committed
491
              remote: ['ALL', 'SAME_INDEPENDENT_ORG'].includes(item.scope),
wangdanlei's avatar
wangdanlei committed
492 493
              includeCurrentUser: !!item.includeCurrentUser,
              includeChildOrg: item.includeChildOrg,
wangdanlei's avatar
wangdanlei committed
494
              remoteMethod: (query) => {
wangdanlei's avatar
wangdanlei committed
495 496 497 498 499
                if (query.length >= 2) {
                  if (item.scope === 'ALL') {
                    this.remoteMethod(index, query)
                  } else if (item.scope === 'SAME_INDEPENDENT_ORG') {
                    this.remoteSameIndependentOrgMethod(index, query, item.includeChildOrg)
wangdanlei's avatar
wangdanlei committed
500
                  }
wangdanlei's avatar
wangdanlei committed
501
                }
wangdanlei's avatar
wangdanlei committed
502
              },
wangdanlei's avatar
wangdanlei committed
503
              options: item.scope !== 'ALL' ? this.getUser(item, index) : (this.form[item.routerVariableName].length ? this.getAllUser(index, this.form[item.routerVariableName], item) : [])
wangdanlei's avatar
wangdanlei committed
504 505 506
            },
            handler: {
              change: (val) => {
wangdanlei's avatar
wangdanlei committed
507 508 509 510 511 512 513
                this.cacheRouteFormInfo()
              },
              focus: () => {
                if (!['ALL', 'SAME_INDEPENDENT_ORG'].includes(item.scope)) {
                  this.$set(this.taskParticipationData[0].data[index].component, 'options', [])
                  item.scope !== 'ALL' ? this.getUser(item, index) : (this.form[item.routerVariableName].length ? this.getAllUser(index, this.form[item.routerVariableName], item) : [])
                }
wangdanlei's avatar
wangdanlei committed
514 515 516 517 518 519 520 521
              }
            }
          })
          if (this.isCheckParticipant && item.required === true) {
            this.$set(this.rules, [item.routerVariableName], [{ required: true, message: '该项为必填项', trigger: 'change' }])
          } else {
            this.$set(this.rules, [item.routerVariableName], [{ required: false, trigger: 'change' }])
          }
wangdanlei's avatar
wangdanlei committed
522 523 524
          if (labelWidth < (this.getTextWidth(item.displayName) + 25)) {
            labelWidth = this.getTextWidth(item.displayName) + 25
          }
wangdanlei's avatar
wangdanlei committed
525
        })
wangdanlei's avatar
wangdanlei committed
526
        this.labelWidth = labelWidth
wangdanlei's avatar
wangdanlei committed
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541
      })
    },
    uniq(array) {
      var temp = []
      var l = array.length
      for (var i = 0; i < l; i++) {
        for (var j = i + 1; j < l; j++) {
          if (array[i].teamValue.routerVariableName === array[j].teamValue.routerVariableName) {
            i++
            j = i
          }
        }
        temp.push(array[i])
      }
      return temp
wangdanlei's avatar
wangdanlei committed
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582
    },
    // 缓存路由表单数据
    cacheRouteFormInfo() {
      if (this.routeFormCache) {
        const routeName = this.participantData.selectRoute
        this.routeFormCache[routeName] = { ...this.form }
      }
    },
    // 恢复路由表单数据
    recoverRouteFormInfo(item) {
      const cacheItemValue = this.$utils._get(this.cacheForm, item.routerVariableName)
      const formValue = this.form[item.routerVariableName]
      this.$set(this.form, item.routerVariableName, cacheItemValue || formValue || item.routerVariableValue)
    },
    // 获取当前用户所在组织
    getCurrentUserOrgIds() {
      let currUserOrgIds = null
      try {
        currUserOrgIds = [[localStorage.getItem('org')]]
      } catch (e) {
        currUserOrgIds = []
      }
      return currUserOrgIds
    },
    // 回显的人员不在下拉列表中则移除该人
    removeNoneUser(options, index) {
      const usersId = []
      let removeIds = []
      const formItemKey = this.taskParticipationData[0].data[index].key
      const formItemValue = this.form[formItemKey]
      if (Array.isArray(formItemValue)) {
        usersId.push(...formItemValue)
      } else if (formItemValue) {
        usersId.push(formItemValue)
      }
      if (usersId.length > 0) {
        removeIds = usersId.filter(id => !options.find(opt => opt.value === parseInt(id)))
      }
      if (removeIds.length > 0) {
        this.$set(this.form, formItemKey, usersId.filter(id => !removeIds.includes(id)))
      }
wangdanlei's avatar
wangdanlei committed
583 584 585 586 587 588 589 590 591 592 593 594
    }
  },
  validate() {
    return this.$refs.form.validate()
  }
}
</script>

<style lang="scss">
  .single-set-participants-com {
    width: 100%;
    .participant-title-wrap{
wangdanlei's avatar
wangdanlei committed
595
      margin:16px 0 20px 0;
wangdanlei's avatar
wangdanlei committed
596 597 598 599 600 601
      .el-button{
        margin-left:10px;
      }
    }
    .el-form-item__label{
      white-space: nowrap;
wangdanlei's avatar
wangdanlei committed
602 603
      overflow: hidden;
      text-overflow: ellipsis;
wangdanlei's avatar
wangdanlei committed
604 605 606 607 608 609 610 611 612 613 614 615 616
    }
    .el-select__input{
      height:30px;
    }
    .button-group {
      padding-left: 160px;
      padding-bottom: 8px;
      padding-right: 135px;
      display: flex;
      justify-content: flex-end;
    }
  }
</style>