【ID1000452】仪器管理-仪器列表-配置说明书,说明书链接未上传正确链接,上传了图片,上传成功,点击【查看说明书】跳转异常

master
382696293@qq.com 2 years ago
parent 40a63515fa
commit 72a73de344

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

Loading…
Cancel
Save