mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 17:55:39 +08:00
fix:修改学员操作样式
This commit is contained in:
@@ -100,12 +100,20 @@
|
||||
<div class="name">
|
||||
<div class="inname">评估名称</div>
|
||||
<div class="in">
|
||||
<a-input
|
||||
<!-- <a-input
|
||||
v-model:value="assessmentName"
|
||||
show-count
|
||||
:maxlength="15"
|
||||
style="border-radius: 8px"
|
||||
/>
|
||||
/> -->
|
||||
<NameInput
|
||||
placeholder="请输入路径名称"
|
||||
v-model:value="assessmentName"
|
||||
v-model:validate="validate"
|
||||
:maxlength="15"
|
||||
show-count
|
||||
:type="4"
|
||||
></NameInput>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn">
|
||||
@@ -164,10 +172,10 @@
|
||||
</a-modal>
|
||||
<!--操作弹窗 -->
|
||||
</div>
|
||||
<!-- 加载动画 -->
|
||||
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||
<a-spin :spinning="addLoading" tip="" />
|
||||
</div>
|
||||
<!-- 加载动画 -->
|
||||
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||
<a-spin :spinning="addLoading" tip="" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, onMounted, ref } from "vue";
|
||||
@@ -184,9 +192,12 @@ import { useRouter } from "vue-router";
|
||||
import { toDate } from "../../api/method.js";
|
||||
import store from "@/store";
|
||||
import { message } from "ant-design-vue";
|
||||
|
||||
import NameInput from "@/components/project/NameInput";
|
||||
export default {
|
||||
name: "learningPath",
|
||||
components: {
|
||||
NameInput,
|
||||
},
|
||||
setup() {
|
||||
const router = useRouter();
|
||||
const state = reactive({
|
||||
@@ -295,26 +306,28 @@ export default {
|
||||
copy_hs: false,
|
||||
back_hs: false,
|
||||
pub_hs: false,
|
||||
|
||||
validate: true,
|
||||
});
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
// {
|
||||
// title: "序号",
|
||||
// dataIndex: "number",
|
||||
// {
|
||||
// title: "序号",
|
||||
// dataIndex: "number",
|
||||
// // key: "number",
|
||||
// width: 100,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// customRender: ({ index }) => {
|
||||
//{ text, record, index, column }
|
||||
// return index + 1;
|
||||
// },
|
||||
// className: "h",
|
||||
// customRender: ({ index }) => {
|
||||
//{ text, record, index, column }
|
||||
// return index + 1;
|
||||
// },
|
||||
// },
|
||||
{
|
||||
title: "名称",
|
||||
dataIndex: "manager",
|
||||
key: "manager",
|
||||
width:"30%",
|
||||
width: "30%",
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
@@ -326,7 +339,7 @@ export default {
|
||||
title: "状态",
|
||||
dataIndex: "state",
|
||||
key: "state",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ record }) => {
|
||||
@@ -344,7 +357,7 @@ export default {
|
||||
title: "创建人",
|
||||
dataIndex: "creater",
|
||||
key: "creater",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ text }) => {
|
||||
@@ -355,7 +368,7 @@ export default {
|
||||
title: "发布时间",
|
||||
dataIndex: "pubtime",
|
||||
key: "pubtime",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ text }) => {
|
||||
@@ -366,7 +379,7 @@ export default {
|
||||
title: "创建时间",
|
||||
dataIndex: "cretime",
|
||||
key: "cretime",
|
||||
width:"10%",
|
||||
width: "10%",
|
||||
align: "center",
|
||||
className: "h",
|
||||
customRender: ({ text }) => {
|
||||
@@ -378,7 +391,7 @@ export default {
|
||||
className: "h",
|
||||
dataIndex: "opacation",
|
||||
key: "opacation",
|
||||
width:"20%",
|
||||
width: "20%",
|
||||
align: "center",
|
||||
fixed: "right",
|
||||
},
|
||||
@@ -433,7 +446,7 @@ export default {
|
||||
<div class="operation">
|
||||
{value.state === "2" ? (
|
||||
<div class="fb">
|
||||
{ /**
|
||||
{/**
|
||||
<div class="jc"
|
||||
onClick={() => {
|
||||
handleToManagepage(value, "/managepage");
|
||||
@@ -441,7 +454,7 @@ export default {
|
||||
>
|
||||
管理
|
||||
</div>
|
||||
*/ }
|
||||
*/}
|
||||
<div
|
||||
class="jc"
|
||||
onClick={() => {
|
||||
@@ -577,6 +590,11 @@ export default {
|
||||
message.error("请输入评估名称");
|
||||
return false;
|
||||
}
|
||||
if (!state.validate) {
|
||||
message.destroy();
|
||||
message.warning("评估名称重复");
|
||||
return;
|
||||
}
|
||||
store.commit("SET_assessmentName", state.assessmentName);
|
||||
router.push("/researchadd");
|
||||
handleCancel();
|
||||
@@ -677,6 +695,7 @@ export default {
|
||||
// 复制
|
||||
if (state.copy_hs) {
|
||||
let resultPost = restData(state.copyItem);
|
||||
resultPost.assessmentName = resultPost.assessmentName + "(1)";
|
||||
console.log("resultPost");
|
||||
console.log(resultPost);
|
||||
createResearch(resultPost).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user