调整错误
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -83,14 +83,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiTopFixed from '@/components/AiTopFixed'
|
|
||||||
import AiEmpty from '@/components/AiEmpty'
|
|
||||||
import {mapActions} from 'vuex'
|
import {mapActions} from 'vuex'
|
||||||
|
import AiTopFixed from "../../../components/AiTopFixed";
|
||||||
|
import AiEmpty from "../../../components/AiEmpty";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'formList',
|
name: 'formList',
|
||||||
label: '表单列表',
|
label: '表单列表',
|
||||||
|
components: {AiEmpty, AiTopFixed},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
search: {
|
search: {
|
||||||
@@ -106,12 +106,6 @@ export default {
|
|||||||
isShow: false
|
isShow: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {
|
|
||||||
AiEmpty,
|
|
||||||
AiTopFixed
|
|
||||||
},
|
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact'])
|
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact'])
|
||||||
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
|
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {
|
||||||
@@ -205,7 +199,7 @@ export default {
|
|||||||
this.isShow = false
|
this.isShow = false
|
||||||
},
|
},
|
||||||
|
|
||||||
toEdit () {
|
toEdit() {
|
||||||
if (this.info.dataCount !== 0) {
|
if (this.info.dataCount !== 0) {
|
||||||
return this.$u.toast('该表单已有数据,无法编辑!')
|
return this.$u.toast('该表单已有数据,无法编辑!')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,30 +11,30 @@
|
|||||||
<script>
|
<script>
|
||||||
import AddList from './AddList.vue'
|
import AddList from './AddList.vue'
|
||||||
import List from './List.vue'
|
import List from './List.vue'
|
||||||
import AiTabbar from '@/components/AiTabbar'
|
import AiTabbar from "../../../components/AiTabbar";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppAskForm',
|
name: 'AppAskForm',
|
||||||
appName: '问卷表单',
|
appName: '问卷表单',
|
||||||
|
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
currIndex: 0
|
currIndex: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
AddList,
|
|
||||||
AiTabbar,
|
AiTabbar,
|
||||||
|
AddList,
|
||||||
List
|
List
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
tabBar () {
|
tabBar() {
|
||||||
const link = icon => `${this.$cdn}askform/${icon}.png`
|
const link = icon => `${this.$cdn}askform/${icon}.png`
|
||||||
return [
|
return [
|
||||||
{text: "表单列表", iconPath: "bdlb1", selectedIconPath: "bdlb2" },
|
{text: "表单列表", iconPath: "bdlb1", selectedIconPath: "bdlb2"},
|
||||||
{text: "新建项目", iconPath: "xjxm1", selectedIconPath: "xjxm2" }
|
{text: "新建项目", iconPath: "xjxm1", selectedIconPath: "xjxm2"}
|
||||||
].map(e => ({
|
].map(e => ({
|
||||||
...e,
|
...e,
|
||||||
iconPath: link(e.iconPath),
|
iconPath: link(e.iconPath),
|
||||||
@@ -43,7 +43,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad () {
|
onLoad() {
|
||||||
uni.$on('reload', () => {
|
uni.$on('reload', () => {
|
||||||
if (this.currIndex === 0) {
|
if (this.currIndex === 0) {
|
||||||
this.$refs.list.reload()
|
this.$refs.list.reload()
|
||||||
@@ -54,7 +54,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange (e) {
|
onChange(e) {
|
||||||
this.$emit('change', e)
|
this.$emit('change', e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -68,7 +68,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.form {
|
.form {
|
||||||
padding-bottom: 98px;
|
padding-bottom: 98px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,39 +1,41 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="emptyWrap">
|
<div class="emptyWrap">
|
||||||
<img class="emptyImg" src="https://cdn.cunwuyun.cn/dvcp/h5/Empty.png">
|
<img class="emptyImg" src="https://cdn.cunwuyun.cn/dvcp/h5/Empty.png">
|
||||||
<div class="emptyText">{{description}}</div>
|
<div class="emptyText">{{ description }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name:"emptyData",
|
name: "AiEmpty",
|
||||||
props:{
|
props: {
|
||||||
description:{
|
description: {
|
||||||
default:'暂无相关信息',
|
default: '暂无相关信息',
|
||||||
type:String
|
type: String
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.emptyWrap {
|
.emptyWrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
.emptyImg{
|
|
||||||
width: 400rpx;
|
.emptyImg {
|
||||||
height: 240rpx;
|
width: 400 rpx;
|
||||||
margin-top: 112px;
|
height: 240 rpx;
|
||||||
}
|
margin-top: 112px;
|
||||||
.emptyText{
|
}
|
||||||
font-size:29rpx;
|
|
||||||
font-family:PingFangSC-Regular,PingFang SC;
|
.emptyText {
|
||||||
font-weight:400;
|
font-size: 29 rpx;
|
||||||
color:rgba(183,183,183,1);
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
}
|
font-weight: 400;
|
||||||
}
|
color: rgba(183, 183, 183, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user