liyongli 3 months ago
parent
commit
443f90754d
1 changed files with 25 additions and 19 deletions
  1. 25 19
      src/views/OriginalityPage.vue

+ 25 - 19
src/views/OriginalityPage.vue

@@ -57,29 +57,35 @@
             <el-button link type="primary" size="small">删除</el-button>
           </template>
         </el-popconfirm>
+        <el-button link type="primary" size="small" @click="() => creatEditPlan(scope.row)">
+          修改
+        </el-button>
         <div v-if="scope.row.status !== 7" style="display: inline-block">
-          <el-popconfirm
-            title="确定上线该创意吗?"
+          <div
+            style="margin-left: 8px; display: inline-block"
             v-if="scope.row.publishStatus == 6 || scope.row.publishStatus == 0"
-            @confirm="publishAsTreeFunc(scope.row.creativeId)"
           >
-            <template #reference>
-              <el-button link type="primary" size="small">上线</el-button>
-            </template>
-          </el-popconfirm>
-          <el-popconfirm
-            title="确定下线该创意吗?"
-            v-if="scope.row.publishStatus == 10"
-            @confirm="changeStatus(scope.row.creativeId, 6, '下线成功')"
-          >
-            <template #reference>
-              <el-button link type="primary" size="small">下线</el-button>
-            </template>
-          </el-popconfirm>
+            <el-popconfirm
+              title="确定上线该创意吗?"
+              style="margin-left: 8px; display: inline-block"
+              @confirm="publishAsTreeFunc(scope.row.creativeId)"
+            >
+              <template #reference>
+                <el-button link type="primary" size="small">上线</el-button>
+              </template>
+            </el-popconfirm>
+          </div>
+          <div style="margin-left: 8px; display: inline-block" v-if="scope.row.publishStatus == 10">
+            <el-popconfirm
+              title="确定下线该创意吗?"
+              @confirm="changeStatus(scope.row.creativeId, 6, '下线成功')"
+            >
+              <template #reference>
+                <el-button link type="primary" size="small">下线</el-button>
+              </template>
+            </el-popconfirm>
+          </div>
         </div>
-        <el-button link type="primary" size="small" @click="() => creatEditPlan(scope.row)">
-          修改
-        </el-button>
       </template>
     </el-table-column>
   </el-table>