555b946b by lihua

按钮控制

1 parent 15ab5389
......@@ -79,7 +79,7 @@ const tableInfo = ref({
fixed: 'right',
btns: (scope) => {
return [{
label: "编辑", value: "edit", disabled: !isDataProvider && scope.row.dataOwnership == '1', click: (scope) => {
label: "编辑", value: "edit", disabled: !isDataProvider.value && scope.row.dataOwnership == '1', click: (scope) => {
router.push({
name: 'anonTaskCreate',
query: {
......@@ -111,7 +111,7 @@ const tableInfo = ref({
});
}
}, {
label: "删除", value: "delete", disabled: !isDataProvider && scope.row.dataOwnership == '1', click: (scope) => {
label: "删除", value: "delete", disabled: !isDataProvider.value && scope.row.dataOwnership == '1', click: (scope) => {
proxy.$openMessageBox("此操作将永久删除, 是否继续?", () => {
let guids = [scope.row.guid];
deleteAnonTask(guids).then((res: any) => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!