From b6218e1a65289b9c232408e9ee6247c36258a155 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期五, 09 六月 2023 13:55:15 +0800 Subject: [PATCH] 修改前端页面 --- src/components/page/ticket/index.vue | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/components/page/ticket/index.vue b/src/components/page/ticket/index.vue index 648b450..997f997 100644 --- a/src/components/page/ticket/index.vue +++ b/src/components/page/ticket/index.vue @@ -125,9 +125,11 @@ 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-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 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> @@ -137,6 +139,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 +147,7 @@ <script> import TableForm from './ticket-form' + import TableForm2 from './ticket-form2' import pictureForm from './picture-form' export default { data () { @@ -168,11 +172,13 @@ totalPage: 0, dataListLoading: false, addOrUpdateVisible: false, + addOrUpdateVisible2: false, pictureFormVisiable:false, //鍥惧儚璇佹嵁寮规 } }, components: { TableForm, + TableForm2, pictureForm }, created () { @@ -225,10 +231,33 @@ this.$refs.addOrUpdate.init(id) }) }, + // 鏂板 / 淇敼 + addOrUpdateHandle2 (row) { + if(row.personName != null){ + this.addOrUpdateVisible2 = true + this.$nextTick(() => { + this.$refs.addOrUpdate2.init(row.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) + } + }) + }, + //鍒犻櫎 + onDelete(id) { + this.$byutil.deleteData(this,this.$systemconfig.basePath+'/ffzf/ticket/delete',{id:id}, res => { + this.$message({message: '鎾ら攢鎴愬姛', type: 'success'}); + this.getDataList(); }) }, } -- Gitblit v1.9.1