Commit ed0df3ea authored by jiangqihao's avatar jiangqihao

附件上传修改

parent 6bf28fe2
......@@ -47,26 +47,6 @@ export default {
}
},
created() {
// var config = JSON.parse(JSON.stringify(constant))
// config.tableConfig.columns.handle = {
// label: '操作',
// hideInFilter: true,
// fixed: 'right',
// renderItem: (h, scope, listeners) => {
// return h(
// 'el-button',
// {
// on: {
// click: (e) => listeners.handleEdit(scope.row, scope.$index)
// },
// props: {
// type: 'text'
// }
// },
// '编辑')
// }
// }
// config.tableConfig.tableTitle = '上传附件'
// 设置表单的初始搜索条件,该条件一般不会发生改变
if (this.$attrs['form-data'] && this.$attrs['form-data'].BusinessObjectID) {
config.tableConfig.initialParams = {
......@@ -75,7 +55,6 @@ export default {
} else {
config.tableConfig.url = ''
}
// this.constant = config
}
}
</script>
......
......@@ -23,15 +23,15 @@ const tableConfig = {
fixed: 'right',
renderItem: (h, scope, listeners) => {
return h('div', [
h('el-button', {
on: {
click: (e) => listeners.handleEdit(scope.row, 'edit')
},
props: {
icon: 'el-icon-edit-outline',
type: 'text'
}
}, '编辑'),
// h('el-button', {
// on: {
// click: (e) => listeners.handleEdit(scope.row, 'edit')
// },
// props: {
// icon: 'el-icon-edit-outline',
// type: 'text'
// }
// }, '编辑'),
h('el-button', {
on: {
click: (e) => listeners.handleDownload(scope.row, 'takeEffect')
......@@ -52,27 +52,27 @@ const formConfig = {
isShowBackBtn: false,
isShowSubmitBtn: false,
formDesc: {
Title: {
type: 'input',
label: '标题',
layout: 24
},
TypeCode: {
vif: false,
label: '类型'
},
Path: {
vif: false,
label: '编码'
},
TypeCode: {
vif: false,
label: '类型'
},
Note: {
label: '备注',
type: 'textarea'
},
// Title: {
// type: 'input',
// label: '标题',
// layout: 24
// },
// TypeCode: {
// vif: false,
// label: '类型'
// },
// Path: {
// vif: false,
// label: '编码'
// },
// TypeCode: {
// vif: false,
// label: '类型'
// },
// Note: {
// label: '备注',
// type: 'textarea'
// },
FileDetails: {
label: '附件'
}
......
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