|
@@ -14,13 +14,13 @@
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="24" :lg="24" class="item">
|
|
|
+ <el-col v-if="formData.loginStatus === 'FAIL'" :xs="24" :sm="24" :lg="24" class="item">
|
|
|
<div class="label" style="height: auto">选择登录成功项目</div>
|
|
|
<div class="value" style="height: 100%; display: block">
|
|
|
<el-col :span="7" class="flex-box">
|
|
|
<div class="flex-box-title">项目编号{{ formData.loginStatus === 'REJECT'?'*': '' }}</div>
|
|
|
- <el-input v-model="formData.successLoginProject" class="my-input" placeholder="请填写" size="mini" clearable >
|
|
|
- <el-button @click="handleFocus" slot="append">引入</el-button>
|
|
|
+ <el-input v-model="formData.successLoginProject" class="my-input" placeholder="请填写" size="mini" clearable>
|
|
|
+ <el-button slot="append" @click="handleFocus">引入</el-button>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="7" class="flex-box">
|
|
@@ -82,7 +82,7 @@
|
|
|
width: 120px;
|
|
|
height: 120px;align-items: center;
|
|
|
justify-content: center;"
|
|
|
- @click="openPdf(item.fileUrl)"
|
|
|
+ @click="openPdf(item)"
|
|
|
>
|
|
|
<img v-if="checkFileType(item.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
|
|
|
<img v-if="checkFileType(item.fileUrl) == 'excel'" class="file" src="@/assets/common/excel.png">
|
|
@@ -105,7 +105,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- -->
|
|
|
- <LoginSuccess :pageType='pageType' :formData='formData' :showDialog="showDialog" @success='handleSuccess' @cancel='handleCancel'/>
|
|
|
+ <LoginSuccess :page-type="pageType" :form-data="formData" :show-dialog="showDialog" @success="handleSuccess" @cancel="handleCancel" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -148,27 +148,26 @@ export default {
|
|
|
{ label: '登录不成功', value: 'FAIL' },
|
|
|
{ label: '驳回', value: 'REJECT' }
|
|
|
],
|
|
|
- showDialog:false
|
|
|
+ showDialog: false
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- console.log(this.formData,this.module,8888);
|
|
|
+ console.log(this.formData, this.module, 8888)
|
|
|
},
|
|
|
methods: {
|
|
|
- handleSuccess(val){
|
|
|
- console.log(val);
|
|
|
- let res = val[0]
|
|
|
+ handleSuccess(val) {
|
|
|
+ console.log(val)
|
|
|
+ const res = val[0]
|
|
|
this.formData.successLoginProject = res.projectNo
|
|
|
this.formData.customerNumber = res.customerNumber
|
|
|
this.formData.customerName = res.customerName
|
|
|
this.formData.serviceName = res.serviceName
|
|
|
this.formData.serviceNumber = res.serviceNumber
|
|
|
-
|
|
|
},
|
|
|
- handleCancel(){
|
|
|
+ handleCancel() {
|
|
|
this.showDialog = false
|
|
|
},
|
|
|
- handleFocus(){
|
|
|
+ handleFocus() {
|
|
|
this.showDialog = true
|
|
|
},
|
|
|
onSbumit() {},
|
|
@@ -193,8 +192,15 @@ export default {
|
|
|
return ''
|
|
|
}
|
|
|
},
|
|
|
- openPdf(pdfUrl) {
|
|
|
- window.open(this.$imageUrl + pdfUrl)
|
|
|
+ openPdf(item) {
|
|
|
+ console.log(item, 999)
|
|
|
+ const link = document.createElement('a')
|
|
|
+ link.style.display = 'none'
|
|
|
+ link.href = this.$imageUrl + item.fileUrl
|
|
|
+ link.download = item.fileName
|
|
|
+ document.body.appendChild(link)
|
|
|
+ link.click()
|
|
|
+ document.body.removeChild(link)
|
|
|
}
|
|
|
}
|
|
|
}
|