wukai преди 2 години
родител
ревизия
c46f257b85
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5 3
      src/views/scanner/info/index.vue

+ 5 - 3
src/views/scanner/info/index.vue

@@ -4,7 +4,7 @@
       <el-form-item label="扫描仪名称" prop="scannerName">
         <el-input
           v-model="queryParams.scannerName"
-          placeholder="请输入扫描仪名称;"
+          placeholder="请输入扫描仪名称"
           clearable
           @keyup.enter="handleQuery"
         />
@@ -18,7 +18,9 @@
         </el-select>
       </el-form-item>
       <el-form-item label="所属部门" prop="deptId">
-        <el-input v-model="queryParams.deptId" placeholder="请输入所属部门" clearable @keyup.enter="handleQuery" />
+		  <el-tree-select v-model="queryParams.deptId" :data="deptOptions"
+		  								:props="{ value: 'id', label: 'label', children: 'children' }" value-key="id"
+		  								placeholder="请选择归属部门" check-strictly @keyup.enter="handleQuery"/>
       </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
@@ -78,7 +80,7 @@
     <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="扫描仪编号" align="center" prop="scannerId" />
-      <el-table-column label="扫描仪名称;" align="center" prop="scannerName" />
+      <el-table-column label="扫描仪名称" align="center" prop="scannerName" />
       <el-table-column label="扫描仪IP" align="center" prop="scannerIp" />
       <el-table-column label="是否公用" align="center" prop="isPublic">
         <template #default="scope">