From 105abcb08f5d1c1114ce0e093d1a4912fbbfd609 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期五, 09 六月 2023 16:43:47 +0800
Subject: [PATCH] 修改前端页面
---
src/components/page/ticket/index.vue | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/src/components/page/ticket/index.vue b/src/components/page/ticket/index.vue
index e271490..6e54bd2 100644
--- a/src/components/page/ticket/index.vue
+++ b/src/components/page/ticket/index.vue
@@ -120,15 +120,17 @@
label="澶囨敞">
</el-table-column>
<el-table-column
+ width="300px"
fixed="right"
header-align="center"
align="center"
label="鎿嶄綔">
<template slot-scope="scope">
- <el-button type="text" size="small" icon="el-icon-view" @click="addOrUpdateHandle(scope.row.id)">澶勫喅涔�</el-button>
- <el-button type="text" size="small" icon="el-icon-view" @click="addOrUpdateHandle2(scope.row)">閫佽揪鍥炶瘉</el-button>
+ <el-button type="text" size="small" icon="el-icon-document" @click="addOrUpdateHandle(scope.row.id)">澶勫喅涔�</el-button>
+ <el-button type="text" size="small" icon="el-icon-document-checked" @click="addOrUpdateHandle2(scope.row)">閫佽揪鍥炶瘉</el-button>
<el-button type="text" size="small" icon="el-icon-view" @click="pictureHandle(scope.row)">鍥惧儚璇佹嵁</el-button>
- <el-button type="text" size="small" icon="el-pay6zhifu" @click="jiaofeiHandle(scope.row.id)">鐜板満缂磋垂</el-button>
+ <el-button v-if="items==2" type="text" size="small" icon="el-icon-delete" @click="onDelete(scope.row.id)">鎾ら攢</el-button>
+<!-- <el-button type="text" size="small" icon="el-pay6zhifu" @click="jiaofeiHandle(scope.row.id)">鐜板満缂磋垂</el-button>-->
</template>
</el-table-column>
</el-table>
@@ -148,6 +150,7 @@
import TableForm from './ticket-form'
import TableForm2 from './ticket-form2'
import pictureForm from './picture-form'
+ import {mapState} from 'vuex'
export default {
data () {
return {
@@ -186,7 +189,9 @@
this.tableHeight = window.innerHeight - 255
},
computed: {
-
+ ...mapState({
+ items:'roles'
+ }),
},
methods: {
// 鑾峰彇鏁版嵁鍒楄〃
@@ -235,7 +240,7 @@
if(row.personName != null){
this.addOrUpdateVisible2 = true
this.$nextTick(() => {
- this.$refs.addOrUpdate2.init(id)
+ this.$refs.addOrUpdate2.init(row.id)
})
}else {
this.$message.error("澶勫喅涔﹁繕鏈~鍐欙紒")
@@ -252,6 +257,13 @@
}
})
},
+ //鍒犻櫎
+ onDelete(id) {
+ this.$byutil.deleteData(this,this.$systemconfig.basePath+'/ffzf/ticket/delete',{id:id}, res => {
+ this.$message({message: '鎾ら攢鎴愬姛', type: 'success'});
+ this.getDataList();
+ })
+ },
}
}
</script>
--
Gitblit v1.9.1