Commit a0c06a88 authored by 张伯涛's avatar 张伯涛

样式修改

parent 25547efa
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- <link rel="icon" href="<%= BASE_URL %>collapseMenuLogo.png">--> <link rel="icon" href="<%= BASE_URL %>liulanqi_logo.png">
<!-- <link rel="stylesheet" href="//at.alicdn.com/t/font_2011217_f70ptj9y4oc.css">--> <!-- <link rel="stylesheet" href="//at.alicdn.com/t/font_2011217_f70ptj9y4oc.css">-->
<!-- <title><%= webpackConfig.name %></title>--> <!-- <title><%= webpackConfig.name %></title>-->
<title>鸿泽云智能推广系统</title> <title>鸿泽云智能推广系统</title>
......
...@@ -34,6 +34,7 @@ export function addUser(data) { ...@@ -34,6 +34,7 @@ export function addUser(data) {
} }
// 1.新增代言人 // 1.新增代言人
export function addSysuser(data) { export function addSysuser(data) {
data.deptId = undefined
data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/sysuser/add', url: '/sysuser/add',
...@@ -56,6 +57,7 @@ export function updateUser(data) { ...@@ -56,6 +57,7 @@ export function updateUser(data) {
// 2.修改代言人 // 2.修改代言人
export function updateSysuser(data) { export function updateSysuser(data) {
const businessId = data.businessId const businessId = data.businessId
data.deptId = undefined
data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/sysuser/update/' + businessId, url: '/sysuser/update/' + businessId,
......
<template> <template>
<div v-if="collapse" class="sidebar-logo-containerCollapse" :class="{'collapse':collapse}"> <div v-if="collapse" class="sidebar-logo-containerCollapse" :class="{'collapse':collapse}">
<transition name="sidebarLogoFade"> <!-- <transition name="sidebarLogoFade">-->
<router-link key="collapse" class="sidebar-logo-link" to="/"> <!-- <router-link key="collapse" class="sidebar-logo-link" to="/">-->
12222 <!-- 12222-->
<img :src="collapseLogo" class="sidebar-logo2"> <!-- <img :src="collapseLogo" class="sidebar-logo2">-->
</router-link> <!-- </router-link>-->
</transition> <!-- </transition>-->
</div> </div>
<div v-else class="sidebar-logo-container" :class="{'collapse':collapse}"> <div v-else class="sidebar-logo-container" :class="{'collapse':collapse}">
<transition name="sidebarLogoFade"> <transition name="sidebarLogoFade">
<router-link key="expand" class="sidebar-logo-link" to="/"> <router-link key="expand" class="sidebar-logo-link" to="/">
<div class="sidebar-logoTitle"> <div class="sidebar-logoTitle">
<div class="sidebar-logoRow"> <!-- <div class="sidebar-logoRow">-->
<!-- <img :src="logo" class="sidebar-logo">--> <!--&lt;!&ndash; <img :src="logo" class="sidebar-logo">&ndash;&gt;-->
</div> <!-- </div>-->
<div class="sidebar-title title-current">{{ title }} </div> <div class="sidebar-title title-current">{{ title }} </div>
</div> </div>
</router-link> </router-link>
......
...@@ -51,9 +51,9 @@ ...@@ -51,9 +51,9 @@
修改密码 修改密码
</router-link> </router-link>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click.native="setting = true"> <!-- <el-dropdown-item @click.native="setting = true">-->
<span>布局设置</span> <!-- <span>布局设置</span>-->
</el-dropdown-item> <!-- </el-dropdown-item>-->
<el-dropdown-item divided @click.native="logout"> <el-dropdown-item divided @click.native="logout">
<span style="display:block;">退出</span> <span style="display:block;">退出</span>
</el-dropdown-item> </el-dropdown-item>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
.sidebar-logo-container { .sidebar-logo-container {
position: relative; position: relative;
width: 100%; width: 100%;
height: 150px!important; height: 50px!important;
line-height: 50px; line-height: 50px;
background: #214E90; background: #214E90;
padding-left: 11px; padding-left: 11px;
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
:icon="commonField.addIcon" :icon="commonField.addIcon"
:size="commonField.smallSize" :size="commonField.smallSize"
@click="handleAdd" @click="handleAdd"
>建代言人</el-button> ></el-button>
<!-- //导入按钮--> <!-- //导入按钮-->
<!-- <el-button <!-- <el-button
v-hasPermi="hasImportPerm" v-hasPermi="hasImportPerm"
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
>{{ commonField.exportName }}</el-button>--> >{{ commonField.exportName }}</el-button>-->
<!-- //导入按钮--> <!-- //导入按钮-->
<el-button <el-button
:class="commonField.importClass" :class="commonField.resetClass"
:type="commonField.typeWarning" :type="commonField.resetIcon"
:icon="commonField.importIcon" :icon="commonField.importIcon"
:size="commonField.smallSize" :size="commonField.smallSize"
@click="handleImport" @click="handleImport"
...@@ -664,8 +664,8 @@ export default { ...@@ -664,8 +664,8 @@ export default {
console.log('this.roles', this.roles) console.log('this.roles', this.roles)
this.queryShop = false this.queryShop = false
// this.queryParams.deptId = this.deptId // this.queryParams.deptId = this.deptId
this.upload.deptId = this.deptId // this.upload.deptId = this.deptId
this.form.deptId = this.deptId // this.form.deptId = this.deptId
} else { } else {
this.upload.deptId = '' this.upload.deptId = ''
} }
...@@ -687,8 +687,12 @@ export default { ...@@ -687,8 +687,12 @@ export default {
this.deptList = res.data this.deptList = res.data
if (res.data && res.data.length > 0) { if (res.data && res.data.length > 0) {
this.queryParams.deptId = res.data[0].businessId this.queryParams.deptId = res.data[0].businessId
this.upload.deptId = res.data[0].businessId
this.form.deptId = res.data[0].businessId.map(item => Number(item))
} else { } else {
this.queryParams.deptId = '' this.queryParams.deptId = ''
this.upload.deptId = ''
this.form.deptId = ''
} }
} }
}) })
...@@ -809,7 +813,7 @@ export default { ...@@ -809,7 +813,7 @@ export default {
reset() { reset() {
this.form = { this.form = {
userId: '', userId: '',
deptId: null, deptId: '',
phone: '', phone: '',
username: '', username: '',
userType: '', userType: '',
...@@ -866,6 +870,9 @@ export default { ...@@ -866,6 +870,9 @@ export default {
} }
}) })
this.isUnitAdmin = true this.isUnitAdmin = true
if (this.queryParams.deptId) {
this.form.deptId = this.queryParams.deptId.toString().split(',').map(item => Number(item))
}
this.open = true this.open = true
this.title = '添加代言人' this.title = '添加代言人'
}, },
...@@ -911,7 +918,8 @@ export default { ...@@ -911,7 +918,8 @@ export default {
if (valid) { if (valid) {
this.form.deptIdPrepares = this.form.deptId.join(',') this.form.deptIdPrepares = this.form.deptId.join(',')
if (this.form.businessId !== undefined) { if (this.form.businessId !== undefined) {
updateSysuser(this.form).then(response => { const addParams = JSON.parse(JSON.stringify(this.form))
updateSysuser(addParams).then(response => {
this.$message({ this.$message({
message: '修改成功', message: '修改成功',
type: 'success' type: 'success'
...@@ -920,7 +928,8 @@ export default { ...@@ -920,7 +928,8 @@ export default {
this.getList() this.getList()
}) })
} else { } else {
addSysuser(this.form).then(response => { const params = JSON.parse(JSON.stringify(this.form))
addSysuser(params).then(response => {
this.newId = response.data.businessId this.newId = response.data.businessId
this.$message({ this.$message({
message: '新增成功', type: 'success' message: '新增成功', type: 'success'
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<div style="padding:5px 10px"> <div style="padding:5px 10px">
<el-table v-loading="loading" border :data="cmsBannerList"> <el-table v-loading="loading" border :data="cmsBannerList">
<el-table-column type="index" label="序号" width="60px" align="center" /> <el-table-column type="index" label="序号" width="60px" align="center" />
<el-table-column label="图片" prop="bannerPicture" :show-overflow-tooltip="true" width="150px"> <el-table-column label="图片" prop="bannerPicture" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<div :id="step(scope.$index)"> <div :id="step(scope.$index)">
<el-image <el-image
......
...@@ -72,14 +72,14 @@ ...@@ -72,14 +72,14 @@
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" prop="title" label="标题" width="300" show-overflow-tooltip /> <el-table-column align="left" prop="title" label="标题" show-overflow-tooltip />
<el-table-column align="left" prop="title" label="类型" width="300" show-overflow-tooltip> <el-table-column align="left" prop="title" label="类型" width="80px" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.type === '1' ? '视频' : '新闻' }} {{ scope.row.type === '1' ? '视频' : '新闻' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属商家" prop="unitName" :show-overflow-tooltip="true" /> <el-table-column label="所属商家" width="180px" prop="unitName" :show-overflow-tooltip="true" />
<el-table-column label="姓名" prop="userName" :show-overflow-tooltip="true"> <el-table-column label="代言人" prop="userName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.userName || '-' }} {{ scope.row.userName || '-' }}
</template> </template>
...@@ -94,12 +94,13 @@ ...@@ -94,12 +94,13 @@
{{ scope.row.phone || '-' }} {{ scope.row.phone || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="推广次数" prop="clickThroughRate" :show-overflow-tooltip="true"> <el-table-column label="推广次数" prop="clickThroughRate" width="155px" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.edit === '0'"> {{ scope.row.clickThroughRate || '-' }}</span> <span v-if="scope.row.edit === '0'"> {{ scope.row.clickThroughRate || '-' }}</span>
<el-input-number <el-input-number
v-if="scope.row.edit === '1'" v-if="scope.row.edit === '1'"
v-model.trim="scope.row.clickThroughRate" v-model.trim="scope.row.clickThroughRate"
:min="0"
controls-position="right" controls-position="right"
:step="1" :step="1"
step-strictly step-strictly
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="价格" prop="price" :show-overflow-tooltip="true"> <el-table-column label="价格" prop="price" width="155px" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.edit === '0'"> {{ scope.row.price || '-' }}</span> <span v-if="scope.row.edit === '0'"> {{ scope.row.price || '-' }}</span>
<el-input-number <el-input-number
...@@ -118,6 +119,7 @@ ...@@ -118,6 +119,7 @@
v-model.trim="scope.row.price" v-model.trim="scope.row.price"
placeholder="价格" placeholder="价格"
controls-position="right" controls-position="right"
:min="0"
:step="0.1" :step="0.1"
step-strictly step-strictly
clearable clearable
......
...@@ -90,11 +90,16 @@ ...@@ -90,11 +90,16 @@
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" prop="title" label="新闻标题" width="300" show-overflow-tooltip /> <el-table-column align="left" prop="title" label="新闻标题" width="200" show-overflow-tooltip />
<el-table-column align="left" label="新闻标题图" prop="pictureId"> <el-table-column align="left" label="新闻标题图" prop="path">
<template slot-scope="scope"> <template slot-scope="scope">
<div :id="step(scope.$index)"> <div :id="step(scope.$index)">
<el-image :src="scope.row.path" :preview-src-list="[scope.row.path]" style="width:100%;height:100%;" @mouseover="justEnter($event)" @mouseout="justOut($event)" /> <el-image
:src="scope.row.path"
:preview-src-list="[scope.row.path]"
style="width:100%;height:100%;"
@click="handleClickStop(scope.$index)"
/>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -103,17 +108,17 @@ ...@@ -103,17 +108,17 @@
<!-- <span>{{ scope.row.isForntPage === 1 ? '是' : '否' }}</span>--> <!-- <span>{{ scope.row.isForntPage === 1 ? '是' : '否' }}</span>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column align="left" prop="isTop" width="150" label="是否为置顶新闻" show-overflow-tooltip> <el-table-column align="left" prop="isTop" label="是否为置顶新闻" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.isTop === 1 ? '是' : '否' }}</span> <span>{{ scope.row.isTop === 1 ? '是' : '否' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" prop="isRecommended" width="150" label="是否为推荐新闻" show-overflow-tooltip> <el-table-column align="left" prop="isRecommended" label="是否为推荐新闻" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.isRecommended === 1 ? '是' : '否' }}</span> <span>{{ scope.row.isRecommended === 1 ? '是' : '否' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" prop="newsType" width="150" label="文章来源" show-overflow-tooltip> <el-table-column align="left" prop="newsType" label="文章来源" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ newsTypeMap[scope.row.newsType] }}</span> <span>{{ newsTypeMap[scope.row.newsType] }}</span>
</template> </template>
...@@ -151,7 +156,7 @@ ...@@ -151,7 +156,7 @@
<span>{{ scope.row.nickName }}</span> <span>{{ scope.row.nickName }}</span>
</template> </template>
</el-table-column>--> </el-table-column>-->
<el-table-column align="center" label="操作" width="250"> <el-table-column align="center" label="操作" width="230">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="hasDetailPerm" v-has-permi="hasDetailPerm"
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<div class="topTitle"> <div class="topTitle">
<span class="topTitleText">{{ title }}</span> <span class="topTitleText">{{ title }}</span>
</div> </div>
<div class="twoTitle"> <!-- <div class="twoTitle">-->
<el-tag v-if="form.flag==='1'" type="success">已发布</el-tag> <!-- <el-tag v-if="form.flag==='1'" type="success">已发布</el-tag>-->
</div> <!-- </div>-->
<div class="updateBoby"> <div class="updateBoby">
<el-form ref="deviceFormRef" :model="form" :rules="rules" label-position="right" label-width="auto"> <el-form ref="deviceFormRef" :model="form" :rules="rules" label-position="right" label-width="auto">
<el-row> <el-row>
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
/> />
<!-- 添加或修改商家管理配置对话框 --> <!-- 添加或修改商家管理配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="130px"> <el-form ref="form" :model="form" :rules="rules" size="small" label-width="auto">
<el-form-item label="商家名称:" prop="unitName"> <el-form-item label="商家名称:" prop="unitName">
<el-input v-model.trim="form.unitName" :maxlength="30" placeholder="请输入商家名称" /> <el-input v-model.trim="form.unitName" :maxlength="30" placeholder="请输入商家名称" />
</el-form-item> </el-form-item>
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
:icon="commonField.addIcon" :icon="commonField.addIcon"
:size="commonField.smallSize" :size="commonField.smallSize"
@click="handleAdd" @click="handleAdd"
>建商家管理员</el-button> ></el-button>
<!-- //导入按钮--> <!-- //导入按钮-->
<!-- <el-button <!-- <el-button
v-hasPermi="hasImportPerm" v-hasPermi="hasImportPerm"
......
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