优化
This commit is contained in:
parent
c86ae5228d
commit
ad3990048a
@ -3,7 +3,13 @@
|
|||||||
<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">
|
||||||
<el-button-group v-if="i.ground">
|
<el-button-group v-if="i.ground">
|
||||||
<el-button style="margin:0 4px;" :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 style="margin:0 4px;"
|
||||||
|
: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>
|
</el-button-group>
|
||||||
<div style="margin:0 4px;" v-if="info?info[i.permis]:formList.auth[i.permis]">
|
<div style="margin:0 4px;" v-if="info?info[i.permis]:formList.auth[i.permis]">
|
||||||
<el-button size="mini"
|
<el-button size="mini"
|
||||||
|
|||||||
@ -209,11 +209,7 @@ import draggable from 'vuedraggable'
|
|||||||
import {getDimensions} from '@/api/data'
|
import {getDimensions} from '@/api/data'
|
||||||
import { getByGroupId } from '@/api/workbench'
|
import { getByGroupId } from '@/api/workbench'
|
||||||
// console.log('Sortable: ', Sortable)
|
// console.log('Sortable: ', Sortable)
|
||||||
const info = {
|
// const info =
|
||||||
gradeGroupId: 1,
|
|
||||||
modelItems: [
|
|
||||||
]
|
|
||||||
}
|
|
||||||
export default {
|
export default {
|
||||||
props: ['templateForm'],
|
props: ['templateForm'],
|
||||||
data () {
|
data () {
|
||||||
@ -228,7 +224,11 @@ export default {
|
|||||||
maxCount: '',
|
maxCount: '',
|
||||||
weight: 0,
|
weight: 0,
|
||||||
// 整个info
|
// 整个info
|
||||||
info: info,
|
info: {
|
||||||
|
gradeGroupId: 1,
|
||||||
|
modelItems: [
|
||||||
|
]
|
||||||
|
},
|
||||||
form: {
|
form: {
|
||||||
weight: '',
|
weight: '',
|
||||||
maxCount: ''
|
maxCount: ''
|
||||||
@ -289,7 +289,11 @@ export default {
|
|||||||
computed: {},
|
computed: {},
|
||||||
beforeMount () {},
|
beforeMount () {},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.info = info
|
this.info = {
|
||||||
|
gradeGroupId: 1,
|
||||||
|
modelItems: [
|
||||||
|
]
|
||||||
|
}
|
||||||
const id = this.$route.query.id || ''
|
const id = this.$route.query.id || ''
|
||||||
this.id = id
|
this.id = id
|
||||||
if (id) {
|
if (id) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user