按钮权限
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
<view class="" v-if="sysType == 2">
|
||||
<button type="primary" @tap="newlyAddedCases">新增案件</button>
|
||||
</view>
|
||||
<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index" :sysType='sysType'>
|
||||
<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
|
||||
:sysType='sysType'>
|
||||
</List>
|
||||
<view class="emptyBox" v-if="caseList.length == 0">
|
||||
<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
|
||||
@@ -15,7 +16,8 @@
|
||||
import List from './component/list.vue'
|
||||
import {
|
||||
respondentList,
|
||||
caseApplicationTj
|
||||
caseApplicationTj,
|
||||
queryCaseFlowInfo
|
||||
} from '../../api/handlecase/index.js'
|
||||
import LuanqingEmpty from "@/components/luanqing-empty.vue"
|
||||
export default {
|
||||
@@ -30,9 +32,23 @@
|
||||
pageSize: 10,
|
||||
sysType: null,
|
||||
total: null,
|
||||
buttonList: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/**查询按钮列表 */
|
||||
getButtonList() {
|
||||
queryCaseFlowInfo({
|
||||
pageNum: 1,
|
||||
pageSize: 100000
|
||||
}).then(res => {
|
||||
res.rows.forEach(item => {
|
||||
if (item.id != 11 && item.id != 17) {
|
||||
this.buttonList.push(item)
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
getList(parms) {
|
||||
if (this.sysType == 1) {
|
||||
respondentList(parms).then(res => {
|
||||
@@ -154,7 +170,7 @@
|
||||
this.getList(obj)
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
onLoad() {
|
||||
this.sysType = uni.getStorageSync('sysType');
|
||||
let obj = {}
|
||||
if (this.sysType == 1) {
|
||||
@@ -170,6 +186,7 @@
|
||||
}
|
||||
}
|
||||
this.getList(obj)
|
||||
this.getButtonList()
|
||||
},
|
||||
// onLoad() {
|
||||
// let obj = {
|
||||
|
||||
Reference in New Issue
Block a user