Commit d0ff49fb authored by youjie's avatar youjie

no message

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