bding 5 місяців тому
батько
коміт
89cc47e6a3

+ 4 - 4
src/views/contract_manage/paymentRecords.vue

@@ -64,7 +64,7 @@
       <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">
           <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>
         </el-table-column>
         <el-table-column label="操作" align="center" width="80">
@@ -232,7 +232,7 @@ export default {
     // 表格三件套
     // 表格点击了
     handleRowClick(row, key) {
-      if (key == "CompanyName") {
+      if (key == "CompanyName" && row.CompanyId != 1) {
         this.$router.replace({
           path: "/customDetail",
           query: {
@@ -244,10 +244,10 @@ export default {
       }
     },
     // 表格样式
-    handleRowStyle(key) {
+    handleRowStyle(row, key) {
       let styleColor = {
         Title: "color: #409eff; cursor: pointer",
-        CompanyName: "color: #409eff; cursor: pointer",
+        CompanyName: row.CompanyId == 1 ? "" : "color: #409eff; cursor: pointer",
         SourceTitle: "color: #409eff; cursor: pointer",
       };
       return styleColor[key] ? styleColor[key] : "";

+ 4 - 4
src/views/contract_manage/refundRecord.vue

@@ -61,7 +61,7 @@
       <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">
           <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>
         </el-table-column>
         <el-table-column label="操作" align="center" width="80">
@@ -219,7 +219,7 @@ export default {
     // 表格三件套
     // 表格点击了
     handleRowClick(row, key) {
-      if (key == "CompanyName") {
+      if (key == "CompanyName" && row.CompanyId != 1) {
         this.$router.replace({
           path: "/customDetail",
           query: {
@@ -231,10 +231,10 @@ export default {
       }
     },
     // 表格样式
-    handleRowStyle(key) {
+    handleRowStyle(row, key) {
       let styleColor = {
         Title: "color: #409eff; cursor: pointer",
-        CompanyName: "color: #409eff; cursor: pointer",
+        CompanyName: row.CompanyId == 1 ? "" : "color: #409eff; cursor: pointer",
         SourceTitle: "color: #409eff; cursor: pointer",
       };
       return styleColor[key] ? styleColor[key] : "";