Răsfoiți Sursa

私有树元素只能预览不能编辑

gangyj 3 ani în urmă
părinte
comite
404bd4596e
1 a modificat fișierele cu 5 adăugiri și 115 ștergeri
  1. 5 115
      src/views/manager/projectinfo/tree.vue

+ 5 - 115
src/views/manager/projectinfo/tree.vue

@@ -252,7 +252,7 @@
                 <el-button
                   size="mini"
                   @click="handleEdit(scope.$index, scope.row)"
-                >编辑</el-button>
+                >预览</el-button>
                 <el-button
                   size="mini"
                   type="danger"
@@ -943,13 +943,13 @@
     </el-dialog>
 
     <el-dialog
-      :title="(curEleTable.tableName?curEleTable.tableName:'')+'  元素编辑'"
+      :title="(curEleTable.tableName?curEleTable.tableName:'')+''"
       :visible.sync="editEleVisible"
       width="80%"
       append-to-body
       :close-on-click-modal="false"
     >
-      <p class="font-c-warning">编辑元素信息(请谨慎操作)</p>
+      <!-- <p class="font-c-warning">编辑元素信息(请谨慎操作)</p> -->
       <el-table
         :data="editEleList"
         border
@@ -966,13 +966,6 @@
           prop="eName"
           label="字段信息"
         >
-          <template slot-scope="scope">
-            <el-input
-              v-model="scope.row.eName"
-              size="small"
-              placeholder="请输入内容"
-            ></el-input>
-          </template>
         </el-table-column>
         <el-table-column
           align="center"
@@ -980,20 +973,6 @@
           label="数据类型"
           width="120"
         >
-          <template slot-scope="scope">
-            <el-select
-              v-model="scope.row.eType"
-              size="small"
-              placeholder="请选择"
-            >
-              <el-option
-                v-for="item in dataTypeList"
-                :key="item.id"
-                :label="item.dictValue"
-                :value="item.dictKey"
-              ></el-option>
-            </el-select>
-          </template>
         </el-table-column>
         <el-table-column
           align="center"
@@ -1001,107 +980,18 @@
           label="长度"
           width="120"
         >
-          <template slot-scope="scope">
-            <el-input
-              v-model="scope.row.eLength"
-              size="small"
-              placeholder="请输入内容"
-              :disabled="scope.row.eType == 4"
-            ></el-input>
-          </template>
         </el-table-column>
         <el-table-column
           align="center"
           prop="eAllowDeviation"
           label="允许偏差值"
         >
-          <template slot-scope="scope">
-            <div class="flex">
-              <el-select
-                v-model="scope.row.allow"
-                size="small"
-                placeholder="请选择"
-                style="width:120px"
-              >
-                <el-option
-                  :key="1"
-                  label="≥"
-                  value="≥"
-                ></el-option>
-                <el-option
-                  :key="2"
-                  label="≤"
-                  value="≤"
-                ></el-option>
-                <el-option
-                  :key="3"
-                  label="±"
-                  value="±"
-                ></el-option>
-                <el-option
-                  :key="4"
-                  label="【】"
-                  value="【】"
-                ></el-option>
-              </el-select>
-              <el-input
-                v-model="scope.row.deviation"
-                size="small"
-                placeholder="请输入内容"
-              ></el-input>
-            </div>
-          </template>
         </el-table-column>
         <el-table-column
           align="center"
           prop="eInspectionMethod"
           label="检查方法和频率"
         >
-          <template slot-scope="scope">
-            <el-input
-              v-model="scope.row.eInspectionMethod"
-              size="small"
-              placeholder="请输入内容"
-            ></el-input>
-          </template>
-        </el-table-column>
-        <el-table-column
-          align="center"
-          label="操作"
-          width="120"
-        >
-          <template slot="header">
-            <el-button
-              @click="addEleRow(editEleList)"
-              type="text"
-              icon="el-icon-circle-plus-outline"
-              class="text-icon"
-            ></el-button>
-          </template>
-          <template slot-scope="scope">
-            <el-button
-              v-if="scope.row.id"
-              icon="el-icon-remove-outline"
-              type="text"
-              @click="delEleRowHandle(scope.$index,editEleList)"
-              class="text-icon text-icon-danger"
-            ></el-button>
-            <div
-              class="flex"
-              v-else
-            >
-              <el-button
-                @click="saveNewEle(scope.row)"
-                type="mini"
-              >保存</el-button>
-              <el-button
-                icon="el-icon-remove-outline"
-                type="text"
-                @click="delEleRowHandle(scope.$index,editEleList)"
-                class="text-icon text-icon-danger"
-              ></el-button>
-            </div>
-          </template>
         </el-table-column>
       </el-table>
       <span
@@ -1109,10 +999,10 @@
         class="dialog-footer"
       >
         <el-button @click="editEleVisible = false">取 消</el-button>
-        <el-button
+        <!-- <el-button
           type="primary"
           @click="saveEles"
-        >确 定</el-button>
+        >确 定</el-button> -->
       </span>
     </el-dialog>