Commit fb69124b authored by danfuman's avatar danfuman

修改

parent 76003b2f
...@@ -37,6 +37,14 @@ export function getTenantPackage(param) { ...@@ -37,6 +37,14 @@ export function getTenantPackage(param) {
params: param params: param
}) })
} }
//同步企业方案
export function syncTenantPackage(param) {
return request({
url: '/system/tenant/syncTenantPackage',
method: 'get',
params: param
})
}
//租户列表 //租户列表
export function getTenantList(param) { export function getTenantList(param) {
......
...@@ -217,11 +217,11 @@ ...@@ -217,11 +217,11 @@
:visible.sync="dialogVisible1" :visible.sync="dialogVisible1"
custom-class="sync" custom-class="sync"
width="400px"> width="400px">
<p><i class="el-icon-warning-outline" style="margin-right: 8px;"></i>是否确认同步?</p> <p style="font-size: 16px;"><i class="el-icon-warning-outline" style="margin-right: 8px;"></i>是否确认同步?</p>
<p>温馨提示:此操作可能会影响正在使用的用户,建议合理安排同步时间</p> <p>温馨提示:此操作可能会影响正在使用的用户,建议合理安排同步时间</p>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible1 = false">取消</el-button> <el-button @click="dialogVisible1 = false">取消</el-button>
<el-button type="primary" @click="confirm()" >同步</el-button> <el-button type="primary" @click="handleConfirm()" >同步</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -234,7 +234,8 @@ ...@@ -234,7 +234,8 @@
getTenant, getTenant,
getTenantList, getTenantList,
saveTenant, saveTenant,
selectTenant selectTenant,
syncTenantPackage
} from '@/api/enterpriseManagement/enterpriseManagement' } from '@/api/enterpriseManagement/enterpriseManagement'
export default { export default {
...@@ -304,6 +305,7 @@ ...@@ -304,6 +305,7 @@
}, },
//企业方案列表 //企业方案列表
packageList:[], packageList:[],
syncItem:{}
}; };
}, },
created() { created() {
...@@ -380,9 +382,21 @@ ...@@ -380,9 +382,21 @@
this.title = "添加企业"; this.title = "添加企业";
this.getpack() this.getpack()
}, },
/** 同步弹窗显示 */
handleSync(row) {
this.dialogVisible1=true;
this.syncItem=row;
},
/** 同步按钮操作 */ /** 同步按钮操作 */
handleSync() { handleConfirm() {
this.dialogVisible1=true let _this = this
syncTenantPackage({tenantId:this.syncItem.tenantId,packageId:this.syncItem.packageId}).then(res => {
if(res.code === 200){
_this.$message.success(res.msg);
this.dialogVisible1=false;
}
});
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
......
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