-
+
@@ -165,6 +159,14 @@
+
+
+ {{ $t('common.edit') }}
+
{
- MsgSuccess(t('common.submitSuccess'))
+function confirmAddInternalFunction(data?: any, isEdit?: boolean) {
+ if (isEdit) {
+ functionLibApi.putFunctionLib(data?.id as string, data, loading).then((res) => {
+ MsgSuccess(t('common.saveSuccess'))
searchHandle()
})
+ } else {
+ functionLibApi
+ .addInternalFunction(data.id, { name: data.name }, changeStateloading)
+ .then((res) => {
+ MsgSuccess(t('common.addSuccess'))
+ searchHandle()
+ })
+ }
}
function searchHandle() {