|
@@ -72,7 +72,10 @@
|
|
|
>详情</el-button
|
|
|
>
|
|
|
</auth>
|
|
|
- <auth :auths="['memberRankSetting/get','memberRankSetting/update']" mulit>
|
|
|
+ <auth
|
|
|
+ :auths="['memberRankSetting/get', 'memberRankSetting/update']"
|
|
|
+ mulit
|
|
|
+ >
|
|
|
<el-button type="text" @click="resetMember(scope.row, 'update')"
|
|
|
>修改</el-button
|
|
|
>
|
|
@@ -218,7 +221,9 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button v-if="!addDisabled" @click="branchStatus = false">取 消</el-button>
|
|
|
+ <el-button v-if="!addDisabled" @click="branchStatus = false"
|
|
|
+ >取 消</el-button
|
|
|
+ >
|
|
|
<el-button @click="onSubmit" type="primary">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
@@ -288,18 +293,23 @@ export default {
|
|
|
pageType: "",
|
|
|
allChildIds: [],
|
|
|
checkList: [],
|
|
|
- searchName:'搜索\xa0\xa0\xa0\xa0\xa0\xa0\xa0'
|
|
|
+ searchName: "搜索\xa0\xa0\xa0\xa0\xa0\xa0\xa0",
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
- try {
|
|
|
- const res = await getMemberPrivilegesItem();
|
|
|
- this.silderList = res.data;
|
|
|
- this.treeData = this.setTableData(res.data);
|
|
|
- } catch (e) {}
|
|
|
-
|
|
|
this.getList();
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ async branchStatus(val) {
|
|
|
+ if (val) {
|
|
|
+ try {
|
|
|
+ const res = await getMemberPrivilegesItem();
|
|
|
+ this.silderList = res.data;
|
|
|
+ this.treeData = this.setTableData(res.data);
|
|
|
+ } catch (e) {}
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
onFormClose(ruleForm) {
|
|
|
(this.form = {
|
|
@@ -328,10 +338,9 @@ export default {
|
|
|
} catch {}
|
|
|
},
|
|
|
async addLeave() {
|
|
|
-
|
|
|
this.checkList = [];
|
|
|
this.title = "新增会员等级";
|
|
|
- this.addDisabled = false;
|
|
|
+ this.addDisabled = false;
|
|
|
this.pageType = "create";
|
|
|
this.treeData = this.setTableData(this.silderList, this.addDisabled);
|
|
|
this.branchStatus = true;
|