Commit 2c8aa1d3 authored by 刘殿昕's avatar 刘殿昕

管理员权限页面控制有问题,调数据,修改样式等等等

parent e5bfc0ea
...@@ -20,9 +20,6 @@ export default { ...@@ -20,9 +20,6 @@ export default {
console.log(data.data); console.log(data.data);
console.log("--- --- ---"); console.log("--- --- ---");
this.$store.commit("userInfofun", data.data); this.$store.commit("userInfofun", data.data);
if (data.data.is_admin == 1 || data.data.is_admin == 2) {
this.$router.push({ name: "workPlace" });
}
} else { } else {
console.log(data.errMsg); console.log(data.errMsg);
} }
......
...@@ -77,6 +77,12 @@ export default { ...@@ -77,6 +77,12 @@ export default {
textStyle: { textStyle: {
fontSize: 12 fontSize: 12
} }
},
splitLine: {
lineStyle: {
color: "#f2f2f2",
type: "solid"
}
} }
} }
], ],
......
...@@ -6,14 +6,10 @@ ...@@ -6,14 +6,10 @@
import { graphic } from "echarts/lib/export"; import { graphic } from "echarts/lib/export";
export default { export default {
props: { props: {
data: { datas: {
type: Object, type: Array,
default: () => { default: () => {
return { return [];
xaxis: [],
data: [],
legend: []
};
} }
} }
}, },
...@@ -51,8 +47,8 @@ export default { ...@@ -51,8 +47,8 @@ export default {
data: [ data: [
{ {
name: "A", name: "A",
value: 0.67, value: self.datas[0] / 100,
key: 77 key: self.datas[0]
} }
], ],
radius: "50%", radius: "50%",
...@@ -94,7 +90,7 @@ export default { ...@@ -94,7 +90,7 @@ export default {
label: { label: {
normal: { normal: {
formatter: function(param) { formatter: function(param) {
return "63%"; return self.datas[0] + "%";
}, },
textStyle: { textStyle: {
color: "#000", color: "#000",
...@@ -109,8 +105,8 @@ export default { ...@@ -109,8 +105,8 @@ export default {
data: [ data: [
{ {
name: "A", name: "A",
value: 0.67, value: self.datas[1] / 100,
key: 77 key: self.datas[1]
} }
], ],
radius: "50%", radius: "50%",
...@@ -152,7 +148,7 @@ export default { ...@@ -152,7 +148,7 @@ export default {
label: { label: {
normal: { normal: {
formatter: function(param) { formatter: function(param) {
return "63%"; return self.datas[1] + "%";
}, },
textStyle: { textStyle: {
color: "#000", color: "#000",
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
:disabled="pagination.page == 1" :disabled="pagination.page == 1"
></el-button> ></el-button>
&nbsp;&nbsp;{{ pagination.page }}页 / 共{{ &nbsp;&nbsp;{{ pagination.page }}页 / 共{{
Math.ceil((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) Math.ceil((total == 0 ? 1 : total) / pagination.rowsPerPage)
}} }}
<el-button <el-button
icon="el-icon-arrow-right" icon="el-icon-arrow-right"
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
@click="handleCurrentChange(1)" @click="handleCurrentChange(1)"
:disabled=" :disabled="
pagination.page >= pagination.page >=
Math.ceil((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) Math.ceil((total == 0 ? 1 : total) / pagination.rowsPerPage)
" "
></el-button> ></el-button>
</div> </div>
...@@ -74,7 +74,11 @@ export default { ...@@ -74,7 +74,11 @@ export default {
"commodity-card": CommodityCard "commodity-card": CommodityCard
}, },
props: { props: {
datas: { type: Array, default: [] }, datas: { type: Array, default: () => {[]} },
total: {
type: Number,
default: 0
},
url: { type: String, default: "" }, url: { type: String, default: "" },
paginationShow: { paginationShow: {
type: Boolean, type: Boolean,
...@@ -89,8 +93,7 @@ export default { ...@@ -89,8 +93,7 @@ export default {
data: () => ({ data: () => ({
pagination: { pagination: {
rowsPerPage: 10, rowsPerPage: 10,
page: 1, page: 1
total: 0
}, },
pageOptions: [ pageOptions: [
{ {
...@@ -118,9 +121,6 @@ export default { ...@@ -118,9 +121,6 @@ export default {
this.pagination.page += val; this.pagination.page += val;
this.$emit("refresh", this.pagination); this.$emit("refresh", this.pagination);
}, },
getTotal() {
this.pagination.total = this.datas.length;
},
pageResize() { pageResize() {
let listWidth = this.$refs.commodityCardIn.clientWidth; let listWidth = this.$refs.commodityCardIn.clientWidth;
let rowCardNum = Math.floor(listWidth / 310); let rowCardNum = Math.floor(listWidth / 310);
...@@ -136,7 +136,6 @@ export default { ...@@ -136,7 +136,6 @@ export default {
watch: { watch: {
datas: { datas: {
handler(val) { handler(val) {
this.getTotal();
if (this.urlFilter == "app") { if (this.urlFilter == "app") {
setTimeout(() => { setTimeout(() => {
this.pageResize(); this.pageResize();
......
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
<!-- the list --> <!-- the list -->
<commodity-list <commodity-list
:datas="lists && lists.length != 0 ? lists : []" :datas="lists && lists.length != 0 ? lists : []"
:total="total"
:url="url" :url="url"
:urlFilter="urlFilter" :urlFilter="urlFilter"
:paginationShow="true" :paginationShow="true"
...@@ -188,6 +189,7 @@ export default { ...@@ -188,6 +189,7 @@ export default {
], ],
activeBtn: 0, activeBtn: 0,
lists: [], lists: [],
total: 0,
filterLists: [ filterLists: [
{ {
id: 110, id: 110,
...@@ -305,6 +307,7 @@ export default { ...@@ -305,6 +307,7 @@ export default {
this.$api.serviceShop.getAppList(query).then(response => { this.$api.serviceShop.getAppList(query).then(response => {
if (response.data.success == "1") { if (response.data.success == "1") {
this.lists = response.data.data; this.lists = response.data.data;
this.total = response.data.total;
} else { } else {
console.log(response.data.errMsg); console.log(response.data.errMsg);
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</div> </div>
</div> </div>
<div class="left_1_right"> <div class="left_1_right">
<WaterPolo class="water_polo" /> <WaterPolo :datas="water_polo" class="water_polo" />
</div> </div>
</div> </div>
</block-radius> </block-radius>
...@@ -249,6 +249,7 @@ export default { ...@@ -249,6 +249,7 @@ export default {
WaterPolo WaterPolo
}, },
data: () => ({ data: () => ({
water_polo: [75, 25],
overview: { overview: {
month_chain: 14.5, month_chain: 14.5,
week_chain: -14.2 week_chain: -14.2
...@@ -275,12 +276,12 @@ export default { ...@@ -275,12 +276,12 @@ export default {
}, },
sparkline1:{ sparkline1:{
arr:[1,2,3,4,8,9,10,21], arr:[1,2,3,4,8,9,10,21],
num:1231, num:21,
up:15.3 up:15.3
}, },
sparkline2:{ sparkline2:{
arr:[1,2,3,4,8,9,10,21], arr:[1,2,3,4,8,9,10,21],
num:182, num:18,
up:-19.3 up:-19.3
}, },
single_data: { single_data: {
...@@ -307,15 +308,15 @@ export default { ...@@ -307,15 +308,15 @@ export default {
data: [ data: [
{ {
name: "开发者应用", name: "开发者应用",
arr: [100, 120, 130, 150, 160, 120, 110, 100] arr: [4, 3, 3, 3, 1, 3, 2, 3]
}, },
{ {
name: "平台应用", name: "平台应用",
arr: [120, 130, 140, 130, 140, 120, 100, 90] arr: [2, 1, 1, 3, 2, 3, 4, 1]
}, },
{ {
name: "未上架", name: "未上架",
arr: [80, 90, 100, 110, 100, 70, 80, 90] arr: [1, 1, 0, 0, 0, 1, 2, 0]
} }
] ]
}, },
...@@ -338,8 +339,11 @@ export default { ...@@ -338,8 +339,11 @@ export default {
"教育科技", "教育科技",
"文化休闲", "文化休闲",
"城市管理", "城市管理",
"机构团体",
"民生服务",
"其他",
], ],
data: [2, 0, 0, 1, 0, 2] data: [1, 0, 0, 1, 0, 2, 0, 0, 0]
}, },
graph_arr: { graph_arr: {
xaxis: [ xaxis: [
...@@ -361,28 +365,28 @@ export default { ...@@ -361,28 +365,28 @@ export default {
toplistData: [ toplistData: [
{ {
name: "mapvideos", name: "mapvideos",
value: 130, value: 13,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "语音识别", name: "语音识别",
value: 121, value: 12,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "轨迹绘制", name: "轨迹绘制",
value: 98, value: 9,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "postgresql", name: "postgresql",
value: 55, value: 5,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
...@@ -465,7 +469,7 @@ export default { ...@@ -465,7 +469,7 @@ export default {
{ {
hotIndex: 1, hotIndex: 1,
name: "mapvideos", name: "mapvideos",
count: 89, count: 29,
increases: 0.28 increases: 0.28
}, },
{ {
...@@ -483,7 +487,7 @@ export default { ...@@ -483,7 +487,7 @@ export default {
{ {
hotIndex: 4, hotIndex: 4,
name: "postgresql", name: "postgresql",
count: 666, count: 12,
increases: -0.05 increases: -0.05
}, },
] // 热门搜索 数据 ] // 热门搜索 数据
...@@ -575,7 +579,7 @@ export default { ...@@ -575,7 +579,7 @@ export default {
.left_1 { .left_1 {
height: 100%; height: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
} }
.left_block { .left_block {
width: 280px; width: 280px;
...@@ -584,7 +588,7 @@ export default { ...@@ -584,7 +588,7 @@ export default {
} }
.left_1_l { .left_1_l {
display: flex; display: flex;
justify-content: space-between; justify-content: space-around;
align-items: flex-end; align-items: flex-end;
} }
.left_1_title { .left_1_title {
...@@ -603,7 +607,7 @@ export default { ...@@ -603,7 +607,7 @@ export default {
.chain { .chain {
color: #58617a; color: #58617a;
font-size: 14px; font-size: 14px;
padding: 10px; padding: 10px 0 10px 10px;
} }
.chain_down { .chain_down {
background-color: #fbe8e8; background-color: #fbe8e8;
...@@ -634,7 +638,7 @@ export default { ...@@ -634,7 +638,7 @@ export default {
.left_1_msg { .left_1_msg {
display: inline-block; display: inline-block;
width: 120px; width: 120px;
padding-bottom: 10px; padding: 0 0 10px 10px;
} }
.left_1_line { .left_1_line {
width: 90%; width: 90%;
...@@ -643,12 +647,12 @@ export default { ...@@ -643,12 +647,12 @@ export default {
background-color: #f2f2f2; background-color: #f2f2f2;
} }
.left_1_right { .left_1_right {
width: 180px; width: 120px;
height: 100%; height: 100%;
display: inline-block; display: inline-block;
} }
.water_polo { .water_polo {
width: 140px; width: 110px;
margin: 0 auto 20px; margin: 0 auto 20px;
} }
.default { .default {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div ref="left_1_l" class="left_1_l"> <div ref="left_1_l" class="left_1_l">
<img :src="require('@/assets/imgs/data_img_service.gif')" class="left_1_img" /> <img :src="require('@/assets/imgs/data_img_service.gif')" class="left_1_img" />
<div class="left_1_title">服务总数</div> <div class="left_1_title">服务总数</div>
<div class="left_1_num">4</div> <div class="left_1_num">8</div>
</div> </div>
<dashboard ref="left_1_r" :data="das_data" :is_word="true" class="left_1_r"></dashboard> <dashboard ref="left_1_r" :data="das_data" :is_word="true" class="left_1_r"></dashboard>
</div> </div>
...@@ -302,12 +302,12 @@ export default { ...@@ -302,12 +302,12 @@ export default {
}, },
sparkline1: { sparkline1: {
arr: [1, 2, 3, 4, 8, 9, 10, 21], arr: [1, 2, 3, 4, 8, 9, 10, 21],
num: 1231, num: 12,
up: 15.3 up: 15.3
}, },
sparkline2: { sparkline2: {
arr: [1, 2, 3, 4, 8, 9, 10, 21], arr: [1, 2, 3, 4, 8, 9, 10, 21],
num: 182, num: 6,
up: -19.3 up: -19.3
}, },
text: "服务总数", text: "服务总数",
...@@ -380,56 +380,56 @@ export default { ...@@ -380,56 +380,56 @@ export default {
toplistData: [ toplistData: [
{ {
name: "报警服务", name: "报警服务",
value: 155, value: 15,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "数据服务", name: "数据服务",
value: 130, value: 13,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "消息队列服务", name: "消息队列服务",
value: 168, value: 11,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "档案中心服务", name: "档案中心服务",
value: 77, value: 7,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "按键中心服务", name: "按键中心服务",
value: 60, value: 6,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "通用API服务", name: "通用API服务",
value: 32, value: 3,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "案件中心服务", name: "案件中心服务",
value: 15, value: 1,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
}, },
{ {
name: "数据中心服务", name: "数据中心服务",
value: 3, value: 1,
logo: logo:
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
unit: "" unit: ""
...@@ -440,7 +440,7 @@ export default { ...@@ -440,7 +440,7 @@ export default {
commentlistData: [ commentlistData: [
{ {
add_time: "2020-07-14T16:35:40Z", add_time: "2020-07-14T16:35:40Z",
content: "1111111111111111", content: "good!!! its good",
id: 36, id: 36,
picture_path: picture_path:
"/apaas/static/docs/image/image/blob_cb30e7a3-3184-42dd-9e2f-7e6b69accb0c.blob", "/apaas/static/docs/image/image/blob_cb30e7a3-3184-42dd-9e2f-7e6b69accb0c.blob",
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
}, },
{ {
add_time: "2020-07-14T16:35:40Z", add_time: "2020-07-14T16:35:40Z",
content: "222222222222", content: "太好了",
id: 36, id: 36,
picture_path: picture_path:
"/apaas/static/docs/image/image/blob_cb30e7a3-3184-42dd-9e2f-7e6b69accb0c.blob", "/apaas/static/docs/image/image/blob_cb30e7a3-3184-42dd-9e2f-7e6b69accb0c.blob",
...@@ -544,48 +544,48 @@ export default { ...@@ -544,48 +544,48 @@ export default {
{ {
hotIndex: 1, hotIndex: 1,
name: "数据服务", name: "数据服务",
count: 66, count: 6,
increases: 0.28 increases: 0.28
}, },
{ {
hotIndex: 2, hotIndex: 2,
name: "消息队列服务", name: "消息队列服务",
count: 54, count: 5,
increases: 0.15 increases: 0.15
}, },
{ {
hotIndex: 3, hotIndex: 3,
name: "按键中心服务", name: "按键中心服务",
count: 52, count: 5,
increases: 0.03 increases: 0.03
}, },
{ {
hotIndex: 4, hotIndex: 4,
name: "案件中心服务", name: "案件中心服务",
count: 37, count: 3,
increases: -0.08 increases: -0.08
}, },
{ {
hotIndex: 5, hotIndex: 5,
name: "数据中心服务", name: "数据中心服务",
count: 15, count: 1,
increases: -0.18 increases: -0.18
} }
], // 热门搜索 数据 ], // 热门搜索 数据
graph_arr: { graph_arr: {
xaxis: [ xaxis: [
"01-01", "07/09",
"01-02", "07/10",
"01-03", "07/11",
"01-04", "07/12",
"01-05", "07/13",
"01-06", "07/14",
"01-07", "07/15",
"01-08" "07/16"
], ],
data: [ data: [
[1010, 120, 130, 520, 160, 1120, 110, 100], [34, 30, 13, 52, 23, 80, 48, 52],
[100, 1210, 130, 1530, 160, 120, 110, 1200] [24, 17, 12, 17, 23, 71, 18, 45],
], ],
legend: ["被调用次数", "调用次数"] legend: ["被调用次数", "调用次数"]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment