Commit 73ec2fb5 authored by jiaorz's avatar jiaorz

Merge branch 'base-modify' of http://113.105.137.151:22280/youjj/cloud-platform-ui into base-modify

parents 81779eee 79f93f95
module.exports = { module.exports = {
NODE_ENV: '"development"', NODE_ENV: '"development"',
BASE_API: '"https://xxtest.upyuns.com"',//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威) BASE_API:'"https://xxtest.upyuns.com"',//'"https://dev.dfangche.com"',//'"https://xxfcmgmt.upyuns.com"(正)',//http://10.1.37.192:9527(何), //https://xxtest.upyuns.com(测),10.1.37.246:9527(韩), 10.1.37.244(李斌)10.1.37.248:8765(小威)
APP_ORIGIN: '"https://wallstreetcn.com"' APP_ORIGIN: '"https://wallstreetcn.com"'
} }
...@@ -67,14 +67,14 @@ export function saveOrderViolation(params) { ...@@ -67,14 +67,14 @@ export function saveOrderViolation(params) {
*/ */
export function getStep(orderNo) { export function getStep(orderNo) {
return fetch({ return fetch({
url: 'api/order/orderVehicle/getByOrderId?orderNo=' + orderNo, url: '/api/order/orderVehicle/getByOrderId?orderNo=' + orderNo,
method: 'get' method: 'get'
}); });
} }
export function inquire(query) { export function inquire(query) {
return fetch({ return fetch({
url: '/vehicle/vehicleInfo/rent/usable-vehicle', url: '/vehicle/vehicleInfo/rent/back-stage/usable-vehicle',
method: 'get', method: 'get',
params:query params:query
}); });
......
...@@ -294,6 +294,12 @@ export const asyncRouterMap = [{ ...@@ -294,6 +294,12 @@ export const asyncRouterMap = [{
component: _import('vehicleType/vehicleTypeLabel'), component: _import('vehicleType/vehicleTypeLabel'),
name: '车型标签设置', name: '车型标签设置',
authority: 'vehicleTypeLabel' authority: 'vehicleTypeLabel'
},
{
path: 'priceList',
component: _import('vehicleType/priceList'),
name: '租车价格表',
authority: 'priceList'
} }
] ]
}, },
...@@ -559,10 +565,10 @@ export const asyncRouterMap = [{ ...@@ -559,10 +565,10 @@ export const asyncRouterMap = [{
authority: 'summit', authority: 'summit',
children: [ children: [
{ {
path: 'summitList', path: 'index',
component: _import('summit/summitList/index'), component: _import('summit/index'),
name: '峰会列表', name: '峰会列表',
authority: 'summitList' authority: 'index'
} }
] ]
}, },
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
value-format="timestamp" value-format="timestamp"
@change="changeTime" @change="changeTime"
:picker-options="pickerOptions" :picker-options="pickerOptions"
>></el-date-picker> ></el-date-picker>
<el-button <el-button
class="filter-item" class="filter-item"
...@@ -248,14 +248,14 @@ export default { ...@@ -248,14 +248,14 @@ export default {
endAddr: this.listQuery.startEndAddr, //还车地点 endAddr: this.listQuery.startEndAddr, //还车地点
endCity: this.listQuery.startAddrCity, //还车城市编号 endCity: this.listQuery.startAddrCity, //还车城市编号
endCityName: this.listQuery.startCityName, //还车城市名称 endCityName: this.listQuery.startCityName, //还车城市名称
endCompanyId: this.listQuery.startCompanyIds, //还车公司id endCompanyId: this.listQuery.endCompanyIds, //还车公司id
endTime: this.listQuery.time[1].getTime(), //结束时间 endTime: this.listQuery.time[1].getTime(), //结束时间
modelId: this.listQuery.modelId, //车型 modelId: this.listQuery.modelId, //车型
startAddr: this.listQuery.endEndAddr, //取车地点 startAddr: this.listQuery.endEndAddr, //取车地点
startCity: this.listQuery.endAddrCity, //取车城市编号 startCity: this.listQuery.endAddrCity, //取车城市编号
startCityName: this.listQuery.endtCityName, //取车城市名称 startCityName: this.listQuery.endtCityName, //取车城市名称
startCompanyId: this.listQuery.endCompanyIds, //出发公司id startCompanyId: this.listQuery.startCompanyIds, //出发公司id
startTime: this.listQuery.time[0].getTime(), //开始时间 startTime: this.listQuery.time[0].getTime(), //开始时间
damageSafe: this.listQuery.damageSafe == "需要" ? 1 : 0, //是否购买免赔 damageSafe: this.listQuery.damageSafe == "需要" ? 1 : 0, //是否购买免赔
......
This diff is collapsed.
<template>
<el-dialog title="报名页面" :visible.sync="applyInfo.dialogVisible" class="order-details">
<el-form
:model="ruleForm"
:rules="rules"
ref="ruleForm"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="峰会主题:" prop="name">
<UE
:editorId="activeName"
:defaultMsg="versionRow.content"
:config="config"
ref="ue"
@ready="editorReadyEvent"
></UE>
</el-form-item>
<el-form-item label="诚邀莅临:" prop="name">
<UE
:editorId="activeNameShare"
:defaultMsg="versionRow.share"
:config="config"
ref="ue"
@ready="editorReadyEventShare"
></UE>
</el-form-item>
<el-form-item label="公司简章:" prop="name">
<UE
:editorId="activeNameFirm"
:defaultMsg="versionRow.contentFirm"
:config="config"
ref="ue"
@ready="editorReadyEventFirm"
></UE>
</el-form-item>
</el-form>
</el-dialog>
</template>
<script>
import UE from "../../modal/Ueditor"; //百度ue富文本
export default {
applyInfo: {
handler: function(val, oldval) {
console.log(val);
console.log(oldval);
},
deep: true //对象内部的属性监听,也叫深度监听
},
props: {
applyInfo: Object
},
components: {
UE
},
created() {},
data() {
return {
rules: {},
ruleForm: {},
dialogVisible: false,
activeName: "first",
activeNameShare: "second",
activeNameFirm: "three",
versionRow: {
content: "",
share: "",
contentFirm: ""
},
config: {
initialFrameWidth: null,
initialFrameHeight: 350
}
};
},
methods: {
editorReadyEvent(instance) {
let t = this;
instance.addListener("contentChange", () => {
if (t.activeName == "first") {
t.versionRow.content = instance.getContent();
}
});
},
editorReadyEventShare(instance) {
let t = this;
instance.addListener("contentChange", () => {
if (t.activeNameShare == "second") {
t.versionRow.share = instance.getContent();
}
});
},
editorReadyEventFirm(instance) {
let t = this;
instance.addListener("contentChange", () => {
if (t.activeNameFirm == "three") {
t.versionRow.contentFirm = instance.getContent();
}
});
}
}
};
</script>
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-form-item label="已签到"> <el-form-item label="已签到">
<el-select class="filter-item" v-model="query.qdStatus" placeholder="签到状态"> <el-select class="filter-item" v-model="query.qdStatus" placeholder="签到状态">
<el-option :key="undefined" label="所有" :value="undefined"></el-option> <el-option :key="undefined" label="所有" :value="undefined"></el-option>
<el-option v-for="(val, key, index) in typeList " :key="val.id" :label="val.name" <el-option v-for="(val,index) in typeList " :key="index" :label="val.name"
:value="val.id"></el-option> :value="val.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
......
...@@ -11,73 +11,94 @@ ...@@ -11,73 +11,94 @@
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
:on-progress="uploadProcess" :on-progress="uploadProcess"
list-type="picture"> list-type="picture"
<el-progress v-show="imgFlag == true" type="circle" :percentage="percent" >
style="margin-top: 20px"></el-progress> <el-progress
<img v-if="$utils.isString(form.banner) && !$utils.isEmpty(form.banner) && !imgFlag" v-show="imgFlag == true"
type="circle"
:percentage="percent"
style="margin-top: 20px"
></el-progress>
<img
v-if="$utils.isString(form.banner) && !$utils.isEmpty(form.banner) && !imgFlag"
:src="form.banner" :src="form.banner"
style="width:300px;max-height:300px;"> style="width:300px;max-height:300px;"
<i v-else-if="!imgFlag" class="el-icon-plus avatar-uploader-icon" />
style="lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"></i> <i
v-else-if="!imgFlag"
class="el-icon-plus avatar-uploader-icon"
style="lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"
></i>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="8"> <el-col>
<el-form-item label="峰会图片:"> <el-form-item label="峰会图片:">
<el-upload <el-upload
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'" :action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
list-type="picture-card" list-type="picture-card"
:file-list="list" :file-list="list"
:on-success="handlePictureCardPreview" :on-success="handlePictureCardPreview"
:on-remove="handleRemove"> :on-remove="handleRemove"
>
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
<!-- <img width="100%" :src="form.picturePath" alt="">--> <!-- <img width="100%" :src="form.picturePath" alt="">-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-col :span="8"> <el-row>
<el-col>
<el-form-item label="峰会视频:"> <el-form-item label="峰会视频:">
<el-upload <el-upload
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'" :action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
list-type="picture-card" list-type="picture-card"
:headers="getHeaderWithToken" :headers="getHeaderWithToken"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove"> :on-remove="handleRemove"
>
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
<video v-if="$utils.isString(form.videoPath) && !$utils.isEmpty(form.videoPath) && !imgFlag" <video
v-if="$utils.isString(form.videoPath) && !$utils.isEmpty(form.videoPath) && !imgFlag"
:src="form.videoPath" :src="form.videoPath"
style="width:300px;max-height:300px;"/> style="width:300px;max-height:300px;"
<i v-else-if="!imgFlag" class="el-icon-plus avatar-uploader-icon" />
style="lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"></i> <!-- <i
v-else-if="!imgFlag"
class="el-icon-plus avatar-uploader-icon"
style="lineHeight:100px;width:300px;height: 100px;border: 1px dashed #ccc;"
></i>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form> <el-col>
<div slot="footer" class="dialog-footer1"> <el-form-item>
<el-button class="button" @click="cancelHandel">取 消</el-button> <el-button class="button" @click="cancelHandel">取 消</el-button>
<el-button class="button" type="primary" @click="cre">确 定</el-button> <el-button class="button" type="primary" @click="cre">确 定</el-button>
</div> </el-form-item>
</el-col>
</el-row>
<!-- <el-row slot="footer" class="dialog-footer1">
</el-row>-->
</el-form>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import ElRow from "element-ui/packages/row/src/row"; import ElRow from "element-ui/packages/row/src/row";
import ElInput from "../../../../node_modules/element-ui/packages/input/src/input.vue"; import ElInput from "../../../../node_modules/element-ui/packages/input/src/input.vue";
import ElCol from "element-ui/packages/col/src/col"; import ElCol from "element-ui/packages/col/src/col";
import ElFormItem from "../../../../node_modules/element-ui/packages/form/src/form-item.vue"; import ElFormItem from "../../../../node_modules/element-ui/packages/form/src/form-item.vue";
import {getToken} from 'src/utils/auth'; import { getToken } from "src/utils/auth";
import {mapGetters} from 'vuex'; import { mapGetters } from "vuex";
import { import { one, save } from "src/api/summit/activityShow";
one,
save
} from 'src/api/summit/activityShow';
export default { export default {
props: ["reviewRow"], props: ["reviewRow"],
name: 'reviewPopup', name: "reviewPopup",
components: { components: {
ElFormItem, ElFormItem,
ElCol, ElCol,
...@@ -88,80 +109,75 @@ ...@@ -88,80 +109,75 @@
return { return {
imgDialogVisible: false, imgDialogVisible: false,
dialogVisible: false, dialogVisible: false,
dialogImageUrl:undefined, dialogImageUrl: undefined,
result: false, result: false,
imgFlag: false, imgFlag: false,
BASE_API: process.env.BASE_API, BASE_API: process.env.BASE_API,
percent: 0,//上传进度 percent: 0, //上传进度
imgFlag: false, list: [],
list:[],
form: { form: {
id: undefined, id: undefined,
banner: undefined, banner: undefined,
activityId: undefined, activityId: undefined,
banner: undefined, banner: undefined,
videoPath: undefined, videoPath: undefined,
picturePath: undefined, picturePath: undefined
}
} }
};
}, },
watch: { watch: {
dialogVisible(newValue, oldValue) { dialogVisible(newValue, oldValue) {
if (!newValue) { if (!newValue) {
this.$emit("reviewDialogEvent", this.result); this.$emit("reviewDialogEvent", this.result);
} }
}, }
}, },
computed: { computed: {
...mapGetters([ ...mapGetters(["elements"]),
'elements'
]),
getHeaderWithToken() { getHeaderWithToken() {
return {Authorization: getToken()}; return { Authorization: getToken() };
}, }
}, },
watch: { watch: {
dialogVisible(newValue, oldValue) { dialogVisible(newValue, oldValue) {
if (!newValue) { if (!newValue) {
this.$emit("summitDialogEvent", this.result); this.$emit("summitDialogEvent", this.result);
} }
}, }
}, },
mounted() { mounted() {
this.getOrderInfo(); this.getOrderInfo();
}, },
methods:{ methods: {
getOrderInfo() { getOrderInfo() {
one(this.reviewRow.id).then(res => { one(this.reviewRow.id).then(res => {
this.form=res.data this.form = res.data;
this.dialogVisible=true this.dialogVisible = true;
this.imgDialogVisible=true; this.imgDialogVisible = true;
}) });
}, },
cre() { cre() {
console.log(this.form.picturePath) console.log(this.form.picturePath);
save(this.form).then(res => { save(this.form).then(res => {
this.responseResult(res) this.responseResult(res);
}) });
}, },
responseResult(res) { responseResult(res) {
if (res.status === 200) { if (res.status === 200) {
this.$notify({ this.$notify({
title: '成功', title: "成功",
message: '操作成功', message: "操作成功",
type: 'success', type: "success",
duration: 2000 duration: 2000
}); });
this.setSummitDialogEvent(true) this.setSummitDialogEvent(true);
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: "失败",
message: '操作失败!', message: "操作失败!",
type: 'error', type: "error",
duration: 2000 duration: 2000
}); });
} }
...@@ -170,13 +186,12 @@ ...@@ -170,13 +186,12 @@
* 弹框-取消 * 弹框-取消
* */ * */
cancelHandel() { cancelHandel() {
this.setSummitDialogEvent(false) this.setSummitDialogEvent(false);
}, },
setSummitDialogEvent(e) { setSummitDialogEvent(e) {
this.cleanForm(); this.cleanForm();
this.result = e this.result = e;
this.dialogVisible = false this.dialogVisible = false;
}, },
/** /**
* 封面图上传 * 封面图上传
...@@ -194,8 +209,7 @@ ...@@ -194,8 +209,7 @@
this.percent = Math.floor(event.percent); this.percent = Math.floor(event.percent);
}, },
handlePreview(file) { handlePreview(file) {
this.form.videoPath = file.data;
this.form.videoPath=file.data
this.imgDialogVisible = true; this.imgDialogVisible = true;
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
...@@ -203,83 +217,84 @@ ...@@ -203,83 +217,84 @@
console.log(file, fileList); console.log(file, fileList);
}, },
handlePictureCardPreview(res,file) { handlePictureCardPreview(res, file) {
this.list.push({url: res.data}) this.list.push({ url: res.data });
// this.imgDialogVisible = true; // this.imgDialogVisible = true;
}, },
cleanForm(){ cleanForm() {
this.form= { this.form = {
id: undefined, id: undefined,
banner: undefined, banner: undefined,
activityId: undefined, activityId: undefined,
banner: undefined, banner: undefined,
videoPath: undefined, videoPath: undefined,
picturePath: undefined picturePath: undefined
};
} }
} }
} };
}
</script> </script>
<style> <style>
.label-text { .label-text {
margin-left: 10px; margin-left: 10px;
margin-right: 20px; margin-right: 20px;
} }
.label-title { .label-title {
margin-top: 10px; margin-top: 10px;
} }
.orderDetail tr th { .orderDetail tr th {
background: #eef1f6; background: #eef1f6;
} }
.orderDetail tr td, .orderDetail tr th { .orderDetail tr td,
.orderDetail tr th {
width: 500px; width: 500px;
text-align: center; text-align: center;
border: 1px solid #dfe6ec; border: 1px solid #dfe6ec;
margin-left: 100px; margin-left: 100px;
margin-right: 100px; margin-right: 100px;
padding: 10px; padding: 10px;
} }
.label-value { .label-value {
margin-left: 80px; margin-left: 80px;
margin-right: 100px; margin-right: 100px;
} }
#license-img { #license-img {
width: 50px; width: 50px;
height: 50px; height: 50px;
} }
.order-details .el-form-item { .order-details .el-form-item {
margin-bottom: 10px !important; margin-bottom: 10px !important;
} }
.el-dialog__footer .dialog-footer1 { .el-dialog__footer .dialog-footer1 {
position: relative; position: relative;
text-align: center; text-align: center;
} }
.fhjj { .fhjj {
width: 500px; width: 500px;
} }
.content { .content {
margin-left: 4%; margin-left: 4%;
} }
.height { .height {
margin-bottom: 2%; margin-bottom: 2%;
} }
. el-form-item__content { . el-form-item__content {
margin-left: 5% !important; margin-left: 5% !important;
} }
.status { .status {
margin-top: 4%; margin-top: 4%;
} }
</style> </style>
This diff is collapsed.
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
class="demo-ruleForm" class="demo-ruleForm"
> >
<el-form-item label="标题:" prop="title"> <el-form-item label="标题:" prop="title">
<el-input v-model="ruleForm.title"></el-input> <el-input v-model="ruleForm.title" style="width:350px" placeholder="请输入峰会标题"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="封面图:" prop="title"> <el-form-item label="封面图:" prop="title">
<el-upload <el-upload
...@@ -128,20 +128,54 @@ ...@@ -128,20 +128,54 @@
end-placeholder="结束日期" end-placeholder="结束日期"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="报名截止:" prop="title">
<el-date-picker
v-model="ruleForm.value1"
type="datetime"
placeholder="请选择日期时间"
style="width:350px"
></el-date-picker>
</el-form-item>
<el-form-item label="举办地点:" prop="title">
<el-input v-model="ruleForm.title" style="width:350px" placeholder="请输入峰会举办地点"></el-input>
<el-input v-model="ruleForm.title" style="width:100px" placeholder="经度"></el-input>
<el-input v-model="ruleForm.title" style="width:100px" placeholder="纬度"></el-input>
</el-form-item>
<el-form-item label="状态:" prop="title">
<el-radio-group v-model="ruleForm.radio3">
<el-radio-button label="默认"></el-radio-button>
<el-radio-button label="自定义"></el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item label="活动id:" prop="title">
<el-input v-model="ruleForm.title" style="width:350px" placeholder="请输入签到/抽奖活动的id"></el-input>
<el-button type="primary">生成二维码</el-button>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="submitForm('ruleForm')">确定</el-button> <el-button type="primary" @click="submitForm('ruleForm')">确定</el-button>
<el-button @click="bulkUploadMember = false">取消</el-button> <el-button @click="bulkUploadMember = false">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-dialog> </el-dialog>
<reviewPopup :reviewRow='reviewRow'></reviewPopup>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import reviewPopup from '../model/reviewPopup';
export default { export default {
components:{
reviewPopup
},
created() {}, created() {},
data() { data() {
return { return {
reviewRow:{},
imageUrl: "", imageUrl: "",
//快捷筛选 //快捷筛选
listQuery: { listQuery: {
...@@ -154,7 +188,7 @@ export default { ...@@ -154,7 +188,7 @@ export default {
// 表格数据 // 表格数据
list: [], list: [],
summitTitle: "创建峰会", summitTitle: "创建峰会",
bulkUploadMember: true, bulkUploadMember: false,
ruleForm: { ruleForm: {
title: "" //标题 title: "" //标题
}, //创建峰会表单 }, //创建峰会表单
...@@ -183,7 +217,7 @@ export default { ...@@ -183,7 +217,7 @@ export default {
cleaningQuery() {}, cleaningQuery() {},
//创建峰会 //创建峰会
creatSummit() { creatSummit() {
bulkUploadMember = true; this.bulkUploadMember = true;
}, },
//下架 //下架
soldOut() {}, soldOut() {},
......
This diff is collapsed.
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="发布人" prop="publisher"> <el-form-item label="发布人" prop="publisher">
<el-input v-model="form.publisher" type="text"placeholder="请输入发布人"></el-input> <el-input v-model="form.publisher" type="text" placeholder="请输入发布人"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
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