|
@@ -87,6 +87,18 @@
|
|
>刷新服务商</el-button>
|
|
>刷新服务商</el-button>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <div class="grid-content">
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ size="mini"
|
|
|
|
+ icon="el-icon-sort"
|
|
|
|
+ :disabled="multiple"
|
|
|
|
+ :loading="reLoading"
|
|
|
|
+ @click="putsHandle"
|
|
|
|
+ >指派</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
@@ -100,6 +112,7 @@
|
|
<div>{{scope.row.sourceType == 0 ? '微信' : 'QQ'}}</div>
|
|
<div>{{scope.row.sourceType == 0 ? '微信' : 'QQ'}}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="投手ID" prop="putUserId" align="center" width="100"/>
|
|
<el-table-column label="公众号信息" align="center" width="150" :show-overflow-tooltip="true">
|
|
<el-table-column label="公众号信息" align="center" width="150" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-row align="middle" type="flex" justify="center">
|
|
<el-row align="middle" type="flex" justify="center">
|
|
@@ -173,7 +186,7 @@
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
|
|
|
|
<!-- <el-table-column label="账户类型" prop="wechatAccountType" align="center" width="80"/> -->
|
|
<!-- <el-table-column label="账户类型" prop="wechatAccountType" align="center" width="80"/> -->
|
|
- <el-table-column label="授权时间" align="center" prop="createTime">
|
|
|
|
|
|
+ <el-table-column label="授权时间" align="center" prop="createTime" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -183,9 +196,9 @@
|
|
<span>{{ parseTime(scope.row.updateTime) }}</span>
|
|
<span>{{ parseTime(scope.row.updateTime) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
- <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="240">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="240">
|
|
<template slot-scope="scope" v-if="scope.row.id && typeof scope.row.id === 'number'">
|
|
<template slot-scope="scope" v-if="scope.row.id && typeof scope.row.id === 'number'">
|
|
- <el-button
|
|
|
|
|
|
+ <!-- <el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@@ -204,15 +217,15 @@
|
|
icon="el-icon-sort"
|
|
icon="el-icon-sort"
|
|
v-hasPermi="['adWarrant:switch']"
|
|
v-hasPermi="['adWarrant:switch']"
|
|
@click="handleSwitch(scope.row, 'book')"
|
|
@click="handleSwitch(scope.row, 'book')"
|
|
- >切书</el-button>
|
|
|
|
|
|
+ >切书</el-button> -->
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-sort"
|
|
icon="el-icon-sort"
|
|
v-hasPermi="['adWarrant:switch']"
|
|
v-hasPermi="['adWarrant:switch']"
|
|
- @click="handleSwitch(scope.row, 'pitcher')"
|
|
|
|
- >切投手</el-button>
|
|
|
|
- <el-button
|
|
|
|
|
|
+ @click="puthangdle(scope.row)"
|
|
|
|
+ >指派</el-button>
|
|
|
|
+ <!-- <el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-sort"
|
|
icon="el-icon-sort"
|
|
@@ -237,9 +250,9 @@
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-delete"
|
|
icon="el-icon-delete"
|
|
>删除</el-button>
|
|
>删除</el-button>
|
|
- </el-popconfirm>
|
|
|
|
|
|
+ </el-popconfirm> -->
|
|
</template>
|
|
</template>
|
|
- </el-table-column> -->
|
|
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
<pagination
|
|
@@ -614,11 +627,36 @@
|
|
<el-button type="primary" @click="onSubmitTenSwitch()">确 定</el-button>
|
|
<el-button type="primary" @click="onSubmitTenSwitch()">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 指派 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="指派投手"
|
|
|
|
+ :visible.sync="putVisible"
|
|
|
|
+ width="450px"
|
|
|
|
+ append-to-body
|
|
|
|
+ >
|
|
|
|
+ <el-form :model="putParamsForm" :rules="putRulesType" ref="platFormPut" label-width="80px" label-position="top">
|
|
|
|
+ <el-form-item label="用户" prop="putUserId" >
|
|
|
|
+ <el-select v-model="putParamsForm.putUserId" placeholder="请选择" filterable style="width: 100%" clearable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in userAll"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.nickName"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="putParamsForm = {};putVisible = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="submitPUt('platFormPut')">确 定</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listAd, getAd, toAuth, editAdMp, refreshByIds, deleteAdMp, getAdt, switchAcc, switchBook, switchPitcher, switchPlatform, getAdAppList, addApp, editApp, getAdAppListAll } from "@/api/accounts/adApi";
|
|
|
|
|
|
+import { listAd, getAd, toAuth, editAdMp, refreshByIds, deleteAdMp, getAdt, switchAcc, switchBook, switchPitcher, switchPlatform, getAdAppList, addApp, editApp, getAdAppListAll, cutPut } from "@/api/accounts/adApi";
|
|
import { getAllBook } from "@/api/system/books";
|
|
import { getAllBook } from "@/api/system/books";
|
|
import { getPeriodAll } from "@/api/accounts/period";
|
|
import { getPeriodAll } from "@/api/accounts/period";
|
|
import { allUser } from "@/api/system/user";
|
|
import { allUser } from "@/api/system/user";
|
|
@@ -782,7 +820,14 @@ export default {
|
|
tenTotal: 0,
|
|
tenTotal: 0,
|
|
loading: false,
|
|
loading: false,
|
|
tenAllList: [],
|
|
tenAllList: [],
|
|
- reLoading: false
|
|
|
|
|
|
+ reLoading: false,
|
|
|
|
+ putVisible: false,
|
|
|
|
+ putParamsForm: {},
|
|
|
|
+ putRulesType: {
|
|
|
|
+ putUserId: [
|
|
|
|
+ { required: true, message: '请选择投手', trigger: 'blur' }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
@@ -802,17 +847,8 @@ export default {
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
this.getAppListAll()
|
|
this.getAppListAll()
|
|
- // this.getList()
|
|
|
|
this.getAll()
|
|
this.getAll()
|
|
},
|
|
},
|
|
- watch: {
|
|
|
|
- "store.getters.btnPower": {
|
|
|
|
- handler(val) {
|
|
|
|
- console.log(222222, val);
|
|
|
|
- },
|
|
|
|
- immediate: true
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
methods: {
|
|
methods: {
|
|
/** 刷新服务商 */
|
|
/** 刷新服务商 */
|
|
refreshServer() {
|
|
refreshServer() {
|
|
@@ -852,6 +888,37 @@ export default {
|
|
}
|
|
}
|
|
this.openTenAddEditSwitch = true
|
|
this.openTenAddEditSwitch = true
|
|
},
|
|
},
|
|
|
|
+ /** 指派 */
|
|
|
|
+ puthangdle(row) {
|
|
|
|
+ this.putParamsForm = {
|
|
|
|
+ adAccountId: row.id,
|
|
|
|
+ putUserId: row.putUserId
|
|
|
|
+ }
|
|
|
|
+ this.putVisible = true
|
|
|
|
+ },
|
|
|
|
+ /** 批量指派 */
|
|
|
|
+ putsHandle() {
|
|
|
|
+ this.putParamsForm = {
|
|
|
|
+ adAccountId: this.ids.toString(),
|
|
|
|
+ putUserId: undefined
|
|
|
|
+ }
|
|
|
|
+ this.putVisible = true
|
|
|
|
+ },
|
|
|
|
+ /** 切换投手 */
|
|
|
|
+ submitPUt(type) {
|
|
|
|
+ this.$refs[type].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ cutPut(this.putParamsForm).then(res => {
|
|
|
|
+ if (res.data) {
|
|
|
|
+ this.msgSuccess('切换成功')
|
|
|
|
+ this.putParamsForm = {}
|
|
|
|
+ this.putVisible = false
|
|
|
|
+ this.getList()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
/** 确定新增 */
|
|
/** 确定新增 */
|
|
onSubmitTenSwitch() {
|
|
onSubmitTenSwitch() {
|
|
this.$refs['addTenqueryForm'].validate((valid) => {
|
|
this.$refs['addTenqueryForm'].validate((valid) => {
|
|
@@ -1113,18 +1180,12 @@ export default {
|
|
allUser().then(response => {
|
|
allUser().then(response => {
|
|
let data = response.data
|
|
let data = response.data
|
|
this.userAll = data.map((item) => {
|
|
this.userAll = data.map((item) => {
|
|
- return { id: item.userId, nickName: item.nickName }
|
|
|
|
|
|
+ return { id: item.userId, nickName: item.nickname }
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
/** 老的授权广告平台 */
|
|
/** 老的授权广告平台 */
|
|
handleWarrantOld() {
|
|
handleWarrantOld() {
|
|
- // getAdt({ callbackPage: window.location.origin + '/admin/adCode' }).then(response => {
|
|
|
|
- // if (response.data) {
|
|
|
|
- // localStorage.setItem('adType', 'oldType')
|
|
|
|
- // window.open(response.data)
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
toAuth({ adAppId: this.queryParams.adAppId, callbackPage: encodeURIComponent(window.location.origin + '/admin/adCode') }).then(res => {
|
|
toAuth({ adAppId: this.queryParams.adAppId, callbackPage: encodeURIComponent(window.location.origin + '/admin/adCode') }).then(res => {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
window.open(res.data)
|
|
window.open(res.data)
|