增加是否可编辑

This commit is contained in:
aixianling
2024-06-04 17:42:28 +08:00
parent 00fb43620a
commit 1903a1bf7b

View File

@@ -1,3 +1,4 @@
<!--suppress ALL -->
<template>
<div class="AppServicePublic">
<AiTopFixed v-if="tabs.length">
@@ -54,7 +55,7 @@
<AiEmpty description="暂无数据" v-else></AiEmpty>
<AiFixedBtn>
<AiFixedBtn v-if="!readonly">
<div class="addBtn iconfont iconfont-iconfangda" @tap.stop="toAdd()"/>
</AiFixedBtn>
@@ -86,7 +87,8 @@ export default {
listName: '',
tabs: [],
tabIndex: 0,
categoryId: ''
categoryId: '',
readonly: false
}
},
computed: {
@@ -102,6 +104,7 @@ export default {
this.areaName = this.user.areaName
this.moduleId = o.moduleId
this.listName = o.listName
this.readonly = !!o.readonly
this.getType()
this.getList()
uni.$on('update', () => {
@@ -155,12 +158,12 @@ export default {
categoryId: this.categoryId
},
})
.then((res) => {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
}
})
.then((res) => {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
}
})
},
areaSelect(e) {