Commit afb3ddcf authored by Hagsn3's avatar Hagsn3

修改代码

parent 957d00f0
...@@ -93,11 +93,12 @@ ...@@ -93,11 +93,12 @@
</el-table-column> </el-table-column>
<el-table-column label="ptype" prop="ptype" :show-overflow-tooltip="true"> <el-table-column label="ptype" prop="ptype" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.ptype === '1'">jb</span> <span v-if="scope.row.ptype.trim() === '1'">jb</span>
<span v-else-if="scope.row.ptype === '2'">label</span> <span v-else-if="scope.row.ptype.trim() === '2'">label</span>
<span v-else-if="scope.row.ptype === '3'">wd</span> <span v-else-if="scope.row.ptype.trim() === '3'">wd</span>
<span v-else-if="scope.row.ptype === '4'">sl</span> <span v-else-if="scope.row.ptype.trim() === '4'">sl</span>
<span v-else-if="scope.row.ptype === '5'">zd</span> <span v-else-if="scope.row.ptype.trim() === '5'">zd</span>
<span v-else-if="scope.row.ptype.trim() === '20'">jl</span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -313,6 +314,10 @@ export default { ...@@ -313,6 +314,10 @@ export default {
{ {
dictLabel: 'zd', dictLabel: 'zd',
dictValue: '5' dictValue: '5'
},
{
dictLabel: 'jl',
dictValue: '20'
} }
], ],
addTypeOption: [ addTypeOption: [
......
...@@ -679,6 +679,7 @@ export default { ...@@ -679,6 +679,7 @@ export default {
}, },
// 文件上传成功处理 // 文件上传成功处理
handleFileSuccess(response) { handleFileSuccess(response) {
console.log('文件上传', response)
this.upload.open = false this.upload.open = false
this.upload.isUploading = false this.upload.isUploading = false
this.$refs.upload.clearFiles() this.$refs.upload.clearFiles()
...@@ -723,7 +724,7 @@ export default { ...@@ -723,7 +724,7 @@ export default {
formData.append('file', this.files) formData.append('file', this.files)
importJbapplyExcel(formData).then(res => { importJbapplyExcel(formData).then(res => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success(`成功导入` + res.data.rows + `条`) this.$message.success('共导入' + res.data.total + '条' + `成功导入` + res.data.rows + `条`)
this.importLoading = false this.importLoading = false
this.importControls.open = false this.importControls.open = false
this.files = [] this.files = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment