|
|
|
|
@ -1176,7 +1176,7 @@
|
|
|
|
|
>
|
|
|
|
|
<!-- scope.row.link -->
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-upload
|
|
|
|
|
<el-upload ref="bookUpload"
|
|
|
|
|
class="upload-demo"
|
|
|
|
|
:action="uploadUrl"
|
|
|
|
|
:headers="headers"
|
|
|
|
|
@ -1217,6 +1217,7 @@
|
|
|
|
|
@click="viewInstrumentInstruction(scope.row)"
|
|
|
|
|
>查看说明书
|
|
|
|
|
</el-button>
|
|
|
|
|
<br/>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.link != null"
|
|
|
|
|
size="mini"
|
|
|
|
|
@ -1885,7 +1886,7 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(this.nurseList[i].message == '') {
|
|
|
|
|
this.$modal.msgError('请上传初次护理规则提示内容');
|
|
|
|
|
this.$modal.msgError('请输入初次护理规则提示内容');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1898,7 +1899,7 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.introduceList[i].message == '') {
|
|
|
|
|
this.$modal.msgError('请上传仪器介绍规则提示内容');
|
|
|
|
|
this.$modal.msgError('请输入仪器介绍规则提示内容');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -2103,8 +2104,10 @@ export default {
|
|
|
|
|
this.form.bluetoothClosedTitle = null;
|
|
|
|
|
this.form.bluetoothClosedContent = null;
|
|
|
|
|
this.form.iotVersionUpgrade = null;
|
|
|
|
|
this.form.modeIdsValue = [];
|
|
|
|
|
} else {
|
|
|
|
|
this.form.model = 'WL200';
|
|
|
|
|
this.form.model = null;
|
|
|
|
|
this.form.modeIdsValue = [];
|
|
|
|
|
}
|
|
|
|
|
/* 模式选项 */
|
|
|
|
|
this.mode.modeIdsOptions = [];
|
|
|
|
|
@ -2455,7 +2458,7 @@ export default {
|
|
|
|
|
this.instrumentInstructions.instructionList[index].link =
|
|
|
|
|
response.data.url
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error('图片插入失败')
|
|
|
|
|
this.$message.error('文件上传失败')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
viewInstrumentInstruction(item) {
|
|
|
|
|
@ -2553,6 +2556,13 @@ export default {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 校验文件名
|
|
|
|
|
var regex = /^[a-zA-Z0-9\-_.]+$/;
|
|
|
|
|
if(!regex.test(file.name)) {
|
|
|
|
|
this.$modal.msgError(`文件名只能由字母、数字、以及一些常用的特殊符号(比如连字符、下划线和点号等)组成`);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
handleBeforeUploadImage(file) {
|
|
|
|
|
|