|
|
@ -12,6 +12,7 @@ |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="onSearch">{{$t('form.search')}}</el-button> |
|
|
<el-button type="primary" @click="onSearch">{{$t('form.search')}}</el-button> |
|
|
<el-button @click="reset">{{ $t('form.reset') }}</el-button> |
|
|
<el-button @click="reset">{{ $t('form.reset') }}</el-button> |
|
|
|
|
|
<el-button type="success" @click="gotoYq" v-if="showYqButton" :disabled="isDisabled">{{ $t('form.jzyqk') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table :data="dataSource" :row-key="(row) => row.id" @selection-change="handleSelectionChange"> |
|
|
<el-table :data="dataSource" :row-key="(row) => row.id" @selection-change="handleSelectionChange"> |
|
|
@ -85,6 +86,10 @@ export default { |
|
|
type: [String,Number], |
|
|
type: [String,Number], |
|
|
default: "", |
|
|
default: "", |
|
|
}, |
|
|
}, |
|
|
|
|
|
showYqButton: {//是否显示跳转仪器库按钮 |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -102,6 +107,14 @@ export default { |
|
|
dataSource: [] |
|
|
dataSource: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
isDisabled() { |
|
|
|
|
|
if (!this.localSelectedId) { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
selectedId: { |
|
|
selectedId: { |
|
|
immediate: true, |
|
|
immediate: true, |
|
|
@ -169,6 +182,13 @@ export default { |
|
|
this.localSelectedRows = selection; |
|
|
this.localSelectedRows = selection; |
|
|
this.$emit("radioSelect","", selection); |
|
|
this.$emit("radioSelect","", selection); |
|
|
}, |
|
|
}, |
|
|
|
|
|
gotoYq() { |
|
|
|
|
|
if(!this.localSelectedId){ |
|
|
|
|
|
this.$message.warning('请选择仪器') |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
window.open(`http://172.21.10.168:9999/#/hx_business/use_record?yqCode=${this.localSelectedId}`,'_blank'); |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|