cloud-web-corejs 1.0.54-dev.731 → 1.0.54-dev.734

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.731",
4
+ "version": "1.0.54-dev.734",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,17 +1,17 @@
1
1
  <template>
2
2
  <div class="workbenches">
3
3
  <div class="workbenches-head">
4
- <span class="f-blue">欢迎您</span>
4
+ <span class="f-blue">{{ $t1("欢迎您") }}</span>
5
5
 
6
6
  <el-link
7
7
  class="fr"
8
8
  icon="iconfont icon-tuichudenglu"
9
9
  :underline="false"
10
10
  @click="logout"
11
- >退出登录</el-link
11
+ >{{ $t1("退出登录") }}</el-link
12
12
  >
13
13
  <!-- <el-link class="fr" icon="el-icon-set-up" :underline="false" @click="openCompanyDialog" style="margin-right:10px">切换组织</el-link> -->
14
- <span class="fr">您好,{{ userInfo.nickName }}</span>
14
+ <span class="fr">{{ $t1("您好") }},{{ userInfo.nickName }}</span>
15
15
  </div>
16
16
  <div class="workbenches-box">
17
17
  <el-row>
@@ -19,7 +19,7 @@
19
19
  <div class="w-box" style="margin-right: 16px">
20
20
  <div class="w-b-head">
21
21
  <div class="tit fl">
22
- <b>应用场景</b>
22
+ <b>{{ $t1("应用场景") }}</b>
23
23
  </div>
24
24
  <!-- <div class="fr">
25
25
  <el-link icon="iconfont icon-shuaxin" :underline="false">刷新</el-link>
@@ -83,12 +83,12 @@
83
83
  <div class="w-box" style="height: 60%">
84
84
  <div class="w-b-head">
85
85
  <div class="tit fl">
86
- <b>待办事项</b>
86
+ <b>{{ $t1("待办事项") }}</b>
87
87
  <i class="nums">{{ unDoWfRows.length }}</i>
88
88
  </div>
89
89
  <div class="fr">
90
90
  <el-link :underline="false" @click="toWfManageList"
91
- >查看更多 +</el-link
91
+ >{{ $t1("查看更多") }} +</el-link
92
92
  >
93
93
  </div>
94
94
  </div>
@@ -101,8 +101,8 @@
101
101
  >
102
102
  <p class="name">{{ item.name }}</p>
103
103
  <p class="info">
104
- <span>单据类型:{{ item.objTypeName }}</span>
105
- <span>启动人:{{ item.starterName }}</span>
104
+ <span>{{ $t1("单据类型") }}:{{ item.objTypeName }}</span>
105
+ <span>{{ $t1("启动人") }}:{{ item.starterName }}</span>
106
106
  </p>
107
107
  </div>
108
108
  </div>
@@ -110,12 +110,12 @@
110
110
  <div class="w-box" style="margin-top: 16px; height: calc(40% - 16px)">
111
111
  <div class="w-b-head">
112
112
  <div class="tit fl">
113
- <b>通知公告</b>
113
+ <b>{{ $t1("通知公告") }}</b>
114
114
  <i class="nums">{{ systemNotices.length }}</i>
115
115
  </div>
116
116
  <div class="fr">
117
117
  <el-link :underline="false" @click="openSystemNoticeDialog()"
118
- >查看更多 +</el-link
118
+ >{{ $t1("查看更多") }} +</el-link
119
119
  >
120
120
  </div>
121
121
  </div>
@@ -161,7 +161,7 @@
161
161
  :option.sync="wfContentOption"
162
162
  ></wfContentDialog>
163
163
  <el-dialog
164
- title="切换组织"
164
+ :title="$t1('切换组织')"
165
165
  width="355px"
166
166
  custom-class="dialog-style list-dialog"
167
167
  v-if="showCompanyDialog"
@@ -175,7 +175,7 @@
175
175
  >
176
176
  <div class="cont">
177
177
  <el-input
178
- placeholder="搜索"
178
+ :placeholder="$t1('搜索')"
179
179
  class="search-btn"
180
180
  v-model="filterText"
181
181
  ></el-input>
@@ -480,13 +480,13 @@ export default {
480
480
  openRoutePath(row) {
481
481
  let menuCode = row.menuCode;
482
482
  if (menuCode === "todo") {
483
- this.$message.error("功能正在完善,敬请期待。");
483
+ this.$message.error(this.$t1("功能正在完善,敬请期待。"));
484
484
  return;
485
485
  }
486
486
  let routes = this.flattenTree(this.sidebarRouters);
487
487
  let route = routes.find((item) => item.menuCode === menuCode);
488
488
  if (!route) {
489
- this.$message.error("菜单没有访问权限");
489
+ this.$message.error(this.$t1("菜单没有访问权限"));
490
490
  return;
491
491
  }
492
492
  this.rourteTo(route);
@@ -12,8 +12,19 @@
12
12
  @close="dialogClose"
13
13
  v-el-drag-dialog
14
14
  v-el-dialog-center
15
- :fullscreen="true"
15
+ :fullscreen="isFullscreen"
16
+ ref="dialog"
16
17
  >
18
+ <el-button class="isFullIcon" v-if="!isFullscreen" @click="changeFullscreen(true)">
19
+ <el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
20
+ <i class="iconfont icon-quanping"></i>
21
+ </el-tooltip>
22
+ </el-button>
23
+ <el-button class="isFullIcon" v-else @click="changeFullscreen(false)">
24
+ <el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
25
+ <i class="iconfont icon-suoxiao"></i>
26
+ </el-tooltip>
27
+ </el-button>
17
28
  <div class="n-list">
18
29
  <div class="item" v-for="(item, index) in page.records" :key="index" :class="{ on: currentIndex == index }"
19
30
  @click="checkLine(item, index)">
@@ -70,6 +81,7 @@ export default {
70
81
  var that = this;
71
82
  return {
72
83
  showDialog: true,
84
+ isFullscreen: true,
73
85
  falseValue: false,
74
86
  selectMulti: true,
75
87
  page: {
@@ -90,6 +102,23 @@ export default {
90
102
  }
91
103
  },
92
104
  methods: {
105
+ changeFullscreen(val) {
106
+ this.isFullscreen = val;
107
+ // 退出全屏后,el-dialog-center 指令只在 bind 时设置过 margin-top,
108
+ // 需要在此重新计算,使弹框恢复垂直居中
109
+ this.$nextTick(() => {
110
+ let wrapper = this.$refs.dialog && this.$refs.dialog.$el;
111
+ let dialogEl = wrapper && wrapper.querySelector('.el-dialog');
112
+ if (!dialogEl) return;
113
+ if (val) {
114
+ dialogEl.style['margin-top'] = '';
115
+ } else {
116
+ let autoTop = (document.body.offsetHeight - dialogEl.offsetHeight) / 2;
117
+ if (autoTop < 0) autoTop = 0;
118
+ dialogEl.style['margin-top'] = autoTop + 'px';
119
+ }
120
+ });
121
+ },
93
122
  dialogClose() {
94
123
  this.$emit('update:visiable', false);
95
124
  },
@@ -178,4 +207,33 @@ export default {
178
207
  };
179
208
  </script>
180
209
 
181
- <style></style>
210
+ <style lang="scss" scoped>
211
+ ::v-deep .dialog-style.news-box {
212
+ .isFullIcon {
213
+ position: absolute;
214
+ top: 0;
215
+ right: 58px;
216
+ height: 42px;
217
+ padding: 0 14px;
218
+ border: none !important;
219
+ background: none !important;
220
+ box-shadow: none !important;
221
+ color: #464646;
222
+ display: flex;
223
+ align-items: center;
224
+ justify-content: center;
225
+ > span {
226
+ display: flex;
227
+ align-items: center;
228
+ justify-content: center;
229
+ line-height: 1;
230
+ }
231
+ .iconfont {
232
+ font-size: 18px;
233
+ line-height: 1;
234
+ position: relative;
235
+ top: 1px;
236
+ }
237
+ }
238
+ }
239
+ </style>