|
@@ -181,35 +181,27 @@
|
|
|
permList: [],
|
|
|
});
|
|
|
}
|
|
|
- handlestd(){
|
|
|
- createConfirm({
|
|
|
- title: '提示',
|
|
|
- content: '该用户已属其他平台,确定为其更换平台?',
|
|
|
- onOk: async () => {
|
|
|
- handleOk()
|
|
|
- },
|
|
|
- });
|
|
|
+ function handlestd(){
|
|
|
+ if(active.value.platformId){
|
|
|
+ createConfirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '该用户已属其他平台,确定为其更换平台?',
|
|
|
+ onOk: async () => {
|
|
|
+ handleOk()
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ handleOk()
|
|
|
+ }
|
|
|
}
|
|
|
async function handleOk() {
|
|
|
- createConfirm({
|
|
|
- title: '提示',
|
|
|
- content: '该用户已属其他平台,确定为其更换平台?',
|
|
|
- onOk: async () => {
|
|
|
let res = await jyUserPlatformadd({
|
|
|
- id: modelRef,
|
|
|
+ id: modelRef.value,
|
|
|
});
|
|
|
context && context.emit('ok', res);
|
|
|
createMessage.success(t('common.optSuccess'));
|
|
|
closeModal();
|
|
|
resetFields();
|
|
|
- sceneCopy({ num: record.num }).then((res) => {
|
|
|
- message.success({
|
|
|
- content: '复制成功',
|
|
|
- });
|
|
|
- reload();
|
|
|
- });
|
|
|
- },
|
|
|
- });
|
|
|
}
|
|
|
function handleChange(value, b ) {
|
|
|
active.value = b;
|
|
@@ -227,6 +219,7 @@
|
|
|
options,
|
|
|
handleChange,
|
|
|
active,
|
|
|
+ handlestd,
|
|
|
};
|
|
|
},
|
|
|
});
|