From a68bf12a2975405f57f9a9d51b91c13a93c026f0 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 31 一月 2024 21:01:36 +0800
Subject: [PATCH] Mr.Shi
---
company/src/components/enterprise/selectSolutions.vue | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 113 insertions(+), 0 deletions(-)
diff --git a/company/src/components/enterprise/selectSolutions.vue b/company/src/components/enterprise/selectSolutions.vue
new file mode 100644
index 0000000..49d664e
--- /dev/null
+++ b/company/src/components/enterprise/selectSolutions.vue
@@ -0,0 +1,113 @@
+<template>
+ <GlobalWindow
+ :title="title"
+ width="100%"
+ :visible.sync="visible"
+ :confirm-working="isWorking"
+ @confirm="confirm"
+ >
+ <el-table
+ :data="list"
+ border
+ ref="table"
+ @selection-change="handleSelectionChange"
+ style="width: 100%">
+ <el-table-column
+ type="selection"
+ width="55">
+ </el-table-column>
+ <el-table-column label="搴忓彿" width="80px">
+ <template slot-scope="scope">
+ <span>{{scope.$index + 1}}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ prop="solutionName"
+ label="淇濋櫓鏂规">
+ </el-table-column>
+ <el-table-column
+ prop="bdCode"
+ label="淇濆崟鍙�">
+ </el-table-column>
+ <el-table-column
+ prop="applyChangeId"
+ label="鎵瑰崟鍙�">
+ </el-table-column>
+ <el-table-column
+ prop="duName"
+ label="娲鹃仯鍗曚綅">
+ </el-table-column>
+ <el-table-column
+ prop="worktypeName"
+ label="鎵�灞炲伐绉�">
+ </el-table-column>
+ <el-table-column
+ prop="startTime"
+ label="淇濋櫓鐢熸晥璧锋湡">
+ </el-table-column>
+ <el-table-column
+ prop="endTime"
+ label="淇濋櫓鐢熸晥姝㈡湡">
+ </el-table-column>
+ </el-table>
+ </GlobalWindow>
+</template>
+
+<script>
+ import BaseOpera from '@/components/base/BaseOpera'
+ import GlobalWindow from '@/components/common/GlobalWindow'
+ import { findList } from '@/api/business/member'
+ export default {
+ name: 'selectSolutions',
+ extends: BaseOpera,
+ components: { GlobalWindow },
+ data () {
+ return {
+ id: null,
+ list: [],
+ seleData: []
+ }
+ },
+ created () {
+ this.config({
+ api: '/business/dispatchUnit',
+ 'field.id': 'id'
+ })
+ },
+ methods: {
+ open (title, id) {
+ this.list = []
+ this.seleData = []
+ this.id = id
+ this.title = title
+ this.visible = true
+ this.getList()
+ },
+ confirm() {
+ this.$emit('success', this.seleData[0])
+ this.visible = false
+ },
+ handleSelectionChange (rows) {
+ if (rows.length > 1) {
+ this.$refs.table.clearSelection()
+ this.$refs.table.toggleRowSelection(rows.pop())
+ }
+ this.seleData = rows
+ console.log(this.seleData)
+ },
+ getList() {
+ findList({
+ memberId: this.id
+ }).then(res => {
+ this.list = res
+ })
+ }
+ }
+ }
+</script>
+
+<style lang="scss" scoped>
+ .el-checkbox::v-deep {
+ display: none;
+ }
+</style>
--
Gitblit v1.9.3