删除部门回显处理:1.流程列表详情2.周期任务详情3.系统运维新增

main
xuechunyuan 3 years ago
parent 23300a9e9d
commit 7f06a938e1
  1. 1
      src/const/maintenance/basics.js
  2. 2
      src/permission.js
  3. 14
      src/views/maintenance/system.vue
  4. 3
      src/views/plugin/workflow/process/components/detail.vue

@ -148,6 +148,7 @@ export const tableOption = {
label: website.adminDept, label: website.adminDept,
prop: "deptName", prop: "deptName",
align: "left", align: "left",
span: 8,
overHidden: true, overHidden: true,
addDisplay: false, addDisplay: false,
editDisplay: false, editDisplay: false,

@ -27,7 +27,7 @@ router.beforeEach((to, from, next) => {
next({ path: '/newlogin' }) next({ path: '/newlogin' })
}) })
} else { } else {
console.log('登录重新刷新======',to,from) // console.log('登录重新刷新======',to,from)
const value = to.query.src || to.fullPath; const value = to.query.src || to.fullPath;
const label = to.query.name || to.name; const label = to.query.name || to.name;
const meta = to.meta || router.$avueRouter.meta || {}; const meta = to.meta || router.$avueRouter.meta || {};

@ -327,6 +327,7 @@ export default {
dataBaseIp, dataBaseIp,
dataBasePort, dataBasePort,
deptId, deptId,
deptName,
systemName, systemName,
type type
} = tmp } = tmp
@ -353,6 +354,19 @@ export default {
this.form.company = company; this.form.company = company;
this.form.companyName = companyName; this.form.companyName = companyName;
} }
//
const _idx2 = this.findObject(this.option.column,"deptId").dicData.findIndex(item => item.id == deptId);
console.log('_idx2',_idx2,this.findObject(this.option.column,"deptId").dicData,deptId,deptName)
if(_idx2 > -1){
this.findObject(this.option.column,"deptId").display = true;
this.findObject(this.option.column,"deptName").addDisplay = false;
}
else{
this.findObject(this.option.column,"deptId").display = false;
this.findObject(this.option.column,"deptName").addDisplay = true;
this.findObject(this.option.column,"deptName").disabled = true;
this.form.deptName = deptName;
}
this.form.dataBaseIp = dataBaseIp; this.form.dataBaseIp = dataBaseIp;
this.form.dataBasePort = dataBasePort; this.form.dataBasePort = dataBasePort;
this.form.deptId = deptId; this.form.deptId = deptId;

@ -572,7 +572,8 @@ export default {
const deptDate = await getDepts({ id: yunweigongsi }); const deptDate = await getDepts({ id: yunweigongsi });
const guanlibumen = this.findObject(option.column, "guanlibumen"); const guanlibumen = this.findObject(option.column, "guanlibumen");
guanlibumen.dicData = deptDate.data.data; guanlibumen.dicData = deptDate.data.data;
//-
variables.guanlibumen = variables.$guanlibumen;
// //

Loading…
Cancel
Save