Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart-office-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart-office-platform
Commits
9b4a5b3e
Commit
9b4a5b3e
authored
Jan 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
992dff22
20ebfd64
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
smart-office-manager-ui/admin/src/components/Table.vue
smart-office-manager-ui/admin/src/components/Table.vue
+2
-0
smart-office-manager-ui/admin/src/views/basic/set/drawershow.vue
...ffice-manager-ui/admin/src/views/basic/set/drawershow.vue
+19
-2
smart-office-manager-ui/admin/src/views/basic/set/list.vue
smart-office-manager-ui/admin/src/views/basic/set/list.vue
+13
-1
No files found.
smart-office-manager-ui/admin/src/components/Table.vue
View file @
9b4a5b3e
...
...
@@ -12,6 +12,7 @@
<slot
name=
"table-head-left"
></slot>
<slot
name=
"table-head-center"
>
<el-button
v-show=
"isshowadd"
v-if=
"isShowButton('notAdd')"
type=
"primary"
icon=
"el-icon-plus"
...
...
@@ -284,6 +285,7 @@ export default {
loading
:
this
.
config
.
loading
,
showSearch
:
this
.
isShowSearch
(
this
.
$route
.
query
),
showType
:
"
table
"
,
isshowadd
:
true
};
},
};
...
...
smart-office-manager-ui/admin/src/views/basic/set/drawershow.vue
View file @
9b4a5b3e
...
...
@@ -109,7 +109,11 @@
>
</el-col>
</el-row>
<el-row>
<div
class=
"tishi"
>
提示:设置状态应中文名在前,英文名在后,用“_”隔开。例如:在线_online
</div>
</el-row>
<el-table
:data=
"basicStatusList"
:row-class-name=
"rowBasicStatusIndex"
...
...
@@ -128,6 +132,14 @@
/>
</
template
>
</el-table-column>
<el-table-column
label=
"自定义颜色"
prop=
"statusColor"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.statusColor"
placeholder=
"请输入状态颜色值"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"状态颜色值"
prop=
"statusColor"
>
<
template
slot-scope=
"scope"
>
<el-color-picker
...
...
@@ -146,7 +158,6 @@
</el-form>
</el-drawer>
</template>
<
script
>
import
form
from
"
@/assets/mixins/formdialog
"
;
export
default
{
...
...
@@ -300,3 +311,9 @@ export default {
},
};
</
script
>
<
style
scoped
>
.tishi
{
padding
:
10px
;
}
</
style
>
\ No newline at end of file
smart-office-manager-ui/admin/src/views/basic/set/list.vue
View file @
9b4a5b3e
<
template
>
<div
class=
"page"
>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
ref=
"layoutTable"
>
</LayoutTable>
...
...
@@ -52,6 +52,18 @@
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
watch
:{
'
tableData
'
(
newval
){
if
(
newval
.
data
&&
newval
.
data
.
length
>
0
)
{
this
.
$refs
.
layoutTable
.
isshowadd
=
false
this
.
$forceUpdate
()
}
else
{
this
.
$refs
.
layoutTable
.
isshowadd
=
true
}
},
deep
:
true
,
},
data
()
{
return
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment