Commit 925baa25 authored by jingnan's avatar jingnan 👀

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents c2d89b47 3ad79218
...@@ -48,6 +48,14 @@ export default { ...@@ -48,6 +48,14 @@ export default {
activeValue: 'edit', activeValue: 'edit',
inactiveValue: 'view' inactiveValue: 'view'
} }
}, {
'dynamicProp': true,
'key': 'component.checkRemoveFn',
'title': '删除校验方法',
'prop': 'component',
'component': {
name: 'btnCodeEdit'
}
}, { }, {
'dynamicProp': true, 'dynamicProp': true,
'key': 'isSupportSecret', 'key': 'isSupportSecret',
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:data="tableData" :data="tableData"
:state="isViews" :state="isViews"
:link="true" :link="true"
:remove-check-fn="removeCheckFn" :remove-check-fn="removeCheckJudgeFn"
:filter-key="filterKey" :filter-key="filterKey"
:upload-fiter="uploadFiter" :upload-fiter="uploadFiter"
@uploadData="update" @uploadData="update"
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
:data="tableData" :data="tableData"
:state="isViews" :state="isViews"
:link="true" :link="true"
:remove-check-fn="removeCheckFn" :remove-check-fn="removeCheckJudgeFn"
:parent-key="parentKey" :parent-key="parentKey"
@uploadData="update" @uploadData="update"
/> />
...@@ -179,6 +179,17 @@ export default { ...@@ -179,6 +179,17 @@ export default {
uploadFiter() { uploadFiter() {
return this.showTableConfig && this.showTableConfig.uploadFilter return this.showTableConfig && this.showTableConfig.uploadFilter
}, },
// 删除校验方法的选择
removeCheckJudgeFn() {
if (this.showTableConfig && this.showTableConfig.checkRemoveFn) {
let fun1
// eslint-disable-next-line no-eval
eval(`fun1=${this.showTableConfig.checkRemoveFn}`)
return fun1
} else {
return this.removeCheckFn
}
},
// filterKey() { // filterKey() {
// if (!this.tableConfig || !this.tableConfig.filterKey) { // if (!this.tableConfig || !this.tableConfig.filterKey) {
// return '' // return ''
......
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