企标计划 更新记录弹框

This commit is contained in:
zyx.net
2022-10-13 10:59:20 +08:00
parent b10306616a
commit 75dc65eb22
@@ -187,6 +187,13 @@
align="center"
prop="unitName"
label="质量评分">
</el-table-column>
<el-table-column
label="更新记录">
<template slot-scope="scope">
<el-button class="common-button-default"
size="mini" @click="relateEvent(scope.row)">查看</el-button>
</template>
</el-table-column>
<!-- <el-table-column fixed="right" v-if="isPermission('f9745194958bc9ed3ee5127459795dbc,e8d690904ee1895dd0d17d9c794fbcd7,b299fa5edb3f3f35badb2adb6bda9f2e')>0" label="操作" align="center" width="100">-->
<el-table-column fixed="right" label="操作" align="center" width="60">
@@ -706,6 +713,28 @@
</el-button>
</div>
</el-dialog>
<!-- 更新LOG -->
<el-dialog
title="更新记录"
:visible.sync="relateDialog"
class="relateClass"
width="60%"
:before-close="relateDialogClose">
<div
v-for="(item, index) in relateNowList"
:key="index"
v-if="relateNowList"
style="margin-bottom: 10px;line-height: 20px;max-height: 300px"
>
{{ index + 1 }}. {{ item.creationUserName }} {{ item.creationTime }} {{ item.content }}
<div v-if="relateNowList.length >1">
<el-divider></el-divider>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="relateDialogClose">关 闭</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
@@ -730,7 +759,7 @@
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
},
relateNowList: [],
LXDList: [],
CBList: [],
BZList: [],
@@ -762,6 +791,7 @@
QCDWList: [],
type: '',
drawerTitle: '',
relateDialog: false,
modalshowflag2: false,
modalshowflag: false,
nodeList: [],
@@ -1337,7 +1367,41 @@
}
})
}, // 新增数据
},
// 更新事件
relateEvent (item) {
this.$http.get('lawss/sarUpdLog/getLogList', {
sarId: item.id,
sarType: 'FOREIGN_LAWS'
}, {
_this: this
}, res => {
if (res.data.length > 0) {
this.relateDialog = true
this.relateList = res.data
var i
for (i = 0; i < this.relateList.length; i++) {
let obj = {creationUserName: '', creationTime: '', content: ''}
obj.creationUserName = this.relateList[i].creationUserName
obj.creationTime = this.relateList[i].creationTime
obj.content = this.relateList[i].content
this.relateNowList.push(obj)
}
} else {
this.$message({
message: '暂无数据',
type: 'warning'
})
}
}, e => {
})
},
relateDialogClose () {
this.relateDialog = false
this.relateNowList = []
},
// 新增数据
deleteList () {
if (this.ids.length) {
this.$confirm('您是否确认删除选中数据?', '提示', {