xiaodai2022 %!s(int64=2) %!d(string=hai) anos
pai
achega
864c9ca1c8
Modificáronse 2 ficheiros con 15 adicións e 0 borrados
  1. 7 0
      src/views/sellOut/project/columns.js
  2. 8 0
      src/views/sellOut/project/index.vue

+ 7 - 0
src/views/sellOut/project/columns.js

@@ -11,6 +11,13 @@ export default [
     label: "项目名称",
     'min-width': "120px",
   },
+  {
+    prop: "low_rate",
+    label: "项目毛利率",
+    _slot_: "low_rate",
+    'width': "85px",
+  },
+  
   {
     prop: "status",
     label: "状态",

+ 8 - 0
src/views/sellOut/project/index.vue

@@ -139,6 +139,14 @@
             </el-row>
           </div>
         </template>
+        <template #low_rate="{ scope }">
+          <el-tag
+            v-if="scope.row"
+            :type="parseInt(scope.row.low_rate) == 0 ? 'danger' : ''"
+            :size="tablebtnSize"
+            v-text="parseInt(scope.row.low_rate) == 0 ? '未设置' : '已设置'"
+          ></el-tag>
+        </template>
         <template #status="{ scope }">
           <el-tag
             :size="tablebtnSize"