From 23cade0714cf5728fe46583415ed0dd744f98695 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期四, 08 六月 2023 16:52:35 +0800
Subject: [PATCH] 修改前端页面
---
src/components/page/ticket/index.vue | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/src/components/page/ticket/index.vue b/src/components/page/ticket/index.vue
index 648b450..e271490 100644
--- a/src/components/page/ticket/index.vue
+++ b/src/components/page/ticket/index.vue
@@ -126,6 +126,7 @@
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-view" @click="pictureHandle(scope.row)">鍥惧儚璇佹嵁</el-button>
<el-button type="text" size="small" icon="el-pay6zhifu" @click="jiaofeiHandle(scope.row.id)">鐜板満缂磋垂</el-button>
</template>
@@ -137,6 +138,7 @@
<!-- 寮圭獥, 鏂板 / 淇敼 -->
<table-form v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></table-form>
+ <table-form2 v-if="addOrUpdateVisible2" ref="addOrUpdate2" @refreshDataList="getDataList"></table-form2>
<!--鍥惧儚璇佹嵁-->
<pictureForm v-if="pictureFormVisiable" ref="pictureForm"></pictureForm>
</div>
@@ -144,6 +146,7 @@
<script>
import TableForm from './ticket-form'
+ import TableForm2 from './ticket-form2'
import pictureForm from './picture-form'
export default {
data () {
@@ -168,11 +171,13 @@
totalPage: 0,
dataListLoading: false,
addOrUpdateVisible: false,
+ addOrUpdateVisible2: false,
pictureFormVisiable:false, //鍥惧儚璇佹嵁寮规
}
},
components: {
TableForm,
+ TableForm2,
pictureForm
},
created () {
@@ -225,10 +230,26 @@
this.$refs.addOrUpdate.init(id)
})
},
+ // 鏂板 / 淇敼
+ addOrUpdateHandle2 (row) {
+ if(row.personName != null){
+ this.addOrUpdateVisible2 = true
+ this.$nextTick(() => {
+ this.$refs.addOrUpdate2.init(id)
+ })
+ }else {
+ this.$message.error("澶勫喅涔﹁繕鏈~鍐欙紒")
+ }
+
+ },
//鐜板満缂磋垂
jiaofeiHandle(id){
this.$byutil.postData(this, this.$systemconfig.basePath+'/ffzf/ticket/jiaofei', {id:id}, res => {
- this.getDataList()
+ if(res.code===0){
+ this.$message.success(res.msg)
+ }else {
+ this.$message.error(res.msg)
+ }
})
},
}
--
Gitblit v1.9.1