Selaa lähdekoodia

添加成本通知

yuanrf 1 vuosi sitten
vanhempi
commit
83a7fa491a
1 muutettua tiedostoa jossa 18 lisäystä ja 1 poistoa
  1. 18 1
      src/components/Finance/Cost.vue

+ 18 - 1
src/components/Finance/Cost.vue

@@ -26,7 +26,7 @@
                         <el-button type="primary">导出成本</el-button>
                         <el-button type="primary" @click="save">保存设置</el-button>
                         <el-button type="primary">一键复制</el-button>
-                        <el-button type="primary">成本通知</el-button>
+                        <el-button type="primary" @click="GroupIsShare">成本通知</el-button>
                     </div>
                 </div>
                 <div class="cost-input">
@@ -3558,6 +3558,23 @@ export default {
                 });
             }
 
+        },
+        GroupIsShare() {
+            this.$axios.post('/api/Groups/GroupIsShare', { diid: this.diid }, {
+                headers: {
+                    'Authorization': this.token,
+                }
+            }).then(resp => {
+                console.log(resp.data.data, '------------------------------------');
+                if (resp.data.code == 200) {
+                    this.$message({
+                        message: '操作成功!' + resp.data.msg,
+                        type: 'success'
+                    });
+                } else {
+                    this.$message.error('操作失败!' + resp.data.msg);
+                }
+            })
         }