|
@@ -8,7 +8,6 @@
|
|
|
@close="close"
|
|
@close="close"
|
|
|
width="45%">
|
|
width="45%">
|
|
|
<div class='flex flex-center flex-col'>
|
|
<div class='flex flex-center flex-col'>
|
|
|
- <img src="../../../assets/img/import.png" class="pic"/>
|
|
|
|
|
<div class="flex flex-center full-width flex-justify-start">
|
|
<div class="flex flex-center full-width flex-justify-start">
|
|
|
<span class="bold mr-20">文件上传</span>
|
|
<span class="bold mr-20">文件上传</span>
|
|
|
<div>
|
|
<div>
|
|
@@ -67,9 +66,6 @@
|
|
|
@close="close"
|
|
@close="close"
|
|
|
title="数据表格导出"
|
|
title="数据表格导出"
|
|
|
width="45%">
|
|
width="45%">
|
|
|
- <div class='flex flex-center'>
|
|
|
|
|
- <img src="../../../assets/img/export.png" class="pic"/>
|
|
|
|
|
- </div>
|
|
|
|
|
<div class="flex flex-col">
|
|
<div class="flex flex-col">
|
|
|
<el-autocomplete
|
|
<el-autocomplete
|
|
|
v-model="keyWords"
|
|
v-model="keyWords"
|
|
@@ -222,7 +218,7 @@ export default {
|
|
|
this.$api.params.getListByKey({ type: this.fieldType[index].dictKey, export: 1 }).then(res => {
|
|
this.$api.params.getListByKey({ type: this.fieldType[index].dictKey, export: 1 }).then(res => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
const tmps = res.data.records.map(e => {
|
|
const tmps = res.data.records.map(e => {
|
|
|
- e.checked = this.fieldType[index].params === undefined ? true : this.fieldType[index].params.findIndex(sub => sub.id === e.id) > -1
|
|
|
|
|
|
|
+ e.checked = this.fieldType[index].params === undefined ? false : this.fieldType[index].params.findIndex(sub => sub.id === e.id) > -1
|
|
|
return e
|
|
return e
|
|
|
}).filter(sub => sub.code !== 'name')
|
|
}).filter(sub => sub.code !== 'name')
|
|
|
if (this.fieldType[index].params !== undefined) {
|
|
if (this.fieldType[index].params !== undefined) {
|
|
@@ -255,8 +251,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
this.$message.success('正在导入,请稍后...')
|
|
this.$message.success('正在导入,请稍后...')
|
|
|
- if (this.user.info.viewStage === 0) {
|
|
|
|
|
- this.dept.isReport = 1
|
|
|
|
|
|
|
+ if (this.user.info.viewStage === 1) {
|
|
|
|
|
+ this.dept = Object.assign({}, this.dept, { isReport: 1 })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.dept = Object.assign({}, this.dept, { isReport: 0 })
|
|
|
}
|
|
}
|
|
|
this.$refs.upload.submit()
|
|
this.$refs.upload.submit()
|
|
|
},
|
|
},
|
|
@@ -268,7 +266,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
allChange (res) {
|
|
allChange (res) {
|
|
|
- console.log(res)
|
|
|
|
|
this.fieldType[this.selectIndex].params = this.fieldType[this.selectIndex].params.map(sub => {
|
|
this.fieldType[this.selectIndex].params = this.fieldType[this.selectIndex].params.map(sub => {
|
|
|
sub.checked = res
|
|
sub.checked = res
|
|
|
return sub
|
|
return sub
|