mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 04:46:48 +08:00
init
This commit is contained in:
@@ -133,11 +133,10 @@
|
||||
|
||||
<div class="join">
|
||||
<el-input
|
||||
v-model="textarea1"
|
||||
v-model="sbValue.content"
|
||||
:autosize="{ minRows: 12.5, maxRows: 12.5 }"
|
||||
resize="none"
|
||||
type="textarea"
|
||||
@input="textareaInput"
|
||||
/>
|
||||
</div>
|
||||
<div style="display: flex; justify-content: center">
|
||||
@@ -262,10 +261,10 @@ import { useRoute } from "vue-router/dist/vue-router";
|
||||
const fileList = ref([]);
|
||||
const uploadRef = ref();
|
||||
const showFileList = ref(0);
|
||||
const state = reactive({
|
||||
textarea1: "",
|
||||
});
|
||||
const { textarea1 } = toRefs(state);
|
||||
const sbValue = ref({
|
||||
content: '',
|
||||
attach: ''
|
||||
})
|
||||
const router = useRouter();
|
||||
|
||||
const {
|
||||
@@ -276,18 +275,18 @@ const { data } = useRequest(TASK_WORK_DETAIL, { workId, taskId });
|
||||
const {data: submitList} = useRequest(TASK_WORK_SUBMIT_LIST, {workId});
|
||||
|
||||
const handleClick = () => {
|
||||
console.log(sbValue.value)
|
||||
console.log(fileList)
|
||||
request(TASK_WORK_COMMIT, {
|
||||
projectOrRouterLogo: type,
|
||||
workUploadContent: textarea1.value,
|
||||
workUploadContent: sbValue.value.content,
|
||||
workUploadAddress: fileList.value.map(e => e.url).join(',') || '',
|
||||
workId,
|
||||
taskId,
|
||||
}).then((res) => {
|
||||
submitList.value.unshift(res.data);
|
||||
});
|
||||
textarea1.value = "";
|
||||
};
|
||||
const textareaInput = (e) => {
|
||||
state.textarea1 = e;
|
||||
sbValue.value.content = "";
|
||||
};
|
||||
|
||||
function remove(i) {
|
||||
|
||||
Reference in New Issue
Block a user