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