Commit dbd1c02b authored by 燕南天's avatar 燕南天

完善飞飞后台项目

parent f7380696
......@@ -4,12 +4,8 @@
* @param prod==>正式上线环境
* */
module.exports = {
// sit: "http://192.168.1.102:8080/logistics-mgt",//超哥本地
// sit: "http://192.168.200.173:8080",//杨飞本地
// sit:"http://flynet.imwork.net:35609/logistics-mgt",
// sit:"https://chalk.fqyxa.com", //上线环境
// sit:"http://192.168.1.103:8781",//毅豪本地
sit:"http://192.168.1.112:8080/store-system",
sit:"http://192.168.1.104:8080/store-system",//毅豪本地
// sit:"http://192.168.1.112:8080/store-system",
// -----------------------------------------------------------------
prod: "http:正式环境"
}
......@@ -14,7 +14,7 @@ module.exports = {
// Various Dev Server settings
// host: 'localhost', // can be overwritten by process.env.HOST
host: '192.168.1.112', // can be overwritten by process.env.HOST
host: '192.168.1.107', // can be overwritten by process.env.HOST
port: 9527, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
......
import request from './request'
import qs from 'qs'
// 获取单位组织架构数据
export function getDepsInfo() {
// 地址三级联动
export function getProviceList() {
return request({
url: '/common/getDepsInfo',
method: 'post'
url: '/pca/getProviceList',
method: 'post',
})
}
// 获取访问事由列表
export function getVisitReasons() {
export function getCityList(data) {
return request({
url: '/common/getVisitReasons',
method: 'post'
url: '/pca/getCityList',
method: 'post',
data: qs.stringify(data)
})
}
// 根据科室id查询,人员信息
export function getMemberListBySection(data) {
export function getAreaList(data) {
return request({
url: '/member/getMemberListBySection',
url: '/pca/getAreaList',
method: 'post',
data: qs.stringify(data)
})
}
\ No newline at end of file
}
......@@ -9,8 +9,6 @@ export function storeList(data) {
})
}
export function addOrEditStore(data) {
return request({
url: '/store/addOrEditStore',
......@@ -29,7 +27,11 @@ export function delStore(data) {
})
}
export function getStoreAdministrators() {
return request({
url: '/administrators/getStoreAdministrators',
method: 'post'
})
}
......@@ -10,7 +10,6 @@ export function workerList(data) {
}
export function addOrEditWorker(data) {
return request({
url: '/worker/addOrEditWorker',
......@@ -33,3 +32,12 @@ export function delWorker(data) {
export function getStores() {
return request({
url: '/store/getStores',
method: 'post'
})
}
.dir-view-bg {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .7);
position: fixed;
top: 0;
left: 0;
z-index: 10001;
}
.dir-view-img {
position: fixed;
transition: all .3s;
z-index: 10002;
cursor: pointer;
}
.dir-img-style {
height: 60px;
width: 60px;
background-size: 60px 60px;
background-image: url("../../../static/images/xuanzhuan.png");
position: absolute;
right: 200px;
top:120px;
}
export default{
import "./viewImg.css"
export default {
bind(el, binding) {
// 第一步先改变hover样式
el.style.cursor = "pointer";
el.addEventListener('click', e => {
// copy,移动图片
copyAndMoveImg(e)
// 关闭遮罩,还原图片
}, false)
}
}
function copyAndMoveImg(e) {
// 创建遮罩
let current = 0
let content=`<img :src=require("../../../../static/images/xuanzhuan.png") style='height:30px;width=30px;margin-right:200px;margin-bottom:120px;'>`
let viewImgBg = document.createElement('div');
let div1 = document.createElement('div');
viewImgBg.className = "dir-view-bg";
viewImgBg.appendChild(div1)
div1.innerHTML=content
document.body.appendChild(viewImgBg);
const ele = e.target
const elePositionParam = ele.getBoundingClientRect();
const imgSrc = ele.getAttribute("src");
const newParam = caculNewParam(elePositionParam);
let newImg = document.createElement("img");
newImg.className = "dir-view-img";
renderImg(newImg, elePositionParam);
newImg.setAttribute("src", imgSrc);
document.body.appendChild(newImg);
div1.className="dir-img-style"
div1.onclick = function (e) {
current = current + 90;
newImg.style.transform = 'rotate(' + current + 'deg)'
e.stopPropagation()
}
setTimeout(() => {
renderImg(newImg, newParam, el => {
el.addEventListener('click', e => {
const cfg = {
newImg: newImg,
elePositionParam: elePositionParam
}
removeDom(cfg)
}, false)
})
}, 100)
viewImgBg.addEventListener('click', e => {
const cfg = {
newImg: newImg,
elePositionParam: elePositionParam
}
removeDom(cfg)
}, false)
}
function renderImg(ele, imgParam, cb) {
ele.style.width = `${imgParam.width}px`;
ele.style.height = `${imgParam.height}px`;
ele.style.top = `${imgParam.top}px`;
ele.style.left = `${imgParam.left}px`;
cb ? cb(ele) : ''
}
// 计算图片的新参数
function caculNewParam(param) {
const _WIN_HEIGHT = document.body.clientHeight;
const _WIN_WIDTH = document.body.clientWidth;
return {
left: (_WIN_WIDTH - param.width * 3) / 2,
top: (_WIN_HEIGHT - param.height * 3) / 2,
width: param.width * 3,
height: param.height * 3,
}
}
// 还原,销毁dom
function removeDom(cfg) {
renderImg(cfg.newImg, cfg.elePositionParam, el => {
setTimeout(() => {
const willRemoveImg = document.getElementsByClassName("dir-view-img")[0]
const willRemoveBg = document.getElementsByClassName("dir-view-bg")[0]
document.body.removeChild(willRemoveBg)
document.body.removeChild(willRemoveImg)
}, 300)
})
}
......@@ -177,26 +177,7 @@
<el-col :span="dialogType==3?12:8">
<h1 class="food-title">活动信息</h1>
<!-- <el-row :gutter="15">
<el-col :span="6" class="content-left"><label>类型</label></el-col>
<el-col :span="18" class="content-right" style="width:330px">
<el-radio-group v-if="dialogType===1 || dialogType===2" v-model="dialogBindData.advertType">
<el-radio size="small" :label="1">活动广告</el-radio>
<el-radio size="small" :label="2">系统公告</el-radio>
<el-radio size="small" :label="3">新闻资讯</el-radio>
</el-radio-group>
<span v-else>{{viewAdverType(dialogBindData.advertType)}}</span>
</el-col>
</el-row> -->
<!-- <el-row :gutter="15">
<el-col :span="6" class="content-left"><label>名称</label></el-col>
<el-col :span="18" class="content-right">
<el-input v-if="dialogType===1 || dialogType===2" size="small" placeholder="请输入活动名称" resize="none" v-model="dialogBindData.advertName"></el-input>
<span v-else>{{dialogBindData.advertName}}</span>
</el-col>
</el-row> -->
<el-row :gutter="15">
<el-col :span="6" class="content-left"><label>标题</label></el-col>
<el-col :span="18" class="content-right">
......@@ -205,69 +186,27 @@
</el-col>
</el-row>
<!-- <el-row :gutter="15">
<el-col :span="6" class="content-left"><label>副标题</label></el-col>
<el-col :span="18" class="content-right">
<el-input v-if="dialogType===1 || dialogType===2" size="small" type="textarea" rows="3" placeholder="请输入活动副标题" resize="none" v-model="dialogBindData.advertSubtitle"></el-input>
<span v-else>{{dialogBindData.advertSubtitle}}</span>
</el-col>
</el-row> -->
<!-- <el-row :gutter="15">
<el-col :span="6" class="content-left"><label>外链地址</label></el-col>
<el-col :span="18" class="content-right">
<el-input v-if="dialogType===1 || dialogType===2" size="small" placeholder="请插入外链地址" v-model="dialogBindData.linkUrl"></el-input>
<span v-else>{{dialogBindData.linkUrl}}</span>
</el-col>
</el-row> -->
<!-- <el-row :gutter="15" v-if="dialogBindData.advertType!==2">
<el-row :gutter="15">
<el-col :span="6" class="content-left"><label>图片</label></el-col>
<el-col :span="18" class="content-right">
<tailor
width="246"
height="144"
imageType='banner'
resPath="advertImg"
:type="dialogType"
@emitSuccess="handleImgLoad"
:viewUrl="this.dialogBindData.advertPicUrl"
v-if="dialogType===1 || dialogType===2">
</tailor>
<img v-else :src="this.dialogBindData.advertPicUrl" width="216" height="144">
<up-load-img
ref="imgComponent"
v-if="dialogType===1 || dialogType===2"
width="246"
height="144"
resPath="advertImg"
:type="dialogType"
:viewUrl="this.dialogBindData.advertPicUrl"
@emitSuccess="handleImgLoad">
</up-load-img>
<img @click="magnify(dialogBindData.advertPicUrl)" v-else :src="dialogBindData.advertPicUrl" width="246" height="144">
</el-col>
</el-row> -->
<el-row :gutter="15">
<el-col :span="6" class="content-left"><label>图片</label></el-col>
<el-col :span="18" class="content-right">
<up-load-img
ref="imgComponent"
v-if="dialogType===1 || dialogType===2"
width="246"
height="144"
resPath="advertImg"
:type="dialogType"
:viewUrl="this.dialogBindData.advertPicUrl"
@emitSuccess="handleImgLoad">
</up-load-img>
<img @click="magnify(dialogBindData.advertPicUrl)" v-else :src="dialogBindData.advertPicUrl" width="246" height="144">
</el-col>
</el-row>
<!-- <el-row :gutter="15">
<el-col :span="6" class="content-left"><label>二级链接</label></el-col>
<el-col :span="18" class="content-right">
<el-input v-if="dialogType===1 || dialogType===2" size="small" type="text" placeholder="请输入二级链接" resize="none" v-model="dialogBindData.linkUrl"></el-input>
<span v-else>{{dialogBindData.linkUrl}}</span>
</el-col>
</el-row> -->
</el-row>
<!-- <el-input v-if="dialogType===1 || dialogType===2" size="small" type="textarea" rows="3" placeholder="请输入备注" resize="none" v-model="dialogBindData.memo"></el-input> -->
</el-col>
......
<template>
<div class="view-page">
<div class="phone-bg">
<img :src="require('../../../../static/images/phone-bg.png')" alt="">
</div>
<div class="page-infro">
<!-- <el-carousel height="202px" indicator-position="none">
<el-carousel-item v-for="(item,index) in imageArr" :key="index">
<div class="bannerImg"><img :src="item" alt=""></div>
</el-carousel-item>
</el-carousel> -->
<!-- <div class="bannerImg">
<img :src="data.advertPicUrl" alt="" height="202">
</div> -->
<div class="text-infro" v-html="data.storeDetails"></div>
</div>
</div>
</template>
<script>
export default {
props:["data"],
data(){
return {
imageArr:[]
}
},
beforeMount(){
const data = this.data;
// let arr = [];
// for(const key in data){
// if(key.indexOf('dishesPicUrl')>-1 && data[key]){
// arr.push(data[key])
// }
// }
// this.imageArr = arr
}
}
</script>
<style lang="scss" scoped>
.view-page{
position: relative;
.phone-bg{
width: 360px;
img{
width: 100%;
}
}
.page-infro{
background:#fff;
position: absolute;
top:110px;
left: 30px;
width:304px;
height: 540px;
overflow-x: hidden;
overflow-y: auto;
.bannerImg{
width: 100%;
height: 202px;
img{
width: 100%;
height: 100%;
}
}
.text-infro{
padding: 0 15px;
}
}
}
</style>
\ No newline at end of file
......@@ -133,9 +133,7 @@
<el-col :span="8" class="content-left"><label>分类代码</label></el-col>
<el-col :span="16" class="content-right">
<el-select v-if="dialogType===1 || dialogType===2" size="small" v-model="dialogBindData.dataDictCatCode" placeholder="请选择">
<el-option
value="">
--请选择--</el-option>
<el-option value="">--请选择--</el-option>
<el-option
v-for="item in dataDicts"
:key="item.dataDictCatCode"
......
......@@ -117,7 +117,7 @@
<!-- 查看,编辑dialog -->
<el-dialog
v-elv-dragv-dialog
v-el-drag-dialog
:title="dialogTitle"
:visible.sync="dialogState"
width="30%"
......@@ -131,11 +131,7 @@
<span v-else>{{dialogBindData.paramKey}}</span>
</el-col>
</el-row>
<el-row :gutter="15">
<el-col :span="8" class="content-left"><label>参数名</label></el-col>
<el-col :span="16" class="content-right">
......
<template>
<div class="view-page">
<div class="phone-bg">
<img :src="require('../../../../static/images/phone-bg.png')" alt="">
</div>
<div class="page-infro">
<!-- <el-carousel height="202px" indicator-position="none">
<el-carousel-item v-for="(item,index) in imageArr" :key="index">
<div class="bannerImg"><img :src="item" alt=""></div>
</el-carousel-item>
</el-carousel> -->
<!-- <div class="bannerImg">
<img :src="data.advertPicUrl" alt="" height="202">
</div> -->
<div class="text-infro" v-html="data.workerResume"></div>
</div>
</div>
</template>
<script>
export default {
props:["data"],
data(){
return {
imageArr:[]
}
},
beforeMount(){
const data = this.data;
// let arr = [];
// for(const key in data){
// if(key.indexOf('dishesPicUrl')>-1 && data[key]){
// arr.push(data[key])
// }
// }
// this.imageArr = arr
}
}
</script>
<style lang="scss" scoped>
.view-page{
position: relative;
.phone-bg{
width: 360px;
img{
width: 100%;
}
}
.page-infro{
background:#fff;
position: absolute;
top:110px;
left: 30px;
width:304px;
height: 540px;
overflow-x: hidden;
overflow-y: auto;
.bannerImg{
width: 100%;
height: 202px;
img{
width: 100%;
height: 100%;
}
}
.text-infro{
padding: 0 15px;
}
}
}
</style>
\ No newline at end of file
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