diff --git a/Vol.Vue3.Vite/src/components/basic/ViewGrid/methods.jsx b/Vol.Vue3.Vite/src/components/basic/ViewGrid/methods.jsx index 3a4cc823b..76b0bfecd 100644 --- a/Vol.Vue3.Vite/src/components/basic/ViewGrid/methods.jsx +++ b/Vol.Vue3.Vite/src/components/basic/ViewGrid/methods.jsx @@ -1718,6 +1718,20 @@ let methods = { //查询页面表格合并行或列,见https://element-plus.gitee.io/zh-CN/component/table.html#%E5%90%88%E5%B9%B6%E8%A1%8C%E6%88%96%E5%88%97 detailSpanMethod({row,column,rowIndex, columnIndex}){ + }, + getFormOption(field) { + if (!field) { + return null + } + for (let index = 0; index < this.editFormOptions.length; index++) { + const _options = this.editFormOptions[index] + const obj = _options.find((c) => { + return c.field == field + }) + if (obj) { + return obj + } + } } }; import customColumns from './ViewGridCustomColumn.js'; diff --git "a/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" "b/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" index 297b0b6ae..f5d203402 100644 --- "a/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" +++ "b/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" @@ -1366,8 +1366,7 @@ let methods = { }, getUrl(action, ingorPrefix) { //是否忽略前缀/ 获取操作的url - return 'api' + this.table.url + action; - // return (!ingorPrefix ? '/' : '') + 'api' + this.table.url + action; + return (!ingorPrefix ? '/' : '') + 'api' + this.table.url + action; }, initDicKeys() { //初始化字典数据 @@ -1718,6 +1717,16 @@ let methods = { //查询页面表格合并行或列,见https://element-plus.gitee.io/zh-CN/component/table.html#%E5%90%88%E5%B9%B6%E8%A1%8C%E6%88%96%E5%88%97 detailSpanMethod({row,column,rowIndex, columnIndex}){ + }, + getFormOption(field) {//2024.04.27获取表单配置 + for (let index = 0; index < this.editFormOptions.length; index++) { + const obj = this.editFormOptions[index].find((c) => { + return c.field == field + }) + if (obj) { + return obj + } + } } }; import customColumns from './ViewGridCustomColumn.js'; diff --git "a/\345\274\200\345\217\221\347\211\210dev/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" "b/\345\274\200\345\217\221\347\211\210dev/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" index e4eb1fbbd..f5d203402 100644 --- "a/\345\274\200\345\217\221\347\211\210dev/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" +++ "b/\345\274\200\345\217\221\347\211\210dev/Vol.Vue3\347\211\210\346\234\254/src/components/basic/ViewGrid/methods.js" @@ -1717,6 +1717,16 @@ let methods = { //查询页面表格合并行或列,见https://element-plus.gitee.io/zh-CN/component/table.html#%E5%90%88%E5%B9%B6%E8%A1%8C%E6%88%96%E5%88%97 detailSpanMethod({row,column,rowIndex, columnIndex}){ + }, + getFormOption(field) {//2024.04.27获取表单配置 + for (let index = 0; index < this.editFormOptions.length; index++) { + const obj = this.editFormOptions[index].find((c) => { + return c.field == field + }) + if (obj) { + return obj + } + } } }; import customColumns from './ViewGridCustomColumn.js';