|
@@ -67,27 +67,29 @@
|
|
|
prop="name"
|
|
|
align="center"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <a class="a_link" @click="classificaName(scope.row)" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
|
|
|
+ {{ scope.row.name }}
|
|
|
+ </a>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="链接地址"
|
|
|
prop="linkUrl"
|
|
|
align="center"
|
|
|
min-width="180"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="禁用/启用"
|
|
|
- prop="status"
|
|
|
- align="center"
|
|
|
- >
|
|
|
+ <el-table-column label="禁用/启用" prop="status" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <el-switch
|
|
|
- v-model="scope.row.status"
|
|
|
- active-color="#17A8FF"
|
|
|
- inactive-color="#AFAFAF"
|
|
|
- @change="switchChange($event, scope.row)"
|
|
|
- >
|
|
|
- </el-switch>
|
|
|
+ <el-switch
|
|
|
+ v-model="scope.row.status"
|
|
|
+ active-color="#17A8FF"
|
|
|
+ inactive-color="#AFAFAF"
|
|
|
+ @change="switchChange($event, scope.row)"
|
|
|
+ >
|
|
|
+ </el-switch>
|
|
|
</div> </template
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
@@ -164,6 +166,13 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|
|
|
+ * @method 点击名称跳转文件管理
|
|
|
+ **/
|
|
|
+ classificaName(val) {
|
|
|
+ this.$store.commit('getClassificName', val)
|
|
|
+ this.$router.push('/fileManagement')
|
|
|
+ },
|
|
|
+ /**
|
|
|
* @method 重置
|
|
|
* **/
|
|
|
resetForm(formName) {
|