555b946b by lihua

按钮控制

1 parent 15ab5389
...@@ -79,7 +79,7 @@ const tableInfo = ref({ ...@@ -79,7 +79,7 @@ const tableInfo = ref({
79 fixed: 'right', 79 fixed: 'right',
80 btns: (scope) => { 80 btns: (scope) => {
81 return [{ 81 return [{
82 label: "编辑", value: "edit", disabled: !isDataProvider && scope.row.dataOwnership == '1', click: (scope) => { 82 label: "编辑", value: "edit", disabled: !isDataProvider.value && scope.row.dataOwnership == '1', click: (scope) => {
83 router.push({ 83 router.push({
84 name: 'anonTaskCreate', 84 name: 'anonTaskCreate',
85 query: { 85 query: {
...@@ -111,7 +111,7 @@ const tableInfo = ref({ ...@@ -111,7 +111,7 @@ const tableInfo = ref({
111 }); 111 });
112 } 112 }
113 }, { 113 }, {
114 label: "删除", value: "delete", disabled: !isDataProvider && scope.row.dataOwnership == '1', click: (scope) => { 114 label: "删除", value: "delete", disabled: !isDataProvider.value && scope.row.dataOwnership == '1', click: (scope) => {
115 proxy.$openMessageBox("此操作将永久删除, 是否继续?", () => { 115 proxy.$openMessageBox("此操作将永久删除, 是否继续?", () => {
116 let guids = [scope.row.guid]; 116 let guids = [scope.row.guid];
117 deleteAnonTask(guids).then((res: any) => { 117 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!