工单
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
|
||||
<u-form-item label="事件类型" prop="groupName" required :border-bottom="false" right-icon="arrow-right">
|
||||
<span @click="show = true" class="right-span" :style="forms.groupName ? '' : 'color:#999;'">{{ forms.groupName || '请选择事件类型' }}</span>
|
||||
<u-select v-model="show" :list="myList" value-name="id" label-name="groupName" @confirm="selectStatus"></u-select>
|
||||
<u-select v-model="show" :list="myList" value-name="dictValue" label-name="dictName" @confirm="selectStatus"></u-select>
|
||||
</u-form-item>
|
||||
<u-form-item label="事件描述" prop="content" required :border-bottom="false" label-position="top" class="contents">
|
||||
<u-input v-model="forms.content" placeholder="请输入事件描述..." type="textarea" auto-height height="100" maxlength="500"/>
|
||||
@@ -65,21 +65,23 @@ export default {
|
||||
},
|
||||
flag: false,
|
||||
show: false,
|
||||
myList: []
|
||||
myList: [],
|
||||
eventSource: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onLoad() {
|
||||
this.typeList()
|
||||
onLoad(option) {
|
||||
this.forms.girdId = this.user.girdId
|
||||
this.forms.girdName = this.user.girdName
|
||||
this.forms.girdMemberId = this.user.girdMemberId
|
||||
this.forms.girdMemberName = this.user.name
|
||||
this.eventSource = option.eventSource
|
||||
this.typeList()
|
||||
},
|
||||
onShow() {
|
||||
document.title = '巡查添加'
|
||||
document.title = '添加上报'
|
||||
this.forms.name = this.user.name
|
||||
this.forms.phone = this.user.phone
|
||||
uni.$on('chooseLat', res => {
|
||||
@@ -88,13 +90,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
typeList() {
|
||||
this.$http.post(`/app/apppatrolreportgroupv2/list`, null, {
|
||||
params: {
|
||||
size: 9999,
|
||||
},
|
||||
}).then((res) => {
|
||||
this.$http.post(`/app/apppatrolreportinfov2/eventTypeList?eventSource=${this.eventSource}&size=9999`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.myList = res.data.records
|
||||
res.data.map((item) => {
|
||||
var i = {dictName: item, dictValue: item}
|
||||
this.myList.push(i)
|
||||
})
|
||||
this.$forceUpdate()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user