yh-pub 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.MD +19 -19
  2. package/layout/admin/adminIndex.vue +104 -104
  3. package/layout/admin/api/loginApi.js +24 -24
  4. package/layout/admin/api/routers.js +93 -93
  5. package/layout/admin/api/tenantApi.js +123 -123
  6. package/layout/admin/home/homeIndex.vue +25 -25
  7. package/layout/admin/login/login.vue +161 -161
  8. package/layout/admin/menu/MenuIndex.vue +648 -648
  9. package/layout/admin/menu/icon.vue +108 -108
  10. package/layout/admin/menu/iconList.js +934 -934
  11. package/layout/admin/saTenant/saTenant.vue +173 -173
  12. package/layout/admin/saTenant/saTenantForm.js +80 -80
  13. package/layout/admin/saTenant/saTenantForm.vue +61 -61
  14. package/layout/admin/saTenant/saTenantRoleManage.js +417 -417
  15. package/layout/admin/saTenant/saTenantRoleManage.vue +99 -99
  16. package/layout/admin/user/saUser.less +6 -6
  17. package/layout/admin/user/saUser.vue +72 -72
  18. package/layout/main/components/console/console.vue +205 -205
  19. package/layout/main/components/error-store/error-store.vue +72 -72
  20. package/layout/main/components/error-store/index.js +2 -2
  21. package/layout/main/components/fullscreen/fullscreen.vue +57 -57
  22. package/layout/main/components/fullscreen/index.js +2 -2
  23. package/layout/main/components/language/language.vue +71 -71
  24. package/layout/main/components/side-menu/side-menu.less +73 -73
  25. package/layout/main/components/side-menu/side-menu.vue +75 -75
  26. package/layout/main/components/tags-nav/tags-nav.less +44 -44
  27. package/layout/main/components/tags-nav/tags-nav.vue +144 -144
  28. package/layout/main/components/user/user.less +12 -12
  29. package/layout/main/components/user/user.vue +185 -185
  30. package/layout/main/home/home.vue +480 -480
  31. package/layout/main/home/index.js +2 -2
  32. package/layout/main/home/toDoList.vue +32 -32
  33. package/layout/main/login/login.less +93 -93
  34. package/layout/main/login/login.vue +151 -151
  35. package/layout/main/main.less +81 -81
  36. package/layout/main/main.vue +254 -202
  37. package/layout/main/system/dict.vue +64 -64
  38. package/layout/main/system/orgManage.vue +473 -473
  39. package/layout/main/system/roleManage.js +807 -755
  40. package/layout/main/system/roleManage.vue +424 -399
  41. package/package.json +11 -11
  42. package/view/basic/error-logger.vue +74 -74
  43. package/view/basic/error-page/401.vue +22 -22
  44. package/view/basic/error-page/404.vue +22 -22
  45. package/view/basic/error-page/500.vue +22 -22
  46. package/view/basic/error-page/back-btn-group.vue +48 -48
  47. package/view/basic/error-page/error-content.vue +28 -28
  48. package/view/basic/error-page/error.less +46 -46
  49. package/view/config/component/confFormItem.vue +49 -49
  50. package/view/config/config.scss +45 -45
  51. package/view/config/configIndex.vue +150 -150
  52. package/view/config/subPage/router-config.vue +4 -4
  53. package/view/config/subPage/sys-config.vue +249 -249
  54. package/view/window/IframeFReportView.vue +27 -27
  55. package/view/window/windowIndex.vue +22 -22
@@ -1,2 +1,2 @@
1
- import home from './home.vue'
2
- export default home
1
+ import home from './home.vue'
2
+ export default home
@@ -1,32 +1,32 @@
1
- <template>
2
- <div>
3
- <a-list border>
4
- <div class="ivu-list-header" @click="goToList()" style="cursor: pointer"><slot name="header">待办任务列表</slot></div>
5
- <li class="ivu-list-item" v-for="task in taskList" :key="task.bpmTaskId" @click="goToList()" style="cursor: pointer">{{task.name}}</li>
6
- <!-- <ListItem v-for="task in taskList" :key="task.bpmTaskId">{{task.name}}</ListItem>-->
7
- </a-list>
8
- </div>
9
- </template>
10
- <script>
11
- export default {
12
- name: 'menu-manage',
13
- data () {
14
- return {taskList: []}
15
- },
16
- mounted () {
17
- this.getTaskList()
18
- },
19
- methods: {
20
- goToList() {
21
- this.$router.push('sys/index/2F9317320C0144FD924FAA449939DD64')
22
- },
23
- getTaskList() {
24
- let that = this
25
- this.axios.post('process/flowChart/getTasksByUserId', this.$qs.stringify({})).then(res => {
26
- res = res.data
27
- that.taskList = res.taskData
28
- })
29
- }
30
- }
31
- }
32
- </script>
1
+ <template>
2
+ <div>
3
+ <a-list border>
4
+ <div class="ivu-list-header" @click="goToList()" style="cursor: pointer"><slot name="header">待办任务列表</slot></div>
5
+ <li class="ivu-list-item" v-for="task in taskList" :key="task.bpmTaskId" @click="goToList()" style="cursor: pointer">{{task.name}}</li>
6
+ <!-- <ListItem v-for="task in taskList" :key="task.bpmTaskId">{{task.name}}</ListItem>-->
7
+ </a-list>
8
+ </div>
9
+ </template>
10
+ <script>
11
+ export default {
12
+ name: 'menu-manage',
13
+ data () {
14
+ return {taskList: []}
15
+ },
16
+ mounted () {
17
+ this.getTaskList()
18
+ },
19
+ methods: {
20
+ goToList() {
21
+ this.$router.push('sys/index/2F9317320C0144FD924FAA449939DD64')
22
+ },
23
+ getTaskList() {
24
+ let that = this
25
+ this.axios.post('process/flowChart/getTasksByUserId', this.$qs.stringify({})).then(res => {
26
+ res = res.data
27
+ that.taskList = res.taskData
28
+ })
29
+ }
30
+ }
31
+ }
32
+ </script>
@@ -1,93 +1,93 @@
1
- .login{
2
- width: 100%;
3
- height: 100%;
4
- background-image: url('@/assets/images/login-bg.jpg');
5
- background-size: cover;
6
- background-position: center;
7
- position: relative;
8
-
9
- &-logo {
10
- position: absolute;
11
- top: 100px;
12
- left: 100px;
13
- }
14
-
15
- &-con{
16
- top: 42%;
17
- position: absolute;
18
- transform: translateY(-60%);
19
- width: 100%;
20
- text-align: center;
21
-
22
- .login-title {
23
- width: 100%;
24
- &-cn {
25
- font-size: 3rem;
26
- color: #fcfcfc;
27
- font-weight: bolder;
28
- text-align: center;
29
- }
30
- &-en {
31
- font-size: 1.5rem;
32
- color: #fcfcfc;
33
- text-align: center;
34
- font-family: "Microsoft YaHei";
35
- }
36
- }
37
- .form-con{
38
- margin: 0 auto;
39
- width: 600px;
40
- height: 50px;
41
- padding: 30px 0 0;
42
-
43
- .ant-input-lg {
44
- height: 60px;
45
- font-size: 22px;
46
- }
47
- .ant-btn-lg {
48
- height: 60px;
49
- padding: 0 30px;
50
- font-size: 20px;
51
- }
52
- }
53
- .login-tip{
54
- font-size: 2rem;
55
- text-align: center;
56
- color: #ffa24a;
57
- text-align: center;
58
- }
59
- }
60
- &-info {
61
- bottom: 80px;
62
- height: 50px;
63
- left: calc(50% - 11rem);
64
- position: absolute;
65
- text-align: center;
66
-
67
- &-item {
68
- width: 70px;
69
- float: left;
70
- text-align: center;
71
- margin-left: 30px;
72
- }
73
- &-icon {
74
- width: 70px;
75
- height: 70px;
76
- box-sizing: border-box;
77
- border-radius: 35px;
78
- background-color: #fcfcfc;
79
- display: inline-flex;
80
- justify-content: center;
81
- align-items: center;
82
- i {
83
- font-size: 40px;
84
- color: #3E99FD;
85
- }
86
- }
87
- &-text {
88
- font-size: 1rem;
89
- color: #ffffff;
90
- margin-top: 20px;
91
- }
92
- }
93
- }
1
+ .login{
2
+ width: 100%;
3
+ height: 100%;
4
+ background-image: url('@/assets/images/login-bg.jpg');
5
+ background-size: cover;
6
+ background-position: center;
7
+ position: relative;
8
+
9
+ &-logo {
10
+ position: absolute;
11
+ top: 100px;
12
+ left: 100px;
13
+ }
14
+
15
+ &-con{
16
+ top: 42%;
17
+ position: absolute;
18
+ transform: translateY(-60%);
19
+ width: 100%;
20
+ text-align: center;
21
+
22
+ .login-title {
23
+ width: 100%;
24
+ &-cn {
25
+ font-size: 3rem;
26
+ color: #fcfcfc;
27
+ font-weight: bolder;
28
+ text-align: center;
29
+ }
30
+ &-en {
31
+ font-size: 1.5rem;
32
+ color: #fcfcfc;
33
+ text-align: center;
34
+ font-family: "Microsoft YaHei";
35
+ }
36
+ }
37
+ .form-con{
38
+ margin: 0 auto;
39
+ width: 600px;
40
+ height: 50px;
41
+ padding: 30px 0 0;
42
+
43
+ .ant-input-lg {
44
+ height: 60px;
45
+ font-size: 22px;
46
+ }
47
+ .ant-btn-lg {
48
+ height: 60px;
49
+ padding: 0 30px;
50
+ font-size: 20px;
51
+ }
52
+ }
53
+ .login-tip{
54
+ font-size: 2rem;
55
+ text-align: center;
56
+ color: #ffa24a;
57
+ text-align: center;
58
+ }
59
+ }
60
+ &-info {
61
+ bottom: 80px;
62
+ height: 50px;
63
+ left: calc(50% - 11rem);
64
+ position: absolute;
65
+ text-align: center;
66
+
67
+ &-item {
68
+ width: 70px;
69
+ float: left;
70
+ text-align: center;
71
+ margin-left: 30px;
72
+ }
73
+ &-icon {
74
+ width: 70px;
75
+ height: 70px;
76
+ box-sizing: border-box;
77
+ border-radius: 35px;
78
+ background-color: #fcfcfc;
79
+ display: inline-flex;
80
+ justify-content: center;
81
+ align-items: center;
82
+ i {
83
+ font-size: 40px;
84
+ color: #3E99FD;
85
+ }
86
+ }
87
+ &-text {
88
+ font-size: 1rem;
89
+ color: #ffffff;
90
+ margin-top: 20px;
91
+ }
92
+ }
93
+ }
@@ -1,151 +1,151 @@
1
- <style lang="less">
2
- @import "./login.less";
3
- </style>
4
-
5
- <template>
6
- <div class="login">
7
- <div class="login-logo">
8
- <img
9
- src="@/assets/images/logo-tm.png"
10
- width="334px"
11
- height="53px" />
12
- </div>
13
- <div class="login-con">
14
- <div class="login-title">
15
- <div class="login-title-cn">中控系统</div>
16
- <div class="login-title-en">Central Control System</div>
17
- </div>
18
- <div class="form-con">
19
- <el-form
20
- ref="loginForm"
21
- :model="form"
22
- :rules="rules"
23
- size="large"
24
- layout="inline"
25
- @keydown.enter.native="handleSubmit">
26
- <el-form-item prop="userName">
27
- <el-input
28
- ref="username"
29
- v-model="form.username"
30
- size="large"
31
- placeholder="请输入用户名">
32
- <el-icon
33
- slot="prefix"
34
- class="user" />
35
- </el-input>
36
- </el-form-item>
37
- <el-form-item prop="password">
38
- <el-input
39
- ref="password"
40
- type="password"
41
- size="large"
42
- v-model="form.password"
43
- placeholder="请输入密码"
44
- style="line-height: 40px">
45
- <el-icon
46
- slot="prefix"
47
- class="lock" />
48
- </el-input>
49
- </el-form-item>
50
- <el-form-item>
51
- <el-button
52
- @click="handleSubmit"
53
- type="primary"
54
- style="width: 100%"
55
- size="large"
56
- :loading="loading">
57
- 登录
58
- </el-button>
59
- </el-form-item>
60
- </el-form>
61
- <p class="login-tip">{{ errorMsg }}</p>
62
- </div>
63
- </div>
64
- <!-- <div class="login-info">
65
- <div class="login-info-item">
66
- <div class="login-info-icon">
67
- <i class="iconfont icon-house" />
68
- </div>
69
- <div class="login-info-text">WMS</div>
70
- </div>
71
- <div class="login-info-item">
72
- <div class="login-info-icon">
73
- <i class="iconfont icon-notebook-" />
74
- </div>
75
- <div class="login-info-text">EAM</div>
76
- </div>
77
- <div class="login-info-item">
78
- <div class="login-info-icon">
79
- <i class="iconfont icon-appstore" />
80
- </div>
81
- <div class="login-info-text">WCS</div>
82
- </div>
83
- <div class="login-info-item">
84
- <div class="login-info-icon">
85
- <i class="iconfont icon-monitor1" />
86
- </div>
87
- <div class="login-info-text">TMS</div>
88
- </div>
89
- </div> -->
90
- </div>
91
- </template>
92
-
93
- <script>
94
- import { useUserStore } from "@/store/user";
95
- import { defineComponent } from "vue";
96
-
97
- export default defineComponent({
98
- data() {
99
- return {
100
- errorMsg: "",
101
- form: {
102
- username: "",
103
- password: "",
104
- },
105
- loading: false,
106
- rules: {
107
- username: [{ required: true, message: "账号不能为空", trigger: "blur" }],
108
- password: [{ required: true, message: "密码不能为空", trigger: "blur" }],
109
- },
110
- };
111
- },
112
- methods: {
113
- handleSubmit() {
114
- this.loading = true;
115
- this.$refs.loginForm.validate((valid) => {
116
- if (valid) {
117
- const userStore = useUserStore();
118
- let data = {
119
- username: this.form.username,
120
- password: this.form.password,
121
- };
122
- userStore
123
- .handleLogin(data)
124
- .then(async (res) => {
125
- this.loading = false;
126
- if (res.data.result) {
127
- this.$message.success("登录成功");
128
- userStore.getUserInfo().then(() => {
129
- this.$router
130
- .replace({
131
- path: this.$config.homePath,
132
- })
133
- .then(() => {
134
- window.navigation.reload();
135
- });
136
- });
137
- } else {
138
- // this.$message.error(res.data.msg);
139
- }
140
- })
141
- .catch((e) => {
142
- console.error(e);
143
- this.loading = false;
144
- this.$message.error(e);
145
- });
146
- }
147
- });
148
- },
149
- },
150
- });
151
- </script>
1
+ <style lang="less">
2
+ @import './login.less';
3
+ </style>
4
+
5
+ <template>
6
+ <div class="login">
7
+ <div class="login-logo">
8
+ <img
9
+ src="@/assets/images/logo-tm.png"
10
+ width="334px"
11
+ height="53px" />
12
+ </div>
13
+ <div class="login-con">
14
+ <div class="login-title">
15
+ <div class="login-title-cn">力控元海</div>
16
+ <div class="login-title-en">Li Kong Yuan Hai</div>
17
+ </div>
18
+ <div class="form-con">
19
+ <el-form
20
+ ref="loginForm"
21
+ :model="form"
22
+ :rules="rules"
23
+ size="large"
24
+ layout="inline"
25
+ @keydown.enter.native="handleSubmit">
26
+ <el-form-item prop="userName">
27
+ <el-input
28
+ ref="username"
29
+ v-model="form.username"
30
+ size="large"
31
+ placeholder="请输入用户名">
32
+ <el-icon
33
+ slot="prefix"
34
+ class="user" />
35
+ </el-input>
36
+ </el-form-item>
37
+ <el-form-item prop="password">
38
+ <el-input
39
+ ref="password"
40
+ type="password"
41
+ size="large"
42
+ v-model="form.password"
43
+ placeholder="请输入密码"
44
+ style="line-height: 40px">
45
+ <el-icon
46
+ slot="prefix"
47
+ class="lock" />
48
+ </el-input>
49
+ </el-form-item>
50
+ <el-form-item>
51
+ <el-button
52
+ @click="handleSubmit"
53
+ type="primary"
54
+ style="width: 100%"
55
+ size="large"
56
+ :loading="loading">
57
+ 登录
58
+ </el-button>
59
+ </el-form-item>
60
+ </el-form>
61
+ <p class="login-tip">{{ errorMsg }}</p>
62
+ </div>
63
+ </div>
64
+ <!-- <div class="login-info">
65
+ <div class="login-info-item">
66
+ <div class="login-info-icon">
67
+ <i class="iconfont icon-house" />
68
+ </div>
69
+ <div class="login-info-text">WMS</div>
70
+ </div>
71
+ <div class="login-info-item">
72
+ <div class="login-info-icon">
73
+ <i class="iconfont icon-notebook-" />
74
+ </div>
75
+ <div class="login-info-text">EAM</div>
76
+ </div>
77
+ <div class="login-info-item">
78
+ <div class="login-info-icon">
79
+ <i class="iconfont icon-appstore" />
80
+ </div>
81
+ <div class="login-info-text">WCS</div>
82
+ </div>
83
+ <div class="login-info-item">
84
+ <div class="login-info-icon">
85
+ <i class="iconfont icon-monitor1" />
86
+ </div>
87
+ <div class="login-info-text">TMS</div>
88
+ </div>
89
+ </div> -->
90
+ </div>
91
+ </template>
92
+
93
+ <script>
94
+ import {useUserStore} from '@/store/user';
95
+ import {defineComponent} from 'vue';
96
+
97
+ export default defineComponent({
98
+ data() {
99
+ return {
100
+ errorMsg: '',
101
+ form: {
102
+ username: '',
103
+ password: '',
104
+ },
105
+ loading: false,
106
+ rules: {
107
+ username: [{required: true, message: '账号不能为空', trigger: 'blur'}],
108
+ password: [{required: true, message: '密码不能为空', trigger: 'blur'}],
109
+ },
110
+ };
111
+ },
112
+ methods: {
113
+ handleSubmit() {
114
+ this.loading = true;
115
+ this.$refs.loginForm.validate((valid) => {
116
+ if (valid) {
117
+ const userStore = useUserStore();
118
+ let data = {
119
+ username: this.form.username,
120
+ password: this.form.password,
121
+ };
122
+ userStore
123
+ .handleLogin(data)
124
+ .then(async (res) => {
125
+ this.loading = false;
126
+ if (res.data.result) {
127
+ this.$message.success('登录成功');
128
+ userStore.getUserInfo().then(() => {
129
+ this.$router
130
+ .replace({
131
+ path: this.$config.homePath,
132
+ })
133
+ .then(() => {
134
+ window.navigation.reload();
135
+ });
136
+ });
137
+ } else {
138
+ // this.$message.error(res.data.msg);
139
+ }
140
+ })
141
+ .catch((e) => {
142
+ console.error(e);
143
+ this.loading = false;
144
+ this.$message.error(e);
145
+ });
146
+ }
147
+ });
148
+ },
149
+ },
150
+ });
151
+ </script>