Commit d0ff49fb authored by youjie's avatar youjie

no message

parent a5505c7d
......@@ -10,7 +10,7 @@
<i class="iconfont icongengduo"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="1"><i class="iconfont icondaoru"></i> 导入</el-dropdown-item>
<el-dropdown-item command="1" v-if="isPermission"><i class="iconfont icondaoru"></i> 导入</el-dropdown-item>
<el-dropdown-item command="2"><i class="iconfont icondaochu"></i> 导出</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
......@@ -59,10 +59,10 @@
<el-table-column width="130" prop="State" label="状态">
<template slot-scope="scope">
<template v-if="!scope.row.Show">
<span class="activeState" @click="scope.row.Show=true">
<a v-if="scope.row.State==1">正常</a>
<a v-if="scope.row.State==2">限流</a>
<a v-if="scope.row.State==3">封号</a>
<span class="activeState" @click="isPermission?scope.row.Show=true:''">
<a v-if="scope.row.State==1" :style="{'text-decoration':!isPermission?'none':''}">正常</a>
<a v-if="scope.row.State==2" :style="{'text-decoration':!isPermission?'none':''}">限流</a>
<a v-if="scope.row.State==3" :style="{'text-decoration':!isPermission?'none':''}">封号</a>
</span>
</template>
<template v-if="scope.row.Show">
......@@ -113,7 +113,7 @@
<el-table-column width="120" prop="NoteRate" label="笔记数增长率"><template slot-scope="scope">
<span :class="{'activeRed':scope.row.NoteRate<0}">{{scope.row.NoteRate}}%</span></template></el-table-column>
<el-table-column width="130" fixed="right" prop="EmpName" label="运营人"></el-table-column>
<el-table-column width="130" fixed="right" label="操作">
<el-table-column width="130" fixed="right" label="操作" v-if="isPermission">
<template slot-scope="scope">
<el-button size="mini" type="primary" plain icon="el-icon-edit" @click="editAccount(scope.row)"></el-button>
<el-button size="mini" type="danger" plain icon="el-icon-delete" @click="delAccount(scope.row)"></el-button>
......@@ -132,10 +132,10 @@
<el-table-column width="130" prop="State" label="状态">
<template slot-scope="scope">
<template v-if="!scope.row.Show">
<span class="activeState" @click="scope.row.Show=true">
<a v-if="scope.row.State==1">正常</a>
<a v-if="scope.row.State==2">限流</a>
<a v-if="scope.row.State==3">封号</a>
<span class="activeState" @click="isPermission?scope.row.Show=true:''">
<a v-if="scope.row.State==1" :style="{'text-decoration':!isPermission?'none':''}">正常</a>
<a v-if="scope.row.State==2" :style="{'text-decoration':!isPermission?'none':''}">限流</a>
<a v-if="scope.row.State==3" :style="{'text-decoration':!isPermission?'none':''}">封号</a>
</span>
</template>
<template v-if="scope.row.Show">
......@@ -166,7 +166,7 @@
<el-table-column width="120" prop="InteractionRate" label="总微博数增长率"><template slot-scope="scope">
<span :class="{'activeRed':scope.row.InteractionRate<0}">{{scope.row.InteractionRate}}%</span></template></el-table-column>
<el-table-column width="130" fixed="right" prop="EmpName" label="运营人"></el-table-column>
<el-table-column width="130" fixed="right" label="操作">
<el-table-column width="130" fixed="right" label="操作" v-if="isPermission">
<template slot-scope="scope">
<el-button size="mini" type="primary" plain icon="el-icon-edit" @click="editAccount(scope.row)"></el-button>
<el-button size="mini" type="danger" plain icon="el-icon-delete" @click="delAccount(scope.row)"></el-button>
......@@ -184,10 +184,10 @@
<el-table-column width="130" prop="State" label="状态">
<template slot-scope="scope">
<template v-if="!scope.row.Show">
<span class="activeState" @click="scope.row.Show=true">
<a v-if="scope.row.State==1">正常</a>
<a v-if="scope.row.State==2">限流</a>
<a v-if="scope.row.State==3">封号</a>
<span class="activeState" @click="isPermission?scope.row.Show=true:''">
<a v-if="scope.row.State==1" :style="{'text-decoration':!isPermission?'none':''}">正常</a>
<a v-if="scope.row.State==2" :style="{'text-decoration':!isPermission?'none':''}">限流</a>
<a v-if="scope.row.State==3" :style="{'text-decoration':!isPermission?'none':''}">封号</a>
</span>
</template>
<template v-if="scope.row.Show">
......@@ -229,7 +229,7 @@
<el-table-column width="90" prop="NoteRate" label="作品增长率"><template slot-scope="scope">
<span :class="{'activeRed':scope.row.NoteRate<0}">{{scope.row.NoteRate}}%</span></template></el-table-column>
<el-table-column width="130" fixed="right" prop="EmpName" label="运营人"></el-table-column>
<el-table-column width="130" fixed="right" label="操作">
<el-table-column width="130" fixed="right" label="操作" v-if="isPermission">
<template slot-scope="scope">
<el-button size="mini" type="primary" plain icon="el-icon-edit" @click="editAccount(scope.row)"></el-button>
<el-button size="mini" type="danger" plain icon="el-icon-delete" @click="delAccount(scope.row)"></el-button>
......@@ -425,7 +425,7 @@
<el-col :span="8">
<div class="MyEditForm-item label-pad-left">
<el-form-item label="平台" prop="PlatformType">
<el-select v-model="form.PlatformType" placeholder="请选择平台" @change="clickChange">
<el-select v-model="form.PlatformType" placeholder="请选择平台">
<el-option v-for="item in PlatformTypeList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
......@@ -633,17 +633,24 @@
PeroidsList:[],
dialogTableVisible: false,
loadingText:'',
downloadUrl: "",
dialogTableVisibleEdit: false,
fileUrl: 'http://crm.oytour.com',
urlList:[
{Name:'小红书',url:'http://crm.oytour.com/ExportFile/小红书导入模板.xlsx'},
{Name:'微博',url:'http://crm.oytour.com/ExportFile/微博导入模板.xlsx'},
{Name:'抖音',url:'http://crm.oytour.com/ExportFile/抖音导入模板.xlsx'},
]
],
isPermission:false,//是否有操作权限
};
},
mounted() {
let userInfo = this.getLocalStorage();
if(userInfo.PostName=='总经理' ||
userInfo.PostName=='技术开发' ||
userInfo.PostName=='开发经理'){
this.isPermission = true
}else{
this.isPermission = false
}
this.getEnumerate()
},
methods: {
......@@ -658,19 +665,6 @@
}
this.init()
},
clickChange(){
},
// 导入模版地址
GetDanUrl(){
if (this.msg.PlatformType == 1) {
this.downloadUrl = this.fileUrl + "/ExportFile/小红书导入模板.xlsx";
} if (this.msg.PlatformType == 2) {
this.downloadUrl = this.fileUrl + "/ExportFile/微博导入模板.xlsx";
} if (this.msg.PlatformType == 3) {
this.downloadUrl = this.fileUrl + "/ExportFile/抖音导入模板.xlsx";
}
},
EditState(e,row) {
let datas = {
AccountId:row.AccountId,
......
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