Merge remote-tracking branch 'origin/feature_dev_20221125_YW' into feature_dev_20221125_YW

This commit is contained in:
liyawei
2022-12-02 18:14:36 +08:00
5 changed files with 131 additions and 4 deletions
+1
View File
@@ -1362,4 +1362,5 @@ module.exports = {
Importfailure:'Import failure', Importfailure:'Import failure',
CuiBan:'CuiBan', CuiBan:'CuiBan',
certificationCategoryNumber: 'certification Category Number', certificationCategoryNumber: 'certification Category Number',
historicalrecord:'historical Record',
} }
+1
View File
@@ -1463,4 +1463,5 @@ module.exports = {
Importfailure:'导入失败', Importfailure:'导入失败',
CuiBan:'催办', CuiBan:'催办',
certificationCategoryNumber: '认证类别编号', certificationCategoryNumber: '认证类别编号',
historicalrecord:'历史记录',
} }
@@ -565,8 +565,7 @@
<!-- 一位小数 --> <!-- 一位小数 -->
<div v-else-if="item.controlVerify == '6'"> <div v-else-if="item.controlVerify == '6'">
<a-input-number class="box-input inputWid add--number" <a-input-number class="box-input inputWid add--number"
:max="99999" :max="99999" :precision="1"
:precision="1"
:placeholder="$t('pleaseEnter')+$t('OneDecimalPlace')" :placeholder="$t('pleaseEnter')+$t('OneDecimalPlace')"
v-model="item.dataValue"/> v-model="item.dataValue"/>
</div> </div>
@@ -28,6 +28,15 @@
<a-button @click='onClickTitle(record)'>{{$t('See')}}</a-button> <a-button @click='onClickTitle(record)'>{{$t('See')}}</a-button>
</span> </span>
<span slot="RemarkDescription" slot-scope="text,record">
<a-input class="box-input inputWid"
:maxLength="2000"
:placeholder="$t('pleaseEnter')"
v-model="record.remarks"/>
</span>
<template slot="Operation" slot-scope="text, record">
<a-button class="action-dict" @click="UpdateLog(record)">{{$t('historicalrecord')}}</a-button>
</template>
<span slot="paramsName" slot-scope="text,record"> <span slot="paramsName" slot-scope="text,record">
<span class="textName" :title="text">{{text}}</span> <span class="textName" :title="text">{{text}}</span>
</span> </span>
@@ -148,6 +157,46 @@
</div> </div>
</div> </div>
</a-modal> </a-modal>
<!-- 历史记录-->
<a-modal
:title="$t('historicalrecord')"
:width="900"
:visible="visible"
:confirm-loading="confirmLoading"
:maskClosable="false"
@ok="handleOk"
@cancel="handleCancel"
>
<a-table
class="table"
:columns="columnshistory"
:pagination="false"
:scroll="{y: 400}"
:data-source="dataSourcehistory"
:loading="loading"
>
<span slot="content" slot-scope="text,record">
<a-tooltip placement="topLeft">
<template slot="title">
<span v-html="text"></span>
</template>
<span v-html="text"></span>
</a-tooltip>
</span>
</a-table>
<div class="page" v-if="dataSourcehistory.length > 0">
<a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
:page-size.sync="pageSizehistory"
:total="total"
:current="pageNohistory"
@change="onChangehistory"
@showSizeChange="SizeChangehistory"
/>
</div>
</a-modal>
</div> </div>
</template> </template>
@@ -235,11 +284,14 @@
indeterminate: false, indeterminate: false,
columns: [], columns: [],
content: [], content: [],
detailDateList: [],
selectedRowKeys: [], selectedRowKeys: [],
selectedRowrowValue: [], selectedRowrowValue: [],
dataSource: [], dataSource: [],
pageNo: 1, pageNo: 1,
pageSize: 100, pageSize: 100,
pageNohistory: 1,
pageSizehistory: 10,
pageSizeOptions: ['100', '200'], pageSizeOptions: ['100', '200'],
total: 0, total: 0,
searchParmes: {}, searchParmes: {},
@@ -250,7 +302,10 @@
sdt: 0, // 工程接口人 sdt: 0, // 工程接口人
dre: 0, // 填写人 dre: 0, // 填写人
areaVisible: false, areaVisible: false,
visible: false,
seeVisibleView: false, seeVisibleView: false,
confirmLoading: false,
paramsReportDetailId:'',
form: {}, form: {},
rules: { rules: {
querySdt: [ querySdt: [
@@ -273,7 +328,24 @@
Dateline: {}, Dateline: {},
getquerySdtId: '', // 当前工程接口人的id getquerySdtId: '', // 当前工程接口人的id
areaVisibleView: false, // 查看配置得弹框 areaVisibleView: false, // 查看配置得弹框
configDetail: {} // 查看配置得详细信息 configDetail: {}, // 查看配置得详细信息
dataSourcehistory:[],
columnshistory: [
{
title: this.$t('OperationDetails'),
dataIndex: 'logContent',
align: 'center',
ellipsis: true,
scopedSlots: { customRender: 'content' }
},
{
title: this.$t('OperationTime'),
dataIndex: 'createTime',
align: 'center',
ellipsis: true,
width: 180
}
]
} }
}, },
mounted() { mounted() {
@@ -298,7 +370,6 @@
} }
}, },
onClickTitle(val) { onClickTitle(val) {
console.log(val)
this.description = val.description this.description = val.description
this.seeVisibleView = true this.seeVisibleView = true
@@ -525,6 +596,16 @@
customRender: 'ParameterDescription' customRender: 'ParameterDescription'
} }
} }
if (res.click3) {
this.columns[index].scopedSlots = {
customRender: 'RemarkDescription'
}
}
if (res.click4) {
this.columns[index].scopedSlots = {
customRender: 'Operation'
}
}
if (res.db_field_name == 'paramsName') { if (res.db_field_name == 'paramsName') {
this.columns[index].width = 300 this.columns[index].width = 300
this.columns[index].ellipsis = false this.columns[index].ellipsis = false
@@ -681,6 +762,7 @@
}) })
}, },
onChange(page, pageSize) { onChange(page, pageSize) {
}, },
onSelectChange(value, rowValue) { onSelectChange(value, rowValue) {
this.selectedRowKeys = [] this.selectedRowKeys = []
@@ -693,6 +775,44 @@
OperationClick(ol, item) { OperationClick(ol, item) {
// this.$emit(ol.ClickEvent, item) // this.$emit(ol.ClickEvent, item)
}, },
UpdateLog(val) {
this.visible = true
this.paramsReportDetailId = val.id
this.bussLogList(val)
},
bussLogList(val) {
let query = {
pageNo: this.pageNohistory,
pageSize: this.pageSizehistory,
paramsReportDetailId: this.paramsReportDetailId
}
this.loading = true
getAction('report/detailLog/page', query).then((res) => {
if (res.success) {
this.dataSourcehistory = res.result.records
this.total = res.result.total
this.loading = false
} else {
this.loading = false
}
})
},
handleOk() {
this.visible = false
},
handleCancel() {
this.visible = false
},
onChangehistory(page, pageSize) {
console.log(1)
this.pageNohistory = page
this.bussLogList()
},
SizeChangehistory(page, pageSize) {
this.pageNo = 1
this.pageSizehistory = pageSize
this.bussLogList()
},
detailClick(item, index) { detailClick(item, index) {
// this.$emit('detailClick', item) // this.$emit('detailClick', item)
} }
@@ -716,6 +836,11 @@
} }
</style> </style>
<style scoped lang="less"> <style scoped lang="less">
.inputWid {
min-width: 100px;
height: 38px;
display: inline-block;
}
.box { .box {
width: 100%; width: 100%;
height: calc(100% - 100px); height: calc(100% - 100px);
@@ -326,6 +326,7 @@
} }
} }
postDateobj.id = selectedRowKeysValue[i].id postDateobj.id = selectedRowKeysValue[i].id
postDateobj.remarks = selectedRowKeysValue[i].remarks
postDate.push(postDateobj) postDate.push(postDateobj)
} }
let configDataList = { configDataList: postDate } let configDataList = { configDataList: postDate }