代码调整

This commit is contained in:
joylink_cuiweidong 2022-09-30 14:46:02 +08:00
parent 1fa85333ad
commit 91c804b2ff
2 changed files with 67 additions and 1 deletions

View File

@ -0,0 +1,56 @@
<template>
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogVisible" width="500px" :before-close="handleClose" center :close-on-click-modal="false">
<el-form ref="ruleForm" :model="formModel" :rules="rules" label-width="130px">
{{}}
<!-- -->
</el-form>
<span slot="footer" class="dialog-footer">
<el-button v-loading="loading" type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
<el-button @click="handleClose">{{ $t('global.cancel') }}</el-button>
</span>
</el-dialog>
</template>
<script>
import { updateFrontProjectConfig } from '@/api/projectConfig';
export default {
name:'FrontProjectConfig',
data() {
return {
dialogVisible: false,
loading: false,
formModel:{
title:'',
loginPath:''
}
};
},
methods:{
doShow(row) {
this.dialogVisible = true;
if (row) {
// this.formModel.title = row.id;
// this.formModel.markKey = row.markKey;
// this.formModel.project = row.project;
}
},
handleClose() {
this.formModel = {
title:'',
loginPath:''
};
this.$refs.ruleForm.resetFields();
this.dialogVisible = false;
this.loading = false;
},
doSave() {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
this.loading = true;
const data = Object.assign({}, this.formModel);
}
});
}
}
};
</script>

View File

@ -2,15 +2,18 @@
<div>
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
<add-project-config ref="addProjectConfig" @reloadTable="reloadTable" />
<front-project-config ref="frontProjectConfig" />
</div>
</template>
<script>
import { getFrontProjectConfigByPage, deleteFrontProjectConfig, getBackProjectConfigList} from '@/api/projectConfig';
import AddProjectConfig from './add';
import FrontProjectConfig from './frontConfig';
export default {
name:'FrontProjectConfigManage',
components: {
AddProjectConfig
AddProjectConfig,
FrontProjectConfig
},
data() {
return {
@ -66,6 +69,10 @@ export default {
name: this.$t('global.delete'),
handleClick: this.handleDelete,
type: 'danger'
},
{
name: '前端配置',
handleClick: this.handleFrontVonfig
}
]
}
@ -124,6 +131,9 @@ export default {
});
});
},
handleFrontVonfig(index, row) {
this.$refs.frontProjectConfig.doShow(row);
},
reloadTable() {
this.queryList.reload();
}