master
xy 1 year ago
parent a1f5b80aab
commit 548571636c

@ -8,4 +8,4 @@ ENV = 'production'
VUE_APP_BASE_API = http://weiyuan-test.ali251.langye.net
VUE_APP_UPLOAD_API = http://weiyuan-test.ali251.langye.net/api/admin/upload-file
VUE_APP_UPLOAD_API = http://weiyuan-test.ali251.langye.net/api/admin/upload-file

@ -36,3 +36,11 @@ export function destroy(params,isLoading = true){
})
}
export function clone(params, isLoading=true) {
return request({
url:"/api/admin/template/clone",
method:"get",
params,
isLoading
})
}

@ -41,6 +41,7 @@
:req-opt="select"
:action="index"
:destroy-action="destroy"
:btn-width="280"
:table-item="table"
:auths="auths_auth_mixin"
@editor="
@ -65,6 +66,16 @@
>模版设置</Button
>
</template>
<template #clone="{row}">
<Button
size="small"
type="primary"
ghost
style="margin-left: 6px;"
@click="clone(row)"
>模版克隆</Button
>
</template>
</xy-table>
<addTemplate
@ -77,7 +88,7 @@
</template>
<script>
import { index, destroy } from "@/api/unifiedRecruitment/template";
import { index, destroy, clone } from "@/api/unifiedRecruitment/template";
import { save } from "@/api/unifiedRecruitment/templateItem"
import { authMixin } from "@/mixin/authMixin";
import { getConst } from "@/const";
@ -163,6 +174,15 @@ export default {
index,
destroy,
getConst,
clone(row) {
this.$confirm('确认操作?','提示', {
showCancelButton: true
}).then(_ => {
clone({
id: row.id
}).then(_ => this.$refs['xyTable'].getTableData(true))
})
}
},
computed: {
getTitleName(){

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/admin/',
outputDir: '/Users/liuxiangyu/Work/w-weishengxueyuan/app/wsxy-enrollment-service/public/admin',
outputDir: './dist',
assetsDir: 'static',
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save