|
@@ -183,12 +183,17 @@
|
|
|
|
|
|
|
|
|
<!-- 审核记录弹窗 -->
|
|
|
- <el-dialog title="审核记录" :visible.sync="recordDialogVisible" width="800px" :before-close="handleClose">
|
|
|
+ <el-dialog title="审核记录" :visible.sync="recordDialogVisible" width="1000px" :before-close="handleClose">
|
|
|
<div style="height: 430px">
|
|
|
<el-table :data="recordLists" style="width: 100%" height="400">
|
|
|
- <el-table-column prop="userName" label="操作人" width="150"></el-table-column>
|
|
|
- <el-table-column prop="indate" label="审核时间"></el-table-column>
|
|
|
- <el-table-column prop="result" label="审核结果"></el-table-column>
|
|
|
+ <el-table-column prop="userName" label="操作人" width="120"></el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="indate" label="审核时间">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{tableIndateEdit(scope.row.indate)}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="result" label="审核结果" width="120"></el-table-column>
|
|
|
<el-table-column prop="date" label="员工/日期" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
@@ -214,6 +219,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="projectName" label="项目" width="200" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="date" label="操作" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
@@ -239,7 +245,7 @@
|
|
|
<!-- 审核记录撤销 -->
|
|
|
<el-dialog title="请输入原因" v-if="undoFormDialog" :visible.sync="undoFormDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
<div>
|
|
|
- <el-input type="textarea" v-model="undoForm.reason" rows="2" placeholder="请输入您决定撤销原因'" />
|
|
|
+ <el-input type="textarea" v-model="undoForm.reason" rows="2" placeholder="请输入您决定撤销的原因" />
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="undoFormDialog = false" >取消</el-button>
|
|
@@ -336,6 +342,15 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ tableIndateEdit(row){
|
|
|
+ let indate = row[0] + '-' + (row[1] < 10 ? '0' + row[1] : row[1]) + '-' + (row[2] < 10 ? '0' + row[2] : row[2]) + ' ' + (row[3] < 10 ? '0' + row[3] : row[3]) + ':' + (row[4] < 10 ? '0' + row[4] : row[4])
|
|
|
+ if(row[5]){
|
|
|
+ indate = indate + ':' + (row[5] < 10 ? '0' + row[5] : row[5])
|
|
|
+ }else{
|
|
|
+ indate = indate + ':00'
|
|
|
+ }
|
|
|
+ return indate
|
|
|
+ },
|
|
|
detailsClick(item, i) {
|
|
|
this.detailsDialog = true
|
|
|
this.detailsList = item.membdateList
|
|
@@ -372,8 +387,8 @@
|
|
|
undoCli(item, i) {
|
|
|
console.log(item)
|
|
|
this.undoFormDialog = true
|
|
|
- this.undoForm = {}
|
|
|
- this.undoForm.reason = ''
|
|
|
+ this.undoForm = {reason: ''}
|
|
|
+ // this.undoForm.reason = ''
|
|
|
this.undoForm.hisId = item.id
|
|
|
this.ioss = i
|
|
|
// if(i == 0) {
|