This commit is contained in:
xiongchengqiang 2020-12-17 16:24:02 +08:00
parent 6b5396d3cd
commit 5e17c1c4bb
2 changed files with 25 additions and 18 deletions

View File

@ -39,13 +39,15 @@ import {
Avatar, Avatar,
Progress, Progress,
Drawer, Drawer,
Slider Slider,
ButtonGroup
} from 'element-ui' } from 'element-ui'
Vue.prototype.$loading = Loading Vue.prototype.$loading = Loading
Vue.prototype.$message = Message Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$alert = MessageBox.alert Vue.prototype.$alert = MessageBox.alert
Vue.use(ButtonGroup)
Vue.use(Slider) Vue.use(Slider)
Vue.use(Drawer) Vue.use(Drawer)
Vue.use(Progress) Vue.use(Progress)

View File

@ -2,11 +2,11 @@
<template> <template>
<div> <div>
<div style="display:inline-block;" v-for="(i,index) in authList.filter(i=>i.info && !i.isManage)" :key="index"> <div style="display:inline-block;" v-for="(i,index) in authList.filter(i=>i.info && !i.isManage)" :key="index">
<div style="margin:0 4px;" <el-button-group v-if="i.ground">
v-if="info?info[i.permis]:formList.auth[i.permis]" <el-button :disabled='formList[i.permis]===1' @click="k.click" v-for="(k,indexK) in i.list.filter(n=>info?info[i.permis]:formList.auth[i.permis])" :key="indexK" size="mini" :type="k.type" >{{k.name}}</el-button>
> </el-button-group>
<div style="margin:0 4px;" v-if="info?info[i.permis]:formList.auth[i.permis]">
<el-button size="mini" <el-button size="mini"
:disabled='formList[i.permis]===1' :disabled='formList[i.permis]===1'
@click="i.click" @click="i.click"
:type="i.type">{{i.name}}</el-button> :type="i.type">{{i.name}}</el-button>
@ -198,6 +198,23 @@ export default {
data () { data () {
return { return {
authList: [ authList: [
{
info: !this.info,
ground: true,
list: [{
name: '同 意',
type: 'primary',
info: !this.info,
permis: 'keyCheck',
click: this.handleTongyi
}, {
name: '驳 回',
type: '',
info: !this.info,
permis: 'reject',
click: this.handleBohui
}]
},
{ {
name: '催办', name: '催办',
plain: true, plain: true,
@ -238,18 +255,6 @@ export default {
click: this.handleZhiding click: this.handleZhiding
}, },
{ {
name: '同 意',
type: 'primary',
info: !this.info,
permis: 'keyCheck',
click: this.handleTongyi
}, {
name: '驳 回',
type: '',
info: !this.info,
permis: 'reject',
click: this.handleBohui
}, {
name: '调整目标', name: '调整目标',
type: '', type: '',
info: !this.info, info: !this.info,