lct
Your Name
2022-08-09 8b7c2fe49917d670eb2a03cecda23ea50961c494
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<template>
    <div class="system-edit-user-container">
        <el-dialog title="应急演练计划--修改审批进度" v-model="isShowDialog" width="769px" draggable :fullscreen="full">
            <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
            <!-- <img class="process-status-img" src=""> -->
            <el-tabs type="border-card">
                <el-tab-pane label="流转记录">
                    <el-card class="box-card" shadow="hover">
                        <template #header>
                            <div class="card-header">
                                <span>流转记录</span>
                            </div>
                        </template>
                        <div>
                            <el-steps :active="2">
                                <el-step title="开始" description="胡海涛,2022-07-09 20:41:50" />
                                <el-step title="一级审批" description="管理员,2022-07-09 20:41:50" />
                            </el-steps>
                        </div>
                        <el-table :data="tableData" stripe style="width: 100%">
                            <el-table-column prop="date" label="执行环节" width="120" />
                            <el-table-column prop="name" label="执行人" width="120" />
                            <el-table-column prop="address" label="开始时间" width="100" />
                            <el-table-column prop="address" label="结束时间" width="100" />
                            <el-table-column prop="address" label="办理状态" width="100" />
                            <el-table-column prop="address" label="审批意见" width="100" />
                            <el-table-column prop="address" label="任务历时" width="100" />
                        </el-table>
                    </el-card>
                </el-tab-pane>
                <el-tab-pane label="流程信息">
                    <el-card class="box-card" shadow="hover">
                        <template #header>
                            <div class="card-header">
                                <span>流程信息</span>
                            </div>
                        </template>
                        <div>
                            <el-timeline>
                                <el-timeline-item timestamp="2018/4/12" placement="top" color="rgb(63, 158, 255)">
                                    <el-card>
                                        <h4 style="margin: 10px 0; padding-bottom: 10px">一级审批</h4>
                                        <el-row>
                                            <el-col class="tip" :span="22" :offset="1">
                                                <div class="item">
                                                    <span class="label">审批人:</span>
                                                    <span class="value">管理员</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">办理状态:</span>
                                                    <span class="value">
                                                        <!--                             <el-tag-->
                                                        <!--                                 v-for="item in items"-->
                                                        <!--                                 :key="item.label"-->
                                                        <!--                                 :type="item.type"-->
                                                        <!--                                 class="mx-1"-->
                                                        <!--                                 effect="dark"-->
                                                        <!--                             >-->
                                                        <!--                               {{ item.label }}-->
                                                        <!--                             </el-tag>-->
                                                        <p class="text">等待审核</p>
                                                    </span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">审批意见:</span>
                                                    <span class="value">等待审核</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">开始时间:</span>
                                                    <span class="value">2022-07-09 20:41:50</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">结束时间:</span>
                                                    <span class="value">2022-07-09 20:41:50</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">用时:</span>
                                                    <span class="value">0秒</span>
                                                </div>
                                            </el-col>
                                        </el-row>
                                    </el-card>
                                </el-timeline-item>
                                <el-timeline-item timestamp="2018/4/3" placement="top" color="rgb(63, 158, 255)">
                                    <el-card>
                                        <h4>开始</h4>
                                        <el-row>
                                            <el-col class="tip" :span="22" :offset="1">
                                                <div class="item">
                                                    <span class="label">审批人:</span>
                                                    <span class="value">胡海涛</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">办理状态:</span>
                                                    <span class="value">
                                                        <p class="text">开始</p>
                                                    </span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">审批意见:</span>
                                                    <span class="value">等待审核</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">开始时间:</span>
                                                    <span class="value">2022-07-09 20:41:50</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">结束时间:</span>
                                                    <span class="value">2022-07-09 20:41:50</span>
                                                </div>
                                                <div class="item">
                                                    <span class="label">用时:</span>
                                                    <span class="value">0秒</span>
                                                </div>
                                            </el-col>
                                        </el-row>
                                    </el-card>
                                </el-timeline-item>
                            </el-timeline>
                        </div>
                    </el-card>
                </el-tab-pane>
                <el-tab-pane label="流程图">
                    <el-card class="box-card" shadow="hover">
                        <template #header>
                            <div class="card-header">
                                <span>流程图</span>
                            </div>
                        </template>
                        <div></div>
                    </el-card>
                </el-tab-pane>
            </el-tabs>
        </el-dialog>
        <RegionsDialog ref="Shows" />
        <UserCheckbox ref="userRef" />
    </div>
</template>
 
<script lang="ts">
import { ref, defineComponent } from 'vue';
 
import type { TagProps } from 'element-plus';
 
import { Search, FullScreen } from '@element-plus/icons-vue';
import UserCheckbox from '/@/components/userCheckbox/index.vue';
import RegionsDialog from '/@/views/contingencyManagement/emergencyDrill/releaseOfDrillPlan/component/regionsDialog.vue';
 
export default defineComponent({
    name: 'openAdd',
    components: {
        RegionsDialog,
        UserCheckbox,
    },
    setup() {
        const isShowDialog = ref(false);
        // 打开弹窗
        const openDialog = () => {
            // state.ruleForm = row;
            isShowDialog.value = true;
        };
        // 关闭弹窗
        const closeDialog = () => {
            isShowDialog.value = false;
        };
        const tableData = [
            {
                date: '2016-05-03',
                name: 'Tom',
                address: '2022-07-09 20:41:50',
            },
            {
                date: '2016-05-02',
                name: 'Tom',
                address: '2022-07-09 20:41:50',
            },
            {
                date: '2016-05-04',
                name: 'Tom',
                address: '2022-07-09 20:41:50',
            },
            {
                date: '2016-05-01',
                name: 'Tom',
                address: '2022-07-09 20:41:50',
            },
        ];
 
        type Item = { type: TagProps['type']; label: string };
 
        const items = ref<Array<Item>>([{ type: '', label: '等待审核' }]);
        //全屏
        const full = ref(false);
        const toggleFullscreen = () => {
            if (full.value == false) {
                full.value = true;
            } else {
                full.value = false;
            }
        };
        return {
            openDialog,
            closeDialog,
            isShowDialog,
            Search,
            tableData,
            items,
            toggleFullscreen,
            FullScreen,
            full,
        };
    },
});
</script>
<style scoped lang="scss">
.process-status-img {
    width: 128px;
    height: auto;
    position: absolute;
    right: 10px;
    top: 60px;
    z-index: 999;
}
//弹窗底部边框线
::v-deep .el-dialog__footer {
    border-top: 1px solid #e8e8e8;
    border-radius: 0 0 4px 4px;
}
//弹窗顶部边框线
::v-deep .el-dialog__header {
    border-bottom: 1px solid #e8e8e8;
    margin-right: 0;
    border-radius: 4px 4px 0 0;
}
//tabs字体颜色
::v-deep .el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
    color: #a9d86e !important;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
//.box-card {
//  width: 480px;
//}
//步骤条字体大小
::v-deep .el-step__icon-inner {
    font-size: 14px !important;
}
//步骤条颜色
::v-deep .el-step__line {
    background-color: #409eff;
}
//表头
::v-deep .el-table th.el-table__cell {
    background-color: #f6f7fa;
    font-weight: 400;
    color: #909399;
}
.el-table .sort-caret.ascending {
    border-bottom-color: #c0c4cc;
}
 
.tip {
    padding: 8px 16px;
    background-color: #ecf8ff;
    border-radius: 4px;
    border-left: 5px solid #50bfff;
    margin: 20px 0;
}
.item {
    height: 32px;
    line-height: 32px;
    margin-bottom: 8px;
}
.item .label {
    display: inline-block;
    height: 100%;
    width: 70px;
    font-size: 14px;
    color: #5e6d82;
    text-align: end;
    vertical-align: top;
}
.item .value {
    padding-left: 10px;
    font-size: 14px;
    max-width: calc(100% - 90px);
    color: #5e6d82;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.text {
    background-color: #409eff;
    color: #fff;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    height: 24px;
    padding: 0 8px;
    line-height: 22px;
    display: inline-block;
}
</style>