|
@@ -15,7 +15,7 @@
|
|
|
<img v-if="form.loginBanner" :src="form.loginBanner" class="avatar" >
|
|
|
<i v-if="!form.loginBanner" class="el-icon-plus avatar-uploader-icon">上传</i>
|
|
|
</el-upload>
|
|
|
- <i v-if="form.loginBanner" class="el-icon-view" @click="lookImg(form.loginBanner)"
|
|
|
+ <i v-if="form.loginBanner" class="el-icon-view" @click="fullScreenViewClick(form.loginBanner)"
|
|
|
style="position: absolute;top:0;right:0;z-index:999;border-radius:3px;cursor:pointer;width:20px;
|
|
|
height:20px;line-height:20px;text-align: center;background: rgba(0,0,0,0.2);color:#fff;"></i>
|
|
|
</el-form-item>
|
|
@@ -33,7 +33,7 @@
|
|
|
<img v-if="form.homepageBanner" :src="form.homepageBanner" class="avatar" >
|
|
|
<i v-if="!form.homepageBanner" class="el-icon-plus avatar-uploader-icon">上传</i>
|
|
|
</el-upload>
|
|
|
- <i v-if="form.homepageBanner" class="el-icon-view" @click="lookImg(form.homepageBanner)"
|
|
|
+ <i v-if="form.homepageBanner" class="el-icon-view" @click="fullScreenViewClick(form.homepageBanner)"
|
|
|
style="position: absolute;top:0;right:0;z-index:999;border-radius:3px;cursor:pointer;width:20px;
|
|
|
height:20px;line-height:20px;text-align: center;background: rgba(0,0,0,0.2);color:#fff;"></i>
|
|
|
</el-form-item>
|
|
@@ -44,21 +44,21 @@
|
|
|
<p class="page-bottom-button-submit-p" @click="addOrUpdate">保存</p>
|
|
|
<p class="page-bottom-button-null-p"></p>
|
|
|
</div>
|
|
|
- <!--单张图片预览-->
|
|
|
- <lookSingleImgDialog ref="lookSingleImgDialog"></lookSingleImgDialog>
|
|
|
+ <!--全屏图片预览-->
|
|
|
+ <fullScreenView :fullScreenViewProps="fullScreenViewProps" ref="fullScreenView"></fullScreenView>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import { getConfigByType } from "@/api/commonality/permission";
|
|
|
import { addOrUpdate } from "@/api/systemManagement/index";
|
|
|
-import lookSingleImgDialog from '@/components/lookSingleImgDialog/lookSingleImgDialog.vue'
|
|
|
+import fullScreenView from "@/components/fullScreenView/fullScreenView.vue";
|
|
|
|
|
|
import store from '@/store'
|
|
|
export default {
|
|
|
name: "publicConfig",
|
|
|
components: {
|
|
|
- lookSingleImgDialog,
|
|
|
+ fullScreenView,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -79,6 +79,7 @@ export default {
|
|
|
{ required: true, message: "首页banner不能为空", trigger: "blur" }
|
|
|
],
|
|
|
},
|
|
|
+ fullScreenViewProps:[],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -106,9 +107,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- //查看图片
|
|
|
- lookImg(url){
|
|
|
- this.$refs.lookSingleImgDialog.lookImgDialogOpen(1,url,'查看');
|
|
|
+ fullScreenViewClick(url){
|
|
|
+ this.$set(this,'fullScreenViewProps',[url]);
|
|
|
+ this.$refs['fullScreenView'].initialize();
|
|
|
},
|
|
|
//获取数据
|
|
|
getConfigByType(){
|