|
@@ -75,7 +75,7 @@
|
|
</template>
|
|
</template>
|
|
<template #caozuo-column-value="{ scope }">
|
|
<template #caozuo-column-value="{ scope }">
|
|
<div class="__czr-table-operations">
|
|
<div class="__czr-table-operations">
|
|
- <CzrButton type="table" title="重命名"/>
|
|
|
|
|
|
+ <CzrButton type="table" title="重命名" @click="onRename(scope.row)"/>
|
|
<CzrButton type="table" title="迁移"/>
|
|
<CzrButton type="table" title="迁移"/>
|
|
<CzrButton type="table" title="归档"/>
|
|
<CzrButton type="table" title="归档"/>
|
|
<CzrButton type="table-del"/>
|
|
<CzrButton type="table-del"/>
|
|
@@ -84,6 +84,7 @@
|
|
</CzrTable>
|
|
</CzrTable>
|
|
</template>
|
|
</template>
|
|
</CzrContent>
|
|
</CzrContent>
|
|
|
|
+ <renameCom v-model:show="state.rename.show" :transfer="state.rename.transfer" @refresh="onSearch"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -93,6 +94,7 @@ import { Search } from '@element-plus/icons-vue'
|
|
import {debounce} from "lodash";
|
|
import {debounce} from "lodash";
|
|
import {useDialogStore, useDictionaryStore} from "@/stores";
|
|
import {useDialogStore, useDictionaryStore} from "@/stores";
|
|
import {ElMessage} from "element-plus";
|
|
import {ElMessage} from "element-plus";
|
|
|
|
+import renameCom from './rename.vue'
|
|
|
|
|
|
const DialogStore = useDialogStore();
|
|
const DialogStore = useDialogStore();
|
|
const DictionaryStore = useDictionaryStore();
|
|
const DictionaryStore = useDictionaryStore();
|
|
@@ -129,7 +131,7 @@ const state: any = reactive({
|
|
},
|
|
},
|
|
selected: []
|
|
selected: []
|
|
},
|
|
},
|
|
- detail: {
|
|
|
|
|
|
+ rename: {
|
|
show: false,
|
|
show: false,
|
|
transfer: {}
|
|
transfer: {}
|
|
},
|
|
},
|
|
@@ -225,9 +227,11 @@ const onDel = (row: any) => {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-const onChangeTag = (row, tags) => {
|
|
|
|
- row.tags = tags
|
|
|
|
- // onSearch()
|
|
|
|
|
|
+const onRename = (row) => {
|
|
|
|
+ state.rename.transfer = {
|
|
|
|
+ row: JSON.parse(JSON.stringify(row))
|
|
|
|
+ }
|
|
|
|
+ state.rename.show = true
|
|
}
|
|
}
|
|
const initDictionary = () => {
|
|
const initDictionary = () => {
|
|
DictionaryStore.initKnowledgeGroups()
|
|
DictionaryStore.initKnowledgeGroups()
|