Commit 542e1553 by 前端

Merge branch 'v3.20.0' into 'master'

V3.20.0

See merge request !24
2 parents 5de6e891 103b67a7
...@@ -4537,9 +4537,9 @@ ...@@ -4537,9 +4537,9 @@
} }
}, },
"dayjs": { "dayjs": {
"version": "1.11.7", "version": "1.11.10",
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.7.tgz", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
"integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==" "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
}, },
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
"axios": "^0.21.4", "axios": "^0.21.4",
"core-js": "^3.19.1", "core-js": "^3.19.1",
"cors": "^2.8.5", "cors": "^2.8.5",
"dayjs": "^1.11.10",
"el-tree-transfer": "^2.4.7", "el-tree-transfer": "^2.4.7",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^2.1.0", "glsx-common": "^2.1.0",
......
import { http } from '@/main' import { http ,marketing_http} from '@/main'
/*获取权益卡管理列表*/ /*获取权益卡管理列表*/
const getEquityCardList = params => { const getEquityCardList = params => {
params.method = 'scrm.api.equity.card.class.list.with.page' params.method = 'scrm.api.equity.card.class.list.with.page'
...@@ -11,7 +11,7 @@ const newEquityCard = params => { ...@@ -11,7 +11,7 @@ const newEquityCard = params => {
params.method = 'scrm.api.equity.card.class.insert' params.method = 'scrm.api.equity.card.class.insert'
return http({ return http({
data: params, data: params,
returnAll:true returnAll: true
}) })
} }
/*编辑权益卡*/ /*编辑权益卡*/
...@@ -19,7 +19,7 @@ const editEquityCard = params => { ...@@ -19,7 +19,7 @@ const editEquityCard = params => {
params.method = 'scrm.api.equity.card.class.update' params.method = 'scrm.api.equity.card.class.update'
return http({ return http({
data: params, data: params,
returnAll:true returnAll: true
}) })
} }
/*权益卡批量生成*/ /*权益卡批量生成*/
...@@ -57,7 +57,7 @@ const getMerchantList = params => { ...@@ -57,7 +57,7 @@ const getMerchantList = params => {
params.method = 'scrm.api.equity.goods.merchant.list' params.method = 'scrm.api.equity.goods.merchant.list'
return http({ return http({
data: params, data: params,
returnAll:true returnAll: true
}) })
} }
/*导出*/ /*导出*/
...@@ -65,7 +65,7 @@ const cardExport = params => { ...@@ -65,7 +65,7 @@ const cardExport = params => {
params.method = 'scrm.api.equity.card.export' params.method = 'scrm.api.equity.card.export'
return http({ return http({
data: params, data: params,
returnAll:true returnAll: true
}) })
} }
/*获取领用门店列表*/ /*获取领用门店列表*/
...@@ -73,15 +73,16 @@ const getCollectionMerchantList = params => { ...@@ -73,15 +73,16 @@ const getCollectionMerchantList = params => {
params.method = 'scrm.api.equity.card.get.by.merchant.name' params.method = 'scrm.api.equity.card.get.by.merchant.name'
return http({ return http({
data: params, data: params,
returnAll:true returnAll: true
}) })
} }
/*获取推广信息*/ /*获取推广信息*/
const getQrUrl = params => { const getQrUrl = params => {
params.method = 'scrm.api.equity.card.class.generate.try.url' params.method = 'scrm.api.equity.card.class.generate.try.url'
params.isOperateFlag = 1
return http({ return http({
data: params, data: params,
returnAll:true returnAll: true
}) })
} }
/*获取用户明细列表*/ /*获取用户明细列表*/
...@@ -134,7 +135,7 @@ const gethwBrandList = params => { ...@@ -134,7 +135,7 @@ const gethwBrandList = params => {
}) })
} }
const editHwActiveDayApi= params => { const editHwActiveDayApi = params => {
params.method = `scrm.api.equity.hw.order.updateLimitedTimeActivity` params.method = `scrm.api.equity.hw.order.updateLimitedTimeActivity`
return http({ return http({
data: params, data: params,
...@@ -142,7 +143,7 @@ const editHwActiveDayApi= params => { ...@@ -142,7 +143,7 @@ const editHwActiveDayApi= params => {
}) })
} }
const getHwActiveDayApi= params => { const getHwActiveDayApi = params => {
params.method = `scrm.api.equity.hw.order.getLimitedTimeActivity` params.method = `scrm.api.equity.hw.order.getLimitedTimeActivity`
return http({ return http({
data: params, data: params,
...@@ -150,15 +151,22 @@ const getHwActiveDayApi= params => { ...@@ -150,15 +151,22 @@ const getHwActiveDayApi= params => {
}) })
} }
const syncHwDataApi= params => { const syncHwDataApi = params => {
params.method = `scrm.api.equity.hw.order.sync` params.method = `scrm.api.equity.hw.order.sync`
return http({ return http({
data: params, data: params,
sign: true sign: true
}) })
} }
/**
* 查询门店红包活动列表
*/
const getActivityRedEnvelopeList = params => {
params.method = 'marketing.api.activityRedEnvelope.merchant.list'
return marketing_http({
data: params,
})
}
export default { export default {
getEquityCardList, getEquityCardList,
newEquityCard, newEquityCard,
...@@ -179,5 +187,6 @@ export default { ...@@ -179,5 +187,6 @@ export default {
gethwBrandList, gethwBrandList,
editHwActiveDayApi, editHwActiveDayApi,
getHwActiveDayApi, getHwActiveDayApi,
syncHwDataApi syncHwDataApi,
getActivityRedEnvelopeList
} }
...@@ -130,8 +130,8 @@ const saveCouponInfo = params => { ...@@ -130,8 +130,8 @@ const saveCouponInfo = params => {
// 获取模板下的优惠券列表 // 获取模板下的优惠券列表
const getCouponById = params => { const getCouponById = params => {
if(!params.templateId) { if (!params.templateId) {
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject) => {
reject() reject()
}) })
}; };
...@@ -164,7 +164,19 @@ const delTemplateById = params => { ...@@ -164,7 +164,19 @@ const delTemplateById = params => {
}) })
} }
// 获取领取优惠券的短链
const getUrlLink = params => {
params.method = `${defaultPath}urlLink.get`
return other_http({
url,
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getUrlLink,
getCouponsList, getCouponsList,
createCoupons, createCoupons,
getExportApi, getExportApi,
......
.el-message {
z-index: 3000 !important;
}
.equity-wrap .contain { .equity-wrap .contain {
background: #ffffff; background: #ffffff;
// margin: 0 0 20px 0; // margin: 0 0 20px 0;
......
...@@ -22,4 +22,5 @@ export { bootstrap, mount, unmount } from '@/setup' ...@@ -22,4 +22,5 @@ export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const new_http = params => Vue.prototype.$new_http(params) export const new_http = params => Vue.prototype.$new_http(params)
export const other_http = params => Vue.prototype.$other_http(params) export const other_http = params => Vue.prototype.$other_http(params)
export const marketing_http = params => Vue.prototype.$marketing_http(params)
import './utils/util.js' import './utils/util.js'
...@@ -17,8 +17,8 @@ Vue.use(GLCombiForm) ...@@ -17,8 +17,8 @@ Vue.use(GLCombiForm)
Vue.use(GLTableButton) Vue.use(GLTableButton)
Vue.use(GLDialog) Vue.use(GLDialog)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap ({ history, common, messenger, globalState, routerBase }) {
const { response, request, other_request, sign, secret } = await fetchConfig(globalState.configSwitch) const { response, request, other_request, sign, secret, marketing_request } = await fetchConfig(globalState.configSwitch)
let newrequest = Object.assign({}, request) let newrequest = Object.assign({}, request)
newrequest.baseURL = juedeDomain(request.baseURL) newrequest.baseURL = juedeDomain(request.baseURL)
Vue.prototype.$history = history Vue.prototype.$history = history
...@@ -30,6 +30,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -30,6 +30,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$other_http = new common.Http({ response, request: other_request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$other_http = new common.Http({ response, request: other_request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$new_http = new common.Http({ response, request: newrequest, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$new_http = new common.Http({ response, request: newrequest, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$marketing_http = new common.Http({ response, request: marketing_request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton,GLTable, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) // Vue.use(GLButton,GLTable, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
...@@ -38,25 +39,25 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -38,25 +39,25 @@ export async function bootstrap({ history, common, messenger, globalState, route
subscribe({ messenger }) subscribe({ messenger })
Vue.use(GLButton, { routes, routerBase }) Vue.use(GLButton, { routes, routerBase })
} }
export async function mount(props) { export async function mount (props) {
const insts = render(props.routerBase, routes) const insts = render(props.routerBase, routes)
router = insts.router router = insts.router
instance = insts.vm instance = insts.vm
} }
export async function unmount() { export async function unmount () {
instance.$destroy() instance.$destroy()
instance.$el.innerHTML = '' instance.$el.innerHTML = ''
instance = null instance = null
router = null router = null
} }
function subscribe({ messenger }) { function subscribe ({ messenger }) {
messenger.subscribe(v => { messenger.subscribe(v => {
console.log(`监听到子应用${v.from}发来消息:`, v) console.log(`监听到子应用${v.from}发来消息:`, v)
}) })
} }
function juedeDomain(url) { function juedeDomain (url) {
const val = { const val = {
environment: 'test', environment: 'test',
channel: 1, channel: 1,
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div> </div>
</GLTable> </GLTable>
<GLDialog class="codeDialog" mode="small" title="领取链接" @onOk="handleCopyLink" okText="复制" cancelText="取消" :before-close="closeLinkDialog" @onCancel="closeLinkDialog" :visible.sync="dialogShow">
<div class="link-wrap">{{ urlLink }}</div>
</GLDialog>
</div> </div>
</template> </template>
...@@ -32,6 +35,7 @@ export default { ...@@ -32,6 +35,7 @@ export default {
name: 'index', name: 'index',
data() { data() {
return { return {
dialogShow: false,
getListApi: this.$apis.goodsCouponApi.getCouponsList, getListApi: this.$apis.goodsCouponApi.getCouponsList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
searchForm: { searchForm: {
...@@ -99,6 +103,19 @@ export default { ...@@ -99,6 +103,19 @@ export default {
listeners: { listeners: {
click: row => this.goDetailPage(row) click: row => this.goDetailPage(row)
} }
},
{
type: 'el-button',
name: row => {
return '领取链接'
},
attrs: {
type: 'text',
fn: '领取链接'
},
listeners: {
click: row => this.goLink(row.scope)
}
} }
], ],
tableParams: { tableParams: {
...@@ -214,13 +231,41 @@ export default { ...@@ -214,13 +231,41 @@ export default {
optionLabel: 'label', optionLabel: 'label',
isClear: true isClear: true
} }
] ],
urlLink:'',
} }
}, },
created() { created() {
this.getAllBrandList() this.getAllBrandList()
}, },
methods: { methods: {
goLink(row) {
this.$apis.goodsCouponApi.getUrlLink({
couponId:row.id
}).then(res=>{
console.log(res)
this.urlLink =res
this.dialogShow = true
})
},
handleCopyLink() {
this.$message({
message: '复制成功',
type: 'success',
customClass: 'message-Z-zinde'
})
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', this.urlLink)
input.select()
document.execCommand('Copy')
document.body.removeChild(input)
},
closeLinkDialog() {
this.dialogShow = !this.dialogShow
this.urlLink=''
},
handleOk() { handleOk() {
this.$refs.tableRef.refreshTable() this.$refs.tableRef.refreshTable()
}, },
...@@ -326,4 +371,11 @@ export default { ...@@ -326,4 +371,11 @@ export default {
} }
} }
} }
.link-wrap {
background: #f8f8f8;
border-radius: 2px;
padding: 20px;
position: relative;
margin-top: 20px;
}
</style> </style>
...@@ -8,51 +8,127 @@ ...@@ -8,51 +8,127 @@
</div> --> </div> -->
<div class="tableBox"> <div class="tableBox">
<!-- <div class="topline"></div> --> <!-- <div class="topline"></div> -->
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="selectStore('select')" @handleRest="selectStore('reset')"></GLCombiForm> <GLCombiForm
ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="selectStore('select')"
@handleRest="selectStore('reset')"
></GLCombiForm>
<div class="btn-grounp"> <div class="btn-grounp">
<span class="title">权益卡列表</span> <span class="title">权益卡列表</span>
<el-button type="primary" @click="addCard('true')" size="small"> <el-button
type="primary"
@click="addCard('true')"
size="small"
>
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
<span style="margin-left: 8px">新建权益卡</span> <span style="margin-left: 8px">新建权益卡</span>
</el-button> </el-button>
</div> </div>
<div class="tableCtn"> <div class="tableCtn">
<GLTable ref="recordTable" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun"> <GLTable
<div slot="recipientCount" slot-scope="scope"> ref="recordTable"
<p class="cursor-pointer" style="color: #5850ff" @click="handleDetail(scope.scope)">{{ scope.scope.recipientCount }}</p> :searchForm="searchForm"
:tableParams="tableParams"
:getListApi="getListApi"
:pageConf="pageConf"
:noDataImg="url"
@setTableFinishFun="setTableFinishFun"
>
<div
slot="recipientCount"
slot-scope="scope"
>
<p
class="cursor-pointer"
style="color: #5850ff"
@click="handleDetail(scope.scope)"
>{{ scope.scope.recipientCount }}</p>
</div> </div>
<div class="flex_sc" slot="colorStatus"> <div
<div class="table_point" :style="{ background: '#2CCA74' }"></div> class="flex_sc"
slot="colorStatus"
>
<div
class="table_point"
:style="{ background: '#2CCA74' }"
></div>
<span>上架</span> <span>上架</span>
</div> </div>
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
>
<!-- <GLButton fn="权益卡管理编辑" type="text" @click="edit(scope.scope)" class="tableBtn" size="small">编辑</GLButton> <!-- <GLButton fn="权益卡管理编辑" type="text" @click="edit(scope.scope)" class="tableBtn" size="small">编辑</GLButton>
<el-button type="text" :disabled="scope.scope.tryAble == 0 ? true : false" @click="extension(scope.scope)" class="tableBtn" size="small">推广</el-button> <el-button type="text" :disabled="scope.scope.tryAble == 0 ? true : false" @click="extension(scope.scope)" class="tableBtn" size="small">推广</el-button>
<el-button type="text" @click="copy(scope.scope)" class="tableBtn" size="small">复制</el-button> --> <el-button type="text" @click="copy(scope.scope)" class="tableBtn" size="small">复制</el-button> -->
<GLTableButton :buttonList="recordButtonList" :buttonItem="scope" :buttonNum="3"></GLTableButton> <GLTableButton
:buttonList="recordButtonList"
:buttonItem="scope"
:buttonNum="3"
></GLTableButton>
</span> </span>
</GLTable> </GLTable>
</div> </div>
</div> </div>
<!-- 推广弹窗 --> <!-- 推广弹窗 -->
<GLDialog mode="mid" title="试用推广" :visible.sync="isVisible" :before-close="handleClose" :close-on-click-modal="false"> <GLDialog
<el-form :model="editForm" :rules="rules" ref="ruleForm" label-width="68px"> mode="mid"
title="试用推广"
:visible.sync="isVisible"
:before-close="handleClose"
:close-on-click-modal="false"
>
<el-form
:model="editForm"
:rules="rules"
ref="ruleForm"
label-width="68px"
>
<div class="form"> <div class="form">
<div class="main-qrcode"> <div class="main-qrcode">
<img :src="editForm.qrCode" ref="Qrcode" id="qrCode" /> <img
:src="editForm.qrCode"
ref="Qrcode"
id="qrCode"
/>
<div class="tryDays">{{ tryNum }}天试用</div> <div class="tryDays">{{ tryNum }}天试用</div>
</div> </div>
<el-form-item label="领取链接" prop="" style="margin-top: 20px"> <el-form-item
label="领取链接"
prop=""
style="margin-top: 20px"
>
<div class="lineCtn"> <div class="lineCtn">
<el-input disabled="true" :value="`${editForm.url}`" maxlength="14" placeholder="请输入链接" clearable></el-input> <el-input
<el-button size="small" type="primary" @click="closeText(`${editForm.url}`)">复制链接</el-button> disabled="true"
:value="`${editForm.url}`"
maxlength="14"
placeholder="请输入链接"
clearable
></el-input>
<el-button
size="small"
type="primary"
@click="closeText(`${editForm.url}`)"
>复制链接</el-button>
</div> </div>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
<div slot="footer"> <div slot="footer">
<el-button size="small" @click="handleClose">取消</el-button> <el-button
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button> size="small"
@click="handleClose"
>取消</el-button>
<el-button
size="small"
type="primary"
@click="handleConfirm"
>确定</el-button>
</div> </div>
</GLDialog> </GLDialog>
<!-- 新建权益卡弹窗 --> <!-- 新建权益卡弹窗 -->
...@@ -111,35 +187,112 @@ ...@@ -111,35 +187,112 @@
</span> </span>
</GLDialog> --> </GLDialog> -->
<detail-dialog ref="detailDetailRef"></detail-dialog> <detail-dialog ref="detailDetailRef"></detail-dialog>
<el-drawer v-if="dialogVisible" :with-header="false" class="drawer-panel" size="45%" title="新建权益卡" :visible.sync="dialogVisible" :before-close="closeDialog"> <el-drawer
v-if="dialogVisible"
:with-header="false"
class="drawer-panel"
size="880px"
:title="dialogTitle"
:visible.sync="dialogVisible"
:before-close="closeDialog"
>
<div class="drawer-header flex_scb"> <div class="drawer-header flex_scb">
<span class="title">新建权益卡</span> <span class="title">{{dialogTitle}}</span>
<i class="el-icon-close"></i> <i class="el-icon-close"></i>
</div> </div>
<div class="drawer-wrapper gl-form-page gl-form-min"> <div class="drawer-wrapper gl-form-page gl-form-min">
<el-form class="form" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="154px"> <el-form
<el-form-item label="名称:" prop="cardClassName" id="name"> class="form"
<el-input clearable v-model="ruleForm.cardClassName" maxlength="15" type="text" size="small" placeholder="请输入"></el-input> :model="ruleForm"
:rules="rules"
ref="ruleForm"
label-width="154px"
>
<el-form-item
label="名称:"
prop="cardClassName"
id="name"
>
<el-input
clearable
v-model="ruleForm.cardClassName"
maxlength="15"
type="text"
size="small"
placeholder="请输入"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="卡片样式:" prop="backgroundImage"> <el-form-item
label="卡片样式:"
prop="backgroundImage"
>
<div class="imageList"> <div class="imageList">
<div v-for="(item, index) in product" :key="index" :id="item.id" @click="changeStyle(item.id, item.src)" :class="{ imgCtn: true, imgBg: item.src === ruleForm.backgroundImage }"> <div
<img :src="item.imgSrc" alt="" class="imageItem" /> v-for="(item, index) in product"
<i v-if="item.src === ruleForm.backgroundImage" class="imgicon el-icon-success"></i> :key="index"
:id="item.id"
@click="changeStyle(item.id, item.src)"
:class="{ imgCtn: true, imgBg: item.src === ruleForm.backgroundImage }"
>
<img
:src="item.imgSrc"
alt=""
class="imageItem"
/>
<i
v-if="item.src === ruleForm.backgroundImage"
class="imgicon el-icon-success"
></i>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="渠道门店:" prop="merchantName"> <el-form-item
<el-select size="small" clearable v-model="ruleForm.merchantName" filterable remote reserve-keyword placeholder="请输入门店名称" :remote-method="generateRemoteMethod" :loading="loading" :disabled="disableSelect"> label="渠道门店:"
<el-option v-for="(item, index) in generateOptions" :key="index" :label="item.merchantName" :value="item.merchantName"></el-option> prop="merchantName"
>
<el-select
size="small"
clearable
v-model="ruleForm.merchantName"
filterable
remote
reserve-keyword
placeholder="请输入门店名称"
:remote-method="generateRemoteMethod"
:loading="loading"
:disabled="disableSelect"
>
<el-option
v-for="(item, index) in generateOptions"
:key="index"
:label="item.merchantName"
:value="item.merchantName"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="有效期:" prop="effectiveType"> <el-form-item
label="有效期:"
prop="effectiveType"
>
<el-radio-group v-model="ruleForm.effectiveType"> <el-radio-group v-model="ruleForm.effectiveType">
<el-radio label="1" @change="e => controlSwitch(e, 'disable')">永久有效</el-radio> <el-radio
<el-radio label="2" @change="e => controlSwitch(e, 'input')"> label="1"
@change="e => controlSwitch(e, 'disable')"
>永久有效</el-radio>
<el-radio
label="2"
@change="e => controlSwitch(e, 'input')"
>
<span style="margin-right: 10px">领取时起</span> <span style="margin-right: 10px">领取时起</span>
<el-input-number v-model="effectiveNum" :min="1" :max="999" id="month" :disabled="ruleForm.effectiveType !== '2'" size="mini" change=""></el-input-number> <el-input-number
v-model="effectiveNum"
:min="1"
:max="999"
id="month"
:disabled="ruleForm.effectiveType !== '2'"
size="mini"
change=""
></el-input-number>
<span style="margin-left: 10px">天内有效</span> <span style="margin-left: 10px">天内有效</span>
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
...@@ -151,25 +304,67 @@ ...@@ -151,25 +304,67 @@
<el-popover <el-popover
placement="top-start" placement="top-start"
trigger="hover" trigger="hover"
content="用于关联流量卡服务测的商品"> content="用于关联流量卡服务测的商品"
<i slot="reference" class="gl-icon-circle-question">:</i> >
<i
slot="reference"
class="gl-icon-circle-question"
>:</i>
</el-popover> </el-popover>
</div> </div>
</div> </div>
<!-- <el-input-number v-model="ruleForm.platformGoodsId" size="small" :controls="disableInputNumber"></el-input-number> --> <!-- <el-input-number v-model="ruleForm.platformGoodsId" size="small" :controls="disableInputNumber"></el-input-number> -->
<el-input clearable v-model="ruleForm.platformGoodsId" type="text" size="small" placeholder="请输入"></el-input> <el-input
clearable
v-model="ruleForm.platformGoodsId"
type="text"
size="small"
placeholder="请输入"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="使用说明:" prop="usageNotes"> <el-form-item
<el-input type="textarea" clearable show-word-limit :rows="3" v-model="ruleForm.usageNotes" maxlength="500" size="small"></el-input> label="使用说明:"
prop="usageNotes"
>
<el-input
type="textarea"
clearable
show-word-limit
:rows="3"
v-model="ruleForm.usageNotes"
maxlength="500"
size="small"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="售价/元:" prop="price"> <el-form-item
label="售价/元:"
prop="price"
>
<!-- <el-input-number v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number> --> <!-- <el-input-number v-model="ruleForm.price" controls-position="right" size="mini" :min="1" :max="9999.99"></el-input-number> -->
<el-input clearable v-model="ruleForm.price" maxlength="7" type="text" size="small" placeholder="请输入"></el-input> <el-input
clearable
v-model="ruleForm.price"
maxlength="7"
type="text"
size="small"
placeholder="请输入"
></el-input>
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom:0" label="试用设置:" prop=""> <el-form-item
<el-switch v-model="value" active-color="" inactive-color="#d3d3d3"></el-switch> style="margin-bottom:0"
label="试用设置:"
prop=""
>
<el-switch
v-model="value"
active-color=""
inactive-color="#d3d3d3"
></el-switch>
</el-form-item> </el-form-item>
<el-form-item v-show="value" :prop="value == false ? '' : 'tryNum'" > <el-form-item
v-show="value"
:prop="value == false ? '' : 'tryNum'"
>
<div class="custom_wrap flex_cc"> <div class="custom_wrap flex_cc">
<div class="line flex_sc"> <div class="line flex_sc">
<div class="custome_label"> <div class="custome_label">
...@@ -178,12 +373,22 @@ ...@@ -178,12 +373,22 @@
<el-popover <el-popover
placement="top-start" placement="top-start"
trigger="hover" trigger="hover"
content="设置后将生成试用链接和二维码可用于推广"> content="设置后将生成试用链接和二维码可用于推广"
<i slot="reference" class="gl-icon-circle-question">:</i> >
<i
slot="reference"
class="gl-icon-circle-question"
>:</i>
</el-popover> </el-popover>
</div> </div>
<div class="custome_value flex_sc"> <div class="custome_value flex_sc">
<el-input-number v-model="tryNum" size="mini" :disabled="!hasTryNum" :min="1" :max="365"></el-input-number> <el-input-number
v-model="tryNum"
size="mini"
:disabled="!hasTryNum"
:min="1"
:max="365"
></el-input-number>
<span style="margin-left:8px">天试用</span> <span style="margin-left:8px">天试用</span>
</div> </div>
</div> </div>
...@@ -194,11 +399,49 @@ ...@@ -194,11 +399,49 @@
天试用 天试用
<span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span> <span class="codeTxt2">设置后将生成试用链接和二维码可用于推广</span>
</el-form-item> --> </el-form-item> -->
<template v-if="activityRedEnvelopeList.length">
<el-form-item label="关联红包玩法:">
<div
class="red-box"
:key="activityRedEnvelopeKey"
>
<template v-for="(i,index) in activityRedEnvelopeList">
<template>
<div
@click="chooseRed(i.id)"
:key="index"
:class="['item',{'active': ruleForm.activityRedEnvelopeId == i.id}]"
>
<div class="icon">
<img src="@/assets/red-radio.png" />
</div>
<div class="title">{{ i.activityName }}</div>
<div class="type">活动形式:{{ {
0: '随机红包', 1: '九宫格', 2: '翻牌', 3: '大转盘'
}[i.activityType] }}</div>
<div class="time">活动时间:{{dayjs(i.activityStartTime).format('YYYY/MM/DD')}} - {{dayjs(i.activityEndTime).format('YYYY/MM/DD')}}</div>
<div class="status">状态:{{ {
0: '活动待进行', 1: '活动进行中', 2: '红包已用完', 3: '活动已结束'
}[i.activityStatus] }}</div>
</div>
</template>
</template>
</div>
</el-form-item>
</template>
</el-form> </el-form>
</div> </div>
<div class="drawer-footer"> <div class="drawer-footer">
<el-button @click="resetForm('ruleForm')" class="cancel-btn" size="small">取消</el-button> <el-button
<el-button @click="submitForm('ruleForm')" size="small" type="primary">确定</el-button> @click="resetForm('ruleForm')"
class="cancel-btn"
size="small"
>取消</el-button>
<el-button
@click="submitForm('ruleForm')"
size="small"
type="primary"
>确定</el-button>
</div> </div>
</el-drawer> </el-drawer>
<GLDialog <GLDialog
...@@ -210,11 +453,27 @@ ...@@ -210,11 +453,27 @@
cancelText="取消" cancelText="取消"
:before-close="closeCodeDialog" :before-close="closeCodeDialog"
@onCancel="closeCodeDialog" @onCancel="closeCodeDialog"
:visible.sync="dialogShow"> :visible.sync="dialogShow"
>
<div class="codeNumArea"> <div class="codeNumArea">
<el-form ref="codeRef" label-width="154px" :rules="codeRules" :model="codeForm"> <el-form
<el-form-item label="生成数量:" prop="amount" class="m-t-20"> ref="codeRef"
<el-input type="text" maxLength="5" v-model="codeForm.amount" oninput="value=value.replace(/^0/g,'').replace(/[^\d]/g,'')" placeholder="请输入生成数量"></el-input> label-width="154px"
:rules="codeRules"
:model="codeForm"
>
<el-form-item
label="生成数量:"
prop="amount"
class="m-t-20"
>
<el-input
type="text"
maxLength="5"
v-model="codeForm.amount"
oninput="value=value.replace(/^0/g,'').replace(/[^\d]/g,'')"
placeholder="请输入生成数量"
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- <label for="">生成数量:</label> <!-- <label for="">生成数量:</label>
...@@ -232,7 +491,7 @@ const cloneText = message => { ...@@ -232,7 +491,7 @@ const cloneText = message => {
input.setSelectionRange(0, input.value.length), document.execCommand('Copy') input.setSelectionRange(0, input.value.length), document.execCommand('Copy')
document.body.removeChild(input) document.body.removeChild(input)
} }
function date_format(date) { function date_format (date) {
var date2 = new Date(date) var date2 = new Date(date)
var YY = date2.getFullYear() + '-' var YY = date2.getFullYear() + '-'
var MM = (date2.getMonth() + 1 < 10 ? '0' + (date2.getMonth() + 1) : date2.getMonth() + 1) + '-' var MM = (date2.getMonth() + 1 < 10 ? '0' + (date2.getMonth() + 1) : date2.getMonth() + 1) + '-'
...@@ -245,9 +504,12 @@ function date_format(date) { ...@@ -245,9 +504,12 @@ function date_format(date) {
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import detailDialog from './cardDetail' import detailDialog from './cardDetail'
// import {memberCardDetails} from "@/api/test"; // import {memberCardDetails} from "@/api/test";
import * as dayjs from 'dayjs'
export default { export default {
data() { data () {
return { return {
dayjs,
url: url, url: url,
dialogShow: false, dialogShow: false,
codeForm: { codeForm: {
...@@ -308,7 +570,8 @@ export default { ...@@ -308,7 +570,8 @@ export default {
platformGoodsId: +'', platformGoodsId: +'',
merchantName: '', merchantName: '',
id: '', id: '',
price: '' price: '',
activityRedEnvelopeId: ''
}, },
editForm: { editForm: {
url: '', url: '',
...@@ -442,7 +705,7 @@ export default { ...@@ -442,7 +705,7 @@ export default {
label: '售价/元', label: '售价/元',
prop: 'price', prop: 'price',
align: 'right', align: 'right',
width:150, width: 150,
formatter: cellValue => { formatter: cellValue => {
if (cellValue.price == null) { if (cellValue.price == null) {
return '39.9' return '39.9'
...@@ -455,12 +718,12 @@ export default { ...@@ -455,12 +718,12 @@ export default {
label: '领卡用户', label: '领卡用户',
prop: 'recipientCount', prop: 'recipientCount',
addHtml: 'recipientCount', addHtml: 'recipientCount',
width:150, width: 150,
}, },
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
addHtml:'colorStatus' addHtml: 'colorStatus'
// formatter: cellValue => { // formatter: cellValue => {
// return '正常' // return '正常'
// } // }
...@@ -480,24 +743,31 @@ export default { ...@@ -480,24 +743,31 @@ export default {
addHtml: 'auth-button' addHtml: 'auth-button'
} }
] ]
} },
activityRedEnvelopeList: [],
activityRedEnvelopeKey: Date.now(),
dialogTitle:'新建权益卡'
} }
}, },
components: { components: {
detailDialog detailDialog
}, },
mounted() { mounted () {
this.list = this.states.map(item => { this.list = this.states.map(item => {
return { value: `value:${item}`, label: `label:${item}` } return { value: `value:${item}`, label: `label:${item}` }
}) })
}, },
watch: { watch: {
'ruleForm.merchantName'(n) { 'ruleForm.merchantName' (n) {
this.generateOptions.map(e => { this.generateOptions.map(e => {
if (e.merchantName == n) this.ruleForm.merchantId = e.merchantId if (e.merchantName == n) {
this.ruleForm.activityRedEnvelopeId = ''
this.ruleForm.merchantId = e.merchantId
this.getActivityRedEnvelopeList(e.merchantId)
}
}) })
}, },
value(n) { value (n) {
if (n == true) { if (n == true) {
this.hasTryNum = true this.hasTryNum = true
} else { } else {
...@@ -507,7 +777,17 @@ export default { ...@@ -507,7 +777,17 @@ export default {
} }
}, },
methods: { methods: {
downLoadExchangeCode(){ async getActivityRedEnvelopeList (merchantId) {
const res = await this.$apis.equityApi.getActivityRedEnvelopeList({ merchantId })
this.activityRedEnvelopeList = res
},
chooseRed (id) {
const {activityRedEnvelopeId} = this.ruleForm
if(activityRedEnvelopeId && activityRedEnvelopeId == id) id = ''
this.ruleForm.activityRedEnvelopeId = id
this.activityRedEnvelopeKey = Date.now()
},
downLoadExchangeCode () {
this.$refs.codeRef.validate(valid => { this.$refs.codeRef.validate(valid => {
if (valid) { if (valid) {
var params = { var params = {
...@@ -519,7 +799,7 @@ export default { ...@@ -519,7 +799,7 @@ export default {
text: 'Loading...', text: 'Loading...',
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.5)', background: 'rgba(0, 0, 0, 0.5)',
customClass:'loadingClass' customClass: 'loadingClass'
}) })
this.$apis.equityApi.exportExchangCodeApi(params).then(res => { this.$apis.equityApi.exportExchangCodeApi(params).then(res => {
loading.close() loading.close()
...@@ -535,43 +815,46 @@ export default { ...@@ -535,43 +815,46 @@ export default {
iframe.src = res iframe.src = res
document.body.appendChild(iframe) document.body.appendChild(iframe)
} }
}).catch(err=> { }).catch(err => {
loading.close() loading.close()
}) })
} }
}) })
}, },
closeCodeDialog(){ closeCodeDialog () {
this.dialogShow = !this.dialogShow this.dialogShow = !this.dialogShow
this.codeForm.id = '' this.codeForm.id = ''
this.codeForm.amount = '' this.codeForm.amount = ''
}, },
openDialog(row){ openDialog (row) {
this.codeForm.id = row.id this.codeForm.id = row.id
this.dialogShow = true this.dialogShow = true
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs?.codeRef?.clearValidate() this.$refs?.codeRef?.clearValidate()
}) })
}, },
handleDetail(row) { handleDetail (row) {
this.$refs.detailDetailRef.show(row) this.$refs.detailDetailRef.show(row)
// this.getcardRecordList() // this.getcardRecordList()
}, },
setTableFinishFun() { setTableFinishFun () {
//接收到的数据为空 //接收到的数据为空
// if (!this.$refs.table.data.length) { // if (!this.$refs.table.data.length) {
// this.$refs.table.setTableHeightFun() // this.$refs.table.setTableHeightFun()
// } // }
}, },
closeDialog() { closeDialog () {
this.value = false this.value = false
this.dialogVisible = false this.dialogVisible = false
this.effectiveNum = '' this.effectiveNum = ''
this.isAdd = false this.isAdd = false
this.inputSwitch = true this.inputSwitch = true
this.disableSelect = false this.disableSelect = false
this.dialogTitle = '新建权益卡'
this.activityRedEnvelopeList = []
this.$refs.recordTable.refreshTable()
}, },
extension(row) { extension (row) {
this.$apis.equityApi this.$apis.equityApi
.getQrUrl({ .getQrUrl({
id: row.id id: row.id
...@@ -582,7 +865,7 @@ export default { ...@@ -582,7 +865,7 @@ export default {
this.tryNum = row.tryNum this.tryNum = row.tryNum
}) })
}, },
handleConfirm() { handleConfirm () {
this.isVisible = !this.isVisible this.isVisible = !this.isVisible
}, },
// 下载二维码 // 下载二维码
...@@ -622,16 +905,16 @@ export default { ...@@ -622,16 +905,16 @@ export default {
// } // }
// }) // })
// }, // },
handleClose() { handleClose () {
this.isVisible = !this.isVisible this.isVisible = !this.isVisible
}, },
// 复制链接按钮 // 复制链接按钮
closeText(val) { closeText (val) {
cloneText(val) cloneText(val)
this.$message.success('复制成功') this.$message.success('复制成功')
}, },
//管理分页列表下拉框 //管理分页列表下拉框
remoteMethod(query) { remoteMethod (query) {
if (query !== '') { if (query !== '') {
this.loading = true this.loading = true
this.$apis.equityApi this.$apis.equityApi
...@@ -647,7 +930,7 @@ export default { ...@@ -647,7 +930,7 @@ export default {
} }
}, },
//建卡下拉框 //建卡下拉框
generateRemoteMethod(query) { generateRemoteMethod (query) {
if (query !== '') { if (query !== '') {
this.loading = true this.loading = true
this.$apis.equityApi this.$apis.equityApi
...@@ -663,7 +946,13 @@ export default { ...@@ -663,7 +946,13 @@ export default {
} }
}, },
//编辑 //编辑
edit(row) { edit (row) {
if (row.activityRedEnvelopeResponseList && row.activityRedEnvelopeResponseList.length) {
row.activityRedEnvelopeId = row.activityRedEnvelopeResponseList[0].activityRedEnvelopeId
delete row.activityRedEnvelopeResponseList
}
this.dialogTitle = '编辑权益卡'
this.getActivityRedEnvelopeList(row.merchantId)
this.ruleForm = row this.ruleForm = row
this.dialogVisible = true this.dialogVisible = true
this.ruleForm.effectiveType = row.effectiveType + '' this.ruleForm.effectiveType = row.effectiveType + ''
...@@ -672,30 +961,31 @@ export default { ...@@ -672,30 +961,31 @@ export default {
this.effectiveNum = row.effectiveNum this.effectiveNum = row.effectiveNum
} }
if (row.tryAble == 1) { if (row.tryAble == 1) {
;(this.value = true), (this.tryNum = row.tryNum) ; (this.value = true), (this.tryNum = row.tryNum)
} else { } else {
;(this.value = false), (this.tryNum = 30) ; (this.value = false), (this.tryNum = 30)
} }
// 禁用门店框 // 禁用门店框
this.disableSelect = true this.disableSelect = true
}, },
//复制 //复制
copy(row) { copy (row) {
this.disableSelect = false this.disableSelect = false
this.isAdd = true this.isAdd = true
this.dialogVisible = true this.dialogVisible = true
this.getActivityRedEnvelopeList(row.merchantId)
this.ruleForm = row this.ruleForm = row
this.ruleForm.effectiveType = row.effectiveType + '' this.ruleForm.effectiveType = row.effectiveType + ''
if (this.ruleForm.effectiveType == 2) { if (this.ruleForm.effectiveType == 2) {
this.effectiveNum = row.effectiveNum this.effectiveNum = row.effectiveNum
} }
if (row.tryAble == 1) { if (row.tryAble == 1) {
;(this.value = true), (this.tryNum = row.tryNum) ; (this.value = true), (this.tryNum = row.tryNum)
} else { } else {
;(this.value = false), (this.tryNum = 30) ; (this.value = false), (this.tryNum = 30)
} }
}, },
addCard(cd) { addCard (cd) {
this.ruleForm = {} this.ruleForm = {}
this.submitBtn = false this.submitBtn = false
this.generateOptions = [] this.generateOptions = []
...@@ -705,19 +995,19 @@ export default { ...@@ -705,19 +995,19 @@ export default {
this.clearStyle() this.clearStyle()
}, 20) }, 20)
}, },
groupChange(value) { groupChange (value) {
console.log(value) console.log(value)
}, },
//弹窗界面 //弹窗界面
//clear imageStyle //clear imageStyle
clearStyle() { clearStyle () {
var firstImgStyle = document.getElementById('firstImg') var firstImgStyle = document.getElementById('firstImg')
// var secondImgStyle = document.getElementById('secondImg') // var secondImgStyle = document.getElementById('secondImg')
// var thirdImgStyle = document.getElementById('thirdImg') // var thirdImgStyle = document.getElementById('thirdImg')
// var forthImgStyle = document.getElementById('forthImg') // var forthImgStyle = document.getElementById('forthImg')
}, },
//change imageStyle //change imageStyle
changeStyle(cd, src) { changeStyle (cd, src) {
this.clearStyle() this.clearStyle()
var imgItem = document.getElementById(cd) var imgItem = document.getElementById(cd)
imgItem.style.background = '#5850ff' imgItem.style.background = '#5850ff'
...@@ -726,7 +1016,7 @@ export default { ...@@ -726,7 +1016,7 @@ export default {
this.$refs.ruleForm.validateField('backgroundImage') this.$refs.ruleForm.validateField('backgroundImage')
}, },
//checkbox的input开关 //checkbox的input开关
controlSwitch(value, cd) { controlSwitch (value, cd) {
if (cd == 'disable') { if (cd == 'disable') {
// this.inputSwitch = true // this.inputSwitch = true
this.ruleForm.effectiveNum = '' this.ruleForm.effectiveNum = ''
...@@ -736,7 +1026,7 @@ export default { ...@@ -736,7 +1026,7 @@ export default {
} }
}, },
//门店搜索 //门店搜索
selectStore(e) { selectStore (e) {
if (e == 'reset') { if (e == 'reset') {
this.searchForm.merchantName = '' this.searchForm.merchantName = ''
this.searchForm.cardClassName = '' this.searchForm.cardClassName = ''
...@@ -750,7 +1040,7 @@ export default { ...@@ -750,7 +1040,7 @@ export default {
} }
}, },
//提交验证 //提交验证
submitForm(formName) { submitForm (formName) {
if (this.value == true) { if (this.value == true) {
this.ruleForm.tryNum = this.tryNum this.ruleForm.tryNum = this.tryNum
this.ruleForm.tryAble = '1' this.ruleForm.tryAble = '1'
...@@ -785,7 +1075,7 @@ export default { ...@@ -785,7 +1075,7 @@ export default {
}, 400) }, 400)
} else if (res.code == -1) { } else if (res.code == -1) {
this.$message({ this.$message({
message: '当前门店已绑定其他权益卡', message: res.message || '当前门店已绑定其他权益卡',
type: 'error' type: 'error'
}) })
setTimeout(() => { setTimeout(() => {
...@@ -810,7 +1100,7 @@ export default { ...@@ -810,7 +1100,7 @@ export default {
} }
}) })
}, },
resetForm(formName) { resetForm (formName) {
this.value = false this.value = false
this.dialogVisible = false this.dialogVisible = false
this.effectiveNum = '' this.effectiveNum = ''
...@@ -878,7 +1168,7 @@ export default { ...@@ -878,7 +1168,7 @@ export default {
.imgBg { .imgBg {
position: relative; position: relative;
} }
.imgicon{ .imgicon {
position: absolute; position: absolute;
right: 4px; right: 4px;
top: 4px; top: 4px;
...@@ -952,7 +1242,7 @@ export default { ...@@ -952,7 +1242,7 @@ export default {
line-height: 32px; line-height: 32px;
width: 432px !important; width: 432px !important;
} }
.dialogForm .el-textarea__inner{ .dialogForm .el-textarea__inner {
font-size: 14px; font-size: 14px;
line-height: 21px; line-height: 21px;
} }
...@@ -987,14 +1277,14 @@ export default { ...@@ -987,14 +1277,14 @@ export default {
.el-button + .el-button { .el-button + .el-button {
margin-left: 8px !important; margin-left: 8px !important;
} }
.btn-grounp{ .btn-grounp {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 10px; margin-bottom: 10px;
padding-right: 20px; padding-right: 20px;
} }
.btn-grounp .title{ .btn-grounp .title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
...@@ -1005,51 +1295,94 @@ export default { ...@@ -1005,51 +1295,94 @@ export default {
overflow-y: auto; overflow-y: auto;
} }
} }
.drawer-header{ .drawer-header {
padding: 15px 25px 15px 20px; padding: 15px 25px 15px 20px;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
.title{ .title {
font-size: 22px; font-size: 22px;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
} }
>i{ > i {
font-size: 21px; font-size: 21px;
cursor: pointer; cursor: pointer;
} }
} }
.drawer-wrapper{ .drawer-wrapper {
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
padding: 20px; padding: 20px;
height: calc(100% - 128px); height: calc(100% - 117px);
.custome_label{ overflow-y: scroll;
.custome_label {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
.custom_wrap{ .custom_wrap {
width: 370px; width: 370px;
height: 68px; height: 68px;
background: #F9F9F9; background: #f9f9f9;
} }
.custom_wrap .custome_label >span{ .custom_wrap .custome_label > span {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
} }
.red-box {
display: flex;
gap: 16px;
flex-wrap: wrap;
.item {
width: 282px;
height: 132px;
background: #f9f9f9;
border-radius: 4px;
border: 2px solid #f9f9f9;
box-sizing: border-box;
cursor: pointer;
padding: 0 16px;
font-size: 14px;
color: #666666;
line-height: 20px;
position: relative;
.icon {
display: none;
}
div {
margin-top: 8px;
}
.title {
font-weight: 500;
font-size: 14px;
color: #333333;
padding-top: 4px;
}
&:hover {
opacity: 0.95;
}
}
.active {
border-color: #5850ff;
.icon {
display: block;
position: absolute;
right: 0;
bottom: 0;
width: 16px;
height: 16px;
background-color: #5850ff;
}
}
}
} }
.gl-form-page .form .el-input-number .el-input{ .gl-form-page .form .el-input-number .el-input {
width: 100%; width: 100%;
} }
.el-textarea .el-input__count{ .el-textarea .el-input__count {
right: -38px; right: -38px;
bottom: -12px; bottom: -12px;
} }
.drawer-footer{ .drawer-footer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 64px; height: 64px;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
display: flex; display: flex;
...@@ -1057,22 +1390,23 @@ export default { ...@@ -1057,22 +1390,23 @@ export default {
justify-content: flex-end; justify-content: flex-end;
box-sizing: border-box; box-sizing: border-box;
padding-right: 20px; padding-right: 20px;
.cancel-btn{ background-color: #fff;
.cancel-btn {
margin-right: 12px; margin-right: 12px;
} }
} }
.codeDialog{ .codeDialog {
.el-dialog__body{ .el-dialog__body {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.codeNumArea{ .codeNumArea {
display: flex; display: flex;
align-items: center; align-items: center;
label{ label {
white-space: nowrap; white-space: nowrap;
} }
/deep/ .el-input{ /deep/ .el-input {
width: 284px; width: 284px;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!