测试资源库上传
This commit is contained in:
parent
b8db7d30e1
commit
1187cc13bb
|
@ -31,6 +31,7 @@
|
||||||
<a-col :lg="6">
|
<a-col :lg="6">
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||||
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="handleAdd" style="margin-left: 8px">新增</a-button>
|
||||||
<!--<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
<!--<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
||||||
{{ toggleSearchStatus ? '收起' : '展开' }}
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
||||||
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item label="学期学年" v-bind="validateInfos.xqxn">
|
<a-form-item label="学期学年" v-bind="validateInfos.xqxn">
|
||||||
<j-dict-select-tag v-model:value="formData.xqxn" dictCode="" placeholder="请选择学期学年" :disabled="disabled"/>
|
<!-- <j-dict-select-tag v-model:value="formData.xqxn" dictCode="" placeholder="请选择学期学年" :disabled="disabled"/>-->
|
||||||
|
<a-input v-model:value="formData.xqxn" placeholder="请选择学期学年" :disabled="disabled"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
|
@ -148,12 +149,14 @@ async function submitForm() {
|
||||||
}
|
}
|
||||||
await saveOrUpdate(model, isUpdate.value)
|
await saveOrUpdate(model, isUpdate.value)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.success) {
|
console.log(res);
|
||||||
createMessage.success(res.message);
|
|
||||||
emit('ok');
|
emit('ok');
|
||||||
} else {
|
// if (res.success) {
|
||||||
createMessage.warning(res.message);
|
// createMessage.success(res.message);
|
||||||
}
|
// emit('ok');
|
||||||
|
// } else {
|
||||||
|
// createMessage.warning(res.message);
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
confirmLoading.value = false;
|
confirmLoading.value = false;
|
||||||
|
|
Loading…
Reference in New Issue