|
|
|
@ -1188,26 +1188,33 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作">
|
|
|
|
<el-table-column label="操作">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="scope.row.link != null"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
@click="copyInstructionNameUrl(scope.row)"
|
|
|
|
|
|
|
|
>复制说明书
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="scope.row.link != null"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-save"
|
|
|
|
|
|
|
|
@click="viewInstrumentInstruction(scope.row)"
|
|
|
|
@click="viewInstrumentInstruction(scope.row)"
|
|
|
|
>查看
|
|
|
|
>查看说明书
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="scope.row.link != null"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-save"
|
|
|
|
|
|
|
|
@click="saveInstrumentInstruction(scope.row)"
|
|
|
|
@click="saveInstrumentInstruction(scope.row)"
|
|
|
|
>保存
|
|
|
|
>保存说明书
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
v-if="scope.row.link != null"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
|
|
@click="delInstrumentInstruction(scope)"
|
|
|
|
@click="delInstrumentInstruction(scope)"
|
|
|
|
>删除
|
|
|
|
>删除说明书
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
@ -2279,7 +2286,7 @@ export default {
|
|
|
|
for (let i = 0; i < response.data.length; i++) {
|
|
|
|
for (let i = 0; i < response.data.length; i++) {
|
|
|
|
this.instrumentInstructions.instructionList[i].fileList = [
|
|
|
|
this.instrumentInstructions.instructionList[i].fileList = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: response.data[i].name + '.pdf',
|
|
|
|
name: response.data[i].name,
|
|
|
|
url: response.data[i].url,
|
|
|
|
url: response.data[i].url,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
@ -2346,8 +2353,13 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
viewInstrumentInstruction(item) {
|
|
|
|
viewInstrumentInstruction(item) {
|
|
|
|
window.open(item.link, '_blank')
|
|
|
|
window.open(item.nameUrl, '_blank')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
copyInstructionNameUrl(item) {
|
|
|
|
|
|
|
|
navigator.clipboard.writeText(item.nameUrl).then(() => {
|
|
|
|
|
|
|
|
this.$message.success('已成功复制到剪贴板')
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
/* 模式 */
|
|
|
|
/* 模式 */
|
|
|
|
openModeIdDialog() {
|
|
|
|
openModeIdDialog() {
|
|
|
|
this.mode.modeIdsValueTemp = []
|
|
|
|
this.mode.modeIdsValueTemp = []
|
|
|
|
|