Commit 5fe23907 authored by qinj's avatar qinj

Merge branch 'dev' of http://120.25.63.219:6088/rex/portalhtml into dev

parents c53ad255 f07288a7
...@@ -37,9 +37,9 @@ export default { ...@@ -37,9 +37,9 @@ export default {
}, },
objectId: { objectId: {
handler(newVal) { handler(newVal) {
constant.tableConfig.initialParams = { // constant.tableConfig.initialParams = {
BusinessObjectID: newVal // BusinessObjectID: newVal
} // }
}, },
immediate: true, immediate: true,
deep: true deep: true
......
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
}, },
ExtCity_SDK: { ExtCity_SDK: {
type: 'select', type: 'select',
label: '市', label: '市',
layout: 12, layout: 12,
isOptions: true, isOptions: true,
optionsLinkageFields: ['ExtProvince_SDK'], optionsLinkageFields: ['ExtProvince_SDK'],
......
...@@ -2,7 +2,8 @@ import { file } from '@/api/customers' ...@@ -2,7 +2,8 @@ import { file } from '@/api/customers'
const tableConfig = { const tableConfig = {
tableTitle: '附件信息', tableTitle: '附件信息',
url: file.searchUrl, // url: file.searchUrl,
url: '',
isSearch: true, isSearch: true,
defaultColumns: { defaultColumns: {
minWidth: 120, minWidth: 120,
...@@ -65,10 +66,11 @@ const formConfig = { ...@@ -65,10 +66,11 @@ const formConfig = {
// vif: false, // vif: false,
// label: '编码' // label: '编码'
// }, // },
// TypeCode: { TypeCode: {
// vif: false, vif: false,
// label: '类型' label: '类型',
// }, default: ''
},
// Note: { // Note: {
// label: '备注', // label: '备注',
// type: 'textarea' // type: 'textarea'
......
...@@ -77,10 +77,10 @@ export default { ...@@ -77,10 +77,10 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
path: { // path: {
type: String, // type: String,
required: true // required: true
}, // },
objectID: { objectID: {
type: String, type: String,
default: '' default: ''
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
constant.tableConfig.initialParams.ModuleType = this.moduleType constant.tableConfig.initialParams.ModuleType = this.moduleType
} }
constant.formConfig.formDesc.TypeCode.default = this.typeCode constant.formConfig.formDesc.TypeCode.default = this.typeCode
constant.formConfig.formDesc.Path.default = this.path // constant.formConfig.formDesc.Path.default = this.path
this.tableListeners = { this.tableListeners = {
handleEdit: this.handleEdit, handleEdit: this.handleEdit,
handleDownload: this.handleDownload handleDownload: this.handleDownload
...@@ -165,11 +165,11 @@ export default { ...@@ -165,11 +165,11 @@ export default {
formData.append('moduleType', this.moduleType) formData.append('moduleType', this.moduleType)
} }
this.fileList.forEach((item) => { this.fileList.forEach((item) => {
formData.append('files', item.raw) formData.append('file', item.raw)
}) })
if (this.fileList.length > 0) { // if (this.fileList.length > 0) {
formData.path = this.path // formData.path = this.path
} // }
if (!this.formData.ObjectID) { if (!this.formData.ObjectID) {
const businessObjectID = const businessObjectID =
this.$route.query.objectID || this.tableConfig.initialParams.objectID this.$route.query.objectID || this.tableConfig.initialParams.objectID
...@@ -180,9 +180,11 @@ export default { ...@@ -180,9 +180,11 @@ export default {
this.loading = false this.loading = false
this.dialogFormVisible = false this.dialogFormVisible = false
this.$message.success('添加成功!') this.$message.success('添加成功!')
this.tableConfig.url = '/search'
this.$refs.eleTable.handleSearch() this.$refs.eleTable.handleSearch()
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
this.tableConfig.url = '/search'
}) })
} else { } else {
formData.append('typeCode', this.typeCode) formData.append('typeCode', this.typeCode)
...@@ -190,6 +192,7 @@ export default { ...@@ -190,6 +192,7 @@ export default {
this.loading = false this.loading = false
this.dialogFormVisible = false this.dialogFormVisible = false
this.$message.success('修改成功!') this.$message.success('修改成功!')
this.tableConfig.url = '/search'
this.$refs.eleTable.handleSearch() this.$refs.eleTable.handleSearch()
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment