|
@@ -21,7 +21,8 @@
|
|
|
v-for="appModel in optionsAll"
|
|
|
:key="appModel.userId + new Date().getTime()"
|
|
|
:value="appModel.userId"
|
|
|
- >{{ appModel.realName }}</a-select-option>
|
|
|
+ >{{ appModel.realName }}</a-select-option
|
|
|
+ >
|
|
|
</a-select>
|
|
|
<a-input placeholder="请输入所属人" v-model="queryParam.userName" v-else></a-input>
|
|
|
</a-form-item>
|
|
@@ -50,10 +51,15 @@
|
|
|
:filterOption="filterOption"
|
|
|
>
|
|
|
<a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
|
|
|
- {{ item.mediaId == "1" ? '头条' :item.mediaId == "2"? '快手':item.mediaId == "3"?'头条内广':'快手内广'
|
|
|
- }} {{
|
|
|
- item.projectName
|
|
|
- }}
|
|
|
+ {{
|
|
|
+ item.mediaId == '1'
|
|
|
+ ? '头条'
|
|
|
+ : item.mediaId == '2'
|
|
|
+ ? '快手'
|
|
|
+ : item.mediaId == '3'
|
|
|
+ ? '头条内广'
|
|
|
+ : '快手内广'
|
|
|
+ }} {{ item.projectName }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
@@ -64,14 +70,9 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
+ <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
|
- <a-button
|
|
|
- type="primary"
|
|
|
- @click="searchReset"
|
|
|
- icon="reload"
|
|
|
- style="margin-left: 8px"
|
|
|
- >重置</a-button>
|
|
|
+ <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -95,12 +96,16 @@
|
|
|
<span slot="accountStatus" slot-scope="text, record">
|
|
|
<!-- {{ text == 0 ? '启用' : '禁用' }} -->
|
|
|
|
|
|
- <a-switch
|
|
|
- v-model="record.accountStatus == 0 ? true : false"
|
|
|
- @change="onChangeSwitch(record)"
|
|
|
- />
|
|
|
+ <a-switch v-model="record.accountStatus == 0 ? true : false" @change="onChangeSwitch(record)" />
|
|
|
</span>
|
|
|
<span slot="mediaId" slot-scope="text">{{ text == 1 ? '头条' : '快手' }}</span>
|
|
|
+
|
|
|
+ <div slot="authName" slot-scope="text, record">
|
|
|
+ <span>{{ text }}</span>
|
|
|
+ <a-button size="small" @click="renew(record)" style="float: right" :loading="record.showVideo"> 更新 </a-button>
|
|
|
+ <!-- showVideo -->
|
|
|
+ </div>
|
|
|
+
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
<a @click="account(record)">转移项目</a>
|
|
|
|
|
@@ -111,11 +116,7 @@
|
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
|
|
|
<a-divider type="vertical" v-show="roleCode == 'admin'" />
|
|
|
- <a-popconfirm
|
|
|
- title="确定删除吗?"
|
|
|
- @confirm="() => handleDelete(record.id)"
|
|
|
- v-show="roleCode == 'admin'"
|
|
|
- >
|
|
|
+ <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)" v-show="roleCode == 'admin'">
|
|
|
<a>删除</a>
|
|
|
</a-popconfirm>
|
|
|
</span>
|
|
@@ -126,13 +127,7 @@
|
|
|
<!-- 表单区域 -->
|
|
|
<userAllocation-modal ref="modalForm" @ok="modalFormOk"></userAllocation-modal>
|
|
|
<!-- 添加项目成员 -->
|
|
|
- <a-modal
|
|
|
- title="账户转让"
|
|
|
- v-model="visibleAdd"
|
|
|
- @ok="handleOkAdd"
|
|
|
- :confirmLoading="confirmLoading"
|
|
|
- :width="800"
|
|
|
- >
|
|
|
+ <a-modal title="账户转让" v-model="visibleAdd" @ok="handleOkAdd" :confirmLoading="confirmLoading" :width="800">
|
|
|
<a-form :form="form">
|
|
|
<a-form-item
|
|
|
label="转户人"
|
|
@@ -144,14 +139,12 @@
|
|
|
showSearch
|
|
|
optionFilterProp="children"
|
|
|
:filterOption="filterOption"
|
|
|
- style="width:100%"
|
|
|
+ style="width: 100%"
|
|
|
disabled
|
|
|
>
|
|
|
- <a-select-option
|
|
|
- :value="item.userId"
|
|
|
- v-for="(item, index) of options"
|
|
|
- :key="index"
|
|
|
- >{{ item.realName }}</a-select-option>
|
|
|
+ <a-select-option :value="item.userId" v-for="(item, index) of options" :key="index">{{
|
|
|
+ item.realName
|
|
|
+ }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
<a-form-item
|
|
@@ -165,13 +158,11 @@
|
|
|
showSearch
|
|
|
optionFilterProp="children"
|
|
|
:filterOption="filterOption"
|
|
|
- style="width:100%"
|
|
|
+ style="width: 100%"
|
|
|
>
|
|
|
- <a-select-option
|
|
|
- :value="item.userId"
|
|
|
- v-for="(item, index) of options"
|
|
|
- :key="index"
|
|
|
- >{{ item.realName }}</a-select-option>
|
|
|
+ <a-select-option :value="item.userId" v-for="(item, index) of options" :key="index">{{
|
|
|
+ item.realName
|
|
|
+ }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
<a-form-item
|
|
@@ -221,7 +212,7 @@
|
|
|
<a-select
|
|
|
v-decorator="[
|
|
|
'projectId', // 给表单赋值或拉取表单时,该input对应的key
|
|
|
- { rules: [{ required: true, message: '请选择项目!' }] }
|
|
|
+ { rules: [{ required: true, message: '请选择项目!' }] },
|
|
|
]"
|
|
|
showSearch
|
|
|
optionFilterProp="children"
|
|
@@ -230,7 +221,13 @@
|
|
|
>
|
|
|
<a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
|
|
|
{{ item.projectName }} {{
|
|
|
- item.mediaId == "1" ? '头条' :item.mediaId == "2"? '快手':item.mediaId == "3"?'头条内广':'快手内广'
|
|
|
+ item.mediaId == '1'
|
|
|
+ ? '头条'
|
|
|
+ : item.mediaId == '2'
|
|
|
+ ? '快手'
|
|
|
+ : item.mediaId == '3'
|
|
|
+ ? '头条内广'
|
|
|
+ : '快手内广'
|
|
|
}} {{ item.advertiserName }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
@@ -243,7 +240,7 @@
|
|
|
<a-select
|
|
|
v-decorator="[
|
|
|
'projectNewId', // 给表单赋值或拉取表单时,该input对应的key
|
|
|
- { rules: [{ required: true, message: '请选择项目!' }] }
|
|
|
+ { rules: [{ required: true, message: '请选择项目!' }] },
|
|
|
]"
|
|
|
showSearch
|
|
|
optionFilterProp="children"
|
|
@@ -251,7 +248,13 @@
|
|
|
>
|
|
|
<a-select-option :value="item.projectId" v-for="item of dataElse" :key="item.id">
|
|
|
{{ item.projectName }} {{
|
|
|
- item.mediaId == "1" ? '头条' :item.mediaId == "2"? '快手':item.mediaId == "3"?'头条内广':'快手内广'
|
|
|
+ item.mediaId == '1'
|
|
|
+ ? '头条'
|
|
|
+ : item.mediaId == '2'
|
|
|
+ ? '快手'
|
|
|
+ : item.mediaId == '3'
|
|
|
+ ? '头条内广'
|
|
|
+ : '快手内广'
|
|
|
}} {{ item.advertiserName }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
@@ -327,6 +330,9 @@ export default {
|
|
|
title: '授权名称',
|
|
|
align: 'center',
|
|
|
dataIndex: 'authName',
|
|
|
+ scopedSlots: {
|
|
|
+ customRender: 'authName',
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '平台类型',
|
|
@@ -397,6 +403,20 @@ export default {
|
|
|
this.getParticipateList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ renew(item) {
|
|
|
+ console.log(item)
|
|
|
+ item.showVideo = true
|
|
|
+ getAction('/ctop/userAllocation/updateAuthName', { accountId: item.accountId, mediaId: item.mediaId }).then(
|
|
|
+ (res) => {
|
|
|
+ if (res.success) {
|
|
|
+ this.loadData()
|
|
|
+ } else {
|
|
|
+ this.$message.error('更新数据失败,请稍后重试!!!')
|
|
|
+ item.showVideo = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+ },
|
|
|
moment,
|
|
|
search(value) {
|
|
|
this.optionsAll = []
|
|
@@ -475,8 +495,6 @@ export default {
|
|
|
}, 0)
|
|
|
},
|
|
|
handleOkAccount(e) {
|
|
|
-
|
|
|
-
|
|
|
this.formAccount.validateFieldsAndScroll((err, values) => {
|
|
|
if (err) {
|
|
|
// 这里做逻辑处理
|
|
@@ -500,8 +518,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleOkAdd(e) {
|
|
|
-
|
|
|
-
|
|
|
this.form.validateFieldsAndScroll((err, values) => {
|
|
|
if (err) {
|
|
|
// 这里做逻辑处理
|