Skip to content

Commit 9422e38

Browse files
author
sihy
committed
隐藏用户管理新增和修改密码
1 parent 1f3d891 commit 9422e38

File tree

2 files changed

+88
-79
lines changed

2 files changed

+88
-79
lines changed

web/.eslintrc.js

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -16,73 +16,73 @@
1616
*/
1717

1818
module.exports = {
19-
root: true,
20-
env: {
21-
node: true
22-
},
23-
extends: [
24-
'eslint:recommended',
25-
'plugin:vue/essential'
19+
root: true,
20+
env: {
21+
node: true
22+
},
23+
extends: ["eslint:recommended", "plugin:vue/essential"],
24+
rules: {
25+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
26+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
27+
"key-spacing": ["error"],
28+
"standard/no-callback-literal": 0,
29+
"handle-callback-err": 0,
30+
"no-return-assign": 0,
31+
eqeqeq: 0,
32+
"comma-dangle": 0,
33+
semi: 0,
34+
"space-before-function-paren": 0,
35+
"keyword-spacing": 0,
36+
"no-useless-escape": 0,
37+
"operator-linebreak": 0,
38+
// 'indent': [
39+
// 'error',
40+
// 2,
41+
// {
42+
// 'SwitchCase': 1
43+
// }
44+
// ],
45+
"no-const-assign": "warn",
46+
"no-this-before-super": "warn",
47+
"no-irregular-whitespace": 0,
48+
"no-undef": 2,
49+
"no-unreachable": "warn",
50+
"no-unused-vars": ["error", { args: "none" }],
51+
"constructor-super": "warn",
52+
"valid-typeof": "warn",
53+
"one-var": "warn",
54+
"max-len": "off",
55+
"no-trailing-spaces": "off",
56+
"require-jsdoc": "warn",
57+
camelcase: "warn",
58+
"no-invalid-this": "off",
59+
"linebreak-style": 0,
60+
"vue/no-parsing-error": [
61+
2,
62+
{
63+
"x-invalid-end-tag": false,
64+
"invalid-first-character-of-tag-name": false
65+
}
2666
],
27-
rules: {
28-
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
29-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
30-
'key-spacing': ['error'],
31-
'standard/no-callback-literal': 0,
32-
'handle-callback-err': 0,
33-
'no-return-assign': 0,
34-
'eqeqeq': 0,
35-
'comma-dangle': 0,
36-
'semi': 0,
37-
'space-before-function-paren': 0,
38-
'keyword-spacing': 0,
39-
'no-useless-escape': 0,
40-
'operator-linebreak': 0,
41-
'indent': [
42-
'error',
43-
2,
44-
{
45-
'SwitchCase': 1
46-
}
47-
],
48-
'no-const-assign': 'warn',
49-
'no-this-before-super': 'warn',
50-
"no-irregular-whitespace": 0,
51-
'no-undef': 2,
52-
'no-unreachable': 'warn',
53-
'no-unused-vars': ['error', { "args": "none" }],
54-
'constructor-super': 'warn',
55-
'valid-typeof': 'warn',
56-
'one-var': 'warn',
57-
'max-len': 'off',
58-
'no-trailing-spaces': 'off',
59-
'require-jsdoc': 'warn',
60-
'camelcase': 'warn',
61-
'no-invalid-this': 'off',
62-
'linebreak-style': 0,
63-
'vue/no-parsing-error': [2, {
64-
'x-invalid-end-tag': false,
65-
'invalid-first-character-of-tag-name': false
66-
}],
67-
'no-tabs': 0,
68-
'vue/require-default-prop': 0,
69-
'vue/component-name-in-template-casing': 0,
70-
'vue/html-closing-bracket-spacing': 0,
71-
'vue/html-closing-bracket-newline': 0,
72-
'vue/singleline-html-element-content-newline': 0,
73-
'vue/multiline-html-element-content-newline': 0,
74-
'vue/attributes-order': 0,
75-
'vue/html-self-closing': 0,
76-
'no-useless-constructor': 0,
77-
'no-mixed-operators': 0,
78-
'no-new-func': 0,
79-
'no-template-curly-in-string': 0,
80-
'no-useless-call': 0,
81-
"one-var": 0,
82-
"camelcase": 0
83-
},
84-
parserOptions: {
85-
"parser": 'babel-eslint',
86-
"sourceType": "module"
87-
}
88-
}
67+
"no-tabs": 0,
68+
"vue/require-default-prop": 0,
69+
"vue/component-name-in-template-casing": 0,
70+
"vue/html-closing-bracket-spacing": 0,
71+
"vue/html-closing-bracket-newline": 0,
72+
"vue/singleline-html-element-content-newline": 0,
73+
"vue/multiline-html-element-content-newline": 0,
74+
"vue/attributes-order": 0,
75+
"vue/html-self-closing": 0,
76+
"no-useless-constructor": 0,
77+
"no-mixed-operators": 0,
78+
"no-new-func": 0,
79+
"no-template-curly-in-string": 0,
80+
"no-useless-call": 0,
81+
"one-var": 0,
82+
camelcase: 0
83+
},
84+
parserOptions: {
85+
parser: "babel-eslint",
86+
sourceType: "module"
87+
}
88+
};

web/src/apps/workspace/module/permissions/module/personManagement.vue

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,26 @@
9393
<div class="tableWrap">
9494
<div class="addWrap">
9595
<p>{{ tableTitle }}</p>
96-
<Button type="primary" @click="handleAdd()" icon="md-add">{{
97-
$t("message.permissions.add")
98-
}}</Button>
96+
<Button
97+
v-if="false"
98+
type="primary"
99+
@click="handleAdd()"
100+
icon="md-add"
101+
>{{ $t("message.permissions.add") }}</Button
102+
>
99103
</div>
100104
<Table :columns="columns" :data="userList" :loading="tableLoading">
101105
<template slot-scope="{ row, index }" slot="operation">
102106
<div class="deptName">
103107
<div class="operation" @click="edit(row, index)">
104108
{{ $t("message.permissions.edit") }}
105109
</div>
106-
<Divider type="vertical" />
107-
<div class="operation" @click="modifyPassword(row, index)">
110+
<Divider v-if="false" type="vertical" />
111+
<div
112+
class="operation"
113+
v-if="false"
114+
@click="modifyPassword(row, index)"
115+
>
108116
{{ $t("message.permissions.modifyPassword") }}
109117
</div>
110118
<Divider v-if="false" type="vertical" />
@@ -167,7 +175,7 @@
167175
</div>
168176
<label slot="option-label" slot-scope="{ node }">
169177
<Icon
170-
style="font-size: 16px;margin-right:5px;top: -3px;"
178+
style="font-size: 16px; margin-right: 5px; top: -3px"
171179
:type="
172180
node.isBranch ? 'ios-folder-outline' : 'ios-paper-outline'
173181
"
@@ -323,8 +331,8 @@ export default {
323331
tag === "empty"
324332
? this.$t("message.permissions.passwordEmpty")
325333
: tag === "keyboard"
326-
? this.$t("message.permissions.pwdKeyboardError")
327-
: this.$t("message.permissions.pwdCheckError")
334+
? this.$t("message.permissions.pwdKeyboardError")
335+
: this.$t("message.permissions.pwdCheckError")
328336
)
329337
);
330338
}
@@ -750,7 +758,7 @@ export default {
750758
};
751759
</script>
752760
<style lang="scss" scoped>
753-
@import '@/common/style/variables.scss';
761+
@import "@/common/style/variables.scss";
754762
.container {
755763
width: 100%;
756764
// height: 100%;
@@ -852,7 +860,8 @@ export default {
852860
width: 22px;
853861
@include font-color($light-text-color, $dark-text-color);
854862
}
855-
.folder-label, .foldIcon{
863+
.folder-label,
864+
.foldIcon {
856865
@include font-color($light-text-color, $dark-text-color);
857866
}
858867
.operation {

0 commit comments

Comments
 (0)