From c58ada7f49aac20b06ea2ebda2cb5c006decf122 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 10 五月 2024 17:01:55 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit

---
 admin/src/views/meeting/components/OperaBookingsDetailWindow.vue |  164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 164 insertions(+), 0 deletions(-)

diff --git a/admin/src/views/meeting/components/OperaBookingsDetailWindow.vue b/admin/src/views/meeting/components/OperaBookingsDetailWindow.vue
new file mode 100644
index 0000000..a1de55f
--- /dev/null
+++ b/admin/src/views/meeting/components/OperaBookingsDetailWindow.vue
@@ -0,0 +1,164 @@
+<template>
+  <GlobalAlertWindow
+    :title="title"
+    :visible.sync="visible"
+    :confirm-working="isWorking"
+    @confirm="confirm"
+    width="600px"
+  >
+    <div class="title-style">
+      <div class="header-title">{{ form.name }}</div>
+      <div class="item-value">{{ `${form.roomName} ${form.meetingTime}` }}</div>
+    </div>
+    <div class="content-style">
+      <div class="item">
+        <div class="item-title">鍙備細浜哄憳</div>
+        <div>{{ form.sysList.map(item => `${item.realName}`).join('锛�') }}</div>
+      </div>
+      <div class="item">
+        <div class="item-title">浼氳鍐呭</div>
+        <div class="item-value">{{ form.content || '鏃�' }}</div>
+      </div>
+      <div v-if="form.projectList.length" class="item">
+        <div class="">鏈嶅姟椤�</div>
+        <div class="item-value">{{ form.projectList.map(item => item.projectName).join(' | ') }}</div>
+      </div>
+      <div class="item" v-if="form.fileList.length">
+        <div class="item-title">闄勪欢</div>
+        <div>
+          <FileLink
+            :links="form.fileList"
+            linkName="fileFullUrl"
+            :isUpload="false"
+          />
+        </div>
+      </div>
+      <div class="item" v-if="!!form.remark">
+        <div class="item-title">澶囨敞</div>
+        <div class="item-value">{{ form.remark }}</div>
+      </div>
+    </div>
+    <div class="bottom-style">
+      <div class="item-title">棰勭害浜�</div>
+      <div class="item-value">{{ form.managerInfo }}</div>
+    </div>
+    <div slot="footer">
+      <el-button @click="visible=false">鍙栨秷</el-button>
+    </div>
+  </GlobalAlertWindow>
+</template>
+
+<script>
+import BaseOpera from '@/components/base/BaseOpera'
+import GlobalAlertWindow from '@/components/common/GlobalAlertWindow'
+import FileLink from '@/views/meeting/components/common/FileLink'
+export default {
+  name: 'OperaBookingsDetailWindow',
+  extends: BaseOpera,
+  components: { GlobalAlertWindow, FileLink },
+  data () {
+    return {
+      // 琛ㄥ崟鏁版嵁
+      form: {
+        id: null,
+        name: '',
+        roomName: '',
+        meetingTime: '',
+        date: '',
+        editDate: '',
+        projectList: [],
+        remark: '',
+        roomId: '',
+        startTime: '',
+        endTime: '',
+        times: [],
+        content: '',
+        sysList: [],
+        fileList: [],
+        managerInfo: ''
+      },
+      // room: [],
+      sysList: [],
+      projectList: [],
+      timelist: [],
+      // 楠岃瘉瑙勫垯
+      rules: {
+
+      }
+    }
+  },
+  created () {
+    this.config({
+      api: '/meeting/bookings',
+      'field.id': 'id'
+    })
+
+  },
+  methods: {
+    /**
+     * 鎵撳紑绐楀彛
+     * @title 绐楀彛鏍囬
+     * @target 缂栬緫鐨勫璞�
+     */
+    //  open (title, target) {
+    //   this.title = title
+    //   this.visible = true
+    //   this.timelist = []
+    //   // 鏂板缓
+    //   if (target == null) {
+    //     this.$nextTick(() => {
+    //       this.$refs.form.resetFields()
+    //       this.form[this.configData['field.id']] = null
+    //     })
+    //     return
+    //   }
+    //   // 缂栬緫
+    //   this.$nextTick(() => {
+    //     for (const key in this.form) {
+    //       this.form[key] = target[key]
+    //     }
+    //     // this.form.projectList = target.projectList ? target.projectList.map(item => item.projectId) : []
+    //     // this.form.sysList = this.form.sysList ? this.form.sysList.map(item => item.userId) : []
+    //     // this.form.date = target.startTime.split(' ')[0]
+
+    //   })
+    // },
+
+  },
+}
+</script>
+
+<style lang="scss" scoped>
+::v-deep .el-dialog__body {
+  padding: 0;
+}
+.title-style {
+  padding: 20px;
+  border-bottom: 10px #f7f7f7 solid;
+}
+.content-style {
+  padding: 20px;
+  border-bottom: 10px #f7f7f7 solid;
+}
+.item {
+  padding: 5px 0;
+}
+.header-title {
+  font-size: 16px;
+  font-weight: 600;
+  padding-bottom: 5px;
+}
+.item-title {
+  font-size: 16px;
+  color: #999;
+  padding-bottom: 5px;
+}
+.item-value {
+  font-size: 14px;
+  color: #111;
+}
+.bottom-style {
+  padding: 20px;
+}
+
+</style>

--
Gitblit v1.9.3