Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -64,7 +64,6 @@
|
||||
"miniprogram-api-typings": "^3.3.2",
|
||||
"node-sass": "npm:dart-sass@^1.25.0",
|
||||
"postcss-comment": "^2.0.0",
|
||||
"sass-loader": "^7.1.0",
|
||||
"uview-ui": "^1.8.4",
|
||||
"vue-template-compiler": "^2.6.11"
|
||||
},
|
||||
|
||||
@@ -31,13 +31,6 @@
|
||||
},
|
||||
|
||||
onLoad () {
|
||||
uni.$on('reload', () => {
|
||||
if (this.currIndex === 0) {
|
||||
this.$refs.list.reload()
|
||||
} else {
|
||||
this.$refs.addList.getList()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -45,12 +38,6 @@
|
||||
this.params = e.params
|
||||
this.component = e.type
|
||||
},
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
if (this.currIndex === 0) {
|
||||
this.$refs.list.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<template v-if="showDetail">
|
||||
<form-detail/>
|
||||
</template>
|
||||
<ai-result v-else :tips="errMsg" status="error"/>
|
||||
<ai-result v-else :tips="errMsg" :status="errStatus"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -29,7 +29,11 @@ export default {
|
||||
return !!this.$route.query?.id && this.access
|
||||
},
|
||||
errMsg() {
|
||||
return this.err || (this.access ? "表单不存在" : "无法获取用户信息")
|
||||
this.access && (this.err = "表单不存在")
|
||||
return this.err || "数据读取中..."
|
||||
},
|
||||
errStatus() {
|
||||
return !!this.err ? "error" : "loading"
|
||||
},
|
||||
isPreview() {
|
||||
return !!this.$route.query?.preview
|
||||
@@ -64,7 +68,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.checkAccess()
|
||||
document.title = "调查问卷"
|
||||
document.title = "问卷调查"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -213,7 +213,6 @@ export default {
|
||||
})
|
||||
|
||||
uni.$on('filedConfig', res => {
|
||||
console.log(33)
|
||||
if (res.index === '-1') {
|
||||
this.targetList.push(res.config)
|
||||
} else {
|
||||
@@ -343,7 +342,7 @@ export default {
|
||||
type: 'Result',
|
||||
params: {
|
||||
linkUrl: res.data.linkUrl,
|
||||
tableExplain: this.form.title,
|
||||
title: this.form.title,
|
||||
tableExplain: this.form.tableExplain,
|
||||
headPicture: this.form.headPicture
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="form">
|
||||
<div class="template-wrapper">
|
||||
<div class="form-list">
|
||||
<div
|
||||
class="form-list__item"
|
||||
@@ -88,6 +88,9 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.template-wrapper {
|
||||
padding-bottom: 120rpx;
|
||||
|
||||
.template {
|
||||
margin: 32px 32px 0;
|
||||
background: #fff;
|
||||
@@ -186,4 +189,5 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<u-search placeholder="请输入标题" :show-action="false" search-icon-color="#ccc" v-model="search.title"
|
||||
@search="isMore = false, search.current = 1, getList()"/>
|
||||
</ai-top-fixed>
|
||||
<div class="form-list">
|
||||
<scroll-view show-scrollbar scroll-y @scrolltolower="getList" class="form-list">
|
||||
<div class="form-item" v-for="(item, index) in list" :key="index"
|
||||
@click="showPopup(item)">
|
||||
<div class="form-item__top">
|
||||
@@ -27,8 +27,9 @@
|
||||
<span>{{ $dict.getLabel('questionnaireStatus', item.status) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 30rpx"></div>
|
||||
<ai-empty v-if="!list.length && isMore"></ai-empty>
|
||||
</div>
|
||||
</scroll-view>
|
||||
<u-popup v-model="isShow" :closeable="false" mode="bottom" :z-index="11">
|
||||
<div class="popup">
|
||||
<h2>{{ info.title }}</h2>
|
||||
@@ -269,7 +270,6 @@ export default {
|
||||
|
||||
getList() {
|
||||
if (this.isMore) return
|
||||
|
||||
this.$http.post(`/app/appquestionnairetemplate/list`, null, {
|
||||
params: {
|
||||
...this.search,
|
||||
@@ -305,6 +305,8 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.form {
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
::v-deep .u-search {
|
||||
margin-bottom: 0 !important;
|
||||
|
||||
@@ -313,6 +315,12 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.form-list {
|
||||
height: calc(100vh - 98rpx - 100rpx);
|
||||
background: #f5f5f5;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.popup {
|
||||
background: #F7F7F7;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="form">
|
||||
<div class="form-wrapper">
|
||||
<div class="form-content">
|
||||
<add-list ref="addList" v-if="currIndex === 1" @change="onChange"></add-list>
|
||||
<list ref="list" v-if="currIndex === 0" @change="onChange"></list>
|
||||
@@ -43,16 +43,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
uni.$on('reload', () => {
|
||||
if (this.currIndex === 0) {
|
||||
this.$refs.list.reload()
|
||||
} else {
|
||||
this.$refs.addList.getList()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
onChange(e) {
|
||||
this.$emit('change', e)
|
||||
@@ -61,14 +51,13 @@ export default {
|
||||
|
||||
onReachBottom() {
|
||||
if (this.currIndex === 0) {
|
||||
this.$refs.list.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.form {
|
||||
padding-bottom: 98px;
|
||||
.form-wrapper {
|
||||
// padding-bottom: 98px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -126,6 +126,7 @@ export default {
|
||||
files: [],
|
||||
},
|
||||
userSelect: false,
|
||||
clickedUserSelect: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -159,12 +160,15 @@ export default {
|
||||
methods: {
|
||||
...mapActions(['selectEnterpriseContact']),
|
||||
handleSelectUser() {
|
||||
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
|
||||
this.clickedUserSelect = true
|
||||
this.selectEnterpriseContact({
|
||||
fromDepartmentId: 0,
|
||||
type: ["user"],
|
||||
selectedUserIds: this.form.attendees?.map(e => e.id)
|
||||
}).then(res => {
|
||||
this.change(res?.userList || [])
|
||||
this.clickedUserSelect = false
|
||||
})
|
||||
},
|
||||
fileList(e) {
|
||||
|
||||
51
src/apps/AppWalkask/AppWalkask.vue
Normal file
51
src/apps/AppWalkask/AppWalkask.vue
Normal file
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<div class="AppWalkask">
|
||||
<u-navbar title="走访慰问" back-icon-color="#fff" title-color="#fff" title-width="300" title-size="36" :background="backgroundNavbar"> </u-navbar>
|
||||
|
||||
<div class="header-top">
|
||||
<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div v-if="current == 0">0</div>
|
||||
<div v-if="current == 1">1</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppWalkask',
|
||||
appName: '走访慰问',
|
||||
computed: {},
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
backgroundNavbar: {
|
||||
backgroundColor: '#3975C6',
|
||||
},
|
||||
list: [
|
||||
{
|
||||
name: '全部',
|
||||
},
|
||||
{
|
||||
name: '我的走访',
|
||||
},
|
||||
],
|
||||
current: 0,
|
||||
}
|
||||
},
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
methods: {
|
||||
change(index) {
|
||||
this.current = index
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppWalkask {
|
||||
}
|
||||
</style>
|
||||
@@ -17,15 +17,21 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin'])
|
||||
},
|
||||
mounted() {
|
||||
...mapActions(['injectJWeixin']),
|
||||
bindWWOpenData() {
|
||||
if (window?.WWOpenData) WWOpenData.bind(this.$el)
|
||||
else this.injectJWeixin().then(() => {
|
||||
this.$nextTick(() => {
|
||||
WWOpenData.bind(this.$el)
|
||||
WWOpenData.on('update', () => {
|
||||
WWOpenData.bind(this.$el)
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.bindWWOpenData()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -30,6 +30,9 @@ export default {
|
||||
if (this.status == "error") {
|
||||
obj.image = this.$cdn + "result/fail.png"
|
||||
obj.tips = this.tips || "提交失败!"
|
||||
} else if (this.status == "loading") {
|
||||
obj.image = "https://cdn.cunwuyun.cn/wxAdmin/img/message.png"
|
||||
obj.tips = this.tips || "数据读取中..."
|
||||
}
|
||||
return obj
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ export default {
|
||||
|
||||
.fixed {
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
top: 0;
|
||||
position: fixed;
|
||||
z-index: 9;
|
||||
@@ -51,6 +52,7 @@ export default {
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: 100px;
|
||||
padding: 20px 32px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user