阅片更改
parent
a8bebaba49
commit
de18b8e6e3
|
@ -111,10 +111,11 @@ export default {
|
||||||
this.isRender = true
|
this.isRender = true
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSave() {
|
async handleSave() {
|
||||||
this.$refs.assessmentForm.validate(async valid => {
|
const valid = await this.$refs.assessmentForm.validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
const loading = this.$loading({ fullscreen: true })
|
const loading = this.$loading({ fullscreen: true })
|
||||||
|
try {
|
||||||
var answers = []
|
var answers = []
|
||||||
for (const k in this.form) {
|
for (const k in this.form) {
|
||||||
answers.push({ questionId: k, answer: this.form[k] })
|
answers.push({ questionId: k, answer: this.form[k] })
|
||||||
|
@ -123,13 +124,15 @@ export default {
|
||||||
visitTaskId: this.visitTaskId,
|
visitTaskId: this.visitTaskId,
|
||||||
answerList: answers
|
answerList: answers
|
||||||
}
|
}
|
||||||
submitTaskAdditionalQuestion(params).then(res => {
|
const res = await submitTaskAdditionalQuestion(params)
|
||||||
|
if (res.IsSuccess) {
|
||||||
this.$emit('sign')
|
this.$emit('sign')
|
||||||
loading.close()
|
}
|
||||||
}).catch(() => {
|
loading.close()
|
||||||
loading.close()
|
} catch (e) {
|
||||||
})
|
console.log(e)
|
||||||
})
|
loading.close()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<el-form
|
<el-form
|
||||||
ref="subjectForm"
|
ref="customWWWC"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
|
@ -67,11 +67,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSave() {
|
async handleSave() {
|
||||||
this.$refs.subjectForm.validate(valid => {
|
const valid = await this.$refs.customWWWC.validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
this.$emit('setWwwc', this.form)
|
this.$emit('setWwwc', this.form)
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
|
|
|
@ -1062,28 +1062,30 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getWwcTpl() {
|
async getWwcTpl() {
|
||||||
const loading = this.$loading({ fullscreen: true })
|
// const loading = this.$loading({ fullscreen: true })
|
||||||
getUserWLTemplateList().then(res => {
|
try {
|
||||||
|
const res = await getUserWLTemplateList()
|
||||||
this.customWwcTpl = []
|
this.customWwcTpl = []
|
||||||
res.Result.map(i => {
|
res.Result.map(i => {
|
||||||
this.customWwcTpl.push({ label: i.TemplateName, wc: i.WL, ww: i.WW })
|
this.customWwcTpl.push({ label: i.TemplateName, wc: i.WL, ww: i.WW })
|
||||||
})
|
})
|
||||||
this.wwwcArr = [...this.defaultWwwc, ...this.customWwcTpl]
|
this.wwwcArr = [...this.defaultWwwc, ...this.customWwcTpl]
|
||||||
loading.close()
|
} catch (e) {
|
||||||
}).catch(() => { loading.close() })
|
console.log(e)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getHotKeys() {
|
async getHotKeys() {
|
||||||
const loading = this.$loading({ fullscreen: true })
|
// const loading = this.$loading({ fullscreen: true })
|
||||||
getDoctorShortcutKey({ imageToolType: 0 }).then(res => {
|
try {
|
||||||
|
const res = await getDoctorShortcutKey({ imageToolType: 0 })
|
||||||
res.Result.map(item => {
|
res.Result.map(item => {
|
||||||
this.hotKeyList.push({ id: item.Id, altKey: item.AltKey, ctrlKey: item.CtrlKey, shiftKey: item.ShiftKey, metaKey: item.MetaKey, key: item.Keyboardkey, code: item.Code, text: item.Text, shortcutKeyEnum: item.ShortcutKeyEnum })
|
this.hotKeyList.push({ id: item.Id, altKey: item.AltKey, ctrlKey: item.CtrlKey, shiftKey: item.ShiftKey, metaKey: item.MetaKey, key: item.Keyboardkey, code: item.Code, text: item.Text, shortcutKeyEnum: item.ShortcutKeyEnum })
|
||||||
})
|
})
|
||||||
this.bindHotKey()
|
this.bindHotKey()
|
||||||
loading.close()
|
} catch (e) {
|
||||||
}).catch(() => {
|
console.log(e)
|
||||||
loading.close()
|
}
|
||||||
})
|
|
||||||
},
|
},
|
||||||
resetHotkeyList(arr) {
|
resetHotkeyList(arr) {
|
||||||
this.hotKeyList = []
|
this.hotKeyList = []
|
||||||
|
|
|
@ -56,22 +56,25 @@ export default {
|
||||||
this.getHotkeys()
|
this.getHotkeys()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getHotkeys(isReset = false) {
|
async getHotkeys(isReset = false) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.hotKeyList = []
|
this.hotKeyList = []
|
||||||
getDoctorShortcutKey({ imageToolType: this.readingTool }).then(res => {
|
try {
|
||||||
res.Result.map(item => {
|
const res = await getDoctorShortcutKey({ imageToolType: this.readingTool })
|
||||||
this.hotKeyList.push({ id: item.Id, keys: { controlKey: { altKey: item.AltKey, ctrlKey: item.CtrlKey, shiftKey: item.ShiftKey, metaKey: item.MetaKey, key: item.Keyboardkey, code: item.Code }, text: item.Text }, label: item.ShortcutKeyEnum })
|
if (res.IsSuccess) {
|
||||||
})
|
res.Result.map(item => {
|
||||||
if (isReset) {
|
this.hotKeyList.push({ id: item.Id, keys: { controlKey: { altKey: item.AltKey, ctrlKey: item.CtrlKey, shiftKey: item.ShiftKey, metaKey: item.MetaKey, key: item.Keyboardkey, code: item.Code }, text: item.Text }, label: item.ShortcutKeyEnum })
|
||||||
this.$emit('reset', this.hotKeyList)
|
})
|
||||||
|
if (isReset) {
|
||||||
|
this.$emit('reset', this.hotKeyList)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
handleSave() {
|
async handleSave() {
|
||||||
var params = {
|
var params = {
|
||||||
imageToolType: this.readingTool,
|
imageToolType: this.readingTool,
|
||||||
shortcutKeyList: []
|
shortcutKeyList: []
|
||||||
|
@ -86,17 +89,15 @@ export default {
|
||||||
emptyLabel = item.label
|
emptyLabel = item.label
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
shortcutKeyList.push(
|
shortcutKeyList.push({
|
||||||
{
|
shortcutKeyEnum: item.label,
|
||||||
shortcutKeyEnum: item.label,
|
keyboardkey: item.keys.controlKey.key,
|
||||||
keyboardkey: item.keys.controlKey.key,
|
code: item.keys.controlKey.code,
|
||||||
code: item.keys.controlKey.code,
|
text: item.keys.text,
|
||||||
text: item.keys.text,
|
altKey: item.keys.controlKey.altKey,
|
||||||
altKey: item.keys.controlKey.altKey,
|
ctrlKey: item.keys.controlKey.ctrlKey,
|
||||||
ctrlKey: item.keys.controlKey.ctrlKey,
|
shiftKey: item.keys.controlKey.shiftKey,
|
||||||
shiftKey: item.keys.controlKey.shiftKey,
|
metaKey: item.keys.controlKey.metaKey })
|
||||||
metaKey: item.keys.controlKey.metaKey }
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isExistEmptyText) {
|
if (isExistEmptyText) {
|
||||||
|
@ -112,43 +113,40 @@ export default {
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
// this.hotKeyList.map(item => {
|
|
||||||
// shortcutKeyList.push(
|
|
||||||
// {
|
|
||||||
// shortcutKeyEnum: item.label,
|
|
||||||
// keyboardkey: item.keys.controlKey.key,
|
|
||||||
// code: item.keys.controlKey.code,
|
|
||||||
// text: item.keys.text,
|
|
||||||
// altKey: item.keys.controlKey.altKey,
|
|
||||||
// ctrlKey: item.keys.controlKey.ctrlKey,
|
|
||||||
// shiftKey: item.keys.controlKey.shiftKey,
|
|
||||||
// metaKey: item.keys.controlKey.metaKey }
|
|
||||||
// )
|
|
||||||
// })
|
|
||||||
params.shortcutKeyList = shortcutKeyList
|
params.shortcutKeyList = shortcutKeyList
|
||||||
setShortcutKey(params).then(res => {
|
try {
|
||||||
this.$emit('reset', this.hotKeyList)
|
const res = await setShortcutKey(params)
|
||||||
// this.$emit('close')
|
if (res.IsSuccess) {
|
||||||
|
this.$emit('reset', this.hotKeyList)
|
||||||
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => {
|
} catch (e) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleReset() {
|
async handleReset() {
|
||||||
// '是否确认重置?'
|
// '是否确认重置?'
|
||||||
this.$confirm(this.$t('trials:hotkeys:message:confirmReset'), {
|
const confirm = await this.$confirm(
|
||||||
type: 'warning',
|
this.$t('trials:hotkeys:message:confirmReset'),
|
||||||
distinguishCancelAndClose: true
|
{
|
||||||
})
|
type: 'warning',
|
||||||
.then(() => {
|
distinguishCancelAndClose: true
|
||||||
this.loading = true
|
}
|
||||||
restoreDefaultShortcutKey({ imageToolType: this.readingTool }).then(res => {
|
)
|
||||||
this.$message.success(this.$t('trials:hotkeys:message:resetSuccessfully')) // '重置成功!'
|
if (confirm !== 'confirm') return
|
||||||
this.getHotkeys(true)
|
|
||||||
}).catch(() => { this.loading = false })
|
this.loading = true
|
||||||
})
|
try {
|
||||||
.catch(action => {})
|
const res = await restoreDefaultShortcutKey({ imageToolType: this.readingTool })
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$message.success(this.$t('trials:hotkeys:message:resetSuccessfully')) // '重置成功!'
|
||||||
|
this.getHotkeys(true)
|
||||||
|
}
|
||||||
|
this.loading = false
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleHotkeyVerify(hotkey) {
|
handleHotkeyVerify(hotkey) {
|
||||||
for (const item of this.hotKeyList) {
|
for (const item of this.hotKeyList) {
|
||||||
|
|
|
@ -51,19 +51,23 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
async getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
var param = {
|
try {
|
||||||
trialId: this.trialId
|
var param = {
|
||||||
}
|
trialId: this.trialId
|
||||||
getManualList(param).then(res => {
|
}
|
||||||
this.fileList = res.Result
|
const res = await getManualList(param)
|
||||||
|
if (res.IsSuccess) {
|
||||||
if (this.fileList.length > 0) {
|
this.fileList = res.Result
|
||||||
this.preview(this.fileList[0])
|
if (this.fileList.length > 0) {
|
||||||
|
this.preview(this.fileList[0])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}).catch(() => { this.loading = false })
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
preview(file) {
|
preview(file) {
|
||||||
this.$set(this.selected, 'filePath', file.Path)
|
this.$set(this.selected, 'filePath', file.Path)
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
import { getTableAnswerRowInfoList } from '@/api/trials'
|
import { getTableAnswerRowInfoList } from '@/api/trials'
|
||||||
import { on, off } from 'element-ui/src/utils/dom'
|
import { on, off } from 'element-ui/src/utils/dom'
|
||||||
import { rafThrottle, isFirefox } from 'element-ui/src/utils/util'
|
import { rafThrottle, isFirefox } from 'element-ui/src/utils/util'
|
||||||
import store from '@/store'
|
// import store from '@/store'
|
||||||
const mousewheelEventName = isFirefox() ? 'DOMMouseScroll' : 'mousewheel'
|
const mousewheelEventName = isFirefox() ? 'DOMMouseScroll' : 'mousewheel'
|
||||||
var ctx = '' // 画布上下文
|
var ctx = '' // 画布上下文
|
||||||
export default {
|
export default {
|
||||||
|
@ -223,16 +223,16 @@ export default {
|
||||||
getCanvasData() {
|
getCanvasData() {
|
||||||
return new Promise(async resolve => {
|
return new Promise(async resolve => {
|
||||||
this.visitTaskId = this.$router.currentRoute.query.visitTaskId
|
this.visitTaskId = this.$router.currentRoute.query.visitTaskId
|
||||||
this.canvasData = []
|
this.canvasData = []
|
||||||
let res = await getTableAnswerRowInfoList(this.visitTaskId)
|
const res = await getTableAnswerRowInfoList(this.visitTaskId)
|
||||||
res.Result.forEach(el => {
|
res.Result.forEach(el => {
|
||||||
if (!el.IsDicomReading){
|
if (!el.IsDicomReading) {
|
||||||
if (el.MeasureData) {
|
if (el.MeasureData) {
|
||||||
el.MeasureData = JSON.parse(el.MeasureData)
|
el.MeasureData = JSON.parse(el.MeasureData)
|
||||||
el.MeasureData.data.remark = el.OrderMarkName
|
el.MeasureData.data.remark = el.OrderMarkName
|
||||||
this.canvasData.push(el.MeasureData)
|
this.canvasData.push(el.MeasureData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
sessionStorage.setItem('measureData', this.canvasData)
|
sessionStorage.setItem('measureData', this.canvasData)
|
||||||
// await store.dispatch('reading/getMeasuredData', this.visitTaskId)
|
// await store.dispatch('reading/getMeasuredData', this.visitTaskId)
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
/>
|
/>
|
||||||
<div ref="imagesWrapper" class="images">
|
<div ref="imagesWrapper" class="images">
|
||||||
<div v-if="noData" class="empty-text">
|
<div v-if="noData" class="empty-text">
|
||||||
<slot name="empty">暂无数据</slot>
|
<slot name="empty">{{ $t('trial:reading:noneDicoms:noData') }}</slot>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="!noData" class="items" :style="itemsStyle">
|
<div v-show="!noData" class="items" :style="itemsStyle">
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -36,27 +36,31 @@ export default {
|
||||||
this.initForm()
|
this.initForm()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initForm() {
|
async initForm() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAutoCutNextTask().then(async res => {
|
try {
|
||||||
this.form.AutoCutNextTask = res.Result.AutoCutNextTask
|
const res = await getAutoCutNextTask()
|
||||||
this.loading = false
|
if (res.IsSuccess) {
|
||||||
}).catch(() => {
|
this.form.AutoCutNextTask = res.Result.AutoCutNextTask
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleSave() {
|
|
||||||
this.$refs.otherForm.validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.loading = true
|
|
||||||
setAutoCutNextTask(this.form).then((res) => {
|
|
||||||
this.loading = false
|
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
|
||||||
}).catch(() => {
|
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
this.loading = false
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async handleSave() {
|
||||||
|
const valid = await this.$refs.otherForm.validate()
|
||||||
|
if (!valid) return
|
||||||
|
this.loading = true
|
||||||
|
try {
|
||||||
|
const res = await setAutoCutNextTask(this.form)
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
}
|
||||||
|
this.loading = false
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,13 +83,16 @@ export default {
|
||||||
this.getWL()
|
this.getWL()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getWL() {
|
async getWL() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getUserWLTemplateList().then(res => {
|
try {
|
||||||
|
const res = await getUserWLTemplateList()
|
||||||
this.tableData = res.Result
|
this.tableData = res.Result
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.$emit('getWwcTpl')
|
this.$emit('getWwcTpl')
|
||||||
}).catch(() => { this.loading = false })
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.customWwc.title = this.$t('common:button:new')
|
this.customWwc.title = this.$t('common:button:new')
|
||||||
|
@ -101,22 +104,27 @@ export default {
|
||||||
this.row = Object.assign({}, row)
|
this.row = Object.assign({}, row)
|
||||||
this.customWwc.visible = true
|
this.customWwc.visible = true
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
async handleDelete(row) {
|
||||||
// '是否确认删除?'
|
// '是否确认删除?'
|
||||||
var msg = this.$t('trials:reading:wlTemplate:delete')
|
var msg = this.$t('trials:reading:wlTemplate:delete')
|
||||||
|
const confirm = await this.$confirm(
|
||||||
this.$confirm(msg, {
|
msg,
|
||||||
type: 'warning',
|
{
|
||||||
distinguishCancelAndClose: true
|
type: 'warning',
|
||||||
}).then(() => {
|
distinguishCancelAndClose: true
|
||||||
this.loading = true
|
}
|
||||||
deleteUserWLTemplate(row.Id).then(res => {
|
)
|
||||||
this.loading = false
|
if (confirm !== 'confirm') return
|
||||||
// 删除成功
|
this.loading = true
|
||||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
try {
|
||||||
this.getWL()
|
await deleteUserWLTemplate(row.Id)
|
||||||
}).catch(() => { this.loading = false })
|
this.loading = false
|
||||||
})
|
// 删除成功
|
||||||
|
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||||
|
this.getWL()
|
||||||
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,24 +83,23 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSave() {
|
async handleSave() {
|
||||||
this.$refs.wlForm.validate((valid) => {
|
const valid = await this.$refs.wlForm.validate()
|
||||||
if (valid) {
|
if (!valid) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
addOrUpdateUserWLTemplate(this.form).then((res) => {
|
try {
|
||||||
this.loading = false
|
await addOrUpdateUserWLTemplate(this.form)
|
||||||
this.$emit('getWL')
|
this.loading = false
|
||||||
this.$emit('close')
|
this.$emit('getWL')
|
||||||
if (this.form.Id) {
|
this.$emit('close')
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
if (this.form.Id) {
|
||||||
} else {
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.$message.success(this.$t('common:message:addedSuccessfully'))
|
} else {
|
||||||
}
|
this.$message.success(this.$t('common:message:addedSuccessfully'))
|
||||||
}).catch(() => {
|
|
||||||
this.loading = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
} catch (e) {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
|
|
Loading…
Reference in New Issue