Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<img src="./components/images/icon2.png" alt="" />
|
<img src="./components/images/icon2.png" alt="" />
|
||||||
|
|
||||||
<ai-area-picker v-model="areaId" ref="areaIds" :areaId="areaId" @select="areaSelect" style="color: #fff"> </ai-area-picker>
|
<AiAreaPicker v-model="areaId" ref="areaIds" :areaId="areaId" @select="areaSelect" style="color: #fff"> </AiAreaPicker>
|
||||||
|
|
||||||
<!-- <div class="btns" style="display: inline-block" @click="show = true">
|
<!-- <div class="btns" style="display: inline-block" @click="show = true">
|
||||||
<u-icon name="arrow-down"></u-icon>
|
<u-icon name="arrow-down"></u-icon>
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<ai-empty description="您还未添加过入户调查走访" class="emptyWrap"> </ai-empty>
|
<AiEmpty description="您还未添加过入户调查走访" class="emptyWrap"> </AiEmpty>
|
||||||
|
|
||||||
<div class="addBtn">点击<span class="toAdd" @click="toAdd">新增按钮</span>试试试吧~</div>
|
<div class="addBtn">点击<span class="toAdd" @click="toAdd">新增按钮</span>试试试吧~</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<img src="./components/images/icon2.png" alt="" />
|
<img src="./components/images/icon2.png" alt="" />
|
||||||
|
|
||||||
<ai-area-picker v-model="areaId" ref="areaIds" :areaId="areaId" @select="areaSelect" style="color: #fff"> </ai-area-picker>
|
<AiAreaPicker v-model="areaId" ref="areaIds" :areaId="areaId" @select="areaSelect" style="color: #fff"> </AiAreaPicker>
|
||||||
|
|
||||||
<!-- <div class="btns" style="display: inline-block" @click="show = true">
|
<!-- <div class="btns" style="display: inline-block" @click="show = true">
|
||||||
<u-icon name="arrow-down"></u-icon>
|
<u-icon name="arrow-down"></u-icon>
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<ai-empty description="您还未添加过入户调查走访" class="emptyWrap"> </ai-empty>
|
<AiEmpty description="您还未添加过入户调查走访" class="emptyWrap"> </AiEmpty>
|
||||||
|
|
||||||
<div class="addBtn">点击<span class="toAdd" @click="toAdd">新增按钮</span>试试试吧~</div>
|
<div class="addBtn">点击<span class="toAdd" @click="toAdd">新增按钮</span>试试试吧~</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -132,15 +132,16 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import AiEmpty from '../../components/AiEmpty.vue'
|
|
||||||
import add from './add.vue'
|
import add from './add.vue'
|
||||||
import detail from './detail.vue'
|
import detail from './detail.vue'
|
||||||
import AiAreaPicker from '../../components/AiAreaPicker.vue'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppWalkask',
|
name: 'AppWalkask',
|
||||||
appName: '走访慰问',
|
appName: '走访慰问',
|
||||||
components: { AiEmpty, add, detail, AiAreaPicker },
|
components: {
|
||||||
|
add,
|
||||||
|
detail,
|
||||||
|
},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<div class="header-description">
|
<div class="header-description">
|
||||||
<u-form :model="forms" ref="uForm" label-width="auto">
|
<u-form :model="forms" ref="uForm" label-width="auto">
|
||||||
<u-form-item label="区域选择" prop="areaId" style="position: relative">
|
<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>
|
||||||
|
|
||||||
<u-form-item label="走访对象" prop="application" required style="position: relative">
|
<u-form-item label="走访对象" prop="application" required style="position: relative">
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<u-form-item label="图片(最多9张)" prop="images" class="avatars" required label-position="top">
|
<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-item>
|
||||||
</u-form>
|
</u-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,13 +55,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import { mapActions } 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 {
|
export default {
|
||||||
name: 'add',
|
name: 'add',
|
||||||
components: { AiUploader, AiBack, walkObject, AiAreaPicker },
|
components: {
|
||||||
|
},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -99,27 +97,34 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['selectEnterpriseContact']),
|
// ...mapActions(['selectEnterpriseContact']),
|
||||||
|
|
||||||
handerSelecUser() {
|
handerSelecUser() {
|
||||||
console.log(this.clickedUserSelect)
|
this.$http.post('/app/appapplicationinfo/queryApplicationListByType?type=0').then((res) => {
|
||||||
if (this.clickedUserSelect) return this.$u.toast('正在打开人员选择器')
|
if (res.code == 0) {
|
||||||
|
// this.data = res.data.records
|
||||||
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
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 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() {
|
submit() {
|
||||||
console.log(1)
|
console.log(1)
|
||||||
if (this.flag) return
|
if (this.flag) return
|
||||||
@@ -192,11 +197,11 @@ export default {
|
|||||||
this.forms.realityValue = e[0].value
|
this.forms.realityValue = e[0].value
|
||||||
},
|
},
|
||||||
|
|
||||||
toWalkObject() {
|
// toWalkObject() {
|
||||||
this.addList = false
|
// this.addList = false
|
||||||
this.comp = 'walkObject'
|
// this.comp = 'walkObject'
|
||||||
this.params = 111
|
// this.params = 111
|
||||||
},
|
// },
|
||||||
|
|
||||||
change(e) {
|
change(e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
|||||||
@@ -42,23 +42,34 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from '../../components/AiBack.vue'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'detail',
|
name: 'detail',
|
||||||
components: { AiBack },
|
components: {
|
||||||
|
},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
data: {},
|
||||||
backgroundNavbar: {
|
backgroundNavbar: {
|
||||||
backgroundColor: '#3975C6',
|
backgroundColor: '#3975C6',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
created() {},
|
created() {
|
||||||
|
this.getDetail()
|
||||||
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {},
|
methods: {
|
||||||
|
getDetail() {
|
||||||
|
this.$instance.post(`apppolicypromotion/queryDetailByIdWeChat?id=${this.id}`).then((res) => {
|
||||||
|
if (res?.data) {
|
||||||
|
this.data = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user