|
@@ -74,7 +74,7 @@
|
|
|
<el-table-column
|
|
|
class-name="action-column"
|
|
|
label="操作"
|
|
|
- width="160px"
|
|
|
+ width="120"
|
|
|
fixed="right"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
@@ -87,6 +87,13 @@
|
|
|
@click="toConfig(scope.row)"
|
|
|
>基础配置</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('link', 'window') && scope.row.publishStatus"
|
|
|
+ class="btn-primary"
|
|
|
+ type="text"
|
|
|
+ @click="toView(scope.row)"
|
|
|
+ >查看配置</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -114,6 +121,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { dataInitList } from "../api";
|
|
|
+import { mapMutations } from "vuex";
|
|
|
import ModifyBaseConfig from "../components/ModifyBaseConfig.vue";
|
|
|
|
|
|
export default {
|
|
@@ -135,6 +143,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapMutations("baseConfigs", ["setViewMode"]),
|
|
|
async getList() {
|
|
|
if (!this.checkPrivilege("list", "list")) return;
|
|
|
|
|
@@ -152,8 +161,13 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
toConfig(row) {
|
|
|
- console.log(row);
|
|
|
this.curRow = row;
|
|
|
+ this.setViewMode(false);
|
|
|
+ this.$refs.ModifyBaseConfig.open();
|
|
|
+ },
|
|
|
+ toView(row) {
|
|
|
+ this.curRow = row;
|
|
|
+ this.setViewMode(true);
|
|
|
this.$refs.ModifyBaseConfig.open();
|
|
|
},
|
|
|
},
|