Crud表格的批量修改和替换

This commit is contained in:
2025-05-28 18:44:58 +08:00
parent aa0290b345
commit 8b2c34d70b
18 changed files with 628 additions and 274 deletions

View File

@@ -41,6 +41,11 @@
</a-space>
</div>
</a-form>
<a-divider
:style="{
margin: '8px 0'
}"
></a-divider>
</a-spin>
</template>

View File

@@ -279,7 +279,7 @@
<script setup>
import config from "@/config/crud"
import { ref, watch, provide, nextTick, onMounted, onUnmounted } from "vue"
import { ref, watch, provide, nextTick, onMounted, onUnmounted, computed } from "vue"
import defaultOptions from "./js/defaultOptions"
import { loadDict } from "@cps/ma-form/js/networkRequest.js"
import ColumnService from "@cps/ma-form/js/columnService"
@@ -728,6 +728,11 @@ const setSelecteds = (key) => {
selecteds.value = key
}
// 修改源码获取selected的值
const getSelecteds = () => {
return selecteds.value
}
const switchDataType = async () => {
isRecovery.value = !isRecovery.value
currentApi.value =
@@ -929,7 +934,8 @@ defineExpose({
crudSearchRef,
crudImportRef,
crudSettingRef,
setTableData
setTableData,
getSelecteds
})
</script>