Browse Source

优化

master
ltlzx 4 years ago
parent
commit
6732c42675
  1. 2
      index.html
  2. 1
      src/components/page/admission/index.vue
  3. 14
      src/components/page/layout/index.vue
  4. BIN
      static/index.ico

2
index.html

@ -4,6 +4,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>wenhuadate_admin</title>
<link rel="icon" href="static/index.ico" type="image/x-icon" />
<link rel="shortcut icon" href="static/index.ico" type="image/x-icon" />
</head>
<body>
<div id="app"></div>

1
src/components/page/admission/index.vue

@ -220,6 +220,7 @@ export default {
offGoods(data).then(res=>{
if(res.code==200){
this.getAllDate()
this.visible2=false
this.$message.success('下架成功');
}else{
this.$message.error(res.msg);

14
src/components/page/layout/index.vue

@ -289,7 +289,7 @@ export default {
console.info(data)
rankingSort(data).then(res=>{
if(res.code==200){
this.$message.success(type==1?'上移':'下移'+'成功!');
this.$message.success(type==1?'上移成功!':'下移成功!');
this.getList()
this.selectedRowKeys1=[]
}else{
@ -355,12 +355,14 @@ export default {
this.active=val-1
this.selectedRowKeys1=[]
if(this.active==2){
let data={
title: '操作',
scopedSlots: { customRender: 'operation' },
// align:'center'
if(this.columns[this.columns.length - 1].title!='操作'){
let data={
title: '操作',
scopedSlots: { customRender: 'operation' },
// align:'center'
}
this.columns.push(data)
}
this.columns.push(data)
}else{
for (let i=0; i<this.columns.length; i++){
if (this.columns[i].title == '操作'){

BIN
static/index.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Loading…
Cancel
Save