fix 79451
This commit is contained in:
+26
@@ -25,6 +25,11 @@
|
||||
:scroll="{x: '100%'}"
|
||||
@change="tableOnChange">
|
||||
|
||||
<!-- 整改部门 -->
|
||||
<template slot="rectificationDepartment" slot-scope="{text, record}">
|
||||
<j-select-depart v-model="record.rectificationDepartment" :backDepart="true" @change="changeRowData(record, 'rectificationDepartment')" />
|
||||
</template>
|
||||
|
||||
<!-- 操作 -->
|
||||
<template slot="action" slot-scope="{text, record, index}">
|
||||
<a @click="handleEdit(record, index)" >{{ $t('edit') }}</a>
|
||||
@@ -44,6 +49,7 @@ import JTable from '@comp/jero/JTable'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import InspectionProcessContentModal
|
||||
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessContentModal'
|
||||
import { editInspectionContentTable } from '@api/workCenter'
|
||||
|
||||
export default {
|
||||
name: 'InspectionProcessContent',
|
||||
@@ -71,6 +77,13 @@ export default {
|
||||
dataIndex: 'requirement',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 整改部门
|
||||
title: this.$t('enterpriseStandardLibrary.standard.rectificationDepartment'),
|
||||
align: 'center',
|
||||
width: 200,
|
||||
dataIndex: 'rectificationDepartment',
|
||||
scopedSlots: { customRender: 'rectificationDepartment' }
|
||||
},
|
||||
{
|
||||
// 操作
|
||||
fixed: 'right',
|
||||
@@ -104,6 +117,19 @@ export default {
|
||||
this.model = Object.assign({}, record)
|
||||
this.visible = true
|
||||
},
|
||||
// 整改部门修改
|
||||
changeRowData (record, field) {
|
||||
editInspectionContentTable({
|
||||
id: record.id,
|
||||
[field]: record[field] || ''
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
} else {
|
||||
this.$message.warn(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 确定
|
||||
handleOk () {
|
||||
// console.log(this.selectedRowKeys)
|
||||
|
||||
Reference in New Issue
Block a user