|
@@ -16,22 +16,25 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="set-process-box">
|
|
|
- <div>
|
|
|
- <span class="set-process-title">{{nowTitle.name}}</span>
|
|
|
+ <div class="set-process-title">
|
|
|
+ <div class="icon-font">
|
|
|
+ <i class="el-icon-s-shop"></i>
|
|
|
+ </div>
|
|
|
+ <span class="icon-label">{{nowTitle.name}}</span>
|
|
|
</div>
|
|
|
- <div class="set-process-box">
|
|
|
- <process-set-item :list="nowTitle.children" :type="operationType" :roleType="roleType"
|
|
|
- v-if="nowTitle.children.length > 0">
|
|
|
- </process-set-item>
|
|
|
- <div v-else>
|
|
|
- <div v-if="(nowTitle.status === 1 || nowTitle.status === 4) && roleType === 2">
|
|
|
- <el-button size="mini" type="primary" @click="updateStatus(nowTitle,3)">通过</el-button>
|
|
|
- </div>
|
|
|
- <div class="process-set-insert" @click="edits('insert', nowTitle ? nowTitle.id : -1, nowTitle)"
|
|
|
- v-if="operationType === 'edit'">
|
|
|
- 新增
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="set-process-box">
|
|
|
+ <process-set-item :list="nowTitle.children" :type="operationType" :roleType="roleType"
|
|
|
+ v-if="nowTitle.children.length > 0">
|
|
|
+ </process-set-item>
|
|
|
+ <div v-else>
|
|
|
+ <div v-if="(nowTitle.status === 1 || nowTitle.status === 4) && roleType === 2">
|
|
|
+ <el-button size="mini" type="primary" @click="updateStatus(nowTitle,3)">通过</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="process-set-insert" @click="edits('insert', nowTitle ? nowTitle.id : -1, nowTitle)"
|
|
|
+ v-if="operationType === 'edit'">
|
|
|
+ 新增
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog :close-on-click-modal="false" :title="isUpdate?'编辑':'新增'" :visible.sync="visible" width="800px"
|
|
@@ -273,22 +276,44 @@
|
|
|
<style lang="scss">
|
|
|
.process-set {
|
|
|
padding: 15px;
|
|
|
+ width: 100%;
|
|
|
|
|
|
.set-process-box {
|
|
|
- padding-top: 15px;
|
|
|
+ padding-top: 10px;
|
|
|
}
|
|
|
|
|
|
.set-process-title {
|
|
|
padding: 5px 10px;
|
|
|
- background: $--color-primary;
|
|
|
- color: #fff;
|
|
|
border-radius: 4px;
|
|
|
- margin-bottom: 15px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1px solid $--border-color-light;
|
|
|
+
|
|
|
+ .icon-font {
|
|
|
+ background: $--color-primary;
|
|
|
+ color: #fff;
|
|
|
+ width: 30px;
|
|
|
+ height: 30px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 22px;
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .icon-label {
|
|
|
+ font-weight: bold;
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.process-top {
|
|
|
display: flex;
|
|
|
white-space: nowrap;
|
|
|
+ width: 100%;
|
|
|
+ overflow-x: auto;
|
|
|
+ padding-bottom: 10px;
|
|
|
|
|
|
.top-item {
|
|
|
padding: 0 15px;
|
|
@@ -387,15 +412,12 @@
|
|
|
}
|
|
|
|
|
|
&.model {
|
|
|
- width: 100%;
|
|
|
height: 100%;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
&.product {
|
|
|
- width: 100%;
|
|
|
min-height: 300px;
|
|
|
- overflow-x: auto;
|
|
|
}
|
|
|
|
|
|
.process-set-item {
|
|
@@ -491,55 +513,19 @@
|
|
|
}
|
|
|
|
|
|
&.info {
|
|
|
- background: rgba(144, 157, 143, 0.4);
|
|
|
-
|
|
|
- .process-set-state-1 {
|
|
|
- background: rgba(144, 157, 143, 1);
|
|
|
- }
|
|
|
-
|
|
|
- .process-set-state-2 {
|
|
|
- background: rgba(144, 157, 143, 0.6);
|
|
|
- }
|
|
|
+ background: rgba(144, 157, 143, 0.6);
|
|
|
}
|
|
|
|
|
|
&.waiting {
|
|
|
- background: rgba(255, 125, 0, 0.4);
|
|
|
-
|
|
|
- .process-set-state-1 {
|
|
|
- background: rgba(255, 125, 0, 1);
|
|
|
- }
|
|
|
-
|
|
|
- .process-set-state-2 {
|
|
|
- background: rgba(255, 125, 0, 0.6);
|
|
|
- }
|
|
|
-
|
|
|
- .el-icon-success {
|
|
|
- color: rgba(255, 125, 0, 1);
|
|
|
- }
|
|
|
+ background: rgba(255, 125, 0, 0.6);
|
|
|
}
|
|
|
|
|
|
&.success {
|
|
|
- background: rgba(0, 180, 42, 0.4);
|
|
|
-
|
|
|
- .process-set-state-1 {
|
|
|
- background: rgba(0, 180, 42, 1);
|
|
|
- }
|
|
|
-
|
|
|
- .process-set-state-2 {
|
|
|
- background: rgba(0, 180, 42, 0.6);
|
|
|
- }
|
|
|
+ background: rgba(0, 180, 42, 0.6);
|
|
|
}
|
|
|
|
|
|
&.error {
|
|
|
- background: rgba(245, 63, 63, 0.4);
|
|
|
-
|
|
|
- .process-set-state-1 {
|
|
|
- background: rgba(245, 63, 63, 1);
|
|
|
- }
|
|
|
-
|
|
|
- .process-set-state-2 {
|
|
|
- background: rgba(245, 63, 63, 0.6);
|
|
|
- }
|
|
|
+ background: rgba(245, 63, 63, 0.6);
|
|
|
}
|
|
|
|
|
|
&.state-last {
|