Commit 7738646c by 王志慧

Merge branch 'yc_v1.0.0' of http://192.168.3.233:8090/saas/scrm-micro-charge into yc_v1.0.0

2 parents 85368aab b7ce5611
......@@ -42,7 +42,8 @@
<a href="javascript:void(0);" @click="exportLink">下载模板</a>
</div>
</el-form-item>
<div class="tip">支持扩展名:xlsx、xls、csv</div>
<div v-if="batchForm.exportUrl" class="tip" style="color: #333;">{{ batchForm.exportName }}</div>
<div v-else class="tip">支持扩展名:xlsx、xls</div>
</el-form>
</template>
<div v-else class="file-info">
......@@ -314,7 +315,6 @@ export default {
if (res) {
this.batchForm.exportName = file.name
this.batchForm.exportUrl = res
this.handleSaveImport()
}
this.$refs.file.value = ''
})
......@@ -358,7 +358,7 @@ export default {
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.increaseTime&&this.searchForm.increaseTime.length) {
if (this.searchForm.increaseTime && this.searchForm.increaseTime.length) {
params.startIncreaseTime = dayjs(this.searchForm.increaseTime[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.endIncreaseTime = dayjs(this.searchForm.increaseTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
......
......@@ -64,7 +64,8 @@
<a :href="tempUrl" target="_blank">下载模板</a>
</div>
</el-form-item>
<div class="tip">支持扩展名:xlsx、xls</div>
<div v-if="batchForm.exportUrl" class="tip" style="color: #333;">{{ batchForm.exportName }}</div>
<div v-else class="tip">支持扩展名:xlsx、xls</div>
</el-form>
</template>
<div v-else class="file-info">
......@@ -415,7 +416,9 @@ export default {
},
{
label: '车位备注',
prop: 'parkingRemark'
prop: 'parkingRemark',
line: 1,
width: 200
},
{
label: '操作',
......@@ -451,7 +454,6 @@ export default {
this.$apis.parkingSpace
.importParkingSpaceApi(params)
.then(res => {
console.log(res, 'exporres')
this.$message({
message: res.code == '0' ? '导入成功' : res.message,
type: res.code == '0' ? 'success' : 'error',
......@@ -503,7 +505,6 @@ export default {
if (res) {
this.batchForm.exportName = file.name
this.batchForm.exportUrl = res
this.handleSaveImport()
}
this.$refs.file.value = ''
})
......@@ -649,6 +650,7 @@ export default {
for (const key in this.basicForm) {
this.basicForm[key] = row[key]
}
this.basicForm.merchantId = this.basicForm.merchantId ? this.basicForm.merchantId + '' : ''
this.parkingPlaceVisible = true
},
handleOk() {
......@@ -682,6 +684,7 @@ export default {
parkingRemark: ''
}
this.parkingPlaceVisible = false
this.$refs.parkingPlaceRef?.$refs?.formRef?.clearValidate()
},
setTableFinishFun() {
this.$refs.infoTableRef.data.length ? (this.$refs.infoTableRef.tableHeightValues = '') : this.$refs.infoTableRef.setTableHeightFun()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!