|
@@ -64,7 +64,7 @@
|
|
<el-table :data="tableOrderData" style="width: 100%" border>
|
|
<el-table :data="tableOrderData" style="width: 100%" border>
|
|
<el-table-column align="center" v-for="item in tableColums" :key="item.key" :prop="item.key" :label="item.label" :width="item.widthsty">
|
|
<el-table-column align="center" v-for="item in tableColums" :key="item.key" :prop="item.key" :label="item.label" :width="item.widthsty">
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
- <span @click="handleRowClick(row, item.key)" :style="handleRowStyle(item.key)">{{ handleRowContent(row, item.key) }}</span>
|
|
|
|
|
|
+ <span @click="handleRowClick(row, item.key)" :style="handleRowStyle(row, item.key)">{{ handleRowContent(row, item.key) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" width="80">
|
|
<el-table-column label="操作" align="center" width="80">
|
|
@@ -232,7 +232,7 @@ export default {
|
|
// 表格三件套
|
|
// 表格三件套
|
|
// 表格点击了
|
|
// 表格点击了
|
|
handleRowClick(row, key) {
|
|
handleRowClick(row, key) {
|
|
- if (key == "CompanyName") {
|
|
|
|
|
|
+ if (key == "CompanyName" && row.CompanyId != 1) {
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
path: "/customDetail",
|
|
path: "/customDetail",
|
|
query: {
|
|
query: {
|
|
@@ -244,10 +244,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 表格样式
|
|
// 表格样式
|
|
- handleRowStyle(key) {
|
|
|
|
|
|
+ handleRowStyle(row, key) {
|
|
let styleColor = {
|
|
let styleColor = {
|
|
Title: "color: #409eff; cursor: pointer",
|
|
Title: "color: #409eff; cursor: pointer",
|
|
- CompanyName: "color: #409eff; cursor: pointer",
|
|
|
|
|
|
+ CompanyName: row.CompanyId == 1 ? "" : "color: #409eff; cursor: pointer",
|
|
SourceTitle: "color: #409eff; cursor: pointer",
|
|
SourceTitle: "color: #409eff; cursor: pointer",
|
|
};
|
|
};
|
|
return styleColor[key] ? styleColor[key] : "";
|
|
return styleColor[key] ? styleColor[key] : "";
|