diff --git a/resources/assets/js/pages/manage/components/ProjectArchived.vue b/resources/assets/js/pages/manage/components/ProjectArchived.vue index ff7b44144..595a31fe1 100644 --- a/resources/assets/js/pages/manage/components/ProjectArchived.vue +++ b/resources/assets/js/pages/manage/components/ProjectArchived.vue @@ -30,17 +30,26 @@ -
- +
+ + + @@ -74,10 +83,19 @@ export default { initLanguage() { this.columns = [ { - title: this.$L('ID'), + title: 'ID', key: 'id', - minWidth: 50, - maxWidth: 70, + width: 80, + render: (h, {row, column}) => { + return h('TableAction', { + props: { + column: column, + align: 'left' + } + }, [ + h("div", row.id), + ]); + } }, { title: this.$L('项目名称'), @@ -127,51 +145,50 @@ export default { align: 'center', width: 100, render: (h, params) => { - const recoveryNode = h('Poptip', { - props: { - title: this.$L('你确定要还原归档吗?'), - confirm: true, - transfer: true, - placement: 'left', - }, - style: { - fontSize: '13px', - cursor: 'pointer', - color: '#8bcf70', - }, - on: { - 'on-ok': () => { - this.recovery(params.row); - } - }, - }, this.$L('还原')); - const deleteNode = h('Poptip', { - props: { - title: this.$L('你确定要删除项目吗?'), - confirm: true, - transfer: true, - placement: 'left', - }, - style: { - marginLeft: '6px', - fontSize: '13px', - cursor: 'pointer', - color: '#f00', - }, - on: { - 'on-ok': () => { - this.delete(params.row); - } - }, - }, this.$L('删除')); + const vNode = [ + h('Poptip', { + props: { + title: this.$L('你确定要还原归档吗?'), + confirm: true, + transfer: true, + placement: 'left', + }, + style: { + fontSize: '13px', + cursor: 'pointer', + color: '#8bcf70', + }, + on: { + 'on-ok': () => { + this.recovery(params.row); + } + }, + }, this.$L('还原')), + h('Poptip', { + props: { + title: this.$L('你确定要删除项目吗?'), + confirm: true, + transfer: true, + placement: 'left', + }, + style: { + marginLeft: '8px', + fontSize: '13px', + cursor: 'pointer', + color: '#f00', + }, + on: { + 'on-ok': () => { + this.delete(params.row); + } + }, + }, this.$L('删除')) + ]; return h('TableAction', { props: { column: params.column } - }, [ - recoveryNode, - deleteNode, - ]); + }, vNode); }, } ] diff --git a/resources/assets/js/pages/manage/components/ProjectManagement.vue b/resources/assets/js/pages/manage/components/ProjectManagement.vue index 9d84fa3f3..2314d9d9a 100644 --- a/resources/assets/js/pages/manage/components/ProjectManagement.vue +++ b/resources/assets/js/pages/manage/components/ProjectManagement.vue @@ -42,17 +42,26 @@ -
- +
+ + + @@ -86,10 +95,19 @@ export default { initLanguage() { this.columns = [ { - title: this.$L('ID'), + title: 'ID', key: 'id', - minWidth: 50, - maxWidth: 70, + width: 80, + render: (h, {row, column}) => { + return h('TableAction', { + props: { + column: column, + align: 'left' + } + }, [ + h("div", row.id), + ]); + } }, { title: this.$L('项目名称'), diff --git a/resources/assets/js/pages/manage/components/ReportMy.vue b/resources/assets/js/pages/manage/components/ReportMy.vue index 50b616af1..cbf52643d 100644 --- a/resources/assets/js/pages/manage/components/ReportMy.vue +++ b/resources/assets/js/pages/manage/components/ReportMy.vue @@ -46,30 +46,32 @@ -
- +
+
+ +