Przeglądaj źródła

【修改】样式

莫绍宝 3 lat temu
rodzic
commit
2273650a1f

+ 23 - 5
src/views/supply/apply/apply_list.vue

@@ -147,11 +147,29 @@
                   v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
                   <el-button slot="reference" type="text">弃审</el-button>
                 </el-popconfirm>
-                <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">编辑</el-button>
-                <el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审单</el-button>
-                <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
-                <el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.id)"  v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'">
-                  <el-button slot="reference" type="text">删除</el-button>
+                <el-button 
+                  type="text" 
+                  @click="toForm(scope.row)" 
+                  v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">
+                  编辑
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toExamine(scope.row)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">
+                  审单
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toDetail(scope.row)">
+                  详情
+                </el-button>
+                <el-popconfirm
+                  style="margin-left: 10px;" 
+                  title="确定删除吗?" 
+                  @onConfirm="handleDelete(scope.row.id)"  
+                  v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'">
+                  <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
                 </el-popconfirm>
               </template>
             </el-table-column>

+ 23 - 5
src/views/supply/apply/engin_list.vue

@@ -149,11 +149,29 @@
                   v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
                   <el-button slot="reference" type="text">弃审</el-button>
                 </el-popconfirm>
-                <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">编辑</el-button>
-                <el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审单</el-button>
-                <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
-                <el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.id)" v-if="$checkBtnRole('del', $route.meta.roles)">
-                  <el-button slot="reference" type="text">删除</el-button>
+                <el-button 
+                  type="text" 
+                  @click="toForm(scope.row)" 
+                  v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">
+                  编辑
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toExamine(scope.row)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">
+                  审单
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toDetail(scope.row)">
+                  详情
+                </el-button>
+                <el-popconfirm
+                  style="margin-left: 10px;" 
+                  title="确定删除吗?" 
+                  @onConfirm="handleDelete(scope.row.id)" 
+                  v-if="$checkBtnRole('del', $route.meta.roles)">
+                  <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
                 </el-popconfirm>
               </template>
             </el-table-column>

+ 24 - 5
src/views/supply/engin/commerce_list.vue

@@ -165,16 +165,35 @@
                   v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
                   <el-button slot="reference" type="text">弃审</el-button>
                 </el-popconfirm>
-                <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">编辑</el-button>
-                <el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审批</el-button>
-                <el-button type="text" @click="toReturn(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles)">退订</el-button>
-                <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
+                <el-button 
+                  type="text" 
+                  @click="toForm(scope.row)"
+                  v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">
+                  编辑
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toExamine(scope.row)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">
+                  审批
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toReturn(scope.row)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles)">
+                  退订
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toDetail(scope.row)">
+                  详情
+                </el-button>
                 <el-popconfirm
                   style="margin-left: 10px;" 
                   title="确定删除吗?"
                   @onConfirm="handleDelete(scope.row.parentId)" 
                   v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'">
-                  <el-button slot="reference" type="text">删除</el-button>
+                  <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
                 </el-popconfirm>
               </template>
             </el-table-column>

+ 18 - 4
src/views/supply/engin/engin_list.vue

@@ -132,15 +132,29 @@
                   v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
                   <el-button slot="reference" type="text">撤回</el-button>
                 </el-popconfirm>
-                <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">编辑</el-button>
-                <el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审批</el-button>
-                <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
+                <el-button 
+                  type="text" 
+                  @click="toForm(scope.row)" 
+                  v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">
+                  编辑
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toExamine(scope.row)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">
+                  审批
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toDetail(scope.row)">
+                  详情
+                </el-button>
                 <el-popconfirm 
                   style="margin-left: 10px;" 
                   title="确定删除吗?" 
                   @onConfirm="handleDelete(scope.row.enginInfoId)" 
                   v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'">
-                  <el-button slot="reference" type="text">删除</el-button>
+                  <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
                 </el-popconfirm>
               </template>
             </el-table-column>

+ 24 - 5
src/views/supply/engin/home_list.vue

@@ -165,16 +165,35 @@
                   v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
                   <el-button slot="reference" type="text">弃审</el-button>
                 </el-popconfirm>
-                <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">编辑</el-button>
-                <el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审批</el-button>
-                <el-button type="text" @click="toReturn(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus !== 'FAIL'">退订</el-button>
-                <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
+                <el-button 
+                  type="text" 
+                  @click="toForm(scope.row)" 
+                  v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')">
+                  编辑
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toExamine(scope.row)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">
+                  审批
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toReturn(scope.row)" 
+                  v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus !== 'FAIL'">
+                  退订
+                </el-button>
+                <el-button 
+                  type="text" 
+                  @click="toDetail(scope.row)">
+                  详情
+                </el-button>
                 <el-popconfirm 
                   style="margin-left: 10px;" 
                   title="确定删除吗?" 
                   @onConfirm="handleDelete(scope.row.parentId)" 
                   v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'">
-                  <el-button slot="reference" type="text">删除</el-button>
+                  <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
                 </el-popconfirm>
               </template>
             </el-table-column>