隐藏表格右上角操作按钮,个人信息页面只保留修改头像

main
jinna 3 years ago
parent d1341a2214
commit 36a577cb5c
  1. 96
      src/option/system/dict.js
  2. 6
      src/option/system/dictbiz.js
  3. 178
      src/option/user/info.js
  4. 1
      src/page/index/top/index.vue
  5. 3
      src/views/articlelist/index.vue
  6. 3
      src/views/authority/role.vue
  7. 3
      src/views/blacklist/index.vue
  8. 3
      src/views/booklist/index.vue
  9. 3
      src/views/booknumber/index.vue
  10. 3
      src/views/statistics/index.vue
  11. 3
      src/views/system/dept.vue
  12. 3
      src/views/system/menu.vue
  13. 3
      src/views/system/user.vue

@ -1,5 +1,8 @@
export const optionParent = { export const optionParent = {
height: 'auto', searchShowBtn: false,
refreshBtn: false,
columnBtn: false,
height: "auto",
calcHeight: 30, calcHeight: 30,
tip: false, tip: false,
searchShow: true, searchShow: true,
@ -22,9 +25,9 @@ export const optionParent = {
{ {
required: true, required: true,
message: "请输入字典编号", message: "请输入字典编号",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "字典名称", label: "字典名称",
@ -35,9 +38,9 @@ export const optionParent = {
{ {
required: true, required: true,
message: "请输入字典名称", message: "请输入字典名称",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "字典排序", label: "字典排序",
@ -49,9 +52,9 @@ export const optionParent = {
{ {
required: true, required: true,
message: "请输入字典排序", message: "请输入字典排序",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "封存", label: "封存",
@ -62,12 +65,12 @@ export const optionParent = {
dicData: [ dicData: [
{ {
label: "否", label: "否",
value: 0 value: 0,
}, },
{ {
label: "是", label: "是",
value: 1 value: 1,
} },
], ],
value: 0, value: 0,
slot: true, slot: true,
@ -75,20 +78,23 @@ export const optionParent = {
{ {
required: true, required: true,
message: "请选择封存", message: "请选择封存",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "字典备注", label: "字典备注",
prop: "remark", prop: "remark",
hide: true hide: true,
} },
] ],
}; };
export const optionChild = { export const optionChild = {
height: 'auto', searchShowBtn: false,
refreshBtn: false,
columnBtn: false,
height: "auto",
calcHeight: 95, calcHeight: 95,
tip: false, tip: false,
searchShow: true, searchShow: true,
@ -113,9 +119,9 @@ export const optionChild = {
{ {
required: true, required: true,
message: "请输入字典编号", message: "请输入字典编号",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "字典名称", label: "字典名称",
@ -126,9 +132,9 @@ export const optionChild = {
{ {
required: true, required: true,
message: "请输入字典名称", message: "请输入字典名称",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "上级字典", label: "上级字典",
@ -137,7 +143,7 @@ export const optionChild = {
dicData: [], dicData: [],
hide: true, hide: true,
props: { props: {
label: "title" label: "title",
}, },
addDisabled: true, addDisabled: true,
editDisabled: true, editDisabled: true,
@ -145,9 +151,9 @@ export const optionChild = {
{ {
required: false, required: false,
message: "请选择上级字典", message: "请选择上级字典",
trigger: "click" trigger: "click",
} },
] ],
}, },
{ {
label: "字典键值", label: "字典键值",
@ -157,9 +163,9 @@ export const optionChild = {
{ {
required: true, required: true,
message: "请输入字典键值", message: "请输入字典键值",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "字典排序", label: "字典排序",
@ -171,9 +177,9 @@ export const optionChild = {
{ {
required: true, required: true,
message: "请输入字典排序", message: "请输入字典排序",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "封存", label: "封存",
@ -184,12 +190,12 @@ export const optionChild = {
dicData: [ dicData: [
{ {
label: "否", label: "否",
value: 0 value: 0,
}, },
{ {
label: "是", label: "是",
value: 1 value: 1,
} },
], ],
value: 0, value: 0,
slot: true, slot: true,
@ -197,14 +203,14 @@ export const optionChild = {
{ {
required: true, required: true,
message: "请选择封存", message: "请选择封存",
trigger: "blur" trigger: "blur",
} },
] ],
}, },
{ {
label: "字典备注", label: "字典备注",
prop: "remark", prop: "remark",
hide: true hide: true,
} },
] ],
}; };

@ -1,4 +1,7 @@
export const optionParent = { export const optionParent = {
searchShowBtn: false,
refreshBtn: false,
columnBtn: false,
height: "auto", height: "auto",
calcHeight: 30, calcHeight: 30,
tip: false, tip: false,
@ -89,6 +92,9 @@ export const optionParent = {
}; };
export const optionChild = { export const optionChild = {
searchShowBtn: false,
refreshBtn: false,
columnBtn: false,
height: "auto", height: "auto",
calcHeight: 95, calcHeight: 95,
tip: false, tip: false,

@ -1,5 +1,5 @@
import website from "../../config/website"; import website from "../../config/website";
import { Message } from 'element-ui'; import { Message } from "element-ui";
// export default { // export default {
// tabs: true, // tabs: true,
// tabsActive: 1, // tabsActive: 1,
@ -91,94 +91,104 @@ import { Message } from 'element-ui';
// } // }
export const userInfoOption = { export const userInfoOption = {
column: [{ column: [
label: '头像', {
prop: 'avatar', label: "头像",
type: 'upload', prop: "avatar",
listType: 'picture-img', type: "upload",
propsHttp: { listType: "picture-img",
home: website.filePrex, propsHttp: {
res: 'data', home: website.filePrex,
url: 'link', res: "data",
url: "link",
},
fileType: "img", //img/video/audio,
accept: "image/png, image/jpeg",
action: "/api/blade-resource/oss/endpoint/put-file",
tip: "只能上传jpg/png用户头像,且不超过500kb",
span: 12,
row: true,
uploadBefore: (file, done, loading) => {
if (["image/png", "image/jpeg"].indexOf(file.type) == -1) {
Message({
message: "只能上传jpg/png用户头像",
type: "error",
});
loading();
} else {
done();
}
},
}, },
fileType: 'img',//img/video/audio, // {
accept: 'image/png, image/jpeg', // label: '姓名',
action: '/api/blade-resource/oss/endpoint/put-file', // span: 12,
tip: '只能上传jpg/png用户头像,且不超过500kb', // row: true,
span: 12, // prop: 'realName',
row: true, // }, {
uploadBefore: (file, done, loading) => { // label: '用户名',
if (['image/png', 'image/jpeg'].indexOf(file.type) == -1) { // span: 12,
Message({ // row: true,
message: '只能上传jpg/png用户头像', // prop: 'name'
type: 'error' // }, {
}); // label: '手机号',
loading(); // span: 12,
} // row: true,
else { // prop: 'phone',
done(); // }, {
} // label: '邮箱',
} // prop: 'email',
}, { // span: 12,
label: '姓名', // row: true,
span: 12, // }
row: true, ],
prop: 'realName', };
}, {
label: '用户名',
span: 12,
row: true,
prop: 'name'
}, {
label: '手机号',
span: 12,
row: true,
prop: 'phone',
}, {
label: '邮箱',
prop: 'email',
span: 12,
row: true,
}]
}
export const userPwdOption = { export const userPwdOption = {
column: [{ column: [
label: '原密码', {
span: 12, label: "原密码",
row: true, span: 12,
type: 'password', row: true,
prop: 'oldPassword', type: "password",
rules: [{ prop: "oldPassword",
required: true, rules: [
message: "请输入原密码", {
trigger: "blur" required: true,
}] message: "请输入原密码",
}, { trigger: "blur",
label: '新密码', },
span: 12, ],
row: true, },
type: 'password', {
prop: 'newPassword', label: "新密码",
rules: [{ span: 12,
required: true, row: true,
message: "请输入新密码", type: "password",
trigger: "blur" prop: "newPassword",
}] rules: [
}, { {
label: '确认密码', required: true,
span: 12, message: "请输入新密码",
row: true, trigger: "blur",
type: 'password', },
prop: 'newPassword1', ],
rules: [{ validator: validatePass2, trigger: 'blur' }] },
}] {
} label: "确认密码",
span: 12,
row: true,
type: "password",
prop: "newPassword1",
rules: [{ validator: validatePass2, trigger: "blur" }],
},
],
};
const validatePass2 = (rule, value, callback) => { const validatePass2 = (rule, value, callback) => {
if (value === '') { if (value === "") {
callback(new Error('请再次输入密码')); callback(new Error("请再次输入密码"));
} else if (value !== this.obj.password) { } else if (value !== this.obj.password) {
callback(new Error('两次输入密码不一致!')); callback(new Error("两次输入密码不一致!"));
} else { } else {
callback(); callback();
} }

@ -183,6 +183,7 @@
}, },
filters: {}, filters: {},
created() { created() {
console.log('userInfo',this.userInfo)
}, },
mounted() { mounted() {
listenfullscreen(this.setScreen); listenfullscreen(this.setScreen);

@ -47,6 +47,9 @@ export default {
}, },
selectionList: [], selectionList: [],
option: { option: {
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 30,
tip: false, tip: false,

@ -107,6 +107,9 @@
total: 0 total: 0
}, },
option: { option: {
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
tip: false, tip: false,
simplePage: true, simplePage: true,
searchShow: true, searchShow: true,

@ -33,6 +33,9 @@ export default {
}, },
selectionList: [], selectionList: [],
option: { option: {
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 30,
tip: false, tip: false,

@ -409,6 +409,9 @@ export default {
viewBtn: false, viewBtn: false,
editBtn: false, editBtn: false,
delBtn: false, delBtn: false,
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
column: [ column: [
{ {
label: "体检人姓名", label: "体检人姓名",

@ -113,6 +113,9 @@ export default {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 30,
tip: false, tip: false,
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
border: true, border: true,

@ -58,6 +58,9 @@ export default {
}, },
isRegister: false, isRegister: false,
option: { option: {
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 30,
tip: false, tip: false,

@ -53,6 +53,9 @@ export default {
total: 0, total: 0,
}, },
option: { option: {
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
lazy: true, lazy: true,
tip: false, tip: false,
simplePage: true, simplePage: true,

@ -69,6 +69,9 @@
total: 0, total: 0,
}, },
option: { option: {
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
lazy: true, lazy: true,
tip: false, tip: false,
simplePage: true, simplePage: true,

@ -157,6 +157,9 @@ export default {
} }
}, },
option: { option: {
searchShowBtn:false,
refreshBtn:false,
columnBtn:false,
height: 'auto', height: 'auto',
calcHeight: 80, calcHeight: 80,
tip: false, tip: false,

Loading…
Cancel
Save