|
@@ -2,7 +2,7 @@
|
|
|
* @Author : yuanrunwei
|
|
|
* @Date : 2021-12-04 14:23:58
|
|
|
* @LastEditors : yuanrunwei
|
|
|
- * @LastEditTime : 2021-12-24 16:00:44
|
|
|
+ * @LastEditTime : 2021-12-24 18:50:26
|
|
|
* @FilePath : \spfm-market-front\src\pages\main\performance\components\sheet.vue
|
|
|
-->
|
|
|
|
|
@@ -29,7 +29,8 @@
|
|
|
type="primary"
|
|
|
@click="handleSave"
|
|
|
:disabled="handleForbid()"
|
|
|
- >{{ id ? "保存" : "新增" }}</el-button
|
|
|
+ >{{ id ? "保存" : "新增"
|
|
|
+ }}{{ handleForbid() ? `(请先设置权限)` : "" }}</el-button
|
|
|
>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -136,6 +137,7 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+ <template v-if="!id" v-slot:footer><div></div></template>
|
|
|
</simple-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -358,6 +360,7 @@ export default {
|
|
|
if (!this.id) {
|
|
|
this.handleAddAuth({ id: body });
|
|
|
}
|
|
|
+ this.$emit("save");
|
|
|
},
|
|
|
handleAuth() {
|
|
|
this.$refs["form"].validate((valid) => {
|