|
@@ -552,6 +552,7 @@ import { getStoreInfo, businessLicenseCheck} from '@/api/hisStore/store'
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ isViewMode: false, // 添加这一行
|
|
|
reportFileList:[],
|
|
reportFileList:[],
|
|
|
fileList:[],
|
|
fileList:[],
|
|
|
previewImageUrl: '', // 添加预览图片URL
|
|
previewImageUrl: '', // 添加预览图片URL
|
|
@@ -717,8 +718,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
close() {
|
|
close() {
|
|
|
|
|
+ //原有方法
|
|
|
|
|
+ // this.$store.dispatch('tagsView/delView', this.$route)
|
|
|
|
|
+ // this.$router.push({ path: '/index' })
|
|
|
this.$store.dispatch('tagsView/delView', this.$route)
|
|
this.$store.dispatch('tagsView/delView', this.$route)
|
|
|
- this.$router.push({ path: '/index' })
|
|
|
|
|
|
|
+ // 检查当前路径,避免重复跳转
|
|
|
|
|
+ if (this.$route.path !== '/index') {
|
|
|
|
|
+ this.$router.replace({ path: '/index' })
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
// 通用文件上传成功处理函数
|
|
// 通用文件上传成功处理函数
|
|
|
handleFileSuccess(response, file, field) {
|
|
handleFileSuccess(response, file, field) {
|
|
@@ -1026,7 +1033,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
//长期有效营业执照选择
|
|
//长期有效营业执照选择
|
|
|
switchChange(){
|
|
switchChange(){
|
|
|
- console.log(this.form.isBusinessLicensePermanent);
|
|
|
|
|
|
|
+ // console.log(this.form.isBusinessLicensePermanent);
|
|
|
},
|
|
},
|
|
|
// 优化所有图片的删除逻辑,避免冗余代码、阅读困难
|
|
// 优化所有图片的删除逻辑,避免冗余代码、阅读困难
|
|
|
handleDeleteLogo() {
|
|
handleDeleteLogo() {
|
|
@@ -1067,10 +1074,10 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleRemove(file, fileList) {
|
|
handleRemove(file, fileList) {
|
|
|
- console.log(file, fileList);
|
|
|
|
|
|
|
+ // console.log(file, fileList);
|
|
|
},
|
|
},
|
|
|
handlePreview(file) {
|
|
handlePreview(file) {
|
|
|
- console.log(file);
|
|
|
|
|
|
|
+ // console.log(file);
|
|
|
},
|
|
},
|
|
|
handleExceed(files, fileList) {
|
|
handleExceed(files, fileList) {
|
|
|
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
|
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|