|
|
@@ -79,11 +79,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="modal">
|
|
|
-import { getCurrentInstance, ComponentInternalInstance, ref, reactive } from 'vue';
|
|
|
+import { ref, reactive } from 'vue';
|
|
|
import type { FormInstance, FormRules } from 'element-plus';
|
|
|
import pageTitle from '@/components/components/pageTitle.vue';
|
|
|
import useSystemStore from '@/store/main';
|
|
|
-const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const dataForm = reactive<any>({
|
|
|
receParamValue: 5,
|
|
|
handParamValue: 1,
|
|
|
@@ -126,7 +125,10 @@ function handleConfirmClick(formEl: FormInstance | undefined) {
|
|
|
if (!formEl) return;
|
|
|
formEl.validate((valid, fields) => {
|
|
|
if (valid) {
|
|
|
- proxy!.$modal.msgSuccess('您已保存成功');
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: '您已保存成功',
|
|
|
+ });
|
|
|
} else {
|
|
|
console.log('error submit!', fields);
|
|
|
}
|
|
|
@@ -146,7 +148,10 @@ function getOverTime() {
|
|
|
// dataString.value = JSON.stringify(dataForm);
|
|
|
// } else {
|
|
|
// devLoading.value = false;
|
|
|
- // proxy!.$modal.msgError(data.msg);
|
|
|
+ // ElMessage({
|
|
|
+ // type: 'error',
|
|
|
+ // message: data.msg,
|
|
|
+ // });
|
|
|
// }
|
|
|
// });
|
|
|
}
|