vue3 -> vue2

This commit is contained in:
2025-08-07 11:48:20 +08:00
parent 34b0054be7
commit 84be9fe4ec

View File

@@ -106,13 +106,11 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script setup lang="ts"></script>
<script> <script lang="ts">
import { useDictStore } from '@/store/modules/dict'; import { useDictStore } from '@/store/modules/dict';
import { listType, getType, delType, addType, updateType, refreshCache } from '@/api/system/dict/type'; import { addType, delType, getType, listType, refreshCache, updateType } from '@/api/system/dict/type';
import { DictTypeForm, DictTypeQuery, DictTypeVO } from '@/api/system/dict/type/types';
import { addDateRange } from '@/utils/ruoyi'; import { addDateRange } from '@/utils/ruoyi';
import { UserForm } from '@/api/system/user/types.js';
const initFormData = { const initFormData = {
userId: undefined, userId: undefined,
@@ -200,7 +198,7 @@ export default {
this.dialog.title = '添加学生类型'; this.dialog.title = '添加学生类型';
}, },
/** 多选框选中数据 */ /** 多选框选中数据 */
handleSelectionChange(selection: DictTypeVO[]) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.dictId); this.ids = selection.map((item) => item.dictId);
this.single = selection.length != 1; this.single = selection.length != 1;
this.multiple = !selection.length; this.multiple = !selection.length;
@@ -240,9 +238,7 @@ export default {
}); });
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {},
},
/** 刷新缓存按钮操作 */ /** 刷新缓存按钮操作 */
async handleRefreshCache() { async handleRefreshCache() {
await refreshCache(); await refreshCache();