mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
feat:合并
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
import {defineEmits, defineProps, ref, watch, onMounted} from "vue";
|
import {defineEmits, defineProps, ref, watch, onMounted} from "vue";
|
||||||
import Upload from "./BaseUpload.vue";
|
import Upload from "./BaseUpload.vue";
|
||||||
|
|
||||||
const emit = defineEmits({})
|
const emit = defineEmits(["changevalue"])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
value: String,
|
value: String,
|
||||||
})
|
})
|
||||||
@@ -98,6 +98,7 @@ function init() {
|
|||||||
|
|
||||||
function del(i) {
|
function del(i) {
|
||||||
uploadRef.value.remove(i)
|
uploadRef.value.remove(i)
|
||||||
|
emit('changevalue', i)
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -337,7 +337,7 @@
|
|||||||
<span style="margin-right: 10px">附件</span>
|
<span style="margin-right: 10px">附件</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_inp">
|
<div class="item_inp">
|
||||||
<FJUpload v-model:value="attach"/>
|
<FJUpload v-model:value="attach" @changevalue="changevalue"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -572,6 +572,23 @@ export default defineComponent({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 删除文件返回参数
|
||||||
|
const changevalue = (e) => {
|
||||||
|
let arr = state.attach.split(',')
|
||||||
|
let newarr = []
|
||||||
|
for(let i=0;i<arr.length;i++){
|
||||||
|
if(i!==e){
|
||||||
|
newarr.push(arr[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(newarr.length==0){
|
||||||
|
state.attach = "";
|
||||||
|
}else{
|
||||||
|
state.attach = newarr.toString()
|
||||||
|
}
|
||||||
|
console.log('changevalue', e, newarr, state.attach)
|
||||||
|
}
|
||||||
|
|
||||||
const visibleOpen = (offcourseId, name) => {
|
const visibleOpen = (offcourseId, name) => {
|
||||||
state.offcourseId = offcourseId;
|
state.offcourseId = offcourseId;
|
||||||
|
|
||||||
@@ -588,6 +605,7 @@ export default defineComponent({
|
|||||||
};
|
};
|
||||||
const visibleClose = () => {
|
const visibleClose = () => {
|
||||||
state.ft_hs = false;
|
state.ft_hs = false;
|
||||||
|
valueHtml.value = "";
|
||||||
ft_exit();
|
ft_exit();
|
||||||
emit("visibleClose");
|
emit("visibleClose");
|
||||||
};
|
};
|
||||||
@@ -626,6 +644,8 @@ export default defineComponent({
|
|||||||
state.attach = "";
|
state.attach = "";
|
||||||
state.auditDescription = "";
|
state.auditDescription = "";
|
||||||
|
|
||||||
|
valueHtml.value = "";
|
||||||
|
|
||||||
// valueHtml.value = "";
|
// valueHtml.value = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -963,7 +983,8 @@ export default defineComponent({
|
|||||||
toolbarConfig,
|
toolbarConfig,
|
||||||
editorConfig,
|
editorConfig,
|
||||||
handleCreated,
|
handleCreated,
|
||||||
choicePic
|
choicePic,
|
||||||
|
changevalue
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1382,8 +1382,8 @@ export default {
|
|||||||
// // },
|
// // },
|
||||||
{
|
{
|
||||||
title: "当前关卡",
|
title: "当前关卡",
|
||||||
dataIndex: "cur",
|
dataIndex: "currentStageName",
|
||||||
key: "cur",
|
key: "currentStageName",
|
||||||
width: 110,
|
width: 110,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
@@ -1395,6 +1395,11 @@ export default {
|
|||||||
width: 110,
|
width: 110,
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
customRender: ({ record }) => (
|
||||||
|
<div>
|
||||||
|
{record.finishTaskNum}/{record.totalTaskNum}
|
||||||
|
</div>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: "开始时间",
|
// title: "开始时间",
|
||||||
|
|||||||
@@ -1553,7 +1553,7 @@ export default {
|
|||||||
state.projectInfo = {
|
state.projectInfo = {
|
||||||
parentName: value.record.name,
|
parentName: value.record.name,
|
||||||
parentId: value.record.projectId,
|
parentId: value.record.projectId,
|
||||||
name: value.record.name,
|
name: '',
|
||||||
sourceBelongId: value.record.sourceBelongId,
|
sourceBelongId: value.record.sourceBelongId,
|
||||||
sourceBelongName: value.record.sourceBelongName,
|
sourceBelongName: value.record.sourceBelongName,
|
||||||
manager: value.record.manager,
|
manager: value.record.manager,
|
||||||
|
|||||||
Reference in New Issue
Block a user