|
@@ -52,16 +52,15 @@
|
|
|
<!-- 结果 -->
|
|
|
<p class="fr">
|
|
|
结果:
|
|
|
-
|
|
|
- <span class="resultComm" v-if="item.result == 0" style="background:rgba(52, 123, 152,.5);">
|
|
|
+ <span class="resultComm" v-if="item.result == 0" style="background:rgba(52, 123, 152,.4);">
|
|
|
未提交
|
|
|
</span>
|
|
|
|
|
|
- <span class="resultComm" v-else-if="item.result == 1" style="background:rgb(252, 96, 10,.5);">
|
|
|
+ <span class="resultComm" v-else-if="item.result == 1" style="background:rgb(252, 96, 10,.4);">
|
|
|
处理中
|
|
|
</span>
|
|
|
|
|
|
- <span class="resultComm" v-else-if="item.result == 2" style="background:rgb(9, 40, 52,.5);">
|
|
|
+ <span class="resultComm" v-else-if="item.result == 2" style="background:rgb(9, 40, 52,.4);">
|
|
|
通过
|
|
|
</span>
|
|
|
|
|
@@ -70,101 +69,67 @@
|
|
|
</span>
|
|
|
</p>
|
|
|
|
|
|
- <a-divider></a-divider>
|
|
|
+ <a-divider dashed></a-divider>
|
|
|
|
|
|
<!-- 操作 -->
|
|
|
<div class="operation">
|
|
|
- <div class="btns">
|
|
|
- <!-- 结果 0 -->
|
|
|
- <span v-if="item.status == 0">
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="apply(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);color:#00A0E9;"
|
|
|
- >
|
|
|
- 提交申请
|
|
|
- </a-button>
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="edit(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:orange;"
|
|
|
- >
|
|
|
- 编辑
|
|
|
+ <!-- 结果 0 -->
|
|
|
+ <span v-if="item.status == 0">
|
|
|
+ <a-button ghost @click="apply(item)" style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#00A0E9;">
|
|
|
+ 提交申请
|
|
|
+ </a-button>
|
|
|
+ <a-button ghost @click="edit(item)" style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:orange;">
|
|
|
+ 编辑
|
|
|
+ </a-button>
|
|
|
+
|
|
|
+ <a-popconfirm title="确定删除吗?" placement="left" @confirm="() => remove(item)">
|
|
|
+ <a-button ghost style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#4e73b9;">
|
|
|
+ 删除
|
|
|
</a-button>
|
|
|
+ </a-popconfirm>
|
|
|
+ </span>
|
|
|
|
|
|
- <a-popconfirm title="确定删除吗?" placement="left" @confirm="() => remove(item)">
|
|
|
- <a-button class="itemBtn" ghost style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#4e73b9;">
|
|
|
- 删除
|
|
|
- </a-button>
|
|
|
- </a-popconfirm>
|
|
|
- </span>
|
|
|
-
|
|
|
- <!-- 处理中 渲染的按钮 -->
|
|
|
- <span v-if="item.status == 1" class="ingBtns">
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="cancel(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#8000ff;"
|
|
|
- >
|
|
|
- 撤回
|
|
|
- </a-button>
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="history(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:blue;"
|
|
|
- >
|
|
|
- 查看进度
|
|
|
- </a-button>
|
|
|
+ <!-- 处理中 渲染的按钮 -->
|
|
|
+ <span v-if="item.status == 1" class="ifBtn">
|
|
|
+ <a-button ghost @click="cancel(item)" style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#A0522D;">
|
|
|
+ 撤回
|
|
|
+ </a-button>
|
|
|
+ <a-button
|
|
|
+ ghost
|
|
|
+ @click="history(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#696969;"
|
|
|
+ >
|
|
|
+ 查看进度
|
|
|
+ </a-button>
|
|
|
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="detail(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#999;"
|
|
|
- >
|
|
|
- 表单数据
|
|
|
- </a-button>
|
|
|
- </span>
|
|
|
-
|
|
|
- <!-- 驳回 状态 渲染的按钮 -->
|
|
|
- <span v-if="item.status == 2 || item.status == 3" class="overBtns">
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="apply(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128);color:#00A0E9;"
|
|
|
- >
|
|
|
- 重新申请
|
|
|
- </a-button>
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="edit(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128);color:#000000;"
|
|
|
- >
|
|
|
- 编辑
|
|
|
- </a-button>
|
|
|
+ <a-button ghost @click="detail(item)" style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#4682B4;">
|
|
|
+ 表单数据
|
|
|
+ </a-button>
|
|
|
+ </span>
|
|
|
|
|
|
- <a-button
|
|
|
- class="itemBtn"
|
|
|
- ghost
|
|
|
- @click="history(item)"
|
|
|
- style="box-shadow: 8px 8px 8px rgba(128, 128, 128);color:blue;"
|
|
|
- >
|
|
|
- 审批历史
|
|
|
- </a-button>
|
|
|
+ <!-- 驳回 状态 渲染的按钮 -->
|
|
|
+ <span v-if="item.status == 2 || item.status == 3" class="ifBtn">
|
|
|
+ <a-button ghost @click="apply(item)" style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#008B8B;">
|
|
|
+ 重新申请
|
|
|
+ </a-button>
|
|
|
+ <a-button ghost @click="edit(item)" style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#006400;">
|
|
|
+ 编辑
|
|
|
+ </a-button>
|
|
|
+
|
|
|
+ <a-button
|
|
|
+ ghost
|
|
|
+ @click="history(item)"
|
|
|
+ style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#696969;"
|
|
|
+ >
|
|
|
+ 审批历史
|
|
|
+ </a-button>
|
|
|
|
|
|
- <a-popconfirm title="确定删除吗?" placement="left" @confirm="() => remove(item)">
|
|
|
- <a-button class="itemBtn" ghost style="box-shadow: 8px 8px 8px rgba(128, 128, 128);color:red;">
|
|
|
- 删除
|
|
|
- </a-button>
|
|
|
- </a-popconfirm>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
+ <a-popconfirm title="确定删除吗?" placement="left" @confirm="() => remove(item)">
|
|
|
+ <a-button ghost style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);color:#DC143C;">
|
|
|
+ 删除
|
|
|
+ </a-button>
|
|
|
+ </a-popconfirm>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
|
|
@@ -706,4 +671,33 @@ export default {
|
|
|
<style lang="less">
|
|
|
@import '~@assets/less/common.less';
|
|
|
</style>
|
|
|
-<style lang="less" scoped></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+// 状态
|
|
|
+.statusComm {
|
|
|
+ padding: 3px 8px;
|
|
|
+ color: #092834;
|
|
|
+ letter-spacing: 1px;
|
|
|
+}
|
|
|
+
|
|
|
+// 结果
|
|
|
+.resultComm {
|
|
|
+ padding: 4px 10px;
|
|
|
+ color: black;
|
|
|
+ letter-spacing: 1px;
|
|
|
+}
|
|
|
+
|
|
|
+// 操作按钮
|
|
|
+.ifBtn {
|
|
|
+ display: flex;
|
|
|
+ flex-flow: row wrap;
|
|
|
+ justify-content: space-between;
|
|
|
+ /deep/.ant-btn {
|
|
|
+ padding: 0;
|
|
|
+ padding: 0 10px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ border-radius: 999em;
|
|
|
+ border: none;
|
|
|
+ // border: 1px solid rgba(106, 105, 105, 0.1);
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|