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

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

Loading…
Cancel
Save