|
|
@ -25,11 +25,12 @@ |
|
|
|
<span v-else>{{ scope.row[item] }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" width="300"> |
|
|
|
<el-table-column label="操作" width="380"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-button class="edit-button-style" @click="configuration(scope.row)" icon="el-icon-setting" size="small">配置</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleUpdate(scope.row)" icon="el-icon-edit" size="small">修改</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleDelete(scope.row)" icon="el-icon-delete" size="small">删除</el-button> |
|
|
|
<el-button class="edit-button-style" @click="handleUpload(scope.row)" icon="el-icon-upload" size="small">上传</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@ -39,6 +40,8 @@ |
|
|
|
<EditTemplate v-if="isShowDialog === 'edit' ? true : false" :item="item" v-model:isShowDialog="isShowDialog" @editCallBack="completeCallBack"></EditTemplate> |
|
|
|
<!-- 任务配置项 --> |
|
|
|
<Configuration v-if="isShowDialog === 'configuration'" :item="item" v-model:isShowDialog="isShowDialog" @editCallBack="completeCallBack" /> |
|
|
|
<!-- 上传 --> |
|
|
|
<uploadTemplate v-if="isShowDialog === 'upload'" :item="item" v-model:isShowDialog="isShowDialog" @editCallBack="completeCallBack" /> |
|
|
|
</ContentContainer> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -47,6 +50,7 @@ |
|
|
|
import SearchTemplate from "../../components/SearchTemplate.vue" |
|
|
|
import ContentContainer from "../../components/ContentContainer.vue" |
|
|
|
import EditTemplate from "./components/edit.vue" |
|
|
|
import uploadTemplate from "./components/upload.vue" |
|
|
|
import Configuration from "./components/configuration.vue" |
|
|
|
import { ListMixin } from '@/mixins/ListMixin' |
|
|
|
export default { |
|
|
@ -55,7 +59,8 @@ |
|
|
|
SearchTemplate, |
|
|
|
ContentContainer, |
|
|
|
EditTemplate, |
|
|
|
Configuration |
|
|
|
Configuration, |
|
|
|
uploadTemplate |
|
|
|
}, |
|
|
|
mixins: [ListMixin], // mixins 里面封装了操作列表的共用方法,直接引入mixins即可 |
|
|
|
data() { |
|
|
@ -101,6 +106,11 @@ |
|
|
|
* 第二个参数 删除的接口拼接参数 |
|
|
|
*/ |
|
|
|
this.delHanle(keyName, deteleUrl) |
|
|
|
}, |
|
|
|
// 上传 |
|
|
|
handleUpload(row) { |
|
|
|
this.isShowDialog = 'upload' |
|
|
|
this.item = row |
|
|
|
} |
|
|
|
}, |
|
|
|
} |