Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2022-03-22 17:16:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
966e641aa432eec4929456741ff4d4c38d7c6509
966e641a
1 parent
ca6c7f21
代码更新
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
16 deletions
src/assets/styles/FedEx.scss
src/layout/components/Navbar.vue
src/views/allocationConfig/cargoAllocation/info.vue
src/views/basicInformation/queryCargo/index.vue
src/views/systemConfig/userConfig/drawer.vue
src/views/systemConfig/userConfig/index.vue
src/assets/styles/FedEx.scss
View file @
966e641
...
...
@@ -84,7 +84,7 @@
padding-bottom
:
5px
;
.formItem
{
width
:
100%
;
max-width
:
310px
;
//
max-width: 310px;
}
}
...
...
src/layout/components/Navbar.vue
View file @
966e641
...
...
@@ -33,8 +33,9 @@
class="avatar-container right-menu-item hover-effect"
trigger="click"
>
<div class="avatar-wrapper">
<img :src="avatar" class="user-avatar" />
<div class="userName-wrapper">
<!-- <img :src="avatar" class="user-avatar" /> -->
<span>欢迎!{{userName}}</span>
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="logout">
...
...
@@ -69,12 +70,14 @@ export default {
},
data() {
return {
userName:"",
portNameList: [],
locale: "zh",
};
},
created() {
this.portNameList = this.$store.state.user.portNames;
this.userName = this.$store.state.user.name;
},
computed: {
...mapGetters(["sidebar", "avatar", "device"]),
...
...
@@ -207,12 +210,11 @@ export default {
}
.avatar-container {
text-align: center;
margin-right: 15px;
.avatar-wrapper {
margin-top: 5px;
.userName-wrapper {
position: relative;
font-size:14px;
.user-avatar {
cursor: pointer;
width: 40px;
...
...
src/views/allocationConfig/cargoAllocation/info.vue
View file @
966e641
...
...
@@ -28,6 +28,7 @@
:label="item.name"
:key="index"
:show-overflow-tooltip="true"
:formatter="formatter"
>
</el-table-column>
</el-table>
...
...
@@ -210,6 +211,16 @@ export default {
this.cleaerForm();
this.$emit("dialogBeforeClose", { close: false, reload: true });
},
formatter(row, column, cellValue, index){
if(column.property == "cargoRulesStatus"){
if(cellValue == 1){
return "手动"
}else{
return "自动"
}
}
return cellValue
}
},
computed: {
fltNo: {
...
...
src/views/basicInformation/queryCargo/index.vue
View file @
966e641
...
...
@@ -241,7 +241,7 @@
:limitStart="limitStart"
:page="page"
:shiftKey="shiftKey"
height="
5
50"
height="
4
50"
@tableSelect="tableSelect"
@tableSelectAll="tableSelectAll"
@currentChange="currentChange"
...
...
src/views/systemConfig/userConfig/drawer.vue
View file @
966e641
...
...
@@ -248,11 +248,11 @@ export default {
drawer(val,oldVal){
if(val){
this.userForm = this.userData;
if (this.user
Data
.roleIds) {
this.roleid = this.user
Data
.roleIds;
if (this.user
Form
.roleIds) {
this.roleid = this.user
Form
.roleIds;
}
if (this.user
Data
.portName) {
this.port = this.user
Data
.portName;
if (this.user
Form
.portName) {
this.port = this.user
Form
.portName;
}
}
}
...
...
src/views/systemConfig/userConfig/index.vue
View file @
966e641
...
...
@@ -28,7 +28,7 @@
</el-col>
</el-row>
</el-form>
<div style="margin
Left:
20px">
<div style="margin
:
20px">
<el-button
type="primary"
icon="el-icon-search"
...
...
@@ -266,6 +266,8 @@ export default {
userDetail(id) {
detailUser(id)
.then((res) => {
this.drawer = true;
this.drawerTitle = "查看/修改用户";
if (res.code === 200) {
this.userData = res.data;
this.userData.portName
...
...
@@ -294,9 +296,6 @@ export default {
//查询修改用户
buttonClick(row, status) {
this.userDetail(row.row.id);
this.userData = row.row;
this.drawer = true;
this.drawerTitle = "查看/修改用户";
status == 0
? (this.userFormDisabled = true)
: (this.userFormDisabled = false);
...
...
Please
register
or
login
to post a comment