From 2c66d5e8036399690367a860c6f3f9ca1f82c777 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期三, 13 十二月 2023 18:15:53 +0800
Subject: [PATCH] su

---
 src/views/picture/music/index.vue |  990 ++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 559 insertions(+), 431 deletions(-)

diff --git a/src/views/picture/music/index.vue b/src/views/picture/music/index.vue
index fdee51f..a9b663e 100644
--- a/src/views/picture/music/index.vue
+++ b/src/views/picture/music/index.vue
@@ -1,104 +1,106 @@
 <template>
-    <div class="app-container">
-        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-            <el-form-item label="浣撴鍙�" prop="tjNum">
-                <el-input v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery"
-                    style="width: 160px;" />
-            </el-form-item>
-            <el-form-item label="濮撳悕" prop="name">
-                <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" clearable @keyup.enter.native="handleQuery"
-                    style="width: 110px;" />
-            </el-form-item>
-            <!-- <el-form-item label="椤圭洰" prop="proId">
-                            <el-input
-                                    v-model="queryParams.proId"
-                                    placeholder="璇疯緭鍏ラ」鐩�"
-                                    clearable
-                                    @keyup.enter.native="handleQuery"
-                            />
-                        </el-form-item> -->
-            <!-- <el-form-item label="椤圭洰鍚�" prop="proName">
-                            <el-input
-                                    v-model="queryParams.proName"
-                                    placeholder="璇疯緭鍏ラ」鐩悕"
-                                    clearable
-                                    @keyup.enter.native="handleQuery"
-                                    style="width: 150px;"
-                            />
-                        </el-form-item> -->
-            <!-- <el-form-item label="椤圭洰缁撴灉" prop="proResult">
-                            <el-input
-                                    v-model="queryParams.proResult"
-                                    placeholder="璇疯緭鍏ラ」鐩粨鏋�"
-                                    clearable
-                                    @keyup.enter.native="handleQuery"
-                            />
-                        </el-form-item>
-                        <el-form-item label="缁撹" prop="conclusion">
-                            <el-input
-                                    v-model="queryParams.conclusion"
-                                    placeholder="璇疯緭鍏ョ粨璁�"
-                                    clearable
-                                    @keyup.enter.native="handleQuery"
-                            />
-                        </el-form-item> -->
-            <el-form-item>
-                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
-                <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
-            </el-form-item>
-        </el-form>
+  <div class="app-container">
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+      label-width="68px"
+    >
+      <el-form-item label="浣撴鍙�" prop="tjNum">
+        <el-input
+          v-model="queryParams.tjNum"
+          placeholder="璇疯緭鍏ヤ綋妫�鍙�"
+          clearable
+          @keyup.enter.native="handleQuery"
+          style="width: 160px"
+        />
+      </el-form-item>
+      <el-form-item label="濮撳悕" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="璇疯緭鍏ュ鍚�"
+          clearable
+          @keyup.enter.native="handleQuery"
+          style="width: 110px"
+        />
+      </el-form-item>
+      <!-- <el-form-item label="椤圭洰" prop="proId">
+            <el-input v-model="queryParams.proId" placeholder="璇疯緭鍏ラ」鐩�" clearable @keyup.enter.native="handleQuery"/></el-form-item> -->
+      <!-- <el-form-item label="椤圭洰鍚�" prop="proName">
+            <el-input v-model="queryParams.proName" placeholder="璇疯緭鍏ラ」鐩悕" clearable  @keyup.enter.native="handleQuery" style="width: 150px;"/></el-form-item> -->
+      <!-- <el-form-item label="椤圭洰缁撴灉" prop="proResult">
+             <el-input v-model="queryParams.proResult" placeholder="璇疯緭鍏ラ」鐩粨鏋�" clearable @keyup.enter.native="handleQuery"/></el-form-item>
+            <el-form-item label="缁撹" prop="conclusion">
+             <el-input v-model="queryParams.conclusion" placeholder="璇疯緭鍏ョ粨璁�" clearable @keyup.enter.native="handleQuery"/></el-form-item> -->
+      <el-form-item>
+        <el-button
+          type="primary"
+          icon="el-icon-search"
+          size="mini"
+          @click="handleQuery"
+          >鎼滅储</el-button
+        >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >閲嶇疆</el-button
+        >
+      </el-form-item>
+    </el-form>
 
-        <!-- <el-row :gutter="10" class="mb8">
-            <el-col :span="1.5">
-                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
-                    v-hasPermi="['picture:picture:add']">鏂板
-                </el-button>
-            </el-col>
-            <el-col :span="1.5">
-                <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
-                    v-hasPermi="['picture:picture:edit']">淇敼
-                </el-button>
-            </el-col>
-            <el-col :span="1.5">
-                <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
-                    v-hasPermi="['picture:picture:remove']">鍒犻櫎
-                </el-button>
-            </el-col>
-            <el-col :span="1.5">
-                <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
-                    v-hasPermi="['picture:picture:export']">瀵煎嚭
-                </el-button>
-            </el-col>
-            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
-        </el-row> -->
-        <div style="width: 100%; margin-left: 10px;display: flex;">
-            <div style="width: 39%; margin-right: 30px;">
-                <el-table id="table" v-loading="loading" ref="tb" :data="pictureList"
-                    @selection-change="handleSelectionChange" border height="630px">
-                    <el-table-column type="selection" width="40" align="center" />
-                    <el-table-column label="浣撴鍙�" align="center" prop="customer.tjNumber" width="160px" />
-                    <el-table-column label="濮撳悕" align="center" prop="customer.cusName" width="90px" />
-                    <!-- <el-table-column label="韬唤璇�" align="center" prop="customer.cusIdcard" width="170px" /> -->
-                    <el-table-column label="鎬у埆" align="center" prop="customer.cusSex" width="60px">
-                        <template slot-scope="scope">
-                            {{ scope.row.customer.cusSex === 0 ? "鐢�" : "濂�" }}
-                            <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
-                        </template>
-                    </el-table-column>
-                    <!-- <el-table-column label="鐢熸棩" align="center" prop="customer.cusBrithday" width="110px" /> -->
-                    <el-table-column label="鎵嬫満鍙�" align="center" prop="customer.cusPhone" width="120px" />
-                    <el-table-column label="濠氬Щ" align="center" prop="cusMarryStatus" width="90px">
-                        <template slot-scope="scope">
-                            <dict-tag :options="dict.type.dict_user_marry" :value="scope.row.customer.cusMarryStatus" />
-                        </template>
-                    </el-table-column>
-                    <el-table-column label="姘戞棌" align="center" prop="cusNational" width="90px">
-                        <template slot-scope="scope">
-                            <dict-tag :options="dict.type.dict_user_national" :value="scope.row.customer.cusNational" />
-                        </template>
-                    </el-table-column>
-                    <!-- <el-table-column label="蹇冪數鍥�" align="center" prop="xdt" /> -->
-                    <!-- <el-table-column label="椤圭洰鍚�" align="center" prop="proName" />
+    <div style="width: 100%; margin-left: 10px; display: flex">
+      <div style="width: 97%; margin-right: 30px">
+        <el-table
+          id="table"
+          v-loading="loading"
+          ref="tb"
+          :data="pictureList"
+          @selection-change="handleSelectionChange"
+          border
+          height="630px"
+        >
+          <el-table-column type="selection" width="40" align="center" />
+          <el-table-column
+            label="浣撴鍙�"
+            align="center"
+            prop="customer.tjNumber"
+          />
+          <el-table-column
+            label="濮撳悕"
+            align="center"
+            prop="customer.cusName"
+          />
+          <!-- <el-table-column label="韬唤璇�" align="center" prop="customer.cusIdcard" width="170px" /> -->
+          <el-table-column label="鎬у埆" align="center" prop="customer.cusSex">
+            <template slot-scope="scope">
+              {{ scope.row.customer.cusSex === 0 ? "鐢�" : "濂�" }}
+              <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
+            </template>
+          </el-table-column>
+          <!-- <el-table-column label="鐢熸棩" align="center" prop="customer.cusBrithday" width="110px" /> -->
+          <el-table-column
+            label="鎵嬫満鍙�"
+            align="center"
+            prop="customer.cusPhone"
+          />
+          <el-table-column label="濠氬Щ" align="center" prop="cusMarryStatus">
+            <template slot-scope="scope">
+              <dict-tag
+                :options="dict.type.dict_user_marry"
+                :value="scope.row.customer.cusMarryStatus"
+              />
+            </template>
+          </el-table-column>
+          <el-table-column label="姘戞棌" align="center" prop="cusNational">
+            <template slot-scope="scope">
+              <dict-tag
+                :options="dict.type.dict_user_national"
+                :value="scope.row.customer.cusNational"
+              />
+            </template>
+          </el-table-column>
+          <!-- <el-table-column label="蹇冪數鍥�" align="center" prop="xdt" /> -->
+          <!-- <el-table-column label="椤圭洰鍚�" align="center" prop="proName" />
                     <el-table-column label="椤圭洰缁撴灉" align="center" prop="proResult" />
                     <el-table-column label="缁撹" align="center" prop="conclusion" />
                  <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
@@ -121,29 +123,39 @@
                     </el-button>
                 </template>
             </el-table-column> -->
-                </el-table>
-            </div>
-            <div style="width: 44%;height: 610px;">
-                <el-table v-loading="loading" ref="mu" :data="tableList" @selection-change="handleChange" border>
-                    <el-table-column type="selection" width="40" align="center" />
-                    <el-table-column label="鏀惰垂椤圭洰" align="center" prop="proName" />
-                    <el-table-column label="椤圭洰鍚嶇О" align="center" prop="proName" />
-                    <el-table-column label="椤圭洰缁撴灉" align="center" prop="fixedValue" />
-                    <!-- <el-table-column label="缁撹" align="center" prop="measuredValue" /> -->
-                </el-table>
+        </el-table>
+      </div>
+      <!-- <div style="width: 44%; height: 610px">
+        <el-table
+          v-loading="loading"
+          ref="mu"
+          :data="tableList"
+          @selection-change="handleChange"
+          border
+        >
+          <el-table-column type="selection" width="40" align="center" />
+          <el-table-column label="鏀惰垂椤圭洰" align="center" prop="proName" />
+          <el-table-column label="椤圭洰鍚嶇О" align="center" prop="proName" />
+          <el-table-column label="椤圭洰缁撴灉" align="center" prop="fixedValue" /> -->
+      <!-- <el-table-column label="缁撹" align="center" prop="measuredValue" /> -->
+      <!-- </el-table>
 
-                <div style=" height:390px;margin-top: 10px;">
-                    <el-image v-loading="loading" style='height: 390px;width: 100%;' :src="imgsrc + tjNumber + '.png'"
-                        :preview-src-list="[imgsrc + tjNumber + '.png']"></el-image>
-                </div>
-                <!-- <div style=" height:390px;margin-top: 10px;">
+        <div style="height: 390px; margin-top: 10px">
+          <el-image
+            v-loading="loading"
+            style="height: 390px; width: 100%"
+            :src="imgsrc + tjNumber + '.png'"
+            :preview-src-list="[imgsrc + tjNumber + '.png']"
+          ></el-image>
+        </div> -->
+      <!-- <div style=" height:390px;margin-top: 10px;">
                     <div class="left"> -->
-                <!-- style='height: 390px;width: 100%;' -->
-                <!-- <el-image v-loading="loading" class="leftImg" :src="imgsrc"></el-image> -->
-                <!-- 榧犳爣灞傜僵 -->
-                <!-- <div v-show="topShow" class="top" :style="topStyle"></div> -->
-                <!-- 鏈�椤跺眰瑕嗙洊浜嗘暣涓師鍥剧┖闂寸殑閫忔槑灞傜僵 -->
-                <!-- <div class="maskTop" @mouseenter="enterHandler" @mousemove="moveHandler" @mouseout="outHandler">
+      <!-- style='height: 390px;width: 100%;' -->
+      <!-- <el-image v-loading="loading" class="leftImg" :src="imgsrc"></el-image> -->
+      <!-- 榧犳爣灞傜僵 -->
+      <!-- <div v-show="topShow" class="top" :style="topStyle"></div> -->
+      <!-- 鏈�椤跺眰瑕嗙洊浜嗘暣涓師鍥剧┖闂寸殑閫忔槑灞傜僵 -->
+      <!-- <div class="maskTop" @mouseenter="enterHandler" @mousemove="moveHandler" @mouseout="outHandler">
                         </div>
                     </div>
                     <div v-show="rShow" class="right">
@@ -151,24 +163,37 @@
                     </div>
                 </div> -->
 
+      <!-- <div style="margin-top: 20px">
+          <el-form
+            :model="form"
+            ref="queryForm"
+            size="small"
+            :inline="true"
+            label-width="68px"
+          >
+            <el-form-item label="椤圭洰缁撴灉" prop="fixedValue">
+              <el-input v-model="form.fixedValue" clearable />
+            </el-form-item>
+            <el-form-item label="缁撴灉缁撹" prop="measuredValue">
+              <el-input
+                v-model="form.measuredValue"
+                clearable
+                @focus="submiepilog"
+              />
+            </el-form-item>
+            <el-form-item>
+              <el-button
+                type="primary"
+                icon="el-icon-search"
+                size="mini"
+                @click="submito"
+                >鎻愪氦</el-button
+              >
+            </el-form-item>
+          </el-form>
+        </div> -->
 
-
-                <div style="margin-top: 20px;">
-                    <el-form :model="form" ref="queryForm" size="small" :inline="true" label-width="68px">
-                        <el-form-item label="椤圭洰缁撴灉" prop="fixedValue">
-                            <el-input v-model="form.fixedValue" clearable />
-                        </el-form-item>
-                        <el-form-item label="缁撴灉缁撹" prop="measuredValue">
-                            <el-input v-model="form.measuredValue" clearable @focus="submiepilog" />
-                        </el-form-item>
-                        <el-form-item>
-                            <el-button type="primary" icon="el-icon-search" size="mini" @click="submito">鎻愪氦</el-button>
-                        </el-form-item>
-                    </el-form>
-                </div>
-
-
-                <!-- <div style="display:flex">
+      <!-- <div style="display:flex">
                     <el-tabs v-model="activeName" type="card" style="margin: 10px;width: 100%;">
                         <el-tab-pane label="椤圭洰缁撴灉" name="first">
                             <el-input type="textarea"  :rows="3" placeholder="璇疯緭鍏ュ唴瀹�"
@@ -185,342 +210,445 @@
                         <el-button type="primary" icon="el-icon-s-claim" size="mini" @click="submito">鎻愪氦</el-button>
                     </div>
                 </div> -->
-            </div>
-        </div>
-
-
-        <div style="margin-right: 70%;">
-            <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
-                :limit.sync="queryParams.pageSize" @pagination="getList" />
-        </div>
-
-        <Public ref="aaa" @add="handleChanges" />
+      <!-- </div> -->
     </div>
+
+    <div style="margin-right: 70%">
+      <pagination
+        v-show="total > 0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+    </div>
+    <el-drawer
+      title="鎴戞槸鏍囬"
+      :visible.sync="drawer"
+      :with-header="false"
+      size="60%"
+    >
+      <div>
+        <div style="margin-top:20px;width:50%">
+          <el-form
+            :model="queryParams"
+            ref="queryForm"
+            size="small"
+            :inline="true"
+            v-show="showSearch"
+            label-width="68px"
+          >
+            <el-form-item label="鍗曚綅鍚嶇О" prop="tjNum">
+              <el-input
+                v-model="queryParams.tjNum"
+                placeholder="璇疯緭鍏ュ崟浣嶅悕绉�"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+            <el-form-item label="鍗曚綅宸ョ" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ュ崟浣嶅伐绉�"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+             <el-form-item label="濮撳悕" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ュ鍚�"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+             <el-form-item label="鎬у埆" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ユ�у埆"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+            <el-form-item label="骞撮緞" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ュ勾榫�"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+             <el-form-item label="韬唤璇佸彿" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ヨ韩浠借瘉鍙�"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+            <el-form-item label="浣撴鏃ユ湡" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ヤ綋妫�鏃ユ湡"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+            <el-form-item label="浣撴绫诲瀷" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ヤ綋妫�绫诲瀷"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+            <el-form-item label="宸ラ緞" prop="name">
+              <el-input
+                v-model="queryParams.name"
+                placeholder="璇疯緭鍏ュ伐榫�"
+                clearable
+                @keyup.enter.native="handleQuery"
+                style="width: 150px"
+              />
+            </el-form-item>
+          </el-form>
+        </div>
+        <div style="width:50%"></div>
+      </div>
+    </el-drawer>
+
+    <Public ref="aaa" @add="handleChanges" />
+  </div>
 </template>
 
 <script>
 import {
-    getList,
-    getPicture,
-    delPicture,
-    addPicture,
-    updatePureToneTest
+  getList,
+  getPicture,
+  delPicture,
+  addPicture,
+  updatePureToneTest,
 } from "@/api/picture/pureToneTest";
 
 import Public from "@/components/public";
 export default {
-    dicts: [
-        "sys_user_sex", "sampling_type", "sys_dict_specimen", "dict_user_marry", "dict_user_national"
-    ],
-    name: "Picture",
-    components: { Public },
-    data() {
-        return {
-            topStyle: { transform: '' },
-            r_img: {},
-            topShow: false,
-            rShow: false,
-            // 閬僵灞�
-            loading: true,
-            result: true,
-            epilog: false,
-            // 閫変腑鏁扮粍
-            ids: [],
-            activeName: 'first',
-            textarea2: '',
-            // 闈炲崟涓鐢�
-            single: true,
-            // 闈炲涓鐢�
-            multiple: true,
-            // 鏄剧ず鎼滅储鏉′欢
-            showSearch: true,
-            // 鎬绘潯鏁�
-            total: 0,
-            // 浣撴蹇冪數鍥剧鐞嗚〃鏍兼暟鎹�
-            pictureList: [],
-            tableList: [],
-            imgsrc: "",
-            tjNumber: "",
-            measuredValue: "",
-            fixedValue: "",
-            // 寮瑰嚭灞傛爣棰�
-            title: "",
-            // 鏄惁鏄剧ず寮瑰嚭灞�
-            open: false,
-            // 鏌ヨ鍙傛暟
-            queryParams: {
-                pageNum: 1,
-                pageSize: 10,
-                tjNum: null,
-                name: null,
-                xdt: null,
-                proId: null,
-                proName: null,
-                proResult: null,
-                conclusion: null,
-            },
-            // 琛ㄥ崟鍙傛暟
-            form: {
-                measuredValue: "",
-                fixedValue: "",
-            },
-            dataobj: {},
-            // 琛ㄥ崟鏍¢獙
-            rules: {
-            }
-        };
+  dicts: [
+    "sys_user_sex",
+    "sampling_type",
+    "sys_dict_specimen",
+    "dict_user_marry",
+    "dict_user_national",
+  ],
+  name: "Picture",
+  components: { Public },
+  data() {
+    return {
+      drawer: false,
+      topStyle: { transform: "" },
+      r_img: {},
+      topShow: false,
+      rShow: false,
+      // 閬僵灞�
+      loading: true,
+      result: true,
+      epilog: false,
+      // 閫変腑鏁扮粍
+      ids: [],
+      activeName: "first",
+      textarea2: "",
+      // 闈炲崟涓鐢�
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鎬绘潯鏁�
+      total: 0,
+      // 浣撴蹇冪數鍥剧鐞嗚〃鏍兼暟鎹�
+      pictureList: [],
+      tableList: [],
+      imgsrc: "",
+      tjNumber: "",
+      measuredValue: "",
+      fixedValue: "",
+      // 寮瑰嚭灞傛爣棰�
+      title: "",
+      // 鏄惁鏄剧ず寮瑰嚭灞�
+      open: false,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        tjNum: null,
+        name: null,
+        xdt: null,
+        proId: null,
+        proName: null,
+        proResult: null,
+        conclusion: null,
+      },
+      // 琛ㄥ崟鍙傛暟
+      form: {
+        measuredValue: "",
+        fixedValue: "",
+      },
+      dataobj: {},
+      // 琛ㄥ崟鏍¢獙
+      rules: {},
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    // 榧犳爣杩涘叆鍘熷浘绌洪棿鍑芥暟
+    enterHandler() {
+      // 灞傜僵鍙婃斁澶х┖闂寸殑鏄剧ず
+      this.topShow = true;
+      this.rShow = true;
     },
-    created() {
-        this.getList();
+    // 榧犳爣绉诲姩鍑芥暟
+    moveHandler(event) {
+      // 榧犳爣鐨勫潗鏍囦綅缃�
+      let x = event.offsetX;
+      let y = event.offsetY;
+      // 灞傜僵鐨勫乏涓婅鍧愭爣浣嶇疆锛屽苟瀵瑰叾杩涜闄愬埗锛氭棤娉曡秴鍑哄師鍥惧尯鍩熷乏涓婅
+      let topX = x - 100 < 0 ? 0 : x - 100;
+      let topY = y - 100 < 0 ? 0 : y - 100;
+      // 瀵瑰眰缃╀綅缃啀涓�娆¢檺鍒讹紝淇濊瘉灞傜僵鍙兘鍦ㄥ師鍥惧尯鍩熺┖闂村唴
+      if (topX > 200) {
+        topX = 200;
+      }
+      if (topY > 200) {
+        topY = 200;
+      }
+      // 閫氳繃 transform 杩涜绉诲姩鎺у埗
+      this.topStyle.transform = `translate(${topX}px,${topY}px)`;
+      this.r_img.transform = `translate(-${2 * topX}px,-${2 * topY}px)`;
     },
-    methods: {
-        // 榧犳爣杩涘叆鍘熷浘绌洪棿鍑芥暟
-        enterHandler() {
-            // 灞傜僵鍙婃斁澶х┖闂寸殑鏄剧ず
-            this.topShow = true
-            this.rShow = true
-        },
-        // 榧犳爣绉诲姩鍑芥暟
-        moveHandler(event) {
-            // 榧犳爣鐨勫潗鏍囦綅缃�
-            let x = event.offsetX
-            let y = event.offsetY
-            // 灞傜僵鐨勫乏涓婅鍧愭爣浣嶇疆锛屽苟瀵瑰叾杩涜闄愬埗锛氭棤娉曡秴鍑哄師鍥惧尯鍩熷乏涓婅
-            let topX = (x - 100) < 0 ? 0 : (x - 100)
-            let topY = (y - 100) < 0 ? 0 : (y - 100)
-            // 瀵瑰眰缃╀綅缃啀涓�娆¢檺鍒讹紝淇濊瘉灞傜僵鍙兘鍦ㄥ師鍥惧尯鍩熺┖闂村唴
-            if (topX > 200) {
-                topX = 200
-            }
-            if (topY > 200) {
-                topY = 200
-            }
-            // 閫氳繃 transform 杩涜绉诲姩鎺у埗
-            this.topStyle.transform = `translate(${topX}px,${topY}px)`
-            this.r_img.transform = `translate(-${2 * topX}px,-${2 * topY}px)`
-        },
-        // 榧犳爣绉诲嚭鍑芥暟
-        outHandler() {
-            // 鎺у埗灞傜僵涓庢斁澶х┖闂寸殑闅愯棌
-            this.topShow = false
-            this.rShow = false
-        },
-        /** 鏌ヨ浣撴蹇冪數鍥剧鐞嗗垪琛� */
-        getList() {
-            this.loading = true;
-            getList(this.queryParams).then(response => {
-                if (response.data.list) {
-                    this.pictureList = response.data.list;
-                } else {
-                    this.$message.warning("鏌ユ棤姝や汉");
-                }
-                if (this.pictureList.length != 0) {
-                    this.$nextTick(() => {
-                        this.$refs.tb.toggleRowSelection(this.pictureList[0], true);
-                    })
-                } else {
-                    this.$refs.tb.clearSelection();
-                }
-                this.total = response.data.total;
-                this.loading = false;
-            });
-            this.loading = false;
-        },
-        // 鍙栨秷鎸夐挳
-        cancel() {
-            this.open = false;
-            this.reset();
-        },
-        // 琛ㄥ崟閲嶇疆
-        reset() {
-            this.form = {
-                id: null,
-                tjNum: null,
-                cusId: null,
-                xdt: null,
-                proId: null,
-                proName: null,
-                proResult: null,
-                conclusion: null,
-                createBy: null,
-                createTime: null,
-                updateBy: null,
-                updateTime: null,
-                deleted: null
-            };
-            this.resetForm("form");
-        },
-        /** 鎼滅储鎸夐挳鎿嶄綔 */
-        handleQuery() {
-            this.queryParams.pageNum = 1;
-            this.getList();
-        },
-        /** 閲嶇疆鎸夐挳鎿嶄綔 */
-        resetQuery() {
-            this.resetForm("queryForm");
-            this.handleQuery();
-        },
-        // 澶氶�夋閫変腑鏁版嵁
-        handleSelectionChange(selection) {
-            this.imgsrc = selection[0].picturePath
-            this.tjNumber = selection[0].customer.tjNumber
-            this.ids = selection.map(item => item.id)
-            selection.forEach(element => {
-                this.tableList = element.list
-                if (this.tableList.length != 0) {
-                    this.tableList.forEach(item => {
-                        this.form.fixedValue = item.fixedValue
-                        this.form.measuredValue = item.measuredValue
-                    })
-                    this.$nextTick(() => {
-                        this.$refs.mu.toggleRowSelection(this.tableList[0], true);
-                    })
-                } else {
-                    this.$refs.mu.clearSelection();
-                }
-            });
-            // this.tableList.forEach(item => {
-            //     this.imgsrc = item.dctt
-            // })
-            if (selection.length > 1) {
-                let del_row = selection.shift();
-                this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
-            }
-            this.single = selection.length !== 1
-            this.multiple = !selection.length
-        },
-        // /** 鏂板鎸夐挳鎿嶄綔 */
-        // handleAdd() {
-        //     this.reset();
-        //     this.open = true;
-        //     this.title = "娣诲姞浣撴蹇冪數鍥剧鐞�";
-        // },
-        // /** 淇敼鎸夐挳鎿嶄綔 */
-        // handleUpdate(row) {
-        //     this.reset();
-        //     const id = row.id || this.ids
-        //     getPicture(id).then(response => {
-        //         this.form = response.data;
-        //         this.open = true;
-        //         this.title = "淇敼浣撴蹇冪數鍥剧鐞�";
-        //     });
-        // },
-        submiepilog() {
-            this.$refs.aaa.open = true;
-            let proId = "1633660948860522546"
-            this.$refs.aaa.getList(proId);
-        },
-        handleChanges(value) {
-            this.form.measuredValue = value
-        },
-
-        handleChange(selection) {
-            selection.forEach(element => {
-                this.dataobj = element
-            });
-        },
-
-        // 纭畾鎸夐挳
-        submito() {
-            if (this.dataobj) {
-                if (this.form.fixedValue) {
-                    this.dataobj.fixedValue = this.form.fixedValue
-                }
-                if (this.form.measuredValue) {
-                    this.dataobj.measuredValue = this.form.measuredValue
-                }
-                updatePureToneTest(this.dataobj).then(res => {
-                    this.$modal.msgSuccess("鎻愪氦鎴愬姛");
-                    this.getList()
-                    this.form.fixedValue = ""
-                    this.form.measuredValue = ""
-                })
-            } else {
-                this.$modal.msgSuccess("閫夋嫨淇敼椤圭洰");
-            }
-
-        },
-
-        //鍒犻櫎鎸夐挳
-        handleDelete() {
-
-        },
-
-        // 瀵煎嚭
-        handleExport() {
-
+    // 榧犳爣绉诲嚭鍑芥暟
+    outHandler() {
+      // 鎺у埗灞傜僵涓庢斁澶х┖闂寸殑闅愯棌
+      this.topShow = false;
+      this.rShow = false;
+    },
+    /** 鏌ヨ浣撴蹇冪數鍥剧鐞嗗垪琛� */
+    getList() {
+      this.loading = true;
+      getList(this.queryParams).then((response) => {
+        if (response.data.list) {
+          this.pictureList = response.data.list;
+        } else {
+          this.$message.warning("鏌ユ棤姝や汉");
         }
+        if (this.pictureList.length != 0) {
+          this.$nextTick(() => {
+            this.$refs.tb.toggleRowSelection(this.pictureList[0], true);
+          });
+        } else {
+          this.$refs.tb.clearSelection();
+        }
+        this.total = response.data.total;
+        this.loading = false;
+      });
+      this.loading = false;
+    },
+    // 鍙栨秷鎸夐挳
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 琛ㄥ崟閲嶇疆
+    reset() {
+      this.form = {
+        id: null,
+        tjNum: null,
+        cusId: null,
+        xdt: null,
+        proId: null,
+        proName: null,
+        proResult: null,
+        conclusion: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        deleted: null,
+      };
+      this.resetForm("form");
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.drawer = true;
+      this.imgsrc = selection[0].picturePath;
+      this.tjNumber = selection[0].customer.tjNumber;
+      this.ids = selection.map((item) => item.id);
+      selection.forEach((element) => {
+        this.tableList = element.list;
+        if (this.tableList.length != 0) {
+          this.tableList.forEach((item) => {
+            this.form.fixedValue = item.fixedValue;
+            this.form.measuredValue = item.measuredValue;
+          });
+          this.$nextTick(() => {
+            this.$refs.mu.toggleRowSelection(this.tableList[0], true);
+          });
+        } else {
+          this.$refs.mu.clearSelection();
+        }
+      });
+      // this.tableList.forEach(item => {
+      //     this.imgsrc = item.dctt
+      // })
+      if (selection.length > 1) {
+        let del_row = selection.shift();
+        this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
+      }
+      this.single = selection.length !== 1;
+      this.multiple = !selection.length;
+    },
+    // /** 鏂板鎸夐挳鎿嶄綔 */
+    // handleAdd() {
+    //     this.reset();
+    //     this.open = true;
+    //     this.title = "娣诲姞浣撴蹇冪數鍥剧鐞�";
+    // },
+    // /** 淇敼鎸夐挳鎿嶄綔 */
+    // handleUpdate(row) {
+    //     this.reset();
+    //     const id = row.id || this.ids
+    //     getPicture(id).then(response => {
+    //         this.form = response.data;
+    //         this.open = true;
+    //         this.title = "淇敼浣撴蹇冪數鍥剧鐞�";
+    //     });
+    // },
+    submiepilog() {
+      this.$refs.aaa.open = true;
+      let proId = "1633660948860522546";
+      this.$refs.aaa.getList(proId);
+    },
+    handleChanges(value) {
+      this.form.measuredValue = value;
+    },
 
-    }
-}
-    ;
+    handleChange(selection) {
+      selection.forEach((element) => {
+        this.dataobj = element;
+      });
+    },
+
+    // 纭畾鎸夐挳
+    submito() {
+      if (this.dataobj) {
+        if (this.form.fixedValue) {
+          this.dataobj.fixedValue = this.form.fixedValue;
+        }
+        if (this.form.measuredValue) {
+          this.dataobj.measuredValue = this.form.measuredValue;
+        }
+        updatePureToneTest(this.dataobj).then((res) => {
+          this.$modal.msgSuccess("鎻愪氦鎴愬姛");
+          this.getList();
+          this.form.fixedValue = "";
+          this.form.measuredValue = "";
+        });
+      } else {
+        this.$modal.msgSuccess("閫夋嫨淇敼椤圭洰");
+      }
+    },
+
+    //鍒犻櫎鎸夐挳
+    handleDelete() {},
+
+    // 瀵煎嚭
+    handleExport() {},
+  },
+};
 </script>
 
 <style>
 #table .el-table__header-wrapper .el-checkbox {
-    display: none;
+  display: none;
 }
 
 .default-button-style :hover {
-    width: 80px;
-    border-bottom: none;
+  width: 80px;
+  border-bottom: none;
 }
 
-
 .rightImg {
-    display: inline-block;
-    width: 740px;
-    height: 800px;
-    position: absolute;
-    top: 0;
-    left: 0;
-    /* border: 1px solid red; */
+  display: inline-block;
+  width: 740px;
+  height: 800px;
+  position: absolute;
+  top: 0;
+  left: 0;
+  /* border: 1px solid red; */
 }
 
 /* 鍙宠竟鐨勫尯鍩熷浘鐗囨斁澶х┖闂� */
 .right {
-    margin-left: 412px;
-    width: 340px;
-    height: 400px;
-    border: 1px solid black;
-    position: relative;
-    overflow: hidden;
+  margin-left: 412px;
+  width: 340px;
+  height: 400px;
+  border: 1px solid black;
+  position: relative;
+  overflow: hidden;
 }
 
 /* 涓�涓渶楂樺眰灞傜僵 */
 .maskTop {
-    width: 400px;
-    height: 400px;
-    position: absolute;
-    z-index: 1;
-    top: 0;
-    left: 0;
+  width: 400px;
+  height: 400px;
+  position: absolute;
+  z-index: 1;
+  top: 0;
+  left: 0;
 }
 
 /* 灞傜僵锛岄�氳繃瀹氫綅灏嗗乏涓婅瀹氫綅鍒�(0,0) */
 .top {
-    width: 200px;
-    height: 200px;
-    background-color: lightcoral;
-    opacity: 0.4;
-    position: absolute;
-    top: 0;
-    left: 0;
+  width: 200px;
+  height: 200px;
+  background-color: lightcoral;
+  opacity: 0.4;
+  position: absolute;
+  top: 0;
+  left: 0;
 }
 
 /* 鍘熷浘鐨勬樉绀� */
 .leftImg {
-    width: 400px;
-    height: 400px;
-    display: inline-block;
+  width: 400px;
+  height: 400px;
+  display: inline-block;
 }
 
 /* 鍘熷浘鐨勫鍣� */
 .left {
-    width: 400px;
-    height: 400px;
-    /* border: 1px solid teal; */
-    float: left;
-    position: relative;
+  width: 400px;
+  height: 400px;
+  /* border: 1px solid teal; */
+  float: left;
+  position: relative;
 }
 </style>

--
Gitblit v1.8.0