|
|
|
@ -17,13 +17,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tip" v-else-if="excuteRulesType === 'fail'">
|
|
|
|
|
<div class="rules-label">
|
|
|
|
|
<i class="iconfont icon-shibai Warning"></i><span>校验失败</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="rules-label"><i class="iconfont icon-shibai Warning"></i><span>校验失败</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tip no-data" v-else>
|
|
|
|
|
<i class="iconfont icon-meiyoudingdan"></i>
|
|
|
|
|
<div class="text">暂无校验, <a-button size="small" type="link" class="btn" @click="checkFun"> 立即校验 </a-button></div>
|
|
|
|
|
<div class="text">
|
|
|
|
|
暂无校验, <a-button size="small" type="link" class="btn" @click="checkFun"> 立即校验 </a-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-card>
|
|
|
|
@ -285,7 +285,11 @@ export default {
|
|
|
|
|
locaService: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
created() {
|
|
|
|
|
this.$bus.$on('WebTest001', val => {
|
|
|
|
|
this.WebTest001(val)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
'$route.query': {
|
|
|
|
|
immediate: true,
|
|
|
|
@ -392,6 +396,7 @@ export default {
|
|
|
|
|
.then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.fileList = res.data
|
|
|
|
|
console.log(this.fileList)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(err => {
|
|
|
|
@ -421,12 +426,20 @@ export default {
|
|
|
|
|
this.upFileList = newFileList
|
|
|
|
|
},
|
|
|
|
|
beforeUpload(file) {
|
|
|
|
|
debugger
|
|
|
|
|
this.upFileList = [...this.upFileList, file]
|
|
|
|
|
return false
|
|
|
|
|
},
|
|
|
|
|
WebTest001(val) {
|
|
|
|
|
console.log(val.upFileList)
|
|
|
|
|
this.beforeUpload(val.upFileList)
|
|
|
|
|
// this.upFileList = this.upFileList.unshift(val.upFileList)
|
|
|
|
|
this.attachCode = val.attachCode
|
|
|
|
|
this.attachName = val.attachName
|
|
|
|
|
this.handleUpload()
|
|
|
|
|
},
|
|
|
|
|
handleUpload() {
|
|
|
|
|
const { upFileList, attachCode, attachName } = this
|
|
|
|
|
console.log(upFileList, attachCode, attachName)
|
|
|
|
|
if (upFileList.length === 0) {
|
|
|
|
|
this.$message.error('请上传文件')
|
|
|
|
|
return false
|
|
|
|
@ -869,7 +882,6 @@ export default {
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
.text {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|