Commit ed0df3ea authored by jiangqihao's avatar jiangqihao

附件上传修改

parent 6bf28fe2
...@@ -47,26 +47,6 @@ export default { ...@@ -47,26 +47,6 @@ export default {
} }
}, },
created() { 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) { if (this.$attrs['form-data'] && this.$attrs['form-data'].BusinessObjectID) {
config.tableConfig.initialParams = { config.tableConfig.initialParams = {
...@@ -75,7 +55,6 @@ export default { ...@@ -75,7 +55,6 @@ export default {
} else { } else {
config.tableConfig.url = '' config.tableConfig.url = ''
} }
// this.constant = config
} }
} }
</script> </script>
......
...@@ -23,15 +23,15 @@ const tableConfig = { ...@@ -23,15 +23,15 @@ const tableConfig = {
fixed: 'right', fixed: 'right',
renderItem: (h, scope, listeners) => { renderItem: (h, scope, listeners) => {
return h('div', [ return h('div', [
h('el-button', { // h('el-button', {
on: { // on: {
click: (e) => listeners.handleEdit(scope.row, 'edit') // click: (e) => listeners.handleEdit(scope.row, 'edit')
}, // },
props: { // props: {
icon: 'el-icon-edit-outline', // icon: 'el-icon-edit-outline',
type: 'text' // type: 'text'
} // }
}, '编辑'), // }, '编辑'),
h('el-button', { h('el-button', {
on: { on: {
click: (e) => listeners.handleDownload(scope.row, 'takeEffect') click: (e) => listeners.handleDownload(scope.row, 'takeEffect')
...@@ -52,27 +52,27 @@ const formConfig = { ...@@ -52,27 +52,27 @@ const formConfig = {
isShowBackBtn: false, isShowBackBtn: false,
isShowSubmitBtn: false, isShowSubmitBtn: false,
formDesc: { formDesc: {
Title: { // Title: {
type: 'input', // type: 'input',
label: '标题', // label: '标题',
layout: 24 // layout: 24
}, // },
TypeCode: { // TypeCode: {
vif: false, // vif: false,
label: '类型' // label: '类型'
}, // },
Path: { // Path: {
vif: false, // vif: false,
label: '编码' // label: '编码'
}, // },
TypeCode: { // TypeCode: {
vif: false, // vif: false,
label: '类型' // label: '类型'
}, // },
Note: { // Note: {
label: '备注', // label: '备注',
type: 'textarea' // type: 'textarea'
}, // },
FileDetails: { FileDetails: {
label: '附件' 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