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