瀏覽代碼

feat: 修改判断逻辑

aXin-0810 2 年之前
父節點
當前提交
7d0c3d3edf
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      src/views/sales_policy/policy_list.vue

+ 7 - 7
src/views/sales_policy/policy_list.vue

@@ -193,7 +193,7 @@ export default {
       return (h, { row, index, column }) => {
         return (
           <div class="operation-btns">
-            {row.examineStatus == '保存' ? (
+            {row.examineStatus == 'SAVE' ? (
               <el-button
                 size="mini"
                 type="text"
@@ -220,7 +220,7 @@ export default {
               详情
             </el-button>
 
-            {row.examineStatus == '待审核' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
+            {row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
               <el-button
                 size="mini"
                 type="text"
@@ -237,7 +237,7 @@ export default {
               ''
             )}
 
-            {row.examineStatus == '保存' ? (
+            {row.examineStatus == 'SAVE' ? (
               <el-popconfirm
                 onOnConfirm={async () => {
                   this.handlesubmit(row)
@@ -252,7 +252,7 @@ export default {
               ''
             )}
 
-            {row.examineStatus == '审核通过' && row.status ? (
+            {row.examineStatus == 'OK' && row.status ? (
               <el-popconfirm
                 onOnConfirm={async () => {
                   this.handleNullify(row)
@@ -267,7 +267,7 @@ export default {
               ''
             )}
 
-            {row.examineStatus == '审核通过' ? (
+            {row.examineStatus == 'OK' ? (
               <el-popconfirm
                 onOnConfirm={async () => {
                   this.handleClone(row)
@@ -282,7 +282,7 @@ export default {
               ''
             )}
 
-            {row.examineStatus != '审核通过' ? (
+            {row.examineStatus != 'OK' ? (
               <el-popconfirm
                 onOnConfirm={async () => {
                   this.hanleDelete(row.id)
@@ -297,7 +297,7 @@ export default {
               ''
             )}
 
-            {row.examineStatus == '审核通过' ? (
+            {row.examineStatus == 'OK' ? (
               <el-popconfirm
                 onOnConfirm={async () => {
                   this.hanleAbandon(row.id)