带入标准,勘误件无法显示.switch没写break(@_@;)

This commit is contained in:
zhaokaiyao@91isoft.com
2021-10-26 17:21:36 +08:00
parent 1f10184ee4
commit a5ef6d3625
@@ -1814,7 +1814,11 @@
// 带入 // 带入
case 2: case 2:
if (this.standardCheckedList.length === 1) { if (this.standardCheckedList.length === 1) {
const bringData = this.standardCheckedList[0] this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
bringData.signFlag = this.form.signFlag && this.form.signFlag != '' ? this.form.signFlag : '0' bringData.signFlag = this.form.signFlag && this.form.signFlag != '' ? this.form.signFlag : '0'
bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0' bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0'
@@ -1847,14 +1851,15 @@
this.busVsFunc() this.busVsFunc()
this.modelFunc() this.modelFunc()
this.$forceUpdate() this.$forceUpdate()
}
console.log("this.form",this.form);
// 遍历对象初始化文件信息 // 遍历对象初始化文件信息
for(const p in this.form) { for(const p in this.form) {
if (typeof (this.form[p]) != "function") { if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]); this.initializeFileList(p,this.form[p]);
} }
} }
console.log("res",res);
})
} else if (this.standardCheckedList.length > 1) { } else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条标准信息') this.$message.warning('最多可以带入一条标准信息')
@@ -1890,8 +1895,8 @@
this.getFileList(value,this.kwjFileList); this.getFileList(value,this.kwjFileList);
break; break;
case 'jdwj': case 'jdwj':
debugger
this.getFileList(value,this.jdwjFileList); this.getFileList(value,this.jdwjFileList);
console.log("初始",this.jdwjFileList)
break; break;
case 'bpg': case 'bpg':
this.getFileList(value,this.bpgFileList); this.getFileList(value,this.bpgFileList);
@@ -1909,7 +1914,7 @@
}, { }, {
_this: this _this: this
}, res => { }, res => {
debugger
let fileList = res.data let fileList = res.data
if (fileList != null && fileList.length > 0) { if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) { for (let i = 0; i < fileList.length; i++) {
@@ -2454,6 +2459,7 @@
break; break;
case 'jdwj': case 'jdwj':
this.fileList=this.jdwjFileList this.fileList=this.jdwjFileList
break;
case 'kwj': case 'kwj':
this.fileList=this.kwjFileList this.fileList=this.kwjFileList
break; break;