@@ -48,13 +55,12 @@ import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
const tableProps = [
{
- prop: 'name',
+ prop: 'label',
label: '成本名称',
},
{
prop: 'type',
label: '自动计算方式',
- width: 220,
subcomponent: typeRule,
},
{
@@ -69,11 +75,10 @@ export default {
return {
urlOptions: {
getDataListURL: getRawOthercostRulePage,
- deleteURL: deleteCostMaterialSet,
},
tableProps,
tableBtn: [
- this.$auth.hasPermi(`extend:cost-material-set:update`)
+ this.$auth.hasPermi(`monitoring:cost-othercost-rule:update`)
? {
type: 'edit',
btnName: '编辑',
@@ -89,6 +94,16 @@ export default {
created() {
},
methods: {
+ //tableBtn点击
+ handleClick(val) {
+ if (val.type === "edit") {
+ this.addOrUpdateVisible = true;
+ this.addOrEditTitle = "编辑";
+ this.$nextTick(() => {
+ this.$refs.addOrUpdate.init(val.data);
+ });
+ }
+ },
},
};
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 1ad89961..41fe9ce7 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -207,9 +207,9 @@