[update] 修改企标和内部工作组左侧树样式,企标新增增加稽查内容部分
This commit is contained in:
@@ -129,14 +129,23 @@ export default {
|
||||
},
|
||||
// 稽查内容的添加
|
||||
handleAdd () {
|
||||
const value = this.$refs.addForm.formInline
|
||||
let publishOriginal = ''
|
||||
if (value.publish_of_original) {
|
||||
publishOriginal = value.publish_of_original
|
||||
}
|
||||
this.$refs.checkContentModal.title = this.$t('newlyAdded')
|
||||
this.$refs.checkContentModal.add()
|
||||
this.$refs.checkContentModal.add(publishOriginal)
|
||||
},
|
||||
// 稽查内容的编辑
|
||||
handleEdit (record, index) {
|
||||
console.log(record, index)
|
||||
const value = this.$refs.addForm.formInline
|
||||
let publishOriginal = ''
|
||||
if (value.publish_of_original) {
|
||||
publishOriginal = value.publish_of_original
|
||||
}
|
||||
this.$refs.checkContentModal.title = this.$t('edit')
|
||||
this.$refs.checkContentModal.edit(record, index)
|
||||
this.$refs.checkContentModal.edit(publishOriginal, record, index)
|
||||
},
|
||||
// 稽查内容的删除
|
||||
handleDelete (index) {
|
||||
@@ -165,7 +174,9 @@ export default {
|
||||
} else {
|
||||
url = this.url.add
|
||||
}
|
||||
postAction(url, formInline).then((res) => {
|
||||
const param = Object.assign({}, formInline)
|
||||
param.checkList = this.dataSource
|
||||
postAction(url, param).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
this.$emit('ok')
|
||||
|
||||
Reference in New Issue
Block a user