|
|
@ -17,11 +17,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<m-list-construction :title="$t('Worker group manage')"> |
|
|
|
<m-list-construction :title="$t('Worker group manage')"> |
|
|
|
<template slot="conditions"> |
|
|
|
<template slot="conditions"> |
|
|
|
<m-conditions @on-conditions="_onConditions"> |
|
|
|
<m-conditions @on-conditions="_onConditions"></m-conditions> |
|
|
|
<!-- <template slot="button-group" v-if="isADMIN"> |
|
|
|
|
|
|
|
<x-button type="ghost" size="small" @click="_create('')">{{$t('Create worker group')}}</x-button> |
|
|
|
|
|
|
|
</template> --> |
|
|
|
|
|
|
|
</m-conditions> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template slot="content"> |
|
|
|
<template slot="content"> |
|
|
|
<template v-if="workerGroupList.length || total>0"> |
|
|
|
<template v-if="workerGroupList.length || total>0"> |
|
|
@ -92,32 +88,32 @@ |
|
|
|
_onEdit (item) { |
|
|
|
_onEdit (item) { |
|
|
|
this._create(item) |
|
|
|
this._create(item) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// _create (item) { |
|
|
|
_create (item) { |
|
|
|
// let self = this |
|
|
|
let self = this |
|
|
|
// let modal = this.$modal.dialog({ |
|
|
|
let modal = this.$modal.dialog({ |
|
|
|
// closable: false, |
|
|
|
closable: false, |
|
|
|
// showMask: true, |
|
|
|
showMask: true, |
|
|
|
// escClose: true, |
|
|
|
escClose: true, |
|
|
|
// className: 'v-modal-custom', |
|
|
|
className: 'v-modal-custom', |
|
|
|
// transitionName: 'opacityp', |
|
|
|
transitionName: 'opacityp', |
|
|
|
// render (h) { |
|
|
|
render (h) { |
|
|
|
// return h(mCreateWorker, { |
|
|
|
return h(mCreateWorker, { |
|
|
|
// on: { |
|
|
|
on: { |
|
|
|
// onUpdate () { |
|
|
|
onUpdate () { |
|
|
|
// self._debounceGET('false') |
|
|
|
self._debounceGET('false') |
|
|
|
// modal.remove() |
|
|
|
modal.remove() |
|
|
|
// }, |
|
|
|
}, |
|
|
|
// close () { |
|
|
|
close () { |
|
|
|
// modal.remove() |
|
|
|
modal.remove() |
|
|
|
// } |
|
|
|
} |
|
|
|
// }, |
|
|
|
}, |
|
|
|
// props: { |
|
|
|
props: { |
|
|
|
// item: item |
|
|
|
item: item |
|
|
|
// } |
|
|
|
} |
|
|
|
// }) |
|
|
|
}) |
|
|
|
// } |
|
|
|
} |
|
|
|
// }) |
|
|
|
}) |
|
|
|
// }, |
|
|
|
}, |
|
|
|
_getList (flag) { |
|
|
|
_getList (flag) { |
|
|
|
this.isLoading = !flag |
|
|
|
this.isLoading = !flag |
|
|
|
this.getWorkerGroups(this.searchParams).then(res => { |
|
|
|
this.getWorkerGroups(this.searchParams).then(res => { |
|
|
|