模板查询增加user

This commit is contained in:
lyc 2024-12-13 10:28:42 +08:00
parent be2afadd43
commit b5669a97f1
1 changed files with 3 additions and 2 deletions

View File

@ -91,11 +91,12 @@ import keywordDialog from './keyword-dialog.vue';
import AdjustDialog from './adjust-dialog.vue' import AdjustDialog from './adjust-dialog.vue'
import EditDialog from './edit-dialog.vue' import EditDialog from './edit-dialog.vue'
import TypingEffect from '@/components/typing-effect/index.vue' import TypingEffect from '@/components/typing-effect/index.vue'
import useUserStore from '@/store/modules/user'
import emitter from '@/utils/mitt'; import emitter from '@/utils/mitt';
import { dataSetJson } from '@/utils/comm.js' import { dataSetJson } from '@/utils/comm.js'
const props = defineProps(['curNode', 'type']) const props = defineProps(['curNode', 'type'])
const { user } = useUserStore()
/*****************提示词相关****************/ /*****************提示词相关****************/
/** /**
@ -137,7 +138,7 @@ const curTemplate = reactive({ name: '', id: '' })
const templateList = ref([]) const templateList = ref([])
const childTempList = ref([]) const childTempList = ref([])
const getTemplateList = () => { const getTemplateList = () => {
modelList({ model: props.type, type: 1, pageNum: 1, pageSize: 10000, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => { modelList({ createUser: user.userId, model: props.type, type: 1, pageNum: 1, pageSize: 10000, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => {
templateList.value = res.rows templateList.value = res.rows
if(res.rows.length > 0){ if(res.rows.length > 0){
Object.assign(curTemplate, res.rows[0]); Object.assign(curTemplate, res.rows[0]);