优化
This commit is contained in:
@@ -49,8 +49,12 @@
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="100" align="center" fixed />
|
||||
<template v-for="(col,index) in cols">
|
||||
<el-table-column v-if="col.prop !== '1'" :prop="col.prop" :label="col.label" width="120px" />
|
||||
<el-table-column v-if="col.prop === '1'" :prop="col.prop" :label="col.label" width="120px" fixed />
|
||||
<el-table-column v-if="col.prop !== 'first'" :prop="col.prop" :label="col.label" width="120px" />
|
||||
<el-table-column v-if="col.prop === 'first'" :prop="col.prop" :label="col.label" width="120px" fixed>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="warning" @click="open2()">{{ scope.row.first }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
</el-table>
|
||||
|
||||
@@ -160,6 +164,8 @@ export default {
|
||||
})
|
||||
return true
|
||||
},
|
||||
open2() {
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user