按钮权限

This commit is contained in:
hanchaobo
2024-02-06 15:40:38 +08:00
3 changed files with 114 additions and 66 deletions
+20
View File
@@ -41,6 +41,7 @@
</view>
</view>
<view class="btn" v-if="sysType == 2">
<button class="btnItem" type="primary" size="mini" @tap="modify">修改</button>
<!-- <button class="btnItem" type="primary" size="mini" @tap="clickPay">申请人缴费</button>
<button class="btnItem" type="primary" size="mini" @tap="caseDetail">选择调解员</button> -->
<button class="btnItem" type="primary" @tap="clickType(item.id)" size="mini" v-for="(item) in buttonList"
@@ -146,6 +147,25 @@
this.$emit("getList");
})
},
// 修改
modify(){
uni.redirectTo({
url: `/pages/handlecase/component/newlyAddedCase?id=${this.defalutVal.id}`,
})
},
/**查询按钮列表 */
getButtonList() {
queryCaseFlowInfo({
pageNum: 1,
pageSize: 100000
}).then(res => {
res.rows.forEach(item => {
if (item.id != 11 && item.id != 17) {
this.buttonList.push(item)
}
});
})
},
},
created() {
// this.getButtonList()