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