事件上报
This commit is contained in:
@@ -2,10 +2,8 @@
|
||||
<div class="Transfer">
|
||||
<div class="contents">
|
||||
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
|
||||
<u-form-item label="转交给" prop="status" required :border-bottom="false" class="first-form" v-if="status == 1">
|
||||
<AiPagePicker type="gridUser" :id="forms.girdId" @select="handleSelectGrid" nodeKey="girdId">
|
||||
<AiMore v-model="forms.name"/>
|
||||
</AiPagePicker>
|
||||
<u-form-item label="转交给" prop="status" required :border-bottom="false" class="first-form" right-icon="arrow-right" v-if="status == 1">
|
||||
<u-input v-model="forms.name" placeholder="请选择转交人员" disabled @click="toSelectUser" />
|
||||
</u-form-item>
|
||||
<u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right" v-if="status != 1">
|
||||
<!-- <u-input v-model="forms.groupName" placeholder="请选择事件分类" /> -->
|
||||
@@ -71,30 +69,19 @@ export default {
|
||||
this.forms.groupId = option.groupId
|
||||
this.forms.groupName = option.groupName
|
||||
this.typeList()
|
||||
// uni.$on('pagePicker:custom', (res) => {
|
||||
// this.selectUser = res
|
||||
// if (res.name) {
|
||||
// this.forms.name = res.name
|
||||
// } else {
|
||||
// this.forms.name = res.girdName
|
||||
// }
|
||||
// })
|
||||
uni.$on('goback', (res) => {
|
||||
this.selectUser = res
|
||||
this.forms.girdId = res.girdId
|
||||
this.forms.girdName = res.girdName
|
||||
this.forms.girdMemberId = res.id
|
||||
this.forms.girdMemberName = res.name
|
||||
this.forms.name = `${res.girdName}${res.name ? '-' + res.name : ''}`
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
document.title = this.titleList[this.status]
|
||||
},
|
||||
methods: {
|
||||
handleSelectGrid(v) {
|
||||
// this.forms.name = v.girdName
|
||||
// this.forms.girdId = v.girdId
|
||||
// this.selectUser = v
|
||||
this.forms.girdId = v.girdId
|
||||
this.forms.girdName = v.girdName
|
||||
this.forms.girdMemberId = v.id
|
||||
this.forms.girdMemberName = v.name
|
||||
this.forms.name = `${v.girdName}${v.name ? '-' + v.name : ''}`
|
||||
this.selectUser = {...v}
|
||||
},
|
||||
typeList() {
|
||||
this.$http.post(`/app/appclapeventgroup/list`, null, {
|
||||
params: {
|
||||
@@ -167,9 +154,9 @@ export default {
|
||||
this.forms.groupName = e[0].label
|
||||
this.forms.groupId = e[0].value
|
||||
},
|
||||
// toSelectUser() {
|
||||
// uni.navigateTo({url: '../AppGridManagement/selectGridMember'})
|
||||
// },
|
||||
toSelectUser() {
|
||||
uni.navigateTo({url: `./SelectUser?detailId=${this.id}`})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user