优化页面,修改测试问题
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
:footer-style="{ textAlign: 'right' }"
|
||||
destroyOnClose
|
||||
@close="onClose">
|
||||
<div class="editTitle"><div class="title">编辑</div></div>
|
||||
<a-form
|
||||
ref="formRef"
|
||||
:model="formState"
|
||||
@@ -381,8 +382,8 @@
|
||||
};
|
||||
// 新增/编辑
|
||||
const formRef = ref();
|
||||
const labelCol = { span: 6 };
|
||||
const wrapperCol = { span: 18 };
|
||||
const labelCol = { span: 4 };
|
||||
const wrapperCol = { span: 20 };
|
||||
const formState = ref({
|
||||
orgId: orgId.value,
|
||||
});
|
||||
@@ -396,7 +397,6 @@
|
||||
// 点击新增按钮
|
||||
const addNewData = () => {
|
||||
visible.value = true;
|
||||
// getNewTable();
|
||||
};
|
||||
// 获取新增页面的列表
|
||||
const selectedRowKeys = ref([]);
|
||||
@@ -419,11 +419,15 @@
|
||||
const selectData = ref();
|
||||
const keyChange = () => {
|
||||
if (selectData.value === '') {
|
||||
queryData.value.emissionSources = emissionSources.value;
|
||||
if (emissionSources.value) {
|
||||
queryData.value.emissionSources = emissionSources.value;
|
||||
} else {
|
||||
queryData.value.emissionSources = '';
|
||||
}
|
||||
} else {
|
||||
queryData.value.emissionSources = selectData.value;
|
||||
getNewTable();
|
||||
}
|
||||
getNewTable();
|
||||
};
|
||||
// 点击编辑按钮
|
||||
const editData = (record) => {
|
||||
@@ -490,13 +494,14 @@
|
||||
visible.value = false;
|
||||
selectedRowKeys.value = [];
|
||||
formState.value = {};
|
||||
selectData.value = '';
|
||||
formRef.value.resetFields();
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.main {
|
||||
background-color: @ns-content-bg;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
height: 100%;
|
||||
padding: 16px;
|
||||
@@ -554,6 +559,10 @@
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #e9e9e9;
|
||||
}
|
||||
.editTitle {
|
||||
font-weight: bold;
|
||||
user-select: text;
|
||||
}
|
||||
.title {
|
||||
text-align: left;
|
||||
height: 32px;
|
||||
@@ -588,6 +597,9 @@
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
:deep(.ant-table-container) {
|
||||
padding: unset;
|
||||
}
|
||||
</style>
|
||||
<style scoped>
|
||||
th.column-money,
|
||||
|
Reference in New Issue
Block a user