diff --git a/healthlink-his-ui/eslint.config.js b/healthlink-his-ui/eslint.config.js index 1361781dd..760c086f4 100755 --- a/healthlink-his-ui/eslint.config.js +++ b/healthlink-his-ui/eslint.config.js @@ -4,6 +4,7 @@ import { fileURLToPath } from "node:url"; import globals from "globals"; import pluginVue from "eslint-plugin-vue"; import parserVue from "vue-eslint-parser"; +import parserTs from "@typescript-eslint/parser"; import importPlugin, { createNodeResolver } from "eslint-plugin-import-x"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -20,7 +21,7 @@ export default [ }, ...pluginVue.configs["flat/recommended"], - + { languageOptions: { globals: { @@ -30,6 +31,9 @@ export default [ parser: parserVue, ecmaVersion: "latest", sourceType: "module", + parserOptions: { + parser: parserTs, + }, }, plugins: { diff --git a/healthlink-his-ui/package.json b/healthlink-his-ui/package.json index 555adb5a4..9917217c1 100755 --- a/healthlink-his-ui/package.json +++ b/healthlink-his-ui/package.json @@ -72,6 +72,7 @@ "devDependencies": { "@playwright/test": "^1.60.0", "@types/node": "^25.0.1", + "@typescript-eslint/parser": "^8.61.1", "@vitejs/plugin-vue": "^5.2.4", "@vue/test-utils": "^2.4.6", "eslint": "^10.4.1", diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/adviceBaseList.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/adviceBaseList.vue index f9a84666f..700cdd2ca 100755 --- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/adviceBaseList.vue +++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/adviceBaseList.vue @@ -8,7 +8,7 @@ :table-height="400" :max-height="400" :loading="loading" - :row-config="{ keyField: 'patientId' }" + :row-config="{ keyField: 'adviceDefinitionId' }" @cell-click="handleRowClick" >