jsk
This commit is contained in:
parent
3427938124
commit
2d61c70638
|
|
@ -80,7 +80,7 @@
|
|||
/>
|
||||
|
||||
<!-- 添加或修改参数配置对话框 -->
|
||||
<el-dialog title="上传定值单" :visible.sync="open" width="450px" append-to-body>
|
||||
<el-dialog title="上传定值单" :visible.sync="open" width="450px" append-to-body>
|
||||
<div style="width: 100%;display: flex;align-items: center;">
|
||||
<el-upload
|
||||
:http-request="(obj) => imgUpLoad(obj, 'fileUrl')"
|
||||
|
|
@ -88,7 +88,7 @@
|
|||
style="width: 100%;"
|
||||
:limit="6"
|
||||
:file-list="fileList"
|
||||
:show-file-list="true"
|
||||
:show-file-list="true"
|
||||
accept=".png, .jpg, .jpeg"
|
||||
:on-success="handleAvatarSuccess"
|
||||
:before-upload="handleBeforeUpload"
|
||||
|
|
@ -98,14 +98,14 @@
|
|||
drag
|
||||
>
|
||||
<i class="el-icon-upload"></i>
|
||||
<div class="el-upload__text"
|
||||
<div class="el-upload__text"
|
||||
>将文件拖到此处,或<em>点击上传</em></div
|
||||
>
|
||||
<div class="el-upload__tip text-center" slot="tip">
|
||||
<div>仅允许导入png、jpg、jpeg图片格式文件。</div>
|
||||
<div>单个文件大小不超过10M</div>
|
||||
</div>
|
||||
</el-upload>
|
||||
</el-upload>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
|
|
@ -115,31 +115,31 @@
|
|||
<!-- 识别解析结果 -->
|
||||
<el-dialog :title="titleView+''" :visible.sync="openView" width="800px" append-to-body>
|
||||
<table style="width: 100%;" v-if="headList.length>0">
|
||||
<tr v-if="headList[0].attributeKey=='通知书名称'">
|
||||
<tr v-if="headList[0].attributeKey=='通知书名称'">
|
||||
<th colspan="5" style="height: 40px;">{{ headList[0].attributeValue }}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{{headList[1].attributeKey}}: {{ headList[1].attributeValue }}</td>
|
||||
<td>{{headList[2].attributeKey}}: {{ headList[2].attributeValue }}</td>
|
||||
<td colspan="2">{{headList[3].attributeKey}}: {{ headList[3].attributeValue }}</td>
|
||||
<td colspan="2">{{headList[1].attributeKey}}: {{ headList[1].attributeValue }}</td>
|
||||
<td>{{headList[2].attributeKey}}: {{ headList[2].attributeValue }}</td>
|
||||
<td colspan="2">{{headList[3].attributeKey}}: {{ headList[3].attributeValue }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{headList[4].attributeKey}}</td>
|
||||
<td>{{headList[5].attributeKey}}</td>
|
||||
<td>{{headList[6].attributeKey}}</td>
|
||||
<td>{{headList[7].attributeKey}}</td>
|
||||
<td>{{headList[8].attributeKey}}</td>
|
||||
<td>{{headList[4].attributeKey}}</td>
|
||||
<td>{{headList[5].attributeKey}}</td>
|
||||
<td>{{headList[6].attributeKey}}</td>
|
||||
<td>{{headList[7].attributeKey}}</td>
|
||||
<td>{{headList[8].attributeKey}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{headList[4].attributeValue}}</td>
|
||||
<td>{{headList[5].attributeValue}}</td>
|
||||
<td>{{headList[6].attributeValue}}</td>
|
||||
<td>{{headList[7].attributeValue}}</td>
|
||||
<td>{{headList[8].attributeValue}}</td>
|
||||
<td>{{headList[4].attributeValue}}</td>
|
||||
<td>{{headList[5].attributeValue}}</td>
|
||||
<td>{{headList[6].attributeValue}}</td>
|
||||
<td>{{headList[7].attributeValue}}</td>
|
||||
<td>{{headList[8].attributeValue}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%;" v-if="bhdzList.length>0">
|
||||
<tr>
|
||||
<tr>
|
||||
<th colspan="5" style="height: 40px;">保护定值</th>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in bhdzList" :key="index">
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%;" v-if="kzzList.length>0">
|
||||
<tr>
|
||||
<tr>
|
||||
<th colspan="5" style="height: 40px;">控制字</th>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in kzzList" :key="index">
|
||||
|
|
@ -155,12 +155,12 @@
|
|||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%;" v-if="sbcsList.length>0">
|
||||
<tr>
|
||||
<tr>
|
||||
<th colspan="5" style="height: 40px;">设备参数</th>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in sbcsList" :key="index">
|
||||
<!-- <tr v-for="(item,index) in sbcsList" :key="index">
|
||||
<td v-for="(subText,subIndex) in item.split('@')" :key="subIndex">{{subText}}</td>
|
||||
</tr>
|
||||
</tr> -->
|
||||
</table>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
|
@ -212,7 +212,7 @@
|
|||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
keyWord:null,
|
||||
},
|
||||
},
|
||||
// 表单参数
|
||||
baseForm: {
|
||||
protectionId:""
|
||||
|
|
@ -227,7 +227,7 @@
|
|||
bhdzList:[],
|
||||
kzzList:[],
|
||||
sbcsList:[],
|
||||
|
||||
|
||||
};
|
||||
},
|
||||
mounted(){
|
||||
|
|
@ -276,13 +276,13 @@
|
|||
// 表单重置
|
||||
reset() {
|
||||
this.baseForm = {
|
||||
protectionId:"",
|
||||
};
|
||||
protectionId:"",
|
||||
};
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.open = true;
|
||||
this.fileList=[]
|
||||
this.checkUrlList=[]
|
||||
this.checkUrlNameList=[]
|
||||
|
|
@ -297,7 +297,7 @@
|
|||
this.checkUrlNameList=[]
|
||||
// this.fileList=[{url:this.baseForm.imgUrl}]
|
||||
// this.checkUrlList=[this.baseForm.imgUrl]
|
||||
// this.checkUrlNameList=[this.baseForm.imgName]
|
||||
// this.checkUrlNameList=[this.baseForm.imgName]
|
||||
},
|
||||
//识别结果
|
||||
handleView(row) {
|
||||
|
|
@ -327,10 +327,15 @@
|
|||
}
|
||||
editProdectionApi(params).then(response => {
|
||||
console.log("editProdectionApi",response);
|
||||
this.getList();
|
||||
this.open = false;
|
||||
this.$modal.msgSuccess("操作成功");
|
||||
return;
|
||||
if(response.code==200){
|
||||
this.getList();
|
||||
this.open = false;
|
||||
this.$modal.msgSuccess("操作成功");
|
||||
return;
|
||||
}else{
|
||||
this.$modal.msgError(response.msg);
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
|
|
@ -392,9 +397,9 @@
|
|||
},
|
||||
// 上传之前
|
||||
handleBeforeUpload(file) {
|
||||
const isLt = file.size / 1024 / 1024 < 10
|
||||
const isLt = file.size / 1024 / 1024 < 20
|
||||
if (!isLt) {
|
||||
this.$modal.msgError(`图片大小不能超过 10 MB`)
|
||||
this.$modal.msgError(`图片大小不能超过 20 MB`)
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue