@jx3box/jx3box-common-ui 5.3.6 → 5.3.7

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.3.6",
3
+ "version": "5.3.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-common": "^6.7.3",
33
+ "@jx3box/jx3box-common": "^6.7.8",
34
34
  "@jx3box/jx3box-data": "^1.8.3",
35
35
  "axios": "^0.19.2",
36
36
  "element-ui": "^2.13.2",
@@ -10,14 +10,16 @@
10
10
  v-if="hasRight"
11
11
  >
12
12
  <div class="c-admin-wrapper">
13
- <el-divider content-position="left">状态变更</el-divider>
14
- <el-radio-group v-model="post_status" size="small" class="c-admin-status">
15
- <el-radio-button
16
- v-for="(option, key) in status_options"
17
- :label="key"
18
- :key="key"
19
- >{{ option }}</el-radio-button>
20
- </el-radio-group>
13
+ <template v-if="isAdmin">
14
+ <el-divider content-position="left">状态变更</el-divider>
15
+ <el-radio-group v-model="post_status" size="small" class="c-admin-status">
16
+ <el-radio-button
17
+ v-for="(option, key) in status_options"
18
+ :label="key"
19
+ :key="key"
20
+ >{{ option }}</el-radio-button>
21
+ </el-radio-group>
22
+ </template>
21
23
 
22
24
  <el-divider content-position="left">可见性变更</el-divider>
23
25
  <el-radio-group v-model="visible" size="small" class="c-admin-status">
@@ -140,6 +142,7 @@ export default {
140
142
  status_options: {
141
143
  publish: "默认",
142
144
  draft: "草稿",
145
+ pending: "待审核",
143
146
  dustbin: "删除",
144
147
  },
145
148
  visible: "0",
@@ -192,6 +195,9 @@ export default {
192
195
  sticky: this.isSticky ? Date.now() : null,
193
196
  };
194
197
  },
198
+ isAdmin : function (){
199
+ return User.isAdmin()
200
+ }
195
201
  },
196
202
  methods: {
197
203
  // 是否有权限