diff --git a/src/pages/details/categoryDetails/index.vue b/src/pages/details/categoryDetails/index.vue index f6a1d9cfd..615ff4f64 100644 --- a/src/pages/details/categoryDetails/index.vue +++ b/src/pages/details/categoryDetails/index.vue @@ -5,7 +5,7 @@
-
管理征求意见
+
征求意见详情
@@ -27,7 +27,7 @@
- 导出 + 添加
@@ -38,11 +38,6 @@ style="width: 100%" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', fontWeight: 'bold', height: '48px'}"> - - - + + - -
+
- - - - - - - - - 取消 - 提交 - - + +
+
+ + + + + + + + +
+ +
+
@@ -97,8 +107,7 @@ export default { data () { return { opiniontitle: '新增意见', - exportName:'', - exportModelFlag: false, //导出模态窗状态 + isDialog: false, //新增抽屉状态 heightShow: true, isSubmit: false, opinionList: { @@ -114,28 +123,18 @@ export default { standinfoList: [{ date: '1.1.2', name: '文章内容不清晰', - department: '事业部', - proposer: '李兰', }, { date: '1.2.3.1', name: '标准有错误', - department: '事业部', - proposer: '李兰', }, { date: '1.21.1', name: '标准延时', - department: '事业部', - proposer: '李兰', }, { date: '1.21.1', name: '实用性不高', - department: '法规部', - proposer: '王兰', }, { date: '1.2.31', name: '不贴合国家标准', - department: '法规部', - proposer: '李兰', }, ], newModelPageConfig: { page: 1, @@ -144,11 +143,6 @@ export default { } }, methods: { - //导出选中的标准 - exportStandard(){ - this.exportModelFlag = true - - }, //分页数据改变 handlePageChange(field, page) { switch (field) { @@ -171,14 +165,53 @@ export default { name:'standardForComments' }) }, - //取消导出 - cancal(){ - this.exportModelFlag = false + // 更多 + handleCommand (command) { + switch (command[1]) { + case '编辑': + this.selectStandardPro(command[0], 'edit') + break + case '删除': + this.deleteStand(1, command[0].id) + break + } + }, + //编辑 + selectStandardPro(){ + this.opiniontitle = '编辑意见内容' + this.isDialog = true + }, + //删除 + deleteStand(flag,itemid){ + if(flag === 1){ + ( + this.$confirm('确认删除这些意见?', '提示', { + confirmButtonText: '确定', + confirmButtonClass: 'common-button-primary', + cancelButtonText: '取消', + type: 'warning', + roundButton: false + }).then(() => { + //确认事件 + }).catch(() => { + //取消事件 + }) + ) + } + }, + //新增意见模态窗 + addModel() { + this.opiniontitle = '新增意见' + this.isDialog = true + }, + //点击抽屉按钮提交事件 + saveUserInfo() { + this.isDialog = false + }, + //点击抽屉按钮取消事件 + closeDrawer() { + this.isDialog = false }, - //提交导出 - exportTestItem() { - this.exportModelFlag = false - } }, mounted () {}