mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # src/components/project/ProjectLevel.vue # src/views/projectcenter/templateAdd.vue
This commit is contained in:
@@ -239,14 +239,14 @@ export default {
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
{
|
||||
title: "进度",
|
||||
dataIndex: "progress",
|
||||
key: "progress",
|
||||
width: 60,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
// {
|
||||
// title: "进度",
|
||||
// dataIndex: "progress",
|
||||
// key: "progress",
|
||||
// width: 60,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "operations",
|
||||
|
||||
@@ -1,42 +1,54 @@
|
||||
<!--
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2022-12-14 15:46:36
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-12-14 15:47:48
|
||||
* @FilePath: /fe-manage/src/components/project/ProjectClass.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<!-- 评估管理-创建评估页面 -->
|
||||
<template>
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="id"
|
||||
placeholder="请选择分类"
|
||||
style="width: 100%"
|
||||
:options="options"
|
||||
allowClear
|
||||
@change="change"
|
||||
:disabled="disabled"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="id"
|
||||
placeholder="请选择分类"
|
||||
style="width: 100%"
|
||||
:options="options"
|
||||
allowClear
|
||||
@change="change"
|
||||
:disabled="disabled"
|
||||
>
|
||||
</a-select>
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineEmits, defineProps, onMounted, ref} from "vue";
|
||||
import {useStore} from "vuex";
|
||||
import { computed, defineEmits, defineProps } from "vue";
|
||||
import { useStore } from "vuex";
|
||||
|
||||
const store = useStore();
|
||||
|
||||
const props = defineProps({
|
||||
value: String,
|
||||
disabled: String
|
||||
})
|
||||
const emit = defineEmits({})
|
||||
disabled: String,
|
||||
});
|
||||
const emit = defineEmits({});
|
||||
|
||||
const options = computed(() => store.state.projectClass.map(e => ({value: parseInt(e.dictCode), label: e.dictName})))
|
||||
const options = computed(() =>
|
||||
store.state.projectClass.map((e) => ({
|
||||
value: parseInt(e.dictCode),
|
||||
label: e.dictName,
|
||||
}))
|
||||
);
|
||||
|
||||
const id = computed(() => {
|
||||
return props.value
|
||||
})
|
||||
return props.value;
|
||||
});
|
||||
|
||||
function change(key, obj) {
|
||||
emit('update:name', obj[0])
|
||||
emit('update:value', key)
|
||||
emit("update:name", obj[0]);
|
||||
emit("update:value", key);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@@ -1,27 +1,34 @@
|
||||
<!--
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2022-12-14 15:46:36
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-12-14 15:47:21
|
||||
* @FilePath: /fe-manage/src/components/project/ProjectLevel.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<template v-if="tag">
|
||||
<div>{{ options?.find(e => e.value == id)?.label || '' }}</div>
|
||||
<div>{{ options?.find((e) => e.value == id)?.label || "" }}</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="id"
|
||||
:options="options"
|
||||
style="width: 100%"
|
||||
placeholder="请选择项目级别"
|
||||
@change="change"
|
||||
:disabled="disabled"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="id"
|
||||
:options="options"
|
||||
style="width: 100%"
|
||||
placeholder="请选择项目级别"
|
||||
@change="change"
|
||||
:disabled="disabled"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineEmits, defineProps} from "vue";
|
||||
import {useStore} from "vuex";
|
||||
|
||||
import { computed, defineEmits, defineProps } from "vue";
|
||||
import { useStore } from "vuex";
|
||||
|
||||
const store = useStore();
|
||||
const props = defineProps({
|
||||
@@ -29,20 +36,24 @@ const props = defineProps({
|
||||
disabled: String,
|
||||
tag: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
|
||||
const id = computed(() => {
|
||||
return props.value || null
|
||||
})
|
||||
return props.value || null;
|
||||
});
|
||||
|
||||
const emit = defineEmits({})
|
||||
|
||||
const options = computed(()=>store.state.projectLevel.map(e => ({value: parseInt(e.dictCode), label: e.dictName})))
|
||||
const emit = defineEmits({});
|
||||
|
||||
const options = computed(() =>
|
||||
store.state.projectLevel.map((e) => ({
|
||||
value: parseInt(e.dictCode),
|
||||
label: e.dictName,
|
||||
}))
|
||||
);
|
||||
|
||||
function change(key) {
|
||||
emit('update:value', key)
|
||||
emit("update:value", key);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,27 +1,34 @@
|
||||
<!--
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2022-12-14 15:46:36
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-12-14 15:47:46
|
||||
* @FilePath: /fe-manage/src/components/project/TrainClass.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<template v-if="tag">
|
||||
<div>{{ options.find(e => e.value == id)?.label || '' }}</div>
|
||||
<div>{{ options.find((e) => e.value == id)?.label || "" }}</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="id"
|
||||
:options="options"
|
||||
style="width: 100%"
|
||||
placeholder="请选择分类"
|
||||
@change="change"
|
||||
:disabled="disabled"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="id"
|
||||
:options="options"
|
||||
style="width: 100%"
|
||||
placeholder="请选择分类"
|
||||
@change="change"
|
||||
:disabled="disabled"
|
||||
/>
|
||||
</template>
|
||||
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineEmits, defineProps, onMounted, ref} from "vue";
|
||||
import {useStore} from "vuex";
|
||||
import { computed, defineEmits, defineProps } from "vue";
|
||||
import { useStore } from "vuex";
|
||||
|
||||
const store = useStore();
|
||||
|
||||
@@ -30,20 +37,24 @@ const props = defineProps({
|
||||
disabled: String,
|
||||
tag: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
|
||||
const id = computed(() => {
|
||||
return props.value
|
||||
})
|
||||
return props.value;
|
||||
});
|
||||
|
||||
const emit = defineEmits({})
|
||||
const emit = defineEmits({});
|
||||
|
||||
const options = computed(() => store.state.projectSys.map(e => ({value: parseInt(e.dictCode), label: e.dictName})))
|
||||
const options = computed(() =>
|
||||
store.state.projectSys.map((e) => ({
|
||||
value: parseInt(e.dictCode),
|
||||
label: e.dictName,
|
||||
}))
|
||||
);
|
||||
|
||||
function change(key) {
|
||||
emit('update:value', key)
|
||||
emit("update:value", key);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@@ -2119,7 +2119,7 @@
|
||||
item.indexOf("-") !== -1
|
||||
? item.slice(
|
||||
item.lastIndexOf("/") + 1,
|
||||
item.indexOf("-")
|
||||
item.lastIndexOf("-")
|
||||
) + item.slice(item.lastIndexOf("."))
|
||||
: item
|
||||
}}
|
||||
@@ -3274,16 +3274,16 @@ const columns7 = [
|
||||
return text ? text : "-";
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: "岗位",
|
||||
// width: 300,
|
||||
// dataIndex: "postion",
|
||||
// key: "3",
|
||||
// align: "center",
|
||||
// customRender: ({ text }) => {
|
||||
// return text ? text : "-";
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: "岗位",
|
||||
// width: 300,
|
||||
// dataIndex: "postion",
|
||||
// key: "3",
|
||||
// align: "center",
|
||||
// customRender: ({ text }) => {
|
||||
// return text ? text : "-";
|
||||
// },
|
||||
// },
|
||||
{
|
||||
title: "Band",
|
||||
width: 200,
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
item.indexOf("-") !== -1
|
||||
? item.slice(
|
||||
item.lastIndexOf("/") + 1,
|
||||
item.indexOf("-")
|
||||
item.lastIndexOf("-")
|
||||
) + item.slice(item.lastIndexOf("."))
|
||||
: item
|
||||
}}
|
||||
@@ -410,8 +410,14 @@ export default defineComponent({
|
||||
],
|
||||
},
|
||||
],
|
||||
ceshi: "https://u-pre.boe.com/upload/测试下载ppt2-1671002026755.pptx",
|
||||
ceshi2: "http://111.231.196.214:12016/测试下载ppt3-1671001683026.pptx",
|
||||
});
|
||||
console.log("detail", props.detail);
|
||||
|
||||
// item.slice(
|
||||
// item.lastIndexOf("/") + 1,
|
||||
// item.indexOf("-")
|
||||
// ) + item.slice(item.lastIndexOf("."))
|
||||
const filterTxt = (txt) => {
|
||||
if (txt) {
|
||||
return txt;
|
||||
|
||||
@@ -1499,14 +1499,14 @@ export default {
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "进度",
|
||||
dataIndex: "jin",
|
||||
key: "jin",
|
||||
width: 110,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
// {
|
||||
// title: "进度",
|
||||
// dataIndex: "jin",
|
||||
// key: "jin",
|
||||
// width: 110,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
{
|
||||
title: "开始时间",
|
||||
dataIndex: "time",
|
||||
|
||||
@@ -1547,14 +1547,14 @@ export default {
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "进度",
|
||||
dataIndex: "jin",
|
||||
key: "jin",
|
||||
width: 110,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
// {
|
||||
// title: "进度",
|
||||
// dataIndex: "jin",
|
||||
// key: "jin",
|
||||
// width: 110,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
{
|
||||
title: "开始时间",
|
||||
dataIndex: "time",
|
||||
|
||||
@@ -1328,7 +1328,7 @@ export default {
|
||||
title: "项目名称",
|
||||
dataIndex: "name",
|
||||
key: "name",
|
||||
width: 480,
|
||||
width: 380,
|
||||
// align: "center",
|
||||
ellipsis: true,
|
||||
// scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
|
||||
@@ -3165,14 +3165,14 @@ export default {
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
{
|
||||
title: "进度",
|
||||
dataIndex: "progress",
|
||||
key: "progress",
|
||||
// {
|
||||
// title: "进度",
|
||||
// dataIndex: "progress",
|
||||
// key: "progress",
|
||||
// width: 30,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
// {
|
||||
// title: "证书",
|
||||
// dataIndex: "diploma",
|
||||
|
||||
Reference in New Issue
Block a user