管理端注释添加完成

master
mabo 2021-07-27 15:59:34 +08:00
parent 59e1aedbf3
commit eb4a5e4fdc
44 changed files with 485 additions and 996 deletions

View File

@ -34,7 +34,6 @@ body {
height: 100%; height: 100%;
background: #f0f0f0; background: #f0f0f0;
font-size: 12px; font-size: 12px;
/* overflow: hidden; */
} }
.app-main { .app-main {

View File

@ -1,7 +1,6 @@
<style lang="scss"> <style lang="scss">
@import "./main.scss"; @import "./main.scss";
</style> </style>
<template> <template>
<div class="main"> <div class="main">
<!-- 左侧菜单 --> <!-- 左侧菜单 -->
@ -94,10 +93,7 @@ export default {
}, },
lang() { lang() {
return this.$store.state.app.lang; return this.$store.state.app.lang;
}, }
mesCount() {
return 0;
},
}, },
methods: { methods: {

View File

@ -59,7 +59,6 @@ import {
} from "@/api/index"; } from "@/api/index";
export default { export default {
name: "customWords", name: "customWords",
components: {},
data() { data() {
return { return {
loading: true, // loading: true, //
@ -83,7 +82,7 @@ export default {
name: [ name: [
{ {
required: true, required: true,
message: "请输入敏感词", message: "请输入自定义分词",
trigger: "blur", trigger: "blur",
}, },
], ],
@ -180,37 +179,23 @@ export default {
this.clearSelectAll(); this.clearSelectAll();
}, },
changePageSize(v) { changePageSize(v) {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = v; this.searchForm.pageSize = v;
this.getDataList(); this.getDataList();
}, },
handleSearch() { handleSearch() {
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getDataList();
},
handleReset() {
this.$refs.searchForm.resetFields();
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
//
this.getDataList();
},
changeSort(e) {
this.searchForm.sort = e.key;
this.searchForm.order = e.order;
if (e.order === "normal") {
this.searchForm.order = "";
}
this.getDataList(); this.getDataList();
}, },
clearSelectAll() { clearSelectAll() {
this.$refs.table.selectAll(false); this.$refs.table.selectAll(false);
}, },
//
changeSelect(e) { changeSelect(e) {
this.selectList = e; this.selectList = e;
this.selectCount = e.length; this.selectCount = e.length;
}, },
//
getDataList() { getDataList() {
this.loading = true; this.loading = true;
@ -224,13 +209,13 @@ export default {
this.total = this.data.length; this.total = this.data.length;
this.loading = false; this.loading = false;
}, },
//
handleSubmit() { handleSubmit() {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
this.submitLoading = true; this.submitLoading = true;
if (this.modalType == 0) { if (this.modalType == 0) {
// id
delete this.form.id; delete this.form.id;
insertCustomWords(this.form).then((res) => { insertCustomWords(this.form).then((res) => {
this.submitLoading = false; this.submitLoading = false;
@ -255,6 +240,7 @@ export default {
} }
}); });
}, },
//
add() { add() {
this.modalType = 0; this.modalType = 0;
this.modalTitle = "添加"; this.modalTitle = "添加";
@ -263,6 +249,7 @@ export default {
this.modalVisible = true; this.modalVisible = true;
}, },
//
detail(v) { detail(v) {
this.modalType = 1; this.modalType = 1;
this.id = v.id; this.id = v.id;
@ -270,6 +257,7 @@ export default {
this.modalVisible = true; this.modalVisible = true;
this.form.name = v.name; this.form.name = v.name;
}, },
//
remove(v) { remove(v) {
this.$Modal.confirm({ this.$Modal.confirm({
title: "确认删除", title: "确认删除",
@ -288,6 +276,7 @@ export default {
}, },
}); });
}, },
//
delAll() { delAll() {
if (this.selectCount <= 0) { if (this.selectCount <= 0) {
this.$Message.warning("您还未选择要删除的数据"); this.$Message.warning("您还未选择要删除的数据");

View File

@ -45,7 +45,7 @@ export default {
LangSwitch, LangSwitch,
Header, Header,
Footer, Footer,
verify, verify
}, },
data() { data() {
return { return {
@ -77,7 +77,6 @@ export default {
}; };
}, },
methods: { methods: {
mounted() {},
afterLogin(res) { afterLogin(res) {
// //
let accessToken = res.result.accessToken; let accessToken = res.result.accessToken;

View File

@ -41,9 +41,7 @@
</Form> </Form>
<div slot="footer"> <div slot="footer">
<Button type="text" @click="modalVisible = false">取消</Button> <Button type="text" @click="modalVisible = false">取消</Button>
<Button type="primary" :loading="submitLoading" @click="handleSubmit" <Button type="primary" :loading="submitLoading" @click="handleSubmit"></Button>
>提交</Button
>
</div> </div>
</Modal> </Modal>
</div> </div>

View File

@ -6,7 +6,6 @@
</Card> </Card>
</Affix> </Affix>
<Card class="card"> <Card class="card">
<Tabs @on-click="handleClickType"> <Tabs @on-click="handleClickType">
<TabPane label="热门商品订单数量" name="NUM"> <TabPane label="热门商品订单数量" name="NUM">
<Table :columns="columns" :data="data"></Table> <Table :columns="columns" :data="data"></Table>
@ -26,9 +25,8 @@ import affixTime from "@/views/lili-components/affix-time";
export default { export default {
components: { components: {
affixTime, affixTime,
memberLayout, memberLayout
}, },
data() { data() {
return { return {
@ -63,11 +61,12 @@ export default {
}; };
}, },
methods: { methods: {
// tab
handleClickType(name) { handleClickType(name) {
this.params.type = name; this.params.type = name;
this.getData(); this.getData();
}, },
//
clickBreadcrumb(item, index) { clickBreadcrumb(item, index) {
let callback = item; let callback = item;
let type = this.params.type; let type = this.params.type;
@ -75,6 +74,7 @@ export default {
this.params.type = type; this.params.type = type;
this.getData(); this.getData();
}, },
//
getData() { getData() {
Promise.all([API_Goods.goodsStatistics(this.params)]).then((res) => { Promise.all([API_Goods.goodsStatistics(this.params)]).then((res) => {
if (res[0].result) { if (res[0].result) {

View File

@ -16,7 +16,7 @@
<Card class="card"> <Card class="card">
<div> <div>
<h4>客户增长报表</h4> <h4>客户增长报表</h4>
<Table style="margin-top:10px;" stripe :columns="columns" :data="data"></Table> <Table class="mt_10" stripe :columns="columns" :data="data"></Table>
</div> </div>
</Card> </Card>
@ -30,7 +30,6 @@ import affixTime from "@/views/lili-components/affix-time";
export default { export default {
components: { affixTime }, components: { affixTime },
data() { data() {
return { return {
columns: [ // columns: [ //
@ -169,14 +168,14 @@ export default {
this.orderChart.render(); this.orderChart.render();
}, },
//
clickBreadcrumb(item, index) { clickBreadcrumb(item, index) {
let callback = item; let callback = item;
console.warn(callback); console.warn(callback);
this.params = {...callback}; this.params = {...callback};
}, },
//
init() { init() {
API_Member.getMemberStatistics(this.params).then((res) => { API_Member.getMemberStatistics(this.params).then((res) => {
if (res.result) { if (res.result) {

View File

@ -3,9 +3,7 @@
<div class="wrapper"> <div class="wrapper">
<Affix :offset-top="100"> <Affix :offset-top="100">
<Card class="card fixed-bottom"> <Card class="card fixed-bottom">
<affixTime @selected="clickBreadcrumb" /> <affixTime @selected="clickBreadcrumb" />
</Card> </Card>
</Affix> </Affix>
@ -68,7 +66,7 @@
</div> </div>
<div class="card-item"> <div class="card-item">
<div class="card-item-label">退单金额</div> <div class="card-item-label">退单金额</div>
<div class="card-item-value">{{overViewList.refundOrderPrice || 0}}</div> <div class="card-item-value">{{overViewList.refundOrderPrice || 0 | unitPrice('¥')}}</div>
</div> </div>
</div> </div>
@ -155,7 +153,7 @@
<Table stripe :columns="columns" :data="data"></Table> <Table stripe :columns="columns" :data="data"></Table>
</div> </div>
<Page @on-change="(index)=>{refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size}" class="mt_10" show-total show-elevator :total="total" /> <Page size="small" @on-change="(index)=>{refundParams.pageNumber = index}" @on-page-size-change="(size)=>{refundParams.pageSize= size,refundParams.pageNumber = 1}" class="mt_10" show-total show-sizer show-elevator :total="total" />
</div> </div>

View File

@ -44,7 +44,7 @@
<span>创建时间</span> <span>创建时间</span>
<span>{{res.createTime}}</span> <span>{{res.createTime}}</span>
</div> </div>
</div> </div>
<h3>商品详情</h3> <h3>商品详情</h3>
<div class="shop-item"> <div class="shop-item">
@ -91,8 +91,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.wrapper {
}
.shop { .shop {
padding: 10px 0; padding: 10px 0;
background: #fff; background: #fff;
@ -139,13 +138,14 @@ h3 {
} }
.label-item { .label-item {
margin: 10px 0; margin: 10px 0;
width: 20%; width: 33%;
padding: 8px; padding: 8px;
align-items: center; align-items: center;
font-weight: bold; font-weight: bold;
display: flex; display: flex;
> span { > span:nth-child(1) {
padding: 8px; width: 70px;
color: #999;
} }
} }
</style> </style>

View File

@ -1,6 +1,5 @@
<template> <template>
<div class="wrapper"> <div class="wrapper">
<div class="shop"> <div class="shop">
<h3>售后详情</h3> <h3>售后详情</h3>
<div class="shop-item"> <div class="shop-item">
@ -15,11 +14,11 @@
<div class="label-item"> <div class="label-item">
<span>退款时间</span> <span>退款时间</span>
<span>{{res.refundTime || '暂无'}}</span> <span>{{res.refundTime ? (new Date(res.refundTime).getTime()/1000 | unixToDate) : '暂无'}}</span>
</div> </div>
<div class="label-item"> <div class="label-item">
<span>申请退款金额</span> <span>申请退款金额</span>
<span>{{res.applyRefundPrice || '0'}}</span> <span>{{res.applyRefundPrice || 0 | unitPrice('¥')}}</span>
</div> </div>
<div class="label-item"> <div class="label-item">
<span>商家备注</span> <span>商家备注</span>
@ -44,7 +43,6 @@
<span>创建时间</span> <span>创建时间</span>
<span>{{res.createTime}}</span> <span>{{res.createTime}}</span>
</div> </div>
</div> </div>
<h3>商品详情</h3> <h3>商品详情</h3>
<div class="shop-item"> <div class="shop-item">
@ -111,15 +109,12 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.wrapper {
}
.shop { .shop {
padding: 10px 0; padding: 5px 0;
background: #fff; background: #fff;
} }
.shop-item { .shop-item {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
h3 { h3 {
@ -158,13 +153,18 @@ h3 {
} }
.label-item { .label-item {
margin: 10px 0; margin: 10px 0;
width: 20%; width: 33%;
padding: 8px; padding: 8px;
align-items: center; align-items: center;
font-weight: bold; font-weight: bold;
display: flex; display: flex;
> span { > span:nth-child(1) {
padding: 8px; width: 90px;
color: #999;
}
> span:nth-child(2){
text-align: left;
white-space: wrap;
} }
} }
</style> </style>

View File

@ -61,11 +61,8 @@ export default {
data() { data() {
return { return {
//
uvs: 0, // 访 uvs: 0, // 访
pvs: 0, // pvs: 0, //
dateList: [ dateList: [
// //
{ {
@ -89,14 +86,12 @@ export default {
value: "LAST_THIRTY", value: "LAST_THIRTY",
}, },
], ],
orderChart: "", // orderChart: "", //
params: { params: {
// //
searchType: "LAST_SEVEN", searchType: "LAST_SEVEN",
year: "", year: "",
month: "", month: "",
// storeId: "",
}, },
columns: [ columns: [
{ {
@ -113,7 +108,7 @@ export default {
}, },
], ],
data: [], // data: [], //
}; };
}, },
watch: { watch: {
@ -129,11 +124,6 @@ export default {
methods: { methods: {
// //
initChart() { initChart() {
// legend-filter
/**
* 将数据分成三组来进行展示
*/
let uv = []; let uv = [];
let pv = []; let pv = [];
@ -186,13 +176,13 @@ export default {
this.orderChart.render(); this.orderChart.render();
}, },
//
clickBreadcrumb(item, index) { clickBreadcrumb(item, index) {
let callback = JSON.parse(JSON.stringify(item)); let callback = JSON.parse(JSON.stringify(item));
this.params = callback; this.params = callback;
}, },
//
init() { init() {
API_Member.getStatisticsList(this.params).then((res) => { API_Member.getStatisticsList(this.params).then((res) => {
if (res.result) { if (res.result) {
@ -224,16 +214,11 @@ export default {
.table { .table {
margin-top: 10px; margin-top: 10px;
} }
.wrapper {
padding-bottom: 200px;
}
.box-item { .box-item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 25%; width: 25%;
font-weight: bold; font-weight: bold;
// align-items: center;
justify-content: center; justify-content: center;
> div { > div {
margin: 4px; margin: 4px;

View File

@ -1,32 +1,22 @@
<template> <template>
<div class="search"> <div class="search">
<Row> <Card>
<Col> <Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form" @keydown.enter.native="handleSearch">
<Card> <Form-item label="系统类型" prop="orderSn">
<Row @keydown.enter.native="handleSearch"> <Select v-model="searchForm.type" placeholder="请选择系统类型" clearable style="width: 200px">
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form"> <Option value="IOS">苹果</Option>
<Form-item label="系统类型" prop="orderSn"> <Option value="ANDROID">安卓</Option>
<Select v-model="searchForm.type" placeholder="请选择系统类型" clearable style="width: 200px"> </Select>
<Option value="IOS">苹果</Option> </Form-item>
<Option value="ANDROID">安卓</Option> <Button @click="handleSearch" type="primary" icon="ios-search">搜索</Button>
</Select> </Form>
</Form-item> <Button class="mt_10 mb_10" @click="addAppVersion" type="primary">添加</Button>
<Button @click="handleSearch" type="primary" icon="ios-search">搜索</Button> <Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
</Form> <Row type="flex" justify="end" class="mt_10">
</Row> <Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
<Row class="operation" style="margin-top: 20px"> size="small" show-total show-elevator show-sizer></Page>
<Button @click="addAppVersion" type="primary">添加</Button> </Row>
</Row> </Card>
<Row class="padding-row">
<Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table>
</Row>
<Row type="flex" justify="end" class="mt_10">
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]"
size="small" show-total show-elevator show-sizer></Page>
</Row>
</Card>
</Col>
</Row>
<Modal :title="modalTitle" v-model="modalVisible" :mask-closable="false" :width="1000"> <Modal :title="modalTitle" v-model="modalVisible" :mask-closable="false" :width="1000">
<Form ref="form" :model="form" :label-width="100" :rules="formValidate"> <Form ref="form" :model="form" :label-width="100" :rules="formValidate">
<FormItem label="版本名称" prop="versionName"> <FormItem label="版本名称" prop="versionName">
@ -111,10 +101,7 @@
import * as API_Setting from "@/api/setting"; import * as API_Setting from "@/api/setting";
export default { export default {
name: "orderList", name: "appVersion",
components: {
},
data() { data() {
return { return {
queryModalVisible: false, // modal queryModalVisible: false, // modal
@ -156,8 +143,6 @@ export default {
versionUpdateDate: [{ required: true, message: "更新时间不能为空" }], versionUpdateDate: [{ required: true, message: "更新时间不能为空" }],
}, },
submitLoading: false, // submitLoading: false, //
selectList: [], //
selectCount: 0, //
columns: [ columns: [
{ {
title: "版本名称", title: "版本名称",
@ -277,34 +262,27 @@ export default {
}; };
}, },
methods: { methods: {
//
init() { init() {
this.getData(); this.getData();
}, },
//
changePage(v) { changePage(v) {
this.searchForm.pageNumber = v; this.searchForm.pageNumber = v;
this.getData(); this.getData();
}, },
//
changePageSize(v) { changePageSize(v) {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = v; this.searchForm.pageSize = v;
this.getData(); this.getData();
}, },
//
handleSearch() { handleSearch() {
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getData(); this.getData();
}, },
changeSort(e) { //
this.searchForm.sort = e.key;
this.searchForm.order = e.order;
if (e.order === "normal") {
this.searchForm.order = "";
}
this.getData();
},
changeSelect(e) {
this.selectList = e;
this.selectCount = e.length;
},
getData() { getData() {
this.loading = true; this.loading = true;
API_Setting.appVersionPage(this.searchForm).then((res) => { API_Setting.appVersionPage(this.searchForm).then((res) => {
@ -331,7 +309,7 @@ export default {
content: " ", content: " ",
}; };
}, },
//app //app
editAppVersion(v) { editAppVersion(v) {
this.modalVisible = true; this.modalVisible = true;
this.modalTitle = "修改APP版本信息"; this.modalTitle = "修改APP版本信息";
@ -373,6 +351,7 @@ export default {
} }
}); });
}, },
// app
remove(v) { remove(v) {
this.$Modal.confirm({ this.$Modal.confirm({
title: "确认删除", title: "确认删除",
@ -390,6 +369,7 @@ export default {
}, },
}); });
}, },
//
detail(v) { detail(v) {
this.queryModalVisible = true; this.queryModalVisible = true;
this.form = JSON.parse(JSON.stringify(v)); this.form = JSON.parse(JSON.stringify(v));

View File

@ -17,17 +17,10 @@
<Alert show-icon> <Alert show-icon>
当前选择编辑 当前选择编辑
<span class="select-title">{{ editTitle }}</span> <span class="select-title">{{ editTitle }}</span>
<a class="select-clear" v-if="form.id" @click="cancelEdit" <a class="select-clear" v-if="form.id" @click="cancelSelect"
>取消选择</a >取消选择</a
> >
</Alert> </Alert>
<!-- <Input
v-model="searchKey"
suffix="ios-search"
@on-change="search"
placeholder="输入部门名搜索"
clearable
/> -->
<div class="tree-bar" :style="{ maxHeight: maxHeight }"> <div class="tree-bar" :style="{ maxHeight: maxHeight }">
<Tree <Tree
ref="tree" ref="tree"
@ -48,7 +41,7 @@
:label-width="100" :label-width="100"
:rules="formValidate" :rules="formValidate"
> >
<FormItem label="上级部门" prop="parentTitle"> <!-- <FormItem label="上级部门" prop="parentTitle">
<div style="display: flex"> <div style="display: flex">
<Input <Input
v-model="form.parentTitle" v-model="form.parentTitle"
@ -76,7 +69,7 @@
</div> </div>
</Poptip> </Poptip>
</div> </div>
</FormItem> </FormItem> -->
<FormItem label="部门名称" prop="title"> <FormItem label="部门名称" prop="title">
<Input v-model="form.title" /> <Input v-model="form.title" />
</FormItem> </FormItem>
@ -195,7 +188,7 @@ export default {
maxHeight: "500px", // maxHeight: "500px", //
strict: true, // strict: true, //
userLoading: false, // userLoading: false, //
loadingEdit: true, // loadingEdit: false, //
modalVisible: false, // modal modalVisible: false, // modal
selectList: [], // selectList: [], //
selectCount: 0, // selectCount: 0, //
@ -235,6 +228,7 @@ export default {
init() { init() {
this.getParentList(); this.getParentList();
}, },
//
getParentList() { getParentList() {
this.loading = true; this.loading = true;
initDepartment().then((res) => { initDepartment().then((res) => {
@ -244,33 +238,16 @@ export default {
} }
}); });
}, },
//
loadData(item, callback) { loadData(item, callback) {
loadDepartment(item.id).then((res) => { loadDepartment(item.id).then((res) => {
this.loadingEdit = false;
if (res.success) { if (res.success) {
/* res.result.forEach(function(e) { console.log(res.result);
if (e.isParent) {
e.loading = false;
e.children = [];
}
}); */
callback(res.result); callback(res.result);
} }
}); });
}, },
search() {
if (this.searchKey) {
this.loading = true;
searchDepartment({ title: this.searchKey }).then((res) => {
this.loading = false;
if (res.success) {
this.data = res.result;
}
});
} else {
this.getParentList();
}
},
// //
selectTree(v) { selectTree(v) {
@ -311,10 +288,11 @@ export default {
} }
}); });
} else { } else {
this.cancelEdit(); this.cancelSelect();
} }
}, },
cancelEdit() { //
cancelSelect() {
let data = this.$refs.tree.getSelectedNodes()[0]; let data = this.$refs.tree.getSelectedNodes()[0];
if (data) { if (data) {
data.selected = false; data.selected = false;
@ -323,6 +301,7 @@ export default {
delete this.form.id; delete this.form.id;
this.editTitle = ""; this.editTitle = "";
}, },
//
selectTreeEdit(v) { selectTreeEdit(v) {
if (v.length > 0) { if (v.length > 0) {
@ -338,13 +317,16 @@ export default {
this.form.parentTitle = data.title; this.form.parentTitle = data.title;
} }
}, },
//
cancelAdd() { cancelAdd() {
this.modalVisible = false; this.modalVisible = false;
}, },
//
handleReset() { handleReset() {
this.$refs.form.resetFields(); this.$refs.form.resetFields();
this.form.status = 0; this.form.status = 0;
}, },
//
submitEdit() { submitEdit() {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
@ -352,8 +334,6 @@ export default {
this.$Message.warning("请先点击选择要修改的部门"); this.$Message.warning("请先点击选择要修改的部门");
return; return;
} }
console.log(this.selectedRole);
let roleWay = []; let roleWay = [];
this.selectedRole.forEach((item) => { this.selectedRole.forEach((item) => {
let role = { let role = {
@ -365,11 +345,7 @@ export default {
Promise.all([ Promise.all([
editDepartment(this.form.id, this.form), editDepartment(this.form.id, this.form),
updateDepartmentRole( updateDepartmentRole(this.form.id, roleWay)
this.form.id,
roleWay
),
]).then((res) => { ]).then((res) => {
this.submitLoading = false; this.submitLoading = false;
if (res[0].success) { if (res[0].success) {
@ -377,14 +353,11 @@ export default {
this.init(); this.init();
this.modalVisible = false; this.modalVisible = false;
} }
console.log(res[1]);
}); });
} }
}); });
}, },
//
submitAdd() { submitAdd() {
this.$refs.formAdd.validate((valid) => { this.$refs.formAdd.validate((valid) => {
if (valid) { if (valid) {
@ -400,6 +373,7 @@ export default {
} }
}); });
}, },
//
add() { add() {
if (this.form.id == "" || this.form.id == null) { if (this.form.id == "" || this.form.id == null) {
this.$Message.warning("请先点击选择一个部门"); this.$Message.warning("请先点击选择一个部门");
@ -415,6 +389,7 @@ export default {
}; };
this.modalVisible = true; this.modalVisible = true;
}, },
//
addRoot() { addRoot() {
this.modalTitle = "添加一级部门"; this.modalTitle = "添加一级部门";
this.showParent = false; this.showParent = false;
@ -425,11 +400,13 @@ export default {
}; };
this.modalVisible = true; this.modalVisible = true;
}, },
//
changeSelect(v) { changeSelect(v) {
console.log(v); console.log(v);
this.selectCount = v.length; this.selectCount = v.length;
this.selectList = v; this.selectList = v;
}, },
//
delAll() { delAll() {
if (this.selectCount <= 0) { if (this.selectCount <= 0) {
this.$Message.warning("您还未勾选要删除的数据"); this.$Message.warning("您还未勾选要删除的数据");
@ -452,7 +429,7 @@ export default {
this.$Message.success("删除成功"); this.$Message.success("删除成功");
this.selectList = []; this.selectList = [];
this.selectCount = 0; this.selectCount = 0;
this.cancelEdit(); this.cancelSelect();
this.init(); this.init();
} }
}); });

View File

@ -1,229 +0,0 @@
<template>
<Card class="card">
<div v-for="(item,index) in instantDelivery" :key="index">
<div class="cardBox">
<div class="methodItem">
<span v-if="item.image = ''"></span>
<img v-else :src=item.images height="172" width="440"/>
<h4>{{item.deliveryName}}</h4></div>
<div class="bar">
<div v-if="item.deliveryOpen==1" class="status" style="color: rgb(53, 189, 129);"></div>
<div v-else class="status" style="color: rgb(53, 189, 129);">
<a class="links" style="color: rgb(53, 189, 129);" @click="openDelivery(item)"></a>&nbsp;<span
style="color: red;">(未启用)</span>
</div>
<div class="div-edit">
<Upload
multiple
:action=action
:show-upload-list="false"
:format="['jpg', 'jpeg', 'png', 'gif']"
:on-success="uploadSuccess"
>
<a class="links" @click="deliveryBean = item.deliveryBean">更换封面</a>
</Upload>
</div>
<div>
<a class="links" @click="edit"></a>
</div>
</div>
</div>
<Modal
:title="modalTitle"
v-model="modalVisible"
:width="500"
>
<Form ref="form" :model="form" :label-width="90">
<Form-item :label="config.name" v-for="(config,q) in item.configItems" :key="config">
<div>
<Input
type="text"
v-model="config.value"
clearable
placeholder="请输入您的请求参数,均不能为空"
style="width: 300px"
v-if="config.type == 'text'"
/>
</div>
</Form-item>
</Form>
<div slot="footer">
<Button type="text" @click="modalVisible = false">取消</Button>
<Button type="primary" :loading="submitLoading" @click="saveDeliverySubmit(item)"></Button>
</div>
</Modal>
</div>
</Card>
</template>
<script>
import * as API_Setting from "@/api/setting";
import editor from "@/views/my-components/lili/editor";
import {commonUrl} from '@/libs/axios'
export default {
name: "instantDelivery",
components: {
editor
},
data() {
return {
deliveryBean: "", //
action: commonUrl + '/common/upload/file', //
loading: true, //
modalVisible: false, //
modalTitle: "", //
instantDelivery: [{ //
configItems: []
}
], //
searchForm: {
//
pageNumber: 1, //
pageSize: 10, //
},
selectDate: null,
form: {},
//
formValidate: {},
submitLoading: false, //
};
},
methods: {
init() {
this.getData();
},
//
edit() {
this.modalVisible = true
this.modalTitle = "编辑同城配送"
},
saveDeliverySubmit(item) {
const headers = {
"Content-Type": "application/json;charset=utf-8"
}
this.loading = true
API_Setting.editInstantDelivery(item.deliveryBean, item.configItems, headers).then((res) => {
this.loading = false;
if (res.success) {
this.instantDelivery = (res.result.records);
this.modalVisible = false
this.$Message.success("保存成功");
this.getData()
}
});
},
//
openDelivery(item) {
this.$Modal.confirm({
title: "确定开启?",
content: "确认开启当前同城配送方案",
onOk: () => {
API_Setting.openInstantDelivery(item.deliveryBean).then((res) => {
if (res.success) {
this.$Message.success("开启成功");
this.getData();
}
});
},
});
},
//
uploadSuccess(res) {
const params = {
images: res.result
}
this.loading = true
API_Setting.editInstantDeliveryImage(this.deliveryBean, params).then((res) => {
this.loading = false;
if (res.success) {
this.$Message.success("更换成功");
this.getData()
}
});
},
getData() {
this.loading = true;
API_Setting.getInstantDelivery(this.searchForm).then((res) => {
this.loading = false;
if (res.success) {
this.instantDelivery = res.result.records;
}
});
this.loading = false;
},
},
mounted() {
this.init();
},
};
</script>
<style lang="scss" scoped>
.cardBox {
display: inline-block;
border-radius: 2px;
line-height: 1.5;
margin-right: 20px;
width: 300px;
border: 1px solid #eee;
padding: 10px;
}
.methodItem {
width: 100%;
border: 1px solid #f5f5f5;
text-align: center;
padding: 20px 0;
}
methodItem img {
width: 220px;
height: 86px;
}
methodItem h4 {
font-size: 14px;
color: #333;
margin-top: 5px;
}
.methodItem img {
width: 220px;
height: 86px;
}
.div-edit {
margin-left: 50px
}
.bar {
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 10px 8px 0;
}
.ivu-upload {
height: 21px;
margin-left: 15px;
}
</style>

View File

@ -2,7 +2,7 @@
<template> <template>
<div class="search"> <div class="search">
<Card> <Card>
<Row v-show="openSearch" @keydown.enter.native="handleSearch"> <Row @keydown.enter.native="handleSearch">
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form"> <Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
<Form-item label="搜索日志" prop="searchKey"> <Form-item label="搜索日志" prop="searchKey">
<Input <Input
@ -101,17 +101,14 @@
name: "log-manage", name: "log-manage",
data() { data() {
return { return {
openSearch: true, //
openTip: false, // openTip: false, //
loading: true, // loading: true, //
selectList: [], //
selectCount: 0, //
selectDate: null, // selectDate: null, //
searchKey: "", //
operatorName: "", //
showDev: false,// showDev: false,//
searchForm: { // searchForm: { //
type: 1, type: 1,
key: '',
operatorName: '',
pageNumber: 1, pageNumber: 1,
pageSize: 10, pageSize: 10,
startDate: "", startDate: "",
@ -277,38 +274,36 @@
}; };
}, },
methods: { methods: {
//
init() { init() {
this.getLogList(); this.getLogList();
}, },
changeTab(v) { //
this.searchForm.type = v;
this.getLogList();
},
changePage(v) { changePage(v) {
this.searchForm.pageNumber = v; this.searchForm.pageNumber = v;
this.getLogList(); this.getLogList();
this.clearSelectAll();
}, },
//
changePageSize(v) { changePageSize(v) {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = v; this.searchForm.pageSize = v;
this.getLogList(); this.getLogList();
}, },
//
selectDateRange(v) { selectDateRange(v) {
if (v) { if (v) {
this.searchForm.startDate = v[0]; this.searchForm.startDate = v[0];
this.searchForm.endDate = v[1]; this.searchForm.endDate = v[1];
} }
}, },
//
handleSearch() { handleSearch() {
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10;
this.getLogList(); this.getLogList();
}, },
//
getLogList() { getLogList() {
this.loading = true; this.loading = true;
this.searchForm.key = this.searchKey;
this.searchForm.operatorName = this.operatorName;
getLogListData(this.searchForm).then(res => { getLogListData(this.searchForm).then(res => {
this.loading = false; this.loading = false;
if (res.success) { if (res.success) {

View File

@ -1,11 +1,15 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/styles/tree-common.scss"; @import "@/styles/tree-common.scss";
.desc{
font-size: 12px;
color: #999;
}
</style> </style>
<template> <template>
<div class="search"> <div class="search">
<Card> <Card>
<!-- 筛选项和操作按钮 -->
<Row class="operation"> <Row class="operation">
<i-switch v-model="strict" class="selectModel" size="large" style="margin-right: 5px"> <i-switch v-model="strict" class="selectModel" size="large" style="margin-right: 5px">
<span slot="open">级联</span> <span slot="open">级联</span>
<span slot="close">单选</span> <span slot="close">单选</span>
@ -27,6 +31,7 @@
</DropdownMenu> </DropdownMenu>
</Dropdown> </Dropdown>
</Row> </Row>
<!-- 页面主体左侧树结构右侧表单项 -->
<Row type="flex" justify="start"> <Row type="flex" justify="start">
<Col :md="8" :lg="8" :xl="6"> <Col :md="8" :lg="8" :xl="6">
<Alert show-icon> <Alert show-icon>
@ -81,39 +86,42 @@
<span>页面菜单</span> <span>页面菜单</span>
</div> </div>
</FormItem> </FormItem>
<FormItem <FormItem label="菜单名称" prop="title">
label="名称" <Input v-model="form.title" />
prop="title"
>
<Input v-model="form.title"/>
</FormItem> </FormItem>
<FormItem label="路由地址" prop="path" v-if="form.level != 0" class="block-tool">
<FormItem label="路径" prop="path" v-if="form.level != 0"> <Tooltip placement="right" content="路由地址,英文唯一,跳转页面,路径展示用 ">
<Input v-model="form.path"/> <Input v-model="form.path"/>
</Tooltip>
</FormItem> </FormItem>
<FormItem <FormItem
label="英文名" label="路由名称"
prop="name" prop="name"
v-if="form.level == 0" v-if="form.level == 0"
class="block-tool" class="block-tool"
> >
<Tooltip placement="right" content="需唯一"> <Tooltip placement="right" content="路由name英文唯一,跳转页面用">
<Input v-model="form.name"/> <Input v-model="form.name"/>
</Tooltip> </Tooltip>
</FormItem> </FormItem>
<FormItem <FormItem
label="路由英文名" label="路由"
prop="name" prop="name"
v-if="form.level != 0" v-if="form.level != 0"
class="block-tool" class="block-tool"
> >
<Tooltip placement="right" content="需唯一" transfer> <Tooltip placement="right" content="路由name英文唯一,跳转页面用" transfer>
<Input v-model="form.name"/> <Input v-model="form.name"/>
</Tooltip> </Tooltip>
</FormItem> </FormItem>
<FormItem label="前端组件" prop="frontRoute" v-if="form.level != 0"> <FormItem label="文件路径" prop="frontRoute" v-if="form.level != 0">
<Input v-model="form.frontRoute"/> <Input v-model="form.frontRoute"/>
</FormItem> </FormItem>
<FormItem label="权限url" v-if="form.level != 0" class="block-tool">
<Tooltip placement="right" content="*号模糊匹配,逗号分割" transfer>
<Input v-model="form.permission"/>
</Tooltip>
</FormItem>
<FormItem label="排序值" prop="sortOrder"> <FormItem label="排序值" prop="sortOrder">
<Tooltip <Tooltip
trigger="hover" trigger="hover"
@ -178,41 +186,45 @@
></Icon> ></Icon>
<span>页面菜单</span> <span>页面菜单</span>
</div> </div>
</FormItem> </FormItem>
<FormItem <FormItem
label="名称" label="菜单名称"
prop="title" prop="title"
> >
<Input v-model="formAdd.title"/> <Input v-model="formAdd.title"/>
</FormItem> </FormItem>
<FormItem label="路" prop="path" v-if="formAdd.level != 0"> <FormItem label="路由地址" prop="path" v-if="formAdd.level != 0">
<Input v-model="formAdd.path"/> <Input v-model="formAdd.path"/>
</FormItem> </FormItem>
<FormItem <FormItem
label="英文名" label="路由名称"
prop="name" prop="name"
v-if="formAdd.level == 0" v-if="formAdd.level == 0"
class="block-tool" class="block-tool"
> >
<Tooltip placement="right" content="需唯一"> <Tooltip placement="right" content="路由name英文唯一,跳转页面用">
<Input v-model="formAdd.name"/> <Input v-model="formAdd.name"/>
</Tooltip> </Tooltip>
</FormItem> </FormItem>
<FormItem <FormItem
label="路由英文名" label="路由"
prop="name" prop="name"
v-if="formAdd.level != 0" v-if="formAdd.level != 0"
class="block-tool" class="block-tool"
> >
<Tooltip placement="right" content="需唯一"> <Tooltip placement="right" content="路由name英文唯一,跳转页面用">
<Input v-model="formAdd.name"/> <Input v-model="formAdd.name"/>
</Tooltip> </Tooltip>
</FormItem> </FormItem>
<FormItem label="前端组件" prop="frontRoute" v-if="formAdd.level != 0"> <FormItem label="文件路径" prop="frontRoute" v-if="formAdd.level != 0">
<Input v-model="formAdd.frontRoute"/> <Input v-model="formAdd.frontRoute"/>
</FormItem> </FormItem>
<FormItem label="权限url" v-if="formAdd.level != 0">
<Input v-model="formAdd.permission"/>
<div class="desc">*号模糊匹配逗号分割</div>
</FormItem>
<FormItem label="排序值" prop="sortOrder"> <FormItem label="排序值" prop="sortOrder">
<Tooltip <Tooltip
trigger="hover" trigger="hover"
@ -230,9 +242,7 @@
<div slot="footer"> <div slot="footer">
<Button type="text" @click="menuModalVisible = false">取消</Button> <Button type="text" @click="menuModalVisible = false">取消</Button>
<Button type="primary" :loading="submitLoading" @click="submitAdd" <Button type="primary" :loading="submitLoading" @click="submitAdd"
>提交 >提交</Button>
</Button
>
</div> </div>
</Modal> </Modal>
</div> </div>
@ -244,7 +254,6 @@ import {
addPermission, addPermission,
editPermission, editPermission,
deletePermission, deletePermission,
searchPermission,
} from "@/api/index"; } from "@/api/index";
import util from "@/libs/util.js"; import util from "@/libs/util.js";
@ -273,18 +282,18 @@ export default {
parentId: "", parentId: "",
sortOrder: 0, sortOrder: 0,
level: 0, level: 0,
showAlways: true, permission: ''
}, },
formAdd: { // formAdd: { //
}, },
formValidate: { // formValidate: { //
title: [{required: true, message: "名称不能为空", trigger: "blur"}], title: [{required: true, message: "菜单名称名称不能为空", trigger: "blur"}],
name: [ name: [
{required: true, message: "路由英文名不能为空", trigger: "blur"}, {required: true, message: "路由不能为空", trigger: "blur"},
], ],
path: [{required: true, message: "路不能为空", trigger: "blur"}], path: [{required: true, message: "路由地址不能为空", trigger: "blur"}],
frontRoute: [ frontRoute: [
{required: true, message: "前端组件不能为空", trigger: "blur"}, {required: true, message: "文件地址不能为空", trigger: "blur"},
], ],
sortOrder: [ sortOrder: [
{ {
@ -300,6 +309,7 @@ export default {
}; };
}, },
methods: { methods: {
//
init() { init() {
this.getAllList(); this.getAllList();
}, },
@ -329,8 +339,8 @@ export default {
]), ]),
]); ]);
}, },
//
handleDropdown(name) { handleDropdown(name) {
console.log(name)
if (name == "expandOne") { if (name == "expandOne") {
this.expandLevel = 1; this.expandLevel = 1;
this.getAllList(); this.getAllList();
@ -348,6 +358,7 @@ export default {
this.getAllList(); this.getAllList();
} }
}, },
//
getAllList() { getAllList() {
this.loading = true; this.loading = true;
getAllPermissionList().then((res) => { getAllPermissionList().then((res) => {
@ -434,19 +445,7 @@ export default {
} }
}); });
}, },
search() { //
if (this.searchKey) {
this.loading = true;
searchPermission({title: this.searchKey}).then((res) => {
this.loading = false;
if (res.success) {
this.data = res.result;
}
});
} else {
this.getAllList();
}
},
selectTree(v) { selectTree(v) {
if (v.length > 0) { if (v.length > 0) {
// null"" // null""
@ -459,6 +458,7 @@ export default {
this.cancelEdit(); this.cancelEdit();
} }
}, },
//
cancelEdit() { cancelEdit() {
let data = this.$refs.tree.getSelectedNodes()[0]; let data = this.$refs.tree.getSelectedNodes()[0];
if (data) { if (data) {
@ -468,11 +468,12 @@ export default {
this.form.id = ""; this.form.id = "";
this.editTitle = ""; this.editTitle = "";
}, },
//
handleReset() { handleReset() {
this.$refs.form.resetFields(); this.$refs.form.resetFields();
this.form.icon = "";
this.form.frontRoute = ""; this.form.frontRoute = "";
}, },
//
submitEdit() { submitEdit() {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
@ -482,13 +483,16 @@ export default {
} }
this.submitLoading = true; this.submitLoading = true;
if (this.form.sortOrder == null) { if (this.form.sortOrder == null) {
this.form.sortOrder = ""; this.form.sortOrder = 0;
} }
if (this.form.buttonType == null) { //
this.form.buttonType = ""; delete this.form.icon;
} delete this.form.frontComponent;
delete this.form.buttonType;
delete this.form.updateTime; delete this.form.updateTime;
delete this.form.selected;
delete this.form.description;
editPermission(this.form).then((res) => { editPermission(this.form).then((res) => {
this.submitLoading = false; this.submitLoading = false;
if (res.success) { if (res.success) {
@ -503,6 +507,7 @@ export default {
} }
}); });
}, },
//
submitAdd() { submitAdd() {
this.$refs.formAdd.validate((valid) => { this.$refs.formAdd.validate((valid) => {
if (valid) { if (valid) {
@ -522,18 +527,7 @@ export default {
} }
}); });
}, },
changeEditUrl(e) { //
let v = e.target.value;
if (v.indexOf("http") > -1) {
this.form.frontRoute = "sys/monitor/monitor";
}
},
changeAddUrl(e) {
let v = e.target.value;
if (v.indexOf("http") > -1) {
this.formAdd.frontRoute = "sys/monitor/monitor";
}
},
addMenu() { addMenu() {
if (!this.form.id) { if (!this.form.id) {
this.$Message.warning("请先点击选择一个菜单权限节点"); this.$Message.warning("请先点击选择一个菜单权限节点");
@ -549,14 +543,11 @@ export default {
}); });
return; return;
} }
let frontRoute = "";
this.formAdd = { this.formAdd = {
icon: "",
parentId: this.form.id, parentId: this.form.id,
level: Number(this.form.level) + 1, level: Number(this.form.level) + 1,
sortOrder: 0, sortOrder: 0,
status: 0, permission:'' // url
showAlways: true,
}; };
if (this.form.level == 0) { if (this.form.level == 0) {
this.formAdd.path = "/"; this.formAdd.path = "/";
@ -564,20 +555,22 @@ export default {
} }
this.menuModalVisible = true; this.menuModalVisible = true;
}, },
//
addRootMenu() { addRootMenu() {
this.modalTitle = "添加顶级菜单"; this.modalTitle = "添加顶级菜单";
this.showParent = false; this.showParent = false;
this.formAdd = { this.formAdd = {
level: 0, level: 0,
sortOrder: 0, sortOrder: 0
status: 0,
}; };
this.menuModalVisible = true; this.menuModalVisible = true;
}, },
//
changeSelect(v) { changeSelect(v) {
this.selectCount = v.length; this.selectCount = v.length;
this.selectList = v; this.selectList = v;
}, },
//
delAll() { delAll() {
if (this.selectCount <= 0) { if (this.selectCount <= 0) {
this.$Message.warning("您还未勾选要删除的数据"); this.$Message.warning("您还未勾选要删除的数据");

View File

@ -6,7 +6,7 @@
<Tabs value="MESSAGE" @on-click="paneChange"> <Tabs value="MESSAGE" @on-click="paneChange">
<TabPane label="站内信列表" name="MESSAGE"> <TabPane label="站内信列表" name="MESSAGE">
<Row v-show="openSearch" @keydown.enter.native="handleSearch"> <Row @keydown.enter.native="handleSearch">
<Form ref="searchForm" :model="searchMessageForm" inline :label-width="70" class="search-form"> <Form ref="searchForm" :model="searchMessageForm" inline :label-width="70" class="search-form">
<Form-item label="消息标题" prop="title"> <Form-item label="消息标题" prop="title">
<Input <Input
@ -47,7 +47,7 @@
@on-selection-change="messageChangeSelect" @on-selection-change="messageChangeSelect"
></Table> ></Table>
</Row> </Row>
<Row type="flex" justify="end" class="mt_10"> <Row type="flex" justify="end" class="mt_10 mb_10">
<Page <Page
:current="searchMessageForm.pageNumber" :current="searchMessageForm.pageNumber"
:total="messageDataTotal" :total="messageDataTotal"
@ -71,9 +71,6 @@
:columns="noticeColumns" :columns="noticeColumns"
:data="noticeData" :data="noticeData"
ref="table" ref="table"
sortable="custom"
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
></Table> ></Table>
</Row> </Row>
<Row type="flex" justify="end" class="mt_10"> <Row type="flex" justify="end" class="mt_10">
@ -110,7 +107,7 @@
</div> </div>
<div class="send-setting"> <div class="send-setting">
<div class="left-show"> <div class="left-show">
<div v-for="(item, index) in form.variables"> <div v-for="(item, index) in form.variables" :key="index">
#{<span>{{item}}</span>} #{<span>{{item}}</span>}
</div> </div>
</div> </div>
@ -184,7 +181,7 @@
v-if="memberShow"> v-if="memberShow">
<Button type="primary" icon="ios-add" @click="addVip" ghost>选择会员</Button> <Button type="primary" icon="ios-add" @click="addVip" ghost>选择会员</Button>
<div style="margin-top:24px;" v-if="messageSendForm.messageClient == 'member'"> <div style="margin-top:24px;" v-if="messageSendForm.messageClient == 'member'">
<Table border :columns="userColumns" :data="this.selectedMember"> <Table border :columns="userColumns" :data="selectedMember">
</Table> </Table>
</div> </div>
</FormItem> </FormItem>
@ -303,16 +300,14 @@
import userList from "@/views/member/list/index"; import userList from "@/views/member/list/index";
export default { export default {
name: "bill", name: "noticeMessageTemplate",
components: { components: {
userList userList
}, },
data() { data() {
return { return {
openSearch: true, //
checkUserList: false, // checkUserList: false, //
selectedMember: [], // selectedMember: [], //
openTip: true, //
loading: true, // loading: true, //
modalVisible: false, // modalVisible: false, //
modalTitle: "", // modalTitle: "", //
@ -380,9 +375,6 @@
}, },
submitLoading: false, // submitLoading: false, //
selectList: [], //
messageSelectList: [], //
messageSelectCount: 0, //
selectCount: 0, // selectCount: 0, //
noticeColumns: [ noticeColumns: [
{ {
@ -688,15 +680,15 @@
} }
}, },
], ],
memberMessageData: [], // memberMessageData: [], //
memberMessageDataTotal: 0, // memberMessageDataTotal: 0, //
}; };
}, },
methods: { methods: {
//
init() { init() {
this.getMessage(); this.getMessage();
}, },
// //
callbackSelectUser(val) { callbackSelectUser(val) {
// //
@ -751,6 +743,7 @@
this.$refs.memberLayout.selectedMember = true; this.$refs.memberLayout.selectedMember = true;
}); });
}, },
// tab
paneChange(v) { paneChange(v) {
if (v == "SETTING") { if (v == "SETTING") {
this.getNoticeMessage() this.getNoticeMessage()
@ -759,24 +752,27 @@
this.getMessage() this.getMessage()
} }
}, },
//
changePage(v) { changePage(v) {
this.searchForm.pageNumber = v; this.searchForm.pageNumber = v;
this.getNoticeMessage(); this.getNoticeMessage();
this.clearSelectAll();
}, },
//
changePageSize(v) { changePageSize(v) {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = v; this.searchForm.pageSize = v;
this.getNoticeMessage(); this.getNoticeMessage();
}, },
//
handleSearch() { handleSearch() {
this.searchMessageForm.pageNumber = 1; this.searchMessageForm.pageNumber = 1;
this.searchMessageForm.pageSize = 10;
this.getMessage(); this.getMessage();
}, },
// //
messageChangePageSize(v) { messageChangePageSize(v) {
this.searchMessageForm.pageSize = v; this.searchMessageForm.pageSize = v;
this.searchMessageForm.pageNumber = 1;
this.getMessage(); this.getMessage();
}, },
// //
@ -789,6 +785,7 @@
// //
memberMessageChangePageSize(v) { memberMessageChangePageSize(v) {
this.searchMemberMessageForm.pageSize = v; this.searchMemberMessageForm.pageSize = v;
this.searchMemberMessageForm.pageNumber = 1;
this.messageDetail(); this.messageDetail();
}, },
// //
@ -821,38 +818,6 @@
this.searchShopMessageForm.order = e.order; this.searchShopMessageForm.order = e.order;
this.messageDetail() this.messageDetail()
}, },
//
messageChangeSort(e) {
this.searchMessageForm.sort = e.key;
this.searchMessageForm.order = e.order;
this.getMessage();
},
changeSort(e) {
this.searchForm.sort = e.key;
this.searchForm.order = e.order;
if (e.order === "normal") {
this.searchForm.order = "";
}
this.getNoticeMessage();
},
clearSelectAll() {
this.$refs.table.selectAll(false);
},
//
messageChangeSelect(e) {
this.messageSelectList = e;
this.messageSelectCount = e.length;
},
changeSelect(e) {
this.selectList = e;
this.selectCount = e.length;
},
selectDateRange(v) {
if (v) {
this.searchForm.startDate = v[0];
this.searchForm.endDate = v[1];
}
},
// //
getName(value) { getName(value) {
this.messageSendForm.userNames = new Array() this.messageSendForm.userNames = new Array()
@ -965,7 +930,7 @@
}); });
this.loading = false; this.loading = false;
}, },
//
getNoticeMessage() { getNoticeMessage() {
this.loading = true; this.loading = true;
API_Setting.getNoticeMessageData(this.searchForm).then((res) => { API_Setting.getNoticeMessageData(this.searchForm).then((res) => {
@ -1029,6 +994,7 @@
this.messageDetailModalVisible = true; this.messageDetailModalVisible = true;
this.modalTitle = "消息详情" this.modalTitle = "消息详情"
}, },
//
edit(v) { edit(v) {
API_Setting.getNoticeMessageDetail(v.id).then((res) => { API_Setting.getNoticeMessageDetail(v.id).then((res) => {
if (res.success) { if (res.success) {

View File

@ -6,7 +6,7 @@
<Row class="operation" style="margin-bottom: 10px"> <Row class="operation" style="margin-bottom: 10px">
<Button @click="sendBatchSmsModal" type="primary">发送短信</Button> <Button @click="sendBatchSmsModal" type="primary">发送短信</Button>
</Row> </Row>
<Table :loading="loading" border :columns="smsColumns" :data="smsData" ref="table" sortable="custom" @on-sort-change="templateChangeSort"> <Table :loading="loading" border :columns="smsColumns" :data="smsData" ref="table">
</Table> </Table>
<Row type="flex" justify="end" class="mt_10"> <Row type="flex" justify="end" class="mt_10">
@ -19,7 +19,7 @@
<Button @click="addTemplate" type="primary">添加短信模板</Button> <Button @click="addTemplate" type="primary">添加短信模板</Button>
<Button @click="syncTemplate" type="info">同步</Button> <Button @click="syncTemplate" type="info">同步</Button>
</Row> </Row>
<Table :loading="loading" border :columns="templateColumns" :data="templateData" ref="table" sortable="custom" @on-sort-change="smsChangeSort"> <Table :loading="loading" border :columns="templateColumns" :data="templateData" ref="table">
</Table> </Table>
<Row type="flex" justify="end" class="mt_10"> <Row type="flex" justify="end" class="mt_10">
<Page :current="templateSearchForm.pageNumber" :total="templateTotal" :page-size="templateSearchForm.pageSize" @on-change="templateChangePage" <Page :current="templateSearchForm.pageNumber" :total="templateTotal" :page-size="templateSearchForm.pageSize" @on-change="templateChangePage"
@ -31,7 +31,7 @@
<Button @click="addSign" type="primary">添加短信签名</Button> <Button @click="addSign" type="primary">添加短信签名</Button>
<Button @click="syncSign" type="info">同步</Button> <Button @click="syncSign" type="info">同步</Button>
</Row> </Row>
<Table :loading="loading" border :columns="signColumns" :data="signData" ref="table" sortable="custom" @on-sort-change="signChangeSort"> <Table :loading="loading" border :columns="signColumns" :data="signData" ref="table">
<template slot="signStatus" slot-scope="scope"> <template slot="signStatus" slot-scope="scope">
<div v-if="scope.row.signStatus ==2 "> <div v-if="scope.row.signStatus ==2 ">
审核拒绝 审核拒绝
@ -45,7 +45,6 @@
<div v-if="scope.row.signStatus ==1 "> <div v-if="scope.row.signStatus ==1 ">
审核通过 审核通过
</div> </div>
</template> </template>
</Table> </Table>
<Row type="flex" justify="end" class="mt_10"> <Row type="flex" justify="end" class="mt_10">
@ -168,7 +167,6 @@ export default {
members: [], // members: [], //
smsTemplateContent: "", // smsTemplateContent: "", //
memberNum: 0, // memberNum: 0, //
smsNum: 0, //
smsContent: "<div class='sms'>效果预览</div>", // smsContent: "<div class='sms'>效果预览</div>", //
smsTemplates: [], // smsTemplates: [], //
smsSigns: [], // smsSigns: [], //
@ -179,15 +177,6 @@ export default {
templateModalTitle: "", // templateModalTitle: "", //
templateForm: {}, //form templateForm: {}, //form
submitLoading: false, // submitLoading: false, //
selected: "", //
settingData: "", //
modalTitle: "设置", // modal
modalVisible: false, // modal
searchForm: {
//
pageNumber: 1, //
pageSize: 10, //
},
signSearchForm: { signSearchForm: {
// //
pageNumber: 1, // pageNumber: 1, //
@ -357,8 +346,7 @@ export default {
{ {
props: { props: {
type: "info", type: "info",
size: "small", size: "small"
icon: "ios-create-outline",
}, },
style: { style: {
marginRight: "5px", marginRight: "5px",
@ -477,8 +465,8 @@ export default {
signTotal: 0, // signTotal: 0, //
}; };
}, },
filters: {},
methods: { methods: {
//
init() { init() {
this.getSms(); this.getSms();
// //
@ -498,16 +486,11 @@ export default {
alreadyCheckClose(val,index) { alreadyCheckClose(val,index) {
this.alreadyCheck.splice(index, 1); this.alreadyCheck.splice(index, 1);
this.alreadyCheckShow.splice(index, 1); this.alreadyCheckShow.splice(index, 1);
this.members.forEach((item,index)=>{ this.members.forEach((item,index)=>{
if(item.____selected && item.mobile == val.mobile){ if(item.____selected && item.mobile == val.mobile){
item.____selected = false item.____selected = false
} }
}) })
this.smsForm.num--; this.smsForm.num--;
this.memberNum--; this.memberNum--;
}, },
@ -515,7 +498,6 @@ export default {
detail(){ detail(){
}, },
// //
smsRangeChange(v) { smsRangeChange(v) {
this.memberNum = 0; this.memberNum = 0;
@ -589,7 +571,6 @@ export default {
} }
}); });
}, },
// //
sendBatchSmsModal() { sendBatchSmsModal() {
this.templateSearchForm.templateStatus = 1; this.templateSearchForm.templateStatus = 1;
@ -604,7 +585,6 @@ export default {
this.smsSigns = res.result.records; this.smsSigns = res.result.records;
} }
}); });
this.smsContent = "<div class='sms'>效果预览</div>"; this.smsContent = "<div class='sms'>效果预览</div>";
// //
this.alreadyCheck = []; this.alreadyCheck = [];
@ -623,9 +603,6 @@ export default {
this.loading = false; this.loading = false;
this.sendSmsModal = true; this.sendSmsModal = true;
}, },
setting() {
this.modalVisible = true;
},
//pane //pane
paneChange(v) { paneChange(v) {
if (v == "TEMPLATE") { if (v == "TEMPLATE") {
@ -673,8 +650,6 @@ export default {
} }
this.smsForm.context = this.smsTemplateContent; this.smsForm.context = this.smsTemplateContent;
}, },
//
handleSearch() {},
// //
deleteSmsTemplate(v) { deleteSmsTemplate(v) {
let params = { let params = {
@ -721,7 +696,7 @@ export default {
this.templateModalTitle = "添加短信模板"; this.templateModalTitle = "添加短信模板";
this.templateForm = {}; this.templateForm = {};
}, },
// //
editTemplate(v) { editTemplate(v) {
this.templateModalVisible = true; this.templateModalVisible = true;
this.templateModalTitle = "修改短信模板"; this.templateModalTitle = "修改短信模板";
@ -813,6 +788,7 @@ export default {
}, },
// //
smsChangePageSize(v) { smsChangePageSize(v) {
this.smsSearchForm.pageNumber = 1;
this.smsSearchForm.pageSize = v; this.smsSearchForm.pageSize = v;
this.getSms(); this.getSms();
}, },
@ -823,19 +799,10 @@ export default {
}, },
// //
templateChangePageSize(v) { templateChangePageSize(v) {
this.templateSearchForm.pageNumber =1;
this.templateSearchForm.pageSize = v; this.templateSearchForm.pageSize = v;
this.getSmsTemplate(); this.getSmsTemplate();
}, },
templateChangeSort(e) {
this.templateSearchForm.sort = e.key;
this.templateSearchForm.order = e.order;
this.getSmsTemplate();
},
smsChangeSort(e) {
this.smsSearchForm.sort = e.key;
this.smsSearchForm.order = e.order;
this.getSms();
},
// //
getSmsTemplate() { getSmsTemplate() {
this.loading = true; this.loading = true;
@ -867,14 +834,10 @@ export default {
}, },
// //
signChangePageSize(v) { signChangePageSize(v) {
this.signSearchForm.pageNumber = 1;
this.signSearchForm.pageSize = v; this.signSearchForm.pageSize = v;
this.getSmsSign(); this.getSmsSign();
}, },
signChangeSort(e) {
this.signSearchForm.sort = e.key;
this.signSearchForm.order = e.order;
this.getSmsSign();
},
// //
editSign(v) { editSign(v) {
this.$router.push({ name: "add-sms-sign", query: { id: v.id } }); this.$router.push({ name: "add-sms-sign", query: { id: v.id } });
@ -894,8 +857,7 @@ export default {
}, },
mounted() { mounted() {
this.init(); this.init();
}, }
watch: {},
}; };
</script> </script>

View File

@ -1,11 +1,8 @@
<template> <template>
<Card> <Card>
<div style="margin-top: 0px"> <div style="margin-top: 0px">
<div class="sign-name" v-if="id == undefined"> <div class="sign-name">
新增签名 {{id ? '修改签名' : '新增签名'}}
</div>
<div class="sign-name" v-else>
修改签名
</div> </div>
<Form ref="form" :model="form" :label-width="100" :rules="formValidate"> <Form ref="form" :model="form" :label-width="100" :rules="formValidate">
<FormItem label="签名" prop="signName"> <FormItem label="签名" prop="signName">
@ -53,18 +50,14 @@
</div> </div>
<FormItem label="申请说明" prop="remark"> <FormItem label="申请说明" prop="remark">
<Input v-model="form.remark" clearable type="textarea" style="width: 50%" maxlength="100" <Input v-model="form.remark" clearable type="textarea" style="width: 50%" maxlength="100"
:autosize="{maxRows:4,minRows: 4}" show-word-limit :autosize="{maxRows:4,minRows: 4}" show-word-limit
placeholder="请描述您的业务使用场景不超过100字符验证码、双十一大促营销"/> placeholder="请描述您的业务使用场景不超过100字符验证码、双十一大促营销"/>
</FormItem> </FormItem>
</Form> </Form>
<div class="footer"> <div class="footer">
<Button type="primary" :loading="submitLoading" @click="addSignSubmit"> <Button type="primary" :loading="submitLoading" @click="addSignSubmit"></Button>
</Button
>
</div> </div>
</div> </div>
</Card> </Card>
</template> </template>
@ -77,7 +70,6 @@
components: { components: {
uploadPicThumb uploadPicThumb
}, },
data() { data() {
return { return {
id: 0, // id id: 0, // id
@ -96,14 +88,13 @@
} }
}, },
filters: {},
methods: { methods: {
//
init() { init() {
this.id = this.$route.query.id; this.id = this.$route.query.id;
if (this.id != undefined) { if (this.id != undefined) {
this.getSmsSignDetail(); this.getSmsSignDetail();
} }
}, },
// //
addSignSubmit() { addSignSubmit() {
@ -159,12 +150,9 @@
mounted() { mounted() {
this.init(); this.init();
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.sign-name { .sign-name {
margin-top: 5px; margin-top: 5px;
margin-left: 20px; margin-left: 20px;

View File

@ -1,96 +0,0 @@
<template>
<div>
<Card>
<Row>
<Form
ref="searchForm"
inline
:label-width="70"
@keydown.enter.native="handleGo"
>
<Form-item label="链接地址" prop="url">
<Input type="text" v-model="url" placeholder="http://" clearable style="width: 350px" />
</Form-item>
<Form-item style="margin-left:-50px;">
<Button @click="handleGo" type="primary" icon="ios-send" style="margin-right:5px">前往</Button>
<Button @click="handleOpen" icon="md-open">新窗口中打开</Button>
</Form-item>
</Form>
</Row>
<Divider style="margin-top:-10px;margin-bottom:0px;" />
<Row>
<div style="position:relative;">
<iframe
id="iframe"
:src="go"
frameborder="0"
width="100%"
:height="height"
scrolling="auto"
></iframe>
<Spin fix size="large" v-if="loading"></Spin>
</div>
</Row>
</Card>
</div>
</template>
<script>
export default {
name: "monitor",
data() {
return {
loading: false, //
go: "", // iframe
url: "", //
height: "525px" // iframe
};
},
computed: {},
methods: {
initUrl() {
let url = this.$route.meta.url;
if (url !== null && url !== undefined) {
this.url = url;
this.go = url;
// window.open(this.go);
this.loading = true;
let that = this;
// iframe
let iframe = document.getElementById("iframe");
if (iframe.attachEvent) {
iframe.attachEvent("onload", function() {
//iframe
that.loading = false;
});
} else {
iframe.onload = function() {
//iframe
that.loading = false;
};
}
}
},
handleGo() {
this.go = this.url;
},
handleOpen() {
window.open(this.url);
}
},
watch: {
$route(to, from) {
this.initUrl();
}
},
mounted() {
//
let height = document.documentElement.clientHeight;
this.height = Number(height - 217) + "px";
this.initUrl();
}
};
</script>

View File

@ -1,135 +1,135 @@
.search { .search {
.oss-operation { .oss-operation {
margin-bottom: 2vh; margin-bottom: 2vh;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
button { button {
margin-right: 5px; margin-right: 5px;
}
} }
}
} }
.none {
.none{
display: none; display: none;
} }
.oss-wrapper { .oss-wrapper {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
position: relative; position: relative;
} }
.oss-card { .oss-card {
margin: 10px 20px 10px 0; margin: 10px 20px 10px 0;
width: 290px; width: 290px;
:hover {
.content .other .name {
color: #1890ff;
transition: color .3s;
}
}
cursor: pointer;
.ivu-card-body {
padding: 0;
}
.content {
display: flex;
flex-direction: column;
:hover { :hover {
.content .other .name { .play {
color: #1890ff; transition: opacity .3s;
transition: color .3s; opacity: 1 !important;
} }
} }
cursor: pointer; .img {
height: 135px;
.ivu-card-body { object-fit: cover;
padding: 0;
} }
.content { .video {
height: 135px;
position: relative;
.cover {
height: 100%;
width: 100%;
object-fit: fill;
}
.play {
position: absolute;
top: 43px;
left: 117px;
height: 50px;
width: 50px;
opacity: 0.8;
}
}
.other {
padding: 16px;
height: 135px;
.name {
font-size: 16px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: rgba(0, 0, 0, .85);
font-weight: 500;
margin-bottom: 4px;
}
.key {
overflow: hidden;
text-overflow: ellipsis;
height: 45px;
word-break: break-all;
color: rgba(0, 0, 0, .45);
}
.info {
font-size: 12px;
color: rgba(0, 0, 0, .45);
overflow: hidden;
text-overflow: ellipsis;
height: 36px;
word-break: break-all;
}
}
.actions {
display: flex;
align-items: center;
height: 50px;
background: #f7f9fa;
border-top: 1px solid #e8e8e8;
i:hover {
color: #1890ff;
}
.btn {
display: flex; display: flex;
flex-direction: column; justify-content: center;
width: 33.33%;
border-right: 1px solid #e8e8e8;
}
:hover { .btn-no {
.play { display: flex;
transition: opacity .3s; justify-content: center;
opacity: 1 !important; width: 33.33%;
} }
}
.img {
height: 135px;
object-fit: cover;
}
.video {
height: 135px;
position: relative;
.cover {
height: 100%;
width: 100%;
object-fit: fill;
}
.play {
position: absolute;
top: 43px;
left: 117px;
height: 50px;
width: 50px;
opacity: 0.8;
}
}
.other {
padding: 16px;
height: 135px;
.name {
font-size: 16px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: rgba(0, 0, 0, .85);
font-weight: 500;
margin-bottom: 4px;
}
.key {
overflow: hidden;
text-overflow: ellipsis;
height: 45px;
word-break: break-all;
color: rgba(0, 0, 0, .45);
}
.info {
font-size: 12px;
color: rgba(0, 0, 0, .45);
overflow: hidden;
text-overflow: ellipsis;
height: 36px;
word-break: break-all;
}
}
.actions {
display: flex;
align-items: center;
height: 50px;
background: #f7f9fa;
border-top: 1px solid #e8e8e8;
i:hover {
color: #1890ff;
}
.btn {
display: flex;
justify-content: center;
width: 33.33%;
border-right: 1px solid #e8e8e8;
}
.btn-no {
display: flex;
justify-content: center;
width: 33.33%;
}
}
} }
}
} }

View File

@ -26,6 +26,9 @@
style="width: 200px" style="width: 200px"
/> />
</Form-item> </Form-item>
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn"
>搜索
</Button>
<Form-item label="上传时间"> <Form-item label="上传时间">
<DatePicker <DatePicker
v-model="selectDate" v-model="selectDate"
@ -37,10 +40,7 @@
style="width: 200px" style="width: 200px"
></DatePicker> ></DatePicker>
</Form-item> </Form-item>
<Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn"
>搜索
</Button
>
</Form> </Form>
</Row> </Row>
<div class="oss-operation padding-row"> <div class="oss-operation padding-row">
@ -558,7 +558,7 @@ export default {
selectedParams(val) { selectedParams(val) {
this.$emit("callback", val); this.$emit("callback", val);
}, },
//
handleDropdown(name) { handleDropdown(name) {
if (name == "refresh") { if (name == "refresh") {
this.getDataList(); this.getDataList();
@ -566,12 +566,14 @@ export default {
this.removeAll(); this.removeAll();
} }
}, },
//
init() { init() {
this.accessToken = { this.accessToken = {
accessToken: this.getStore("accessToken"), accessToken: this.getStore("accessToken"),
}; };
this.getDataList(); this.getDataList();
}, },
//
showPic(v) { showPic(v) {
this.file = v; this.file = v;
this.file.msize = ((v.fileSize * 1.0) / (1024 * 1024)).toFixed(2) + " MB"; this.file.msize = ((v.fileSize * 1.0) / (1024 * 1024)).toFixed(2) + " MB";
@ -579,6 +581,7 @@ export default {
this.picTitle = v.name + "(" + v.fileKey + ")"; this.picTitle = v.name + "(" + v.fileKey + ")";
this.picVisible = true; this.picVisible = true;
}, },
//
showVideo(v) { showVideo(v) {
dp = new DPlayer({ dp = new DPlayer({
container: document.getElementById("dplayer"), container: document.getElementById("dplayer"),
@ -596,18 +599,23 @@ export default {
this.videoTitle = v.name + "(" + v.fileKey + ")"; this.videoTitle = v.name + "(" + v.fileKey + ")";
this.videoVisible = true; this.videoVisible = true;
}, },
//
closeVideo() { closeVideo() {
dp.destroy(); dp.destroy();
}, },
//
changePage(v) { changePage(v) {
this.searchForm.pageNumber = v; this.searchForm.pageNumber = v;
this.getDataList(); this.getDataList();
this.clearSelectAll(); this.clearSelectAll();
}, },
//
changePageSize(v) { changePageSize(v) {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = v; this.searchForm.pageSize = v;
this.getDataList(); this.getDataList();
}, },
//
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
@ -616,12 +624,14 @@ export default {
} }
this.getDataList(); this.getDataList();
}, },
//
selectDateRange(v) { selectDateRange(v) {
if (v) { if (v) {
this.searchForm.startDate = v[0]; this.searchForm.startDate = v[0];
this.searchForm.endDate = v[1]; this.searchForm.endDate = v[1];
} }
}, },
//
changeShowType() { changeShowType() {
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
if (this.showType == "list") { if (this.showType == "list") {
@ -631,7 +641,7 @@ export default {
} }
this.getDataList(); this.getDataList();
}, },
//
getDataList() { getDataList() {
if (this.showType == "list") { if (this.showType == "list") {
this.pageSizeOpts = [10, 20, 50]; this.pageSizeOpts = [10, 20, 50];
@ -646,6 +656,7 @@ export default {
this.total = res.result.total; this.total = res.result.total;
}); });
}, },
//
handleSearch() { handleSearch() {
this.searchForm.title = this.searchForm.name; this.searchForm.title = this.searchForm.name;
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
@ -656,6 +667,7 @@ export default {
} }
this.getDataList(); this.getDataList();
}, },
//
changeFileType() { changeFileType() {
let name = this.fileType; let name = this.fileType;
if (name == "all") { if (name == "all") {
@ -667,27 +679,14 @@ export default {
} }
this.handleSearch(); this.handleSearch();
}, },
handleReset() { //
this.$refs.searchForm.resetFields();
this.searchForm.pageNumber = 1;
if (this.showType == "list") {
this.searchForm.pageSize = 5;
} else {
this.searchForm.pageSize = 12;
}
this.selectDate = null;
this.searchForm.startDate = "";
this.searchForm.endDate = "";
this.searchForm.fileKey = "";
//
this.getDataList();
},
handleMaxSize(file) { handleMaxSize(file) {
this.$Notice.warning({ this.$Notice.warning({
title: "文件大小过大", title: "文件大小过大",
desc: "所选文件‘ " + file.name + " ’大小过大, 不得超过 5M.", desc: "所选文件‘ " + file.name + " ’大小过大, 不得超过 5M.",
}); });
}, },
//
handleSuccess(res, file) { handleSuccess(res, file) {
if (res.success) { if (res.success) {
this.$Message.success("上传文件 " + file.name + " 成功"); this.$Message.success("上传文件 " + file.name + " 成功");
@ -696,20 +695,25 @@ export default {
this.$Message.error(res.message); this.$Message.error(res.message);
} }
}, },
//
handleError(error, file, fileList) { handleError(error, file, fileList) {
this.$Message.error(error.toString()); this.$Message.error(error.toString());
}, },
//
clearFiles() { clearFiles() {
this.$refs.up.clearFiles(); this.$refs.up.clearFiles();
}, },
//
handleCancel() { handleCancel() {
this.modalVisible = false; this.modalVisible = false;
}, },
//
download(v) { download(v) {
window.open( window.open(
v.url + "?attname=&response-content-type=application/octet-stream" v.url + "?attname=&response-content-type=application/octet-stream"
); );
}, },
//
removeAll() { removeAll() {
if (this.selectCount <= 0) { if (this.selectCount <= 0) {
this.$Message.warning("您还未选择要删除的数据"); this.$Message.warning("您还未选择要删除的数据");
@ -736,6 +740,7 @@ export default {
}, },
}); });
}, },
//
remove(v) { remove(v) {
this.$Modal.confirm({ this.$Modal.confirm({
title: "确认删除", title: "确认删除",
@ -752,6 +757,7 @@ export default {
}, },
}); });
}, },
//
handleSubmit() { handleSubmit() {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
@ -773,6 +779,7 @@ export default {
} }
}); });
}, },
// modal
rename(v) { rename(v) {
this.modalTitle = "编辑文件名"; this.modalTitle = "编辑文件名";
// null"" // null""
@ -787,10 +794,12 @@ export default {
this.oldKey = data.fileKey; this.oldKey = data.fileKey;
this.modalVisible = true; this.modalVisible = true;
}, },
//
clearSelectAll() { clearSelectAll() {
this.$refs.table.selectAll(false); this.$refs.table.selectAll(false);
this.totalSize = ""; this.totalSize = "";
}, },
//
changeSelect(e) { changeSelect(e) {
this.selectList = e; this.selectList = e;
this.selectCount = e.length; this.selectCount = e.length;
@ -803,7 +812,6 @@ export default {
}, },
mounted() { mounted() {
this.init(); this.init();
this.baseUrl = this.baseUrl =
process.env.NODE_ENV === "development" process.env.NODE_ENV === "development"
? this.config.api_dev.common ? this.config.api_dev.common

View File

@ -1,23 +0,0 @@
.permModal {
.ivu-modal-body {
max-height: 560px;
overflow: auto;
}
}
.depModal {
.ivu-modal-body {
max-height: 500px;
overflow: auto;
}
}
.tips{
font-size: 12px;
color: #999;
margin-left: 8px;
}
.title{
font-weight: bold;
margin-right: 20px;
}

View File

@ -1,6 +1,3 @@
<style lang="scss">
@import "./roleManage.scss";
</style>
<template> <template>
<div class="search"> <div class="search">
<Card> <Card>
@ -26,7 +23,7 @@
</FormItem> </FormItem>
</Form> </Form>
<div slot="footer"> <div slot="footer">
<Button type="text" @click="cancelRole"></Button> <Button type="text" @click="roleModalVisible = false"></Button>
<Button type="primary" :loading="submitLoading" @click="submitRole"> <Button type="primary" :loading="submitLoading" @click="submitRole">
</Button> </Button>
</div> </div>
@ -39,7 +36,7 @@
<Spin size="large" fix v-if="treeLoading"></Spin> <Spin size="large" fix v-if="treeLoading"></Spin>
</div> </div>
<div slot="footer"> <div slot="footer">
<Button type="text" @click="cancelPermEdit"></Button> <Button type="text" @click="permModalVisible = false"></Button>
<Select v-model="openLevel" @on-change="changeOpen" style="width: 110px; text-align: left; margin-right: 10px"> <Select v-model="openLevel" @on-change="changeOpen" style="width: 110px; text-align: left; margin-right: 10px">
<Option value="0">展开所有</Option> <Option value="0">展开所有</Option>
<Option value="1">收合所有</Option> <Option value="1">收合所有</Option>
@ -110,7 +107,6 @@ import {
editRole, editRole,
deleteRole, deleteRole,
loadDepartment, loadDepartment,
editRoleDep,
selectRoleMenu, selectRoleMenu,
saveRoleMenu, saveRoleMenu,
} from "@/api/index"; } from "@/api/index";
@ -129,7 +125,6 @@ export default {
depTreeLoading: true, // depTreeLoading: true, //
submitPermLoading: false, // submitPermLoading: false, //
submitDepLoading: false, // submitDepLoading: false, //
searchKey: "", //
sortColumn: "", // sortColumn: "", //
sortType: "desc", // sortType: "desc", //
modalType: 0, // 0 1 modalType: 0, // 0 1
@ -265,19 +260,15 @@ export default {
}; };
}, },
methods: { methods: {
//
init() { init() {
this.getRoleList(); this.getRoleList();
// //
this.getPermList(); this.getPermList();
}, },
// icon
handleContextMenu(val) {
console.log(val);
},
renderContent(h, { root, node, data }) { renderContent(h, { root, node, data }) {
let icon = ""; let icon = "";
if (data.level == 0) { if (data.level == 0) {
icon = "ios-navigate"; icon = "ios-navigate";
} else if (data.level == 1) { } else if (data.level == 1) {
@ -324,15 +315,19 @@ export default {
] ]
); );
}, },
//
changePage(v) { changePage(v) {
this.pageNumber = v; this.pageNumber = v;
this.getRoleList(); this.getRoleList();
this.clearSelectAll(); this.clearSelectAll();
}, },
//
changePageSize(v) { changePageSize(v) {
this.pageNumber = 1;
this.pageSize = v; this.pageSize = v;
this.getRoleList(); this.getRoleList();
}, },
//
changeSort(e) { changeSort(e) {
this.sortColumn = e.key; this.sortColumn = e.key;
this.sortType = e.order; this.sortType = e.order;
@ -389,9 +384,7 @@ export default {
} }
}); });
}, },
cancelRole() { //
this.roleModalVisible = false;
},
submitRole() { submitRole() {
this.$refs.roleForm.validate((valid) => { this.$refs.roleForm.validate((valid) => {
if (valid) { if (valid) {
@ -434,6 +427,7 @@ export default {
delete this.roleForm.id; delete this.roleForm.id;
this.roleModalVisible = true; this.roleModalVisible = true;
}, },
//
edit(v) { edit(v) {
this.modalType = 1; this.modalType = 1;
this.modalTitle = "编辑角色"; this.modalTitle = "编辑角色";
@ -449,6 +443,7 @@ export default {
this.roleForm = roleInfo; this.roleForm = roleInfo;
this.roleModalVisible = true; this.roleModalVisible = true;
}, },
//
remove(v) { remove(v) {
this.$Modal.confirm({ this.$Modal.confirm({
title: "确认删除", title: "确认删除",
@ -465,13 +460,16 @@ export default {
}, },
}); });
}, },
//
clearSelectAll() { clearSelectAll() {
this.$refs.table.selectAll(false); this.$refs.table.selectAll(false);
}, },
//
changeSelect(e) { changeSelect(e) {
this.selectList = e; this.selectList = e;
this.selectCount = e.length; this.selectCount = e.length;
}, },
//
delAll() { delAll() {
if (this.selectCount <= 0) { if (this.selectCount <= 0) {
this.$Message.warning("您还未选择要删除的数据"); this.$Message.warning("您还未选择要删除的数据");
@ -509,15 +507,12 @@ export default {
this.modalTitle = "分配 " + v.name + " 的菜单权限"; this.modalTitle = "分配 " + v.name + " 的菜单权限";
// //
let rolePerms; let rolePerms;
// //
let res = await selectRoleMenu(v.id); let res = await selectRoleMenu(v.id);
if (res.result) { if (res.result) {
rolePerms = res.result; rolePerms = res.result;
this.rolePermsWay = res.result; this.rolePermsWay = res.result;
} }
// //
this.checkPermTree(this.permData, rolePerms); this.checkPermTree(this.permData, rolePerms);
console.warn(this.permData); console.warn(this.permData);
@ -555,7 +550,6 @@ export default {
} }
return false; return false;
}, },
// //
selectedTreeAll(permData, select) { selectedTreeAll(permData, select) {
let that = this; let that = this;
@ -566,15 +560,11 @@ export default {
} }
}); });
}, },
/**分配菜单权限 */ /**分配菜单权限 */
submitPermEdit() { submitPermEdit() {
this.saveRoleWay = []; this.saveRoleWay = [];
this.selectIsSuperModel = true; // this.selectIsSuperModel = true; //
let selectedNodes = this.$refs.tree.getCheckedNodes(); let selectedNodes = this.$refs.tree.getCheckedNodes();
let way = []; let way = [];
selectedNodes.forEach((e) => { selectedNodes.forEach((e) => {
@ -605,10 +595,7 @@ export default {
} }
}); });
}, },
//
cancelPermEdit() {
this.permModalVisible = false;
},
loadData(item, callback) { loadData(item, callback) {
loadDepartment(item.id, { openDataFilter: false }).then((res) => { loadDepartment(item.id, { openDataFilter: false }).then((res) => {
if (res.success) { if (res.success) {
@ -627,9 +614,8 @@ export default {
} }
}); });
}, },
//
expandCheckDep(v) { expandCheckDep(v) {
//
this.checkDepTree(v.children, this.editDepartments); this.checkDepTree(v.children, this.editDepartments);
}, },
// //
@ -643,7 +629,7 @@ export default {
} }
}); });
}, },
//
changeOpen(v) { changeOpen(v) {
if (v == "0") { if (v == "0") {
this.permData.forEach((e) => { this.permData.forEach((e) => {
@ -737,5 +723,28 @@ export default {
.btn-item{ .btn-item{
margin-right: 20px; margin-right: 20px;
} }
.permModal {
.ivu-modal-body {
max-height: 560px;
overflow: auto;
}
}
.depModal {
.ivu-modal-body {
max-height: 500px;
overflow: auto;
}
}
.tips{
font-size: 12px;
color: #999;
margin-left: 8px;
}
.title{
font-weight: bold;
margin-right: 20px;
}
</style> </style>

View File

@ -2,7 +2,7 @@
<div class="layout"> <div class="layout">
<div class="row" v-if="client ==item.client" v-for="(item,index) in formValidate" :key="index"> <div class="row" v-if="client == item.client" v-for="(item,index) in formValidate" :key="index">
<div class="col"> <div class="col">
<Card :padding="0"> <Card :padding="0">
<!-- app --> <!-- app -->
@ -51,7 +51,6 @@
<script> <script>
import { setSetting } from "@/api/index"; import { setSetting } from "@/api/index";
import { handleSubmit } from "../setting/validate"; import { handleSubmit } from "../setting/validate";
import { getPaymentSupportForm } from "@/api/setting";
export default { export default {
data() { data() {
return { return {
@ -76,7 +75,7 @@ export default {
this.setupSetting(); this.setupSetting();
} }
}, },
//
setupSetting() { setupSetting() {
this.$Spin.show(); this.$Spin.show();
setTimeout(() => { setTimeout(() => {

View File

@ -74,7 +74,7 @@ export default {
this.setupSetting(); this.setupSetting();
} }
}, },
//
setupSetting() { setupSetting() {
this.$Spin.show(); this.$Spin.show();
setTimeout(() => { setTimeout(() => {

View File

@ -51,7 +51,7 @@ export default {
this.setupSetting(); this.setupSetting();
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {

View File

@ -86,7 +86,7 @@ export default {
this.setupSetting(); this.setupSetting();
} }
}, },
//
handleChangePayType(val) { handleChangePayType(val) {
this.$Modal.confirm({ this.$Modal.confirm({
title: "修改支付设置", title: "修改支付设置",
@ -100,7 +100,7 @@ export default {
}, },
}); });
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, { paymentSupportItems: this.formValidate }).then( setSetting(this.type, { paymentSupportItems: this.formValidate }).then(
(res) => { (res) => {

View File

@ -57,7 +57,7 @@ export default {
this.setupSetting(); this.setupSetting();
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {

View File

@ -553,6 +553,7 @@
this.initWeibo(); this.initWeibo();
this.initAlipay(); this.initAlipay();
}, },
//
initBase() { initBase() {
this.loading = true; this.loading = true;
getParams('base').then(res => { getParams('base').then(res => {
@ -564,6 +565,7 @@
} }
}); });
}, },
//
initPoint() { initPoint() {
this.loading = true; this.loading = true;
getParams('point').then(res => { getParams('point').then(res => {
@ -575,6 +577,7 @@
} }
}); });
}, },
//
initOrder() { initOrder() {
this.loading = true; this.loading = true;
getParams('order').then(res => { getParams('order').then(res => {
@ -586,6 +589,7 @@
} }
}); });
}, },
//
initGoods() { initGoods() {
this.loading = true; this.loading = true;
getParams('goods').then(res => { getParams('goods').then(res => {
@ -597,6 +601,7 @@
} }
}); });
}, },
//
initWeibo() { initWeibo() {
this.loading = true; this.loading = true;
getParams('weibo').then(res => { getParams('weibo').then(res => {
@ -608,6 +613,7 @@
} }
}); });
}, },
//
initWechat() { initWechat() {
this.loading = true; this.loading = true;
getParams('wechat').then(res => { getParams('wechat').then(res => {
@ -630,6 +636,7 @@
} }
}); });
}, },
//
initAlipay() { initAlipay() {
this.loading = true; this.loading = true;
getParams('alipay').then(res => { getParams('alipay').then(res => {
@ -641,6 +648,7 @@
} }
}); });
}, },
//
saveBase() { saveBase() {
this.$refs.baseForm.validate(valid => { this.$refs.baseForm.validate(valid => {
if (valid) { if (valid) {
@ -655,6 +663,7 @@
} }
}); });
}, },
//
savePoint() { savePoint() {
this.$refs.pointForm.validate(valid => { this.$refs.pointForm.validate(valid => {
if (valid) { if (valid) {
@ -669,6 +678,7 @@
} }
}); });
}, },
//
saveOrder() { saveOrder() {
this.$refs.orderForm.validate(valid => { this.$refs.orderForm.validate(valid => {
if (valid) { if (valid) {
@ -683,6 +693,7 @@
} }
}); });
}, },
//
saveGoods() { saveGoods() {
this.$refs.goodsForm.validate(valid => { this.$refs.goodsForm.validate(valid => {
if (valid) { if (valid) {
@ -697,6 +708,7 @@
} }
}); });
}, },
//
saveWechat() { saveWechat() {
this.$refs.wechatForm.validate(valid => { this.$refs.wechatForm.validate(valid => {
if (valid) { if (valid) {
@ -711,6 +723,7 @@
} }
}); });
}, },
// qq
saveQQ() { saveQQ() {
this.$refs.qqForm.validate(valid => { this.$refs.qqForm.validate(valid => {
if (valid) { if (valid) {
@ -725,6 +738,7 @@
} }
}); });
}, },
//
saveWeibo() { saveWeibo() {
this.$refs.wechatForm.validate(valid => { this.$refs.wechatForm.validate(valid => {
if (valid) { if (valid) {
@ -739,6 +753,7 @@
} }
}); });
}, },
//
saveAlipay() { saveAlipay() {
this.$refs.alipayForm.validate(valid => { this.$refs.alipayForm.validate(valid => {
if (valid) { if (valid) {

View File

@ -79,7 +79,6 @@ export default {
}; };
}, },
created() { created() {
console.log(this.type);
this.init(); this.init();
}, },
methods: { methods: {
@ -95,12 +94,12 @@ export default {
this.setupSetting(); this.setupSetting();
} }
}, },
//
callbackSelected(val) { callbackSelected(val) {
this.picModelFlag = false; this.picModelFlag = false;
this.formValidate[this.selected] = val.url; this.formValidate[this.selected] = val.url;
console.log(val);
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {
@ -110,8 +109,6 @@ export default {
} }
}); });
}, },
/**添加必填项 */ /**添加必填项 */
init() { init() {
this.res = JSON.parse(this.res); this.res = JSON.parse(this.res);

View File

@ -80,12 +80,6 @@ export default {
ruleValidate: {} // ruleValidate: {} //
}; };
}, },
watch: {
res: {
handler() {},
immediate: true,
},
},
created() { created() {
this.init(); this.init();
}, },
@ -107,6 +101,7 @@ export default {
} }
}); });
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {

View File

@ -28,23 +28,18 @@ export default {
}; };
}, },
props: ["res",'type'], props: ["res",'type'],
watch: {
res: {
handler() {},
immediate: true,
},
},
created() { created() {
this.init(); this.init();
}, },
methods: { methods: {
//
submit(name) { submit(name) {
let that = this; let that = this;
if( handleSubmit(that, name )){ if( handleSubmit(that, name )){
this.setupSetting() this.setupSetting()
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {
@ -56,8 +51,7 @@ export default {
}, },
// //
init() { init() {
this.res = JSON.parse(this.res); this.res = JSON.parse(this.res);
this.$set(this, "formValidate", { ...this.res }); this.$set(this, "formValidate", { ...this.res });
Object.keys(this.formValidate).forEach((item) => { Object.keys(this.formValidate).forEach((item) => {
this.ruleValidate[item] = [ this.ruleValidate[item] = [
@ -68,7 +62,6 @@ export default {
}, },
]; ];
}); });
}, },
}, },
}; };

View File

@ -62,13 +62,14 @@ export default {
this.init(); this.init();
}, },
methods: { methods: {
//
submit(name) { submit(name) {
let that = this; let that = this;
if (handleSubmit(that, name)) { if (handleSubmit(that, name)) {
this.setupSetting(); this.setupSetting();
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {
@ -81,7 +82,7 @@ export default {
// //
init() { init() {
this.res = JSON.parse(this.res); this.res = JSON.parse(this.res);
Object.keys(this.res).map((item) => { Object.keys(this.res).map((item) => {
this.res[item] += ""; this.res[item] += "";
}); });
this.$set(this, "formValidate", { ...this.res }); this.$set(this, "formValidate", { ...this.res });

View File

@ -44,13 +44,14 @@ export default {
this.init(); this.init();
}, },
methods: { methods: {
//
submit(name) { submit(name) {
let that = this; let that = this;
if( handleSubmit(that, name )){ if( handleSubmit(that, name )){
this.setupSetting() this.setupSetting()
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {

View File

@ -71,13 +71,14 @@ export default {
this.init(); this.init();
}, },
methods: { methods: {
//
submit(name) { submit(name) {
let that = this; let that = this;
if (handleSubmit(that, name)) { if (handleSubmit(that, name)) {
this.setupSetting(); this.setupSetting();
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {

View File

@ -41,13 +41,14 @@ export default {
this.init(); this.init();
}, },
methods: { methods: {
//
submit(name) { submit(name) {
let that = this; let that = this;
if( handleSubmit(that, name )){ if( handleSubmit(that, name )){
this.setupSetting() this.setupSetting()
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {

View File

@ -33,13 +33,14 @@ export default {
}, },
props: ["res", "type"], props: ["res", "type"],
methods: { methods: {
//
submit(name) { submit(name) {
let that = this; let that = this;
if( handleSubmit(that, name )){ if( handleSubmit(that, name )){
this.setupSetting() this.setupSetting()
} }
}, },
//
setupSetting() { setupSetting() {
setSetting(this.type, this.formValidate).then((res) => { setSetting(this.type, this.formValidate).then((res) => {
if (res.success) { if (res.success) {

View File

@ -88,13 +88,13 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.show = true; this.show = true;
}); });
// this.$router.go(0)
}, },
}, },
mounted() { mounted() {
this.clickTab(this.selected); this.clickTab(this.selected);
}, },
methods: { methods: {
// tab
clickTab(name) { clickTab(name) {
this.selected = name; this.selected = name;
this.getSettingData(name); this.getSettingData(name);

View File

@ -64,12 +64,11 @@
} }
}, },
methods: { methods: {
//
init() { init() {
settingInfo("SMS_SETTING") settingInfo("SMS_SETTING")
}, },
setting() { //
this.modalVisible = true
},
saveSetting() { saveSetting() {
setSetting("SMS_SETTING", this.form).then((res) => { setSetting("SMS_SETTING", this.form).then((res) => {
if (res.success) { if (res.success) {
@ -80,6 +79,7 @@
this.modalVisible = false this.modalVisible = false
}); });
}, },
//
settingInfo(v) { settingInfo(v) {
alert() alert()
this.selected = v this.selected = v

View File

@ -118,7 +118,7 @@ import * as API_Setting from "@/api/setting";
import uploadPicInput from "@/views/my-components/lili/upload-pic-input"; import uploadPicInput from "@/views/my-components/lili/upload-pic-input";
export default { export default {
components: { components: {
uploadPicInput, uploadPicInput
}, },
data() { data() {
return { return {
@ -238,12 +238,15 @@ export default {
}, },
methods: { methods: {
//
changePage(v) { changePage(v) {
this.searchForm.pageNumber = v; this.searchForm.pageNumber = v;
this.getDataList(); this.getDataList();
this.clearSelectAll(); this.clearSelectAll();
}, },
//
changePageSize(v) { changePageSize(v) {
this.searchForm.pageNumber = 1;
this.searchForm.pageSize = v; this.searchForm.pageSize = v;
this.getDataList(); this.getDataList();
}, },

View File

@ -104,7 +104,7 @@
</FormItem> </FormItem>
</Form> </Form>
<div slot="footer"> <div slot="footer">
<Button type="text" @click="cancelUser"></Button> <Button type="text" @click="userModalVisible = false"></Button>
<Button type="primary" :loading="submitLoading" @click="submitUser"></Button> <Button type="primary" :loading="submitLoading" @click="submitUser"></Button>
</div> </div>
</Modal> </Modal>
@ -136,7 +136,6 @@ export default {
}, },
data() { data() {
return { return {
height: 510, //
loading: true, // loading: true, //
selectCount: 0, // selectCount: 0, //
selectList: [], // selectList: [], //
@ -353,13 +352,14 @@ export default {
], ],
data: [], // data: [], //
total: 0, // total: 0, //
departments: [] //
}; };
}, },
methods: { methods: {
//
init() { init() {
this.getUserList(); this.getUserList();
}, },
//
handleSelectDepTree(v) { handleSelectDepTree(v) {
if (v) { if (v) {
this.form.departmentId = v.departmentId; this.form.departmentId = v.departmentId;
@ -369,24 +369,22 @@ export default {
this.form.departmentTitle = ""; this.form.departmentTitle = "";
} }
}, },
//
handleSelectDep(v) { handleSelectDep(v) {
this.searchForm.departmentId = v; this.searchForm.departmentId = v;
}, },
//
changePage(v) { changePage(v) {
this.searchForm.pageNumber = v; this.searchForm.pageNumber = v;
this.getUserList(); this.getUserList();
this.clearSelectAll(); this.clearSelectAll();
}, },
//
changePageSize(v) { changePageSize(v) {
this.searchForm.pageSize = v; this.searchForm.pageSize = v;
this.searchForm.pageNumber = 1;
this.getUserList(); this.getUserList();
}, },
selectDateRange(v) {
if (v) {
this.searchForm.startDate = v[0];
this.searchForm.endDate = v[1];
}
},
getUserList() { getUserList() {
// //
this.loading = true; this.loading = true;
@ -405,11 +403,13 @@ export default {
} }
}); });
}, },
//
handleSearch() { handleSearch() {
this.searchForm.pageNumber = 1; this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getUserList(); this.getUserList();
}, },
//
changeSort(e) { changeSort(e) {
this.searchForm.sort = e.key; this.searchForm.sort = e.key;
this.searchForm.order = e.order; this.searchForm.order = e.order;
@ -418,6 +418,7 @@ export default {
} }
this.getUserList(); this.getUserList();
}, },
//
getRoleList() { getRoleList() {
let params = { let params = {
pageSize: 100 pageSize: 100
@ -428,6 +429,7 @@ export default {
} }
}); });
}, },
//
resetPass() { resetPass() {
this.$Modal.confirm({ this.$Modal.confirm({
title: "确认重置", title: "确认重置",
@ -453,9 +455,7 @@ export default {
} }
}); });
}, },
cancelUser() { //
this.userModalVisible = false;
},
submitUser() { submitUser() {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
@ -498,6 +498,7 @@ export default {
} }
}); });
}, },
//
add() { add() {
this.modalType = 0; this.modalType = 0;
this.modalTitle = "添加用户"; this.modalTitle = "添加用户";
@ -505,20 +506,18 @@ export default {
this.$refs.depTree.setData("", ""); this.$refs.depTree.setData("", "");
this.userModalVisible = true; this.userModalVisible = true;
}, },
//
edit(v) { edit(v) {
this.form = JSON.parse(JSON.stringify(v)); this.form = JSON.parse(JSON.stringify(v));
this.modalType = 1; this.modalType = 1;
this.modalTitle = "编辑用户"; this.modalTitle = "编辑用户";
this.$refs.form.resetFields(); this.$refs.form.resetFields();
// null"" // null""
for (let attr in this.form) { for (let attr in this.form) {
if (this.form[attr] == null) { if (this.form[attr] == null) {
this.form[attr] = ""; this.form[attr] = "";
} }
} }
this.$refs.depTree.setData(this.form.departmentId, this.form.departmentTitle); this.$refs.depTree.setData(this.form.departmentId, this.form.departmentTitle);
let selectRolesId = []; let selectRolesId = [];
if (this.form.roles) { if (this.form.roles) {
@ -529,6 +528,7 @@ export default {
this.form.roles = selectRolesId; this.form.roles = selectRolesId;
this.userModalVisible = true; this.userModalVisible = true;
}, },
//
enable(v) { enable(v) {
let params = { let params = {
status: true status: true
@ -548,6 +548,7 @@ export default {
} }
}); });
}, },
//
disable(v) { disable(v) {
let params = { let params = {
status: false status: false
@ -567,6 +568,7 @@ export default {
} }
}); });
}, },
//
remove(v) { remove(v) {
this.$Modal.confirm({ this.$Modal.confirm({
title: "确认删除", title: "确认删除",
@ -583,14 +585,17 @@ export default {
} }
}); });
}, },
//
showSelect(e) { showSelect(e) {
this.exportData = e; this.exportData = e;
this.selectList = e; this.selectList = e;
this.selectCount = e.length; this.selectCount = e.length;
}, },
//
clearSelectAll() { clearSelectAll() {
this.$refs.table.selectAll(false); this.$refs.table.selectAll(false);
}, },
//
delAll() { delAll() {
if (this.selectCount <= 0) { if (this.selectCount <= 0) {
this.$Message.warning("您还未选择要删除的数据"); this.$Message.warning("您还未选择要删除的数据");
@ -619,8 +624,6 @@ export default {
} }
}, },
mounted() { mounted() {
//
this.height = Number(document.documentElement.clientHeight - 230);
this.init(); this.init();
this.getRoleList(); this.getRoleList();
} }

View File

@ -1,7 +1,7 @@
export const result = [ export const result = [
{ {
name: "lili", name: "lili",
showAlways: true,
level: 0, level: 0,
type: -1, type: -1,
title: "商品", title: "商品",
@ -15,7 +15,7 @@ export const result = [
children: [ children: [
{ {
name: "goods-list", name: "goods-list",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "商品管理", title: "商品管理",
@ -28,7 +28,7 @@ export const result = [
children: [ children: [
{ {
name: "goods-operation", name: "goods-operation",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "商品发布", title: "商品发布",
@ -42,7 +42,7 @@ export const result = [
}, },
{ {
name: "goods", name: "goods",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "商品列表", title: "商品列表",
@ -56,7 +56,7 @@ export const result = [
}, },
// { // {
// name: "daft-goods", // name: "daft-goods",
// showAlways: true, //
// level: 2, // level: 2,
// type: 0, // type: 0,
// title: "草稿商品", // title: "草稿商品",
@ -72,7 +72,7 @@ export const result = [
{ {
path: "template-goods", path: "template-goods",
props: {type: "TEMPLATE"}, props: {type: "TEMPLATE"},
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "商品模版", title: "商品模版",
@ -86,7 +86,7 @@ export const result = [
}, },
{ {
name: "category", name: "category",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "店铺分类", title: "店铺分类",
@ -105,7 +105,7 @@ export const result = [
{ {
name: "order", name: "order",
showAlways: true,
level: 0, level: 0,
type: -1, type: -1,
title: "订单", title: "订单",
@ -119,7 +119,7 @@ export const result = [
children: [ children: [
{ {
name: "order", name: "order",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "订单管理", title: "订单管理",
@ -132,7 +132,7 @@ export const result = [
children: [ children: [
{ {
name: "orderList", name: "orderList",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "商品订单", title: "商品订单",
@ -146,7 +146,7 @@ export const result = [
}, },
{ {
name: "virtualOrderList", name: "virtualOrderList",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "虚拟订单", title: "虚拟订单",
@ -162,7 +162,7 @@ export const result = [
}, },
{ {
name: "memberComment", name: "memberComment",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "评价管理", title: "评价管理",
@ -175,7 +175,7 @@ export const result = [
children: [ children: [
{ {
name: "memberComment", name: "memberComment",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "评价管理", title: "评价管理",
@ -191,7 +191,7 @@ export const result = [
}, },
{ {
name: "order", name: "order",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "售后管理", title: "售后管理",
@ -204,7 +204,7 @@ export const result = [
children: [ children: [
{ {
name: "returnGoodsOrder", name: "returnGoodsOrder",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "退货管理", title: "退货管理",
@ -218,7 +218,7 @@ export const result = [
}, },
{ {
name: "returnMoneyOrder", name: "returnMoneyOrder",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "退款管理", title: "退款管理",
@ -232,7 +232,7 @@ export const result = [
}, },
{ {
name: "orderComplaint", name: "orderComplaint",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "投诉管理", title: "投诉管理",
@ -251,7 +251,7 @@ export const result = [
{ {
name: "bill", name: "bill",
showAlways: true,
level: 0, level: 0,
type: -1, type: -1,
title: "财务", title: "财务",
@ -265,7 +265,7 @@ export const result = [
children: [ children: [
{ {
name: "bill", name: "bill",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "财务管理", title: "财务管理",
@ -278,7 +278,7 @@ export const result = [
children: [ children: [
{ {
name: "accountStatementBill", name: "accountStatementBill",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "财务对账", title: "财务对账",
@ -292,7 +292,7 @@ export const result = [
}, },
{ {
name: "storeBill", name: "storeBill",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "店铺结算", title: "店铺结算",
@ -309,7 +309,7 @@ export const result = [
{ {
name: "receiptManager", name: "receiptManager",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "发票管理", title: "发票管理",
@ -322,7 +322,7 @@ export const result = [
children: [ children: [
{ {
name: "receipt", name: "receipt",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "发票管理", title: "发票管理",
@ -340,7 +340,7 @@ export const result = [
}, },
{ {
name: "promotion", name: "promotion",
showAlways: true,
level: 0, level: 0,
type: -1, type: -1,
title: "营销", title: "营销",
@ -354,7 +354,7 @@ export const result = [
children: [ children: [
{ {
name: "promotion", name: "promotion",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "平台活动", title: "平台活动",
@ -367,7 +367,7 @@ export const result = [
children: [ children: [
{ {
name: "pintuan", name: "pintuan",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "拼团活动", title: "拼团活动",
@ -381,7 +381,7 @@ export const result = [
}, },
{ {
name: "seckill", name: "seckill",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "秒杀活动", title: "秒杀活动",
@ -397,7 +397,7 @@ export const result = [
}, },
{ {
name: "lives", name: "lives",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "直播活动", title: "直播活动",
@ -410,7 +410,7 @@ export const result = [
children: [ children: [
{ {
name: "live", name: "live",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "直播管理", title: "直播管理",
@ -424,7 +424,7 @@ export const result = [
}, },
{ {
name: "liveGoods", name: "liveGoods",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "直播商品", title: "直播商品",
@ -440,7 +440,7 @@ export const result = [
}, },
{ {
name: "storePromotion", name: "storePromotion",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "商家活动", title: "商家活动",
@ -453,7 +453,7 @@ export const result = [
children: [ children: [
{ {
name: "full-cut", name: "full-cut",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "满额活动", title: "满额活动",
@ -467,7 +467,7 @@ export const result = [
}, },
{ {
name: "coupon", name: "coupon",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "优惠券", title: "优惠券",
@ -484,7 +484,7 @@ export const result = [
}, },
{ {
name: "distribution", name: "distribution",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "分销管理", title: "分销管理",
@ -497,7 +497,6 @@ export const result = [
children: [ children: [
{ {
name: "distributionGoods", name: "distributionGoods",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "分销商品", title: "分销商品",
@ -511,7 +510,6 @@ export const result = [
}, },
{ {
name: "distributionOrder", name: "distributionOrder",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "分销订单", title: "分销订单",
@ -530,7 +528,6 @@ export const result = [
{ {
name: "statistics", name: "statistics",
showAlways: true,
level: 0, level: 0,
type: -1, type: -1,
title: "统计", title: "统计",
@ -544,7 +541,6 @@ export const result = [
children: [ children: [
{ {
name: "statistics", name: "statistics",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "统计管理", title: "统计管理",
@ -557,7 +553,6 @@ export const result = [
children: [ children: [
{ {
name: "goodsStatistics", name: "goodsStatistics",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "商品统计", title: "商品统计",
@ -571,7 +566,6 @@ export const result = [
}, },
{ {
name: "orderStatistics", name: "orderStatistics",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "订单统计", title: "订单统计",
@ -585,7 +579,6 @@ export const result = [
}, },
{ {
name: "trafficStatistics", name: "trafficStatistics",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "流量统计", title: "流量统计",
@ -597,7 +590,6 @@ export const result = [
permTypes: [], permTypes: [],
children: null children: null
}, },
] ]
} }
] ]
@ -605,7 +597,6 @@ export const result = [
{ {
name: "settings", name: "settings",
showAlways: true,
level: 0, level: 0,
type: -1, type: -1,
title: "设置", title: "设置",
@ -618,7 +609,6 @@ export const result = [
children: [ children: [
{ {
name: "user-manage", name: "user-manage",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "页面设置", title: "页面设置",
@ -632,7 +622,6 @@ export const result = [
}, },
{ {
name: "ship", name: "ship",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "配送设置", title: "配送设置",
@ -645,7 +634,6 @@ export const result = [
children: [ children: [
{ {
name: "shipTemplate", name: "shipTemplate",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "配送模板", title: "配送模板",
@ -659,7 +647,6 @@ export const result = [
}, },
{ {
name: "logistics", name: "logistics",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "物流公司", title: "物流公司",
@ -675,7 +662,6 @@ export const result = [
}, },
{ {
name: "shop", name: "shop",
showAlways: false,
level: 1, level: 1,
type: 0, type: 0,
title: "店铺管理", title: "店铺管理",
@ -688,7 +674,7 @@ export const result = [
children: [ children: [
{ {
name: "shopSetting", name: "shopSetting",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "店铺设置", title: "店铺设置",
@ -703,7 +689,7 @@ export const result = [
}, },
{ {
name: "shopAddress", name: "shopAddress",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "自提管理", title: "自提管理",
@ -723,7 +709,7 @@ export const result = [
}, },
{ {
name: "messages", name: "messages",
showAlways: true,
level: 0, level: 0,
type: -1, type: -1,
title: "消息", title: "消息",
@ -736,7 +722,7 @@ export const result = [
children: [ children: [
{ {
name: "user-manage", name: "user-manage",
showAlways: true,
level: 1, level: 1,
type: 0, type: 0,
title: "系统消息", title: "系统消息",
@ -749,7 +735,7 @@ export const result = [
children: [ children: [
{ {
name: "message_index", name: "message_index",
showAlways: true,
level: 2, level: 2,
type: 0, type: 0,
title: "系统消息", title: "系统消息",