|
|
@ -69,12 +69,12 @@ |
|
|
|
placeholder="请选择分配的操作员" |
|
|
|
> |
|
|
|
<t-option |
|
|
|
v-for="(item, index) in userList" |
|
|
|
:value="item.value" |
|
|
|
:label="item.label" |
|
|
|
:key="index" |
|
|
|
v-for="item in userList" |
|
|
|
:value="item.username" |
|
|
|
:label="item.nickname" |
|
|
|
:key="item.id" |
|
|
|
> |
|
|
|
{{ item.label }} |
|
|
|
{{ item.nickname }} |
|
|
|
</t-option> |
|
|
|
</t-select> |
|
|
|
</t-form-item> |
|
|
@ -88,6 +88,7 @@ |
|
|
|
</t-form> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { allOperatorApi } from '@/api/publish' |
|
|
|
const INITIAL_DATA = { |
|
|
|
taskname: '', |
|
|
|
order: '', |
|
|
@ -132,6 +133,12 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
async getAllOperator() { |
|
|
|
const res = await allOperatorApi() |
|
|
|
if (res?.code == 200) { |
|
|
|
this.userList = res?.data |
|
|
|
} |
|
|
|
}, |
|
|
|
onReset() { |
|
|
|
this.$message.success('重置成功') |
|
|
|
console.log('formData', this.formData) |
|
|
@ -145,6 +152,10 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
this.getAllOperator() |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|