站点配置
This commit is contained in:
parent
b5dfa73ab8
commit
cbd0762bff
|
|
@ -2,6 +2,56 @@
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick" class="app-container">
|
<el-tabs v-model="activeName" @tab-click="handleClick" class="app-container">
|
||||||
<el-tab-pane label="物资配置" name="first" onclick="handleQuery">
|
<el-tab-pane label="物资配置" name="first" onclick="handleQuery">
|
||||||
<div>
|
<div>
|
||||||
|
<div class="section">
|
||||||
|
<el-header>库管员配置</el-header>
|
||||||
|
<el-main>
|
||||||
|
<el-checkbox-group v-model="selectedValues" class="checkbox-group">
|
||||||
|
<el-checkbox
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.id"
|
||||||
|
:value="item.id"
|
||||||
|
:checked="item.check"
|
||||||
|
class="checkbox-item">
|
||||||
|
{{ item.name }}
|
||||||
|
</el-checkbox>
|
||||||
|
</el-checkbox-group>
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>保存库管员配置</el-button
|
||||||
|
>
|
||||||
|
</el-main>
|
||||||
|
</div>
|
||||||
|
<div class="section">
|
||||||
|
<el-header>维修员配置</el-header>
|
||||||
|
<el-main>
|
||||||
|
<el-checkbox-group v-model="selectedValues" class="checkbox-group">
|
||||||
|
<el-checkbox
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.id"
|
||||||
|
:value="item.id"
|
||||||
|
:checked="item.check"
|
||||||
|
class="checkbox-item">
|
||||||
|
{{ item.name }}
|
||||||
|
</el-checkbox>
|
||||||
|
</el-checkbox-group>
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>保存维修员配置</el-button
|
||||||
|
>
|
||||||
|
</el-main>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="新购配置" name="second" >
|
||||||
|
<div>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<h4 class="form-header h4">库管员配置</h4>
|
<h4 class="form-header h4">库管员配置</h4>
|
||||||
<el-main>
|
<el-main>
|
||||||
|
|
@ -11,7 +61,8 @@
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.id"
|
:label="item.id"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
:checked="item.check">
|
:checked="item.check"
|
||||||
|
class="checkbox-item">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
|
@ -33,7 +84,8 @@
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.id"
|
:label="item.id"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
:checked="item.check">
|
:checked="item.check"
|
||||||
|
class="checkbox-item">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
|
@ -42,55 +94,7 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleQuery"
|
@click="handleQuery"
|
||||||
>保存维修员配置</el-button
|
>保存维修员2配置</el-button
|
||||||
>
|
|
||||||
</el-main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</el-tab-pane>
|
|
||||||
<el-tab-pane label="新购配置" name="second" >
|
|
||||||
<div>
|
|
||||||
<div class="app-container">
|
|
||||||
<h4 class="form-header h4">库管员配置</h4>
|
|
||||||
<el-main>
|
|
||||||
<el-checkbox-group v-model="selectedValues">
|
|
||||||
<el-checkbox
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.id"
|
|
||||||
:value="item.id"
|
|
||||||
:checked="item.check">
|
|
||||||
{{ item.name }}
|
|
||||||
</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
size="mini"
|
|
||||||
@click="handleQuery"
|
|
||||||
>保存库管员2配置</el-button
|
|
||||||
>
|
|
||||||
</el-main>
|
|
||||||
</div>
|
|
||||||
<div class="app-container">
|
|
||||||
<h4 class="form-header h4">维修员配置</h4>
|
|
||||||
<el-main>
|
|
||||||
<el-checkbox-group v-model="selectedValues">
|
|
||||||
<el-checkbox
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.id"
|
|
||||||
:value="item.id"
|
|
||||||
:checked="item.check">
|
|
||||||
{{ item.name }}
|
|
||||||
</el-checkbox>
|
|
||||||
</el-checkbox-group>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
icon="el-icon-plus"
|
|
||||||
size="mini"
|
|
||||||
@click="handleQuery"
|
|
||||||
>保存维修员配置2</el-button
|
|
||||||
>
|
>
|
||||||
</el-main>
|
</el-main>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -109,7 +113,22 @@ export default {
|
||||||
options: [
|
options: [
|
||||||
{ id: 1, name: 'Option 1', check: true },
|
{ id: 1, name: 'Option 1', check: true },
|
||||||
{ id: 2, name: 'Option 2', check: false },
|
{ id: 2, name: 'Option 2', check: false },
|
||||||
{ id: 3, name: 'Option 3', check: true }
|
{ id: 3, name: 'Option 3', check: true },
|
||||||
|
{ id: 4, name: 'Option 1', check: true },
|
||||||
|
{ id: 5, name: 'Option 2', check: false },
|
||||||
|
{ id: 6, name: 'Option 3', check: true },
|
||||||
|
{ id: 7, name: 'Option 1', check: true },
|
||||||
|
{ id: 8, name: 'Option 2', check: false },
|
||||||
|
{ id: 9, name: 'Option 3', check: true },
|
||||||
|
{ id: 1, name: 'Option 1', check: true },
|
||||||
|
{ id: 2, name: 'Option 2', check: false },
|
||||||
|
{ id: 3, name: 'Option 3', check: true },
|
||||||
|
{ id: 4, name: 'Option 1', check: true },
|
||||||
|
{ id: 5, name: 'Option 2', check: false },
|
||||||
|
{ id: 6, name: 'Option 3', check: true },
|
||||||
|
{ id: 7, name: 'Option 1', check: true },
|
||||||
|
{ id: 8, name: 'Option 2', check: false },
|
||||||
|
{ id: 9, name: 'Option 3', check: true }
|
||||||
],
|
],
|
||||||
// 记录选中的 id
|
// 记录选中的 id
|
||||||
selectedValues: []
|
selectedValues: []
|
||||||
|
|
@ -143,20 +162,66 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* .section {
|
.section {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
} */
|
}
|
||||||
/* .el-header, .el-footer {
|
|
||||||
background-color: #e1ebf8;
|
.el-header, .el-footer {
|
||||||
|
background-color: #f8f8f9;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
width: 80%;
|
||||||
line-height: 60px;
|
line-height: 60px;
|
||||||
} */
|
border: 1px solid #dfe6ec;
|
||||||
.el-main {
|
}
|
||||||
|
|
||||||
|
.el-main {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: #333;
|
color: black;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
width: 80%;
|
||||||
|
height: 300px;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: 1px solid #dfe6ec;
|
||||||
|
padding: 10px;
|
||||||
line-height: 120px;
|
line-height: 120px;
|
||||||
}
|
position: sticky;
|
||||||
/* 这里可以写自定义样式 */
|
font-weight: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-checkbox {
|
||||||
|
color: #606266;
|
||||||
|
font-weight: 200;
|
||||||
|
font-size: 2px;
|
||||||
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
margin-right: 30px;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 调整checkbox的样式 */
|
||||||
|
::v-deep .checkbox-group {
|
||||||
|
display: flex;
|
||||||
|
width: 80%;
|
||||||
|
flex-wrap: wrap; /* 使复选框换行 */
|
||||||
|
gap: 1px; /* 间距 */
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .checkbox-item {
|
||||||
|
display: inline-block;
|
||||||
|
width: calc(10% - 1px); /* 每个复选框的宽度,去除间距 */
|
||||||
|
vertical-align: top; /* 顶部对齐 */
|
||||||
|
margin-bottom: 2px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -503,7 +503,14 @@
|
||||||
|
|
||||||
getTreeselect(){
|
getTreeselect(){
|
||||||
getListTree().then(response=>{
|
getListTree().then(response=>{
|
||||||
this.treeOptions = response.data;
|
this.treeOptions = [
|
||||||
|
{
|
||||||
|
label: '配件类型树',
|
||||||
|
id: 0,
|
||||||
|
children: response.data,
|
||||||
|
level: 0,
|
||||||
|
},
|
||||||
|
]
|
||||||
if(this.treeOptions.length>0){
|
if(this.treeOptions.length>0){
|
||||||
const firstNode = this.treeOptions[0];
|
const firstNode = this.treeOptions[0];
|
||||||
this.queryParams.id = firstNode.id
|
this.queryParams.id = firstNode.id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue