This commit is contained in:
zds
2022-12-05 12:03:33 +08:00
parent 65f6da2675
commit 49394c8c36
2 changed files with 21 additions and 12 deletions

View File

@@ -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()
},