Commit 0567b380 authored by 鲁鑫's avatar 鲁鑫

去掉权限验证

parent 483560cb
......@@ -2,12 +2,12 @@
* v-hasPermi 操作权限处理
* Copyright (c) 2019 ruoyi
*/
import store from '@/store'
export default {
inserted(el, binding, vnode) {
const { value } = binding
/*const { value } = binding
const all_permission = "*:*:*";
const permissions = store.getters && store.getters.permissions
......@@ -23,6 +23,6 @@ export default {
}
} else {
throw new Error(`请设置操作权限标签值`)
}
}*/
}
}
......@@ -1037,7 +1037,7 @@ export default {
} else if (this.activeName === 'SapQAProperty') {
this.$refs.SapQAProperty.init(2,'sapQA', this.form.itemId, this.form)
} else if (this.activeName === 'SapFinanceProperty') {
this.$refs.SapFinanceProperty.init(2,'sapQA', this.form.itemId, this.form)
this.$refs.SapFinanceProperty.init(2,'sapFinance', this.form.itemId, this.form)
} //else this.$refs[this.activeName].init && this.$refs[this.activeName].init(this.form)
}
},
......
......@@ -39,7 +39,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['md:clause:add']"
v-hasPermi="['md:payment:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
......@@ -50,7 +50,7 @@
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['md:clause:edit']"
v-hasPermi="['md:payment:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
......@@ -61,7 +61,7 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['md:clause:remove']"
v-hasPermi="['md:payment:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
......@@ -71,7 +71,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['md:clause:export']"
v-hasPermi="['md:payment:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
......@@ -97,19 +97,19 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['md:clause:edit']"
v-hasPermi="['md:payment:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['md:clause:remove']"
v-hasPermi="['md:payment:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
......@@ -161,7 +161,7 @@
</el-form-item>
</el-col>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
......@@ -209,7 +209,7 @@ export default {
{ required: true, message: "编码不能为空", trigger: "blur" }
], Name: [
{ required: true, message: "名称不能为空", trigger: "blur" }
],
],
}
};
},
......@@ -301,7 +301,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.download('md/clause/export', {
this.download('md/payment/export', {
...this.queryParams
}, `clause_${new Date().getTime()}.xlsx`)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment