|
@@ -254,7 +254,8 @@
|
|
|
<!-- <el-button size="mini" type="danger" v-if="scope.row.roleName != $t('role.superAdministrator')" @click="deleteUser(scope.row)">删除</el-button> -->
|
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != $t('role.superAdministrator') && scope.row.isActive==1" @click="showDeactiveDialog(scope.row)">{{ $t('ting-yong') }}</el-button>
|
|
|
<el-button size="mini" type="success" v-if="scope.row.roleName != $t('role.superAdministrator') && scope.row.isActive==0" @click="setActive(scope.row, 1)">{{ $t('enable') }}</el-button>
|
|
|
- </template>
|
|
|
+ <el-button size="mini" type="success" v-if="scope.row.roleName != $t('role.superAdministrator') && scope.row.activeInfoByUser == 1" @click="transferActiveDialog(scope.row)">转让</el-button>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
@@ -810,6 +811,18 @@
|
|
|
<el-button type="primary" @click="newSyncWithCorpWx">开始同步</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="转移到"
|
|
|
+ :visible.sync="transferActiveDialogFlag"
|
|
|
+ width="20%">
|
|
|
+ <span style="margin-left:25px;margin-right:5px;color:#606266;">转移到</span>
|
|
|
+ <selectCat v-if="user.userNameNeedTranslate == 1" :subject="users" :subjectId="transferActive.takeoverId" :distinction="'23'" :clearable="true" @selectCal="selectCal"></selectCat>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="transferActiveDialogFlag = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="transferActiveMethod">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -877,6 +890,11 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ transferActiveDialogFlag:false,
|
|
|
+ transferActive:{
|
|
|
+ handoverId:null,
|
|
|
+ takeoverId:null
|
|
|
+ },
|
|
|
integer: '0',
|
|
|
workingHoursDialog: false,
|
|
|
workingHoursRadio: '1',
|
|
@@ -1054,7 +1072,7 @@ export default {
|
|
|
{
|
|
|
value: "0",
|
|
|
label: this.$t('ting-yong'),
|
|
|
- },
|
|
|
+ }
|
|
|
],
|
|
|
status: "1",
|
|
|
role: "",
|
|
@@ -1125,6 +1143,50 @@ export default {
|
|
|
that = this;
|
|
|
},
|
|
|
methods: {
|
|
|
+ statesPush(){
|
|
|
+ if(this.user.corpwxUserid != null && this.user.userNameNeedTranslate == 1){
|
|
|
+ var state = {value: "2",label: "可转让"}
|
|
|
+ this.states.push(state);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //继承账号弹窗
|
|
|
+ transferActiveDialog(row){
|
|
|
+ this.transferActiveDialogFlag = true;
|
|
|
+ this.transferActive.handoverId = row.id;
|
|
|
+ },
|
|
|
+ //继承账号
|
|
|
+ transferActiveMethod(){
|
|
|
+ if(this.transferActive.takeoverId == null){
|
|
|
+ this.$message({
|
|
|
+ message: "请选择接收人",
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.transferActiveDialogFlag = false;
|
|
|
+ var handoverId = this.transferActive.handoverId
|
|
|
+ var takeoverId = this.transferActive.takeoverId
|
|
|
+ this.http.post('/wx-corp-info/batchTransferLicense', {handoverId,takeoverId},
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
// 调整
|
|
|
adjustPositionClick() {
|
|
|
this.adjustPosition = !this.adjustPosition
|
|
@@ -3541,6 +3603,9 @@ export default {
|
|
|
} else if(obj.distinction == '22') {
|
|
|
console.log(obj, '返回')
|
|
|
this.moveReportUserId = obj.id
|
|
|
+ } else if(obj.distinction == '23') {
|
|
|
+ console.log(obj, '返回qwe')
|
|
|
+ this.transferActive.takeoverId = obj.id
|
|
|
}
|
|
|
},
|
|
|
// 企业微信可见范围设置
|
|
@@ -3648,6 +3713,7 @@ export default {
|
|
|
if(this.user.corpwxUserid != null && this.user.timeType.saasSyncContact == 1) {
|
|
|
this.getWxManager()
|
|
|
}
|
|
|
+ this.statesPush();
|
|
|
// 获取企业微信的参数
|
|
|
// if(this.user.companyId == '1081' || this.user.companyId == '7') {
|
|
|
// this.agentConfig()
|