修改组件引入
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div class="header-description">
|
||||
<u-form :model="forms" ref="uForm" label-width="auto">
|
||||
<u-form-item label="区域选择" prop="areaId" style="position: relative">
|
||||
<ai-area-picker v-model="forms.areaId" ref="areaIds" :areaId="areaIdProps" @select="areaSelect" style="color: #333"> </ai-area-picker>
|
||||
<AiAreaPicker v-model="forms.areaId" ref="areaIds" :areaId="areaIdProps" @select="areaSelect" style="color: #333"> </AiAreaPicker>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item label="走访对象" prop="application" required style="position: relative">
|
||||
@@ -38,7 +38,7 @@
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item label="图片(最多9张)" prop="images" class="avatars" required label-position="top">
|
||||
<ai-uploader :def.sync="forms.images" multiple @list="change" placeholder="上传图片" :limit="9"></ai-uploader>
|
||||
<AiUploader :def.sync="forms.images" multiple @list="change" placeholder="上传图片" :limit="9"></AiUploader>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
</div>
|
||||
@@ -55,13 +55,11 @@
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import { mapActions } from 'vuex'
|
||||
import AiUploader from '../../components/AiUploader.vue'
|
||||
import AiBack from '../../components/AiBack.vue'
|
||||
import AiAreaPicker from '../../components/AiAreaPicker'
|
||||
|
||||
export default {
|
||||
name: 'add',
|
||||
components: { AiUploader, AiBack, walkObject, AiAreaPicker },
|
||||
components: {
|
||||
},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
@@ -99,27 +97,34 @@ export default {
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
...mapActions(['selectEnterpriseContact']),
|
||||
|
||||
// ...mapActions(['selectEnterpriseContact']),
|
||||
handerSelecUser() {
|
||||
console.log(this.clickedUserSelect)
|
||||
if (this.clickedUserSelect) return this.$u.toast('正在打开人员选择器')
|
||||
|
||||
this.clickedUserSelect = true
|
||||
this.selectEnterpriseContact({
|
||||
fromDepartmentId: 0,
|
||||
type: ['user'],
|
||||
optionId: this.forms.application?.map((e) => e.id),
|
||||
this.$http.post('/app/appapplicationinfo/queryApplicationListByType?type=0').then((res) => {
|
||||
if (res.code == 0) {
|
||||
// this.data = res.data.records
|
||||
}
|
||||
})
|
||||
.then((res) => {
|
||||
// this.change(res?.userList || [])
|
||||
this.clickedUserSelect = false
|
||||
})
|
||||
.catch(() => {
|
||||
this.clickedUserSelect = false
|
||||
})
|
||||
},
|
||||
|
||||
// handerSelecUser() {
|
||||
// console.log(this.clickedUserSelect)
|
||||
// if (this.clickedUserSelect) return this.$u.toast('正在打开人员选择器')
|
||||
|
||||
// this.clickedUserSelect = true
|
||||
// this.selectEnterpriseContact({
|
||||
// fromDepartmentId: 0,
|
||||
// type: ['user'],
|
||||
// optionId: this.forms.application?.map((e) => e.id),
|
||||
// })
|
||||
// .then((res) => {
|
||||
// this.change(res?.userList || [])
|
||||
// this.clickedUserSelect = false
|
||||
// })
|
||||
// .catch(() => {
|
||||
// this.clickedUserSelect = false
|
||||
// })
|
||||
// },
|
||||
|
||||
submit() {
|
||||
console.log(1)
|
||||
if (this.flag) return
|
||||
@@ -192,11 +197,11 @@ export default {
|
||||
this.forms.realityValue = e[0].value
|
||||
},
|
||||
|
||||
toWalkObject() {
|
||||
this.addList = false
|
||||
this.comp = 'walkObject'
|
||||
this.params = 111
|
||||
},
|
||||
// toWalkObject() {
|
||||
// this.addList = false
|
||||
// this.comp = 'walkObject'
|
||||
// this.params = 111
|
||||
// },
|
||||
|
||||
change(e) {
|
||||
console.log(e)
|
||||
|
||||
Reference in New Issue
Block a user