|
@@ -36,15 +36,16 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{$field.findTypeName('clearWorkWay',scope.row.workWay)}}</span>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="状态">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div class="hui-table-tag">
|
|
|
- <div class="hui-tag hui-tag-info" v-if="!scope.row.status">待处理</div>
|
|
|
- <div class="hui-tag hui-tag-info" v-else-if="scope.row.status === 1">处理中</div>
|
|
|
- <div class="hui-tag hui-tag-info" v-else>已处理</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="hui-table-tag">
|
|
|
+ <div class="hui-tag hui-tag-info" v-if="!scope.row.status">待提交</div>
|
|
|
+ <div class="hui-tag" v-else-if="scope.row.status === 1">待处理</div>
|
|
|
+ <div class="hui-tag hui-tag-warning" v-else-if="scope.row.status === 2">处理中</div>
|
|
|
+ <div class="hui-tag hui-tag-success" v-else>已处理</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="150">
|
|
|
<template slot-scope="scope">
|
|
@@ -52,10 +53,12 @@
|
|
|
<span class="table-operation" @click="detailItem(scope.row)">
|
|
|
详情
|
|
|
</span>
|
|
|
- <span class="table-operation" @click="updateItem(scope.row)">
|
|
|
+ <span class="table-operation" v-if="!scope.row.status"
|
|
|
+ @click="updateItem(scope.row)">
|
|
|
编辑
|
|
|
</span>
|
|
|
- <span class="table-operation" @click="deleteItem(scope.row)">
|
|
|
+ <span class="table-operation" v-if="!scope.row.status"
|
|
|
+ @click="deleteItem(scope.row)">
|
|
|
删除
|
|
|
</span>
|
|
|
</div>
|
|
@@ -77,7 +80,7 @@
|
|
|
<edit v-if="visible" @callback="callback" :isUpdate="isUpdate" :detailId="detailId" :type="type"></edit>
|
|
|
</el-dialog>
|
|
|
<el-drawer title="工单详情" :visible.sync="drawer" :size="400" :append-to-body="true">
|
|
|
- <detail v-if="drawer" :detailId="detailId"></detail>
|
|
|
+ <detail v-if="drawer" :detailId="detailId" @callback="callback"></detail>
|
|
|
</el-drawer>
|
|
|
</div>
|
|
|
</template>
|