提交 44921cb6 authored 作者: wangjiahao's avatar wangjiahao

Merge remote-tracking branch 'origin/main' into main

...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
icon: '圖標', icon: '圖標',
all: '全部', all: '全部',
enable: '啟用', enable: '啟用',
disable: '用', disable: '用',
yes: '是', yes: '是',
no: '否', no: '否',
reset: '重置', reset: '重置',
......
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
icon: '图标', icon: '图标',
all: '全部', all: '全部',
enable: '启用', enable: '启用',
disable: '用', disable: '用',
yes: '是', yes: '是',
no: '否', no: '否',
reset: '重置', reset: '重置',
......
...@@ -28,6 +28,7 @@ export default { ...@@ -28,6 +28,7 @@ export default {
/* topbar 56 */ /* topbar 56 */
min-height: calc(100vh - 56px); min-height: calc(100vh - 56px);
width: 100%; width: 100%;
height: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
...@@ -37,6 +38,7 @@ export default { ...@@ -37,6 +38,7 @@ export default {
} }
.ms-main-container { .ms-main-container {
height: 100%;
padding: 0; padding: 0;
} }
</style> </style>
......
...@@ -71,9 +71,12 @@ export default { ...@@ -71,9 +71,12 @@ export default {
const arr = obj[this.fieldName] const arr = obj[this.fieldName]
if (arr.length === 0) { if (arr.length === 0) {
this.initColumnLabel() this.initColumnLabel()
return } else {
this.columnLabel = this.filter_options[arr[0]].text
} }
this.columnLabel = this.filter_options[arr[0]].text this.$nextTick(() => {
this.setCheckNodes()
})
}, },
save() { save() {
const rows = this.$refs.table.store.states.selection const rows = this.$refs.table.store.states.selection
......
...@@ -8,8 +8,15 @@ ...@@ -8,8 +8,15 @@
:row-style="{height: '35px'}" :row-style="{height: '35px'}"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column :column-key="fieldName" :label="columnLabel" :prop="fieldName" filter-placement="right-start" <el-table-column
:filters="filter_options" :filter-multiple="false" :filter-method="filterHandler" /> :column-key="fieldName"
:label="columnLabel"
:prop="fieldName"
filter-placement="right-start"
:filters="filter_options"
:filter-multiple="false"
:filter-method="filterHandler"
/>
<el-table-column type="selection" fixd /> <el-table-column type="selection" fixd />
</el-table> </el-table>
</div> </div>
...@@ -56,7 +63,7 @@ export default { ...@@ -56,7 +63,7 @@ export default {
userLists(1, 0, param).then(response => { userLists(1, 0, param).then(response => {
const data = response.data const data = response.data
// this.total = data.itemCount // this.total = data.itemCount
this.data = data.listObject this.data = data.listObject.filter(ele => ele.id !== this.$store.getters.user.userId)
this.queryShareNodeIds() this.queryShareNodeIds()
}) })
}, },
...@@ -71,9 +78,12 @@ export default { ...@@ -71,9 +78,12 @@ export default {
const arr = obj[this.fieldName] const arr = obj[this.fieldName]
if (arr.length === 0) { if (arr.length === 0) {
this.initColumnLabel() this.initColumnLabel()
return } else {
this.columnLabel = this.filter_options[arr[0]].text
} }
this.columnLabel = this.filter_options[arr[0]].text this.$nextTick(() => {
this.setCheckNodes()
})
}, },
save() { save() {
......
...@@ -159,6 +159,7 @@ export default { ...@@ -159,6 +159,7 @@ export default {
margin-top: 5%; margin-top: 5%;
flex-direction: row; flex-direction: row;
width: 640px; width: 640px;
min-width: 640px;
height: 400px; height: 400px;
position: relative; position: relative;
>>>div.el-card__header { >>>div.el-card__header {
......
<template> <template>
<layout-content :header="formType=='add' ? $t('organization.create') : $t('organization.modify')" back-name="system-dept"> <layout-content :header="formType=='add' ? $t('organization.create') : $t('organization.modify')" back-name="system-dept" style="height: 100%;">
<el-form ref="deptForm" :model="form" :rules="rule" size="small" label-width="auto" label-position="right"> <el-form ref="deptForm" :model="form" :rules="rule" size="small" label-width="auto" label-position="right">
<el-form-item :label="$t('organization.name')" prop="name"> <el-form-item :label="$t('organization.name')" prop="name">
<el-input v-model="form.name" /> <el-input v-model="form.name" />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论