提交 eec4980b authored 作者: matian's avatar matian

样式调整

上级 a6aa85a1
...@@ -116,7 +116,7 @@ const handleMembers = () => { ...@@ -116,7 +116,7 @@ const handleMembers = () => {
} }
// 更改负责人确定 // 更改负责人确定
const handlesetBelong = () => { const handleSetBelong = () => {
setBelong({ id: id, belong_operator: form.members }).then((res: any) => { setBelong({ id: id, belong_operator: form.members }).then((res: any) => {
if (res.code === 0) { if (res.code === 0) {
ElMessage({ message: '更改成功', type: 'success' }) ElMessage({ message: '更改成功', type: 'success' })
...@@ -234,34 +234,41 @@ const copyCourse = () => { ...@@ -234,34 +234,41 @@ const copyCourse = () => {
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
<el-button @click="dialogFormVisible = false">取消</el-button> <el-button @click="dialogFormVisible = false">取消</el-button>
<el-button type="primary" @click="handlesetBelong">确认</el-button> <el-button type="primary" @click="handleSetBelong">确认</el-button>
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
<el-dialog v-model="dialogVisibleAuthorize" title="项目/学校" width="75vw"> <el-dialog v-model="dialogVisibleAuthorize" title="项目/学校" width="50vw">
<div style="overflow: auto; min-height: 30vh; max-height: 60vh">
<el-checkbox-group v-model="authorizeCheck" style="display: flex; flex-direction: column"> <el-checkbox-group v-model="authorizeCheck" style="display: flex; flex-direction: column">
<div v-for="item in departmentList" :key="item.id"> <div v-for="item in departmentList" :key="item.id">
<el-checkbox :label="item.id" @change="changeDepartment"> {{ item.name }} </el-checkbox> <el-checkbox :label="item.id" @change="changeDepartment"> {{ item.name }} </el-checkbox>
<span v-if="authorizeCheck.filter((it:any)=>it === item.id).length >0" style="margin-top: 10px"> <span v-if="authorizeCheck.filter((it:any)=>it === item.id).length >0" style="margin-top: 10px">
<el-radio-group v-model="item.auth_type"> <el-radio-group v-model="item.auth_type">
<el-radio label="1">长期有效:</el-radio> <div class="item">
<el-radio label="2">学期有效:</el-radio> <el-radio label="1">长期有效</el-radio>
</div>
<div class="item">
<el-radio label="2">学期有效</el-radio>
<el-select v-model="item.auth_semester_id"> <el-select v-model="item.auth_semester_id">
<el-option v-for="(it, id) in item.semesters" :key="id" :label="it.name" :value="it.id"></el-option> <el-option v-for="(it, id) in item.semesters" :key="id" :label="it.name" :value="it.id"></el-option>
</el-select> </el-select>
<el-radio label="3">时间范围:</el-radio> </div>
<div class="item">
<el-radio label="3">时间范围</el-radio>
<el-date-picker v-model="item.auth_start_time" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" /> <el-date-picker v-model="item.auth_start_time" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" />
<span>~</span>
<el-date-picker <el-date-picker
v-model="item.auth_end_time" v-model="item.auth_end_time"
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
style="margin-left: 10px" style="margin-left: 10px"
/> />
</div>
</el-radio-group> </el-radio-group>
</span> </span>
</div> </div>
</el-checkbox-group> </el-checkbox-group>
</div>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
...@@ -290,7 +297,18 @@ const copyCourse = () => { ...@@ -290,7 +297,18 @@ const copyCourse = () => {
:deep(.el-checkbox) { :deep(.el-checkbox) {
margin-top: 20px; margin-top: 20px;
} }
:deep(.el-radio) { :deep(.el-radio-group) {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-start;
margin-left: 20px; margin-left: 20px;
} }
:deep(.el-date-editor.el-input) {
margin-top: 10px;
}
:deep(.el-select) {
margin-top: 10px;
}
</style> </style>
...@@ -137,7 +137,6 @@ const statusStyle = (item: any) => { ...@@ -137,7 +137,6 @@ const statusStyle = (item: any) => {
<div v-html="item.summarize"></div> <div v-html="item.summarize"></div>
<template #reference> <template #reference>
<div class="item"> <div class="item">
<!-- <div class="avatar" :style="`background-image:url(${item.avatar})`"></div> -->
<img :src="item.avatar" class="avatar" /> <img :src="item.avatar" class="avatar" />
<div class="name">{{ item.name }}</div> <div class="name">{{ item.name }}</div>
</div> </div>
......
...@@ -108,7 +108,8 @@ const bytesToSize = (bytes: number) => { ...@@ -108,7 +108,8 @@ const bytesToSize = (bytes: number) => {
line-height: 100%; line-height: 100%;
color: #bf9d6b; color: #bf9d6b;
text-align: center; text-align: center;
padding: 10px; padding: 5px;
white-space: nowrap;
span { span {
font-size: 12px; font-size: 12px;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论