xjc vor 4 Jahren
Ursprung
Commit
72920fba3a
3 geänderte Dateien mit 24 neuen und 12 gelöschten Zeilen
  1. 8 4
      src/views/apply/Change.vue
  2. 8 4
      src/views/apply/New.vue
  3. 8 4
      src/views/apply/Update.vue

+ 8 - 4
src/views/apply/Change.vue

@@ -182,9 +182,9 @@
                 prop="zip" width="220" fixed="right"
                 label="操作">
                 <template slot-scope="scope">
-                    <el-button @click="$router.push({path:'/sign/detail',query:{id:scope.row.id}})"  size="mini" type="success">详情</el-button>
-                    <el-button @click="$router.push({path:'/sign/edit',query:{id:scope.row.id}})" size="mini" type="warning">编辑</el-button>
-                    <el-button @click="mark(scope.row.id,scope.row.remark)" size="mini" type="primary">备注</el-button>
+                    <el-button @click="goTo({path:'/sign/detail',query:{id:scope.row.id}})"  size="mini" type="success">详情</el-button>
+                    <el-button @click="goTo({path:'/sign/edit',query:{id:scope.row.id}})" size="mini" type="warning">编辑</el-button>
+                    <el-button @click="mark(scope.row.id,scope.row.admin_remark)" size="mini" type="primary">备注</el-button>
                     <el-button @click="del(scope.row.id)" size="mini"  type="danger">删除</el-button>
                 </template>
                 </el-table-column>
@@ -267,6 +267,10 @@ export default {
     }
   },
   methods:{
+      goTo(path){
+          let url = this.$router.resolve(path)
+          window.open(url.href,'_blank')
+      },
       gopage(size){
           if(size){
               this.form.page_size=size
@@ -340,7 +344,7 @@ export default {
             cancelButtonText: '取消',
             inputValue:val,
             }).then(({ value }) => {
-                this.$api.updateSign({id:id,remark:value}).then(res=>{
+                this.$api.updateSign({id:id,admin_remark:value}).then(res=>{
                         if(res.data.code==0){
                             this.$message({message: '备注成功!',type: 'success'});
                             this.getData()

+ 8 - 4
src/views/apply/New.vue

@@ -186,9 +186,9 @@
                 prop="zip" width="220" fixed="right"
                 label="操作">
                 <template slot-scope="scope">
-                    <el-button @click="$router.push({path:'/sign/detail',query:{id:scope.row.id}})"  size="mini" type="success">详情</el-button>
-                    <el-button @click="$router.push({path:'/sign/edit',query:{id:scope.row.id}})" size="mini" type="warning">编辑</el-button>
-                    <el-button @click="mark(scope.row.id,scope.row.remark)" size="mini" type="primary">备注</el-button>
+                    <el-button @click="goTo({path:'/sign/detail',query:{id:scope.row.id}})"  size="mini" type="success">详情</el-button>
+                    <el-button @click="goTo({path:'/sign/edit',query:{id:scope.row.id}})" size="mini" type="warning">编辑</el-button>
+                    <el-button @click="mark(scope.row.id,scope.row.admin_remark)" size="mini" type="primary">备注</el-button>
                     <el-button @click="del(scope.row.id)" size="mini"  type="danger">删除</el-button>
                 </template>
                 </el-table-column>
@@ -272,6 +272,10 @@ export default {
     }
   },
   methods:{
+      goTo(path){
+          let url = this.$router.resolve(path)
+          window.open(url.href,'_blank')
+      },
       gopage(size){
           if(size){
               this.form.page_size=size
@@ -344,7 +348,7 @@ export default {
             cancelButtonText: '取消',
             inputValue:val,
             }).then(({ value }) => {
-                this.$api.updateSign({id:id,remark:value}).then(res=>{
+                this.$api.updateSign({id:id,admin_remark:value}).then(res=>{
                         if(res.data.code==0){
                             this.$message({message: '备注成功!',type: 'success'});
                             this.getData()

+ 8 - 4
src/views/apply/Update.vue

@@ -182,9 +182,9 @@
                 prop="zip" width="220" fixed="right"
                 label="操作">
                 <template slot-scope="scope">
-                    <el-button @click="$router.push({path:'/sign/detail',query:{id:scope.row.id}})"  size="mini" type="success">详情</el-button>
-                    <el-button @click="$router.push({path:'/sign/edit',query:{id:scope.row.id}})" size="mini" type="warning">编辑</el-button>
-                    <el-button @click="mark(scope.row.id,scope.row.remark)" size="mini" type="primary">备注</el-button>
+                    <el-button @click="goTo({path:'/sign/detail',query:{id:scope.row.id}})"  size="mini" type="success">详情</el-button>
+                    <el-button @click="goTo({path:'/sign/edit',query:{id:scope.row.id}})" size="mini" type="warning">编辑</el-button>
+                    <el-button @click="mark(scope.row.id,scope.row.admin_remark)" size="mini" type="primary">备注</el-button>
                     <el-button @click="del(scope.row.id)" size="mini"  type="danger">删除</el-button>
                 </template>
                 </el-table-column>
@@ -267,6 +267,10 @@ export default {
     }
   },
   methods:{
+      goTo(path){
+          let url = this.$router.resolve(path)
+          window.open(url.href,'_blank')
+      },
       gopage(size){
           if(size){
               this.form.page_size=size
@@ -340,7 +344,7 @@ export default {
             cancelButtonText: '取消',
             inputValue:val,
             }).then(({ value }) => {
-                this.$api.updateSign({id:id,remark:value}).then(res=>{
+                this.$api.updateSign({id:id,admin_remark:value}).then(res=>{
                         if(res.data.code==0){
                             this.$message({message: '备注成功!',type: 'success'});
                             this.getData()