|
@@ -16,7 +16,7 @@
|
|
<el-button size="mini" @click="exportData">导出规则中未涉及到的医院术语</el-button>
|
|
<el-button size="mini" @click="exportData">导出规则中未涉及到的医院术语</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="marginbottom: 0px">
|
|
<el-form-item style="marginbottom: 0px">
|
|
- <el-button size="mini" @click="handleAllTest" :disabled="!runningStatus">所有规则测试</el-button>
|
|
|
|
|
|
+ <el-button size="mini" @click="handleAllTest" :disabled="!runningStatus || implement">所有规则测试</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</crumbs>
|
|
</crumbs>
|
|
@@ -53,10 +53,10 @@
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
@click="handleTest(scope.row, scope.row.caseId-1)"
|
|
@click="handleTest(scope.row, scope.row.caseId-1)"
|
|
- :disabled="!runningStatus"
|
|
|
|
|
|
+ :disabled="!runningStatus || implement"
|
|
>
|
|
>
|
|
{{
|
|
{{
|
|
- runningStatusArr[scope.row.caseId-1] === 1
|
|
|
|
|
|
+ runningStatusArr[scope.row.caseId-1] === 1 || implement
|
|
? '执行测试中'
|
|
? '执行测试中'
|
|
: '执行测试'
|
|
: '执行测试'
|
|
}}
|
|
}}
|
|
@@ -86,7 +86,8 @@ export default {
|
|
list: [],
|
|
list: [],
|
|
hospitalData: [],
|
|
hospitalData: [],
|
|
hospitalId: '', //选中医院
|
|
hospitalId: '', //选中医院
|
|
- runningStatusArr: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] //知识图谱规则 测试状态
|
|
|
|
|
|
+ runningStatusArr: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], //知识图谱规则 测试状态
|
|
|
|
+ implement: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -98,7 +99,7 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this._getHospitalInfoCDSS();
|
|
this._getHospitalInfoCDSS();
|
|
- this.zskgetDict()
|
|
|
|
|
|
+ this.zskgetDict();
|
|
// this._getRunningStatus() // 进入页面立即确认状态
|
|
// this._getRunningStatus() // 进入页面立即确认状态
|
|
this.timer = setInterval(this._getRunningStatus, 20 * 1000);
|
|
this.timer = setInterval(this._getRunningStatus, 20 * 1000);
|
|
},
|
|
},
|
|
@@ -115,15 +116,30 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- zskgetDict(){
|
|
|
|
- api.zskgetDict().then((res) => {
|
|
|
|
- if (res.data.code == '0') {
|
|
|
|
- const data = res.data.data;
|
|
|
|
- const arr =data['31'];
|
|
|
|
- localStorage.setItem("zskDicts",JSON.stringify(arr));
|
|
|
|
- }
|
|
|
|
- }).catch((error) => {
|
|
|
|
- console.log(error);
|
|
|
|
|
|
+ getRunningState() {
|
|
|
|
+ api
|
|
|
|
+ .getRunningState({ caseGroup: 1 })
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == '0') {
|
|
|
|
+ this.implement = res.data.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(error => {
|
|
|
|
+ console.log(error);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ zskgetDict() {
|
|
|
|
+ api
|
|
|
|
+ .zskgetDict()
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == '0') {
|
|
|
|
+ const data = res.data.data;
|
|
|
|
+ const arr = data['31'];
|
|
|
|
+ localStorage.setItem('zskDicts', JSON.stringify(arr));
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(error => {
|
|
|
|
+ console.log(error);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
_getRunningStatus() {
|
|
_getRunningStatus() {
|
|
@@ -154,9 +170,11 @@ export default {
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
this.getDataList(this.hospitalId); // 重新获取列表
|
|
this.getDataList(this.hospitalId); // 重新获取列表
|
|
|
|
+ this.getRunningState()
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.data.msg || '重置失败');
|
|
this.$message.error(res.data.msg || '重置失败');
|
|
this.getDataList(this.hospitalId); // 重新获取列表
|
|
this.getDataList(this.hospitalId); // 重新获取列表
|
|
|
|
+ this.getRunningState()
|
|
}
|
|
}
|
|
this.runningStatusArr = statusTempArr;
|
|
this.runningStatusArr = statusTempArr;
|
|
});
|
|
});
|
|
@@ -222,15 +240,17 @@ export default {
|
|
// 跳转至失败/成功条数页面
|
|
// 跳转至失败/成功条数页面
|
|
goToFailedOrSuccessPage(row, type) {
|
|
goToFailedOrSuccessPage(row, type) {
|
|
const page = this.handleGoPage(row.caseName);
|
|
const page = this.handleGoPage(row.caseName);
|
|
- let hospital = this.hospitalData.find(item => item.id === this.hospitalId);
|
|
|
|
|
|
+ let hospital = this.hospitalData.find(
|
|
|
|
+ item => item.id === this.hospitalId
|
|
|
|
+ );
|
|
let hospitalName = hospital.name;
|
|
let hospitalName = hospital.name;
|
|
let localAuto = {
|
|
let localAuto = {
|
|
- resultId:row.resultId,
|
|
|
|
|
|
+ resultId: row.resultId,
|
|
type,
|
|
type,
|
|
hospitalName,
|
|
hospitalName,
|
|
- caseName:row.caseName.replace(/\_/,'-')
|
|
|
|
- }
|
|
|
|
- localStorage.setItem('localAuto',JSON.stringify(localAuto))
|
|
|
|
|
|
+ caseName: row.caseName.replace(/\_/, '-')
|
|
|
|
+ };
|
|
|
|
+ localStorage.setItem('localAuto', JSON.stringify(localAuto));
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'AutoBillCommonTest',
|
|
name: 'AutoBillCommonTest',
|
|
params: {
|
|
params: {
|
|
@@ -281,6 +301,7 @@ export default {
|
|
if (val === '') return;
|
|
if (val === '') return;
|
|
this.getDataList(val);
|
|
this.getDataList(val);
|
|
this._getRunningStatus(); // 选中后立即请求状态
|
|
this._getRunningStatus(); // 选中后立即请求状态
|
|
|
|
+ this.getRunningState();
|
|
},
|
|
},
|
|
|
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|