ysy hace 2 años
padre
commit
fb5578d3c7

+ 10 - 1
src/views/technology/route/index.vue

@@ -13,6 +13,15 @@
       >
       >
         <!-- 表头工具栏 -->
         <!-- 表头工具栏 -->
        <template v-slot:toolbar>
        <template v-slot:toolbar>
+        <el-button
+            size="small"
+            type="primary"
+            icon="el-icon-refresh-left"
+            class="ele-btn-icon"
+            @click="openEdit"
+          
+          >新增</el-button>
+
           <el-button
           <el-button
             size="small"
             size="small"
             type="primary"
             type="primary"
@@ -206,7 +215,7 @@
         this.current = row;
         this.current = row;
         this.showEdit = true;
         this.showEdit = true;
         this.$refs.userEdit.$refs.form &&
         this.$refs.userEdit.$refs.form &&
-          this.$refs.userEdit.$refs.form.clearValidate();
+        this.$refs.userEdit.$refs.form.clearValidate();
       },
       },
       /* 打开导入弹窗 */
       /* 打开导入弹窗 */
       openImport() {
       openImport() {

+ 1 - 1
src/views/technology/work/components/user-edit.vue

@@ -183,7 +183,7 @@
       async visible(visible) {
       async visible(visible) {
         if (visible) {
         if (visible) {
           if (this.data) {
           if (this.data) {
-            console.log(111111);
+          
 
 
             // const res = await work.getById(this.data.id);
             // const res = await work.getById(this.data.id);
 
 

+ 1 - 1
src/views/technology/work/index.vue

@@ -23,7 +23,7 @@
             type="primary"
             type="primary"
             icon="el-icon-plus"
             icon="el-icon-plus"
             class="ele-btn-icon"
             class="ele-btn-icon"
-            @click="openEdit()"
+            @click="openEdit"
           >
           >
             新建
             新建
           </el-button>
           </el-button>