+
发表内容:
@@ -46,10 +50,10 @@
附件:
-
+
- 发表
+ 发表
@@ -125,18 +129,25 @@ dayjs.extend(relativeTime);
console.log(`🚀 ~ awaitdefHttp.get ~ res:`, res)
tlqInfo.value = res;
});
- // loadData(1)
}
- async function loadData(arg){
- await defHttp.get({ url: '/zyTlqContent/zyTlqContent/list', params: { pageSize: pageSize,pageNo:arg, mainId:id,column:'createTime',order:'desc' } }).then((res) => {
+ function loadData(arg){
+ defHttp.get({ url: '/zyTlqContent/zyTlqContent/list', params: { mainId:id+"",column:'createTime',order:'desc' } }).then((res) => {
console.log(`🚀 ~ defHttp.get ~ res:`, res)
dataSource.value = res.records;
total.value = res.total;
});
}
+
+ function submitForm(){
+ formData.value.mainId = id;
+ defHttp.post({ url: '/zyTlqContent/zyTlqContent/add', params: formData.value}).then((res) => {
+ loadData(1);
+ });
+ }
//进入就加载
onMounted(() => {
getTlqInfo();
+ loadData(1);
});
@@ -203,4 +214,17 @@ dayjs.extend(relativeTime);
margin: 0 8px 8px 0;
vertical-align: top;
}
+/deep/.ant-upload.ant-upload-select-picture-card {
+ width: 80px;
+ height: 80px;
+ margin-right: 8px;
+ margin-bottom: 8px;
+ text-align: center;
+ vertical-align: top;
+ background-color: #fafafa;
+ border: 1px dashed #d9d9d9;
+ border-radius: 2px;
+ cursor: pointer;
+ transition: border-color 0.3s;
+}
diff --git a/src/views/zy/zyTlq/TlqJiaohuListMain.vue b/src/views/zy/zyTlq/TlqJiaohuListMain.vue
new file mode 100644
index 0000000..1e02bda
--- /dev/null
+++ b/src/views/zy/zyTlq/TlqJiaohuListMain.vue
@@ -0,0 +1,230 @@
+
+
+
+
+
+
+
+
+ {{tlqInfo.title}}
+
+
+
+
+
+
+
+
+
+
+
+ {{item.studentName}}
+
+ {{item.createTime}}
+
+
+
+ {{item.content}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发表内容:
+
+
+
+ 图片:
+
+
+
+
+
+ 附件:
+
+
+
+ 发表
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/zy/zyTlq/ZyTlqList.vue b/src/views/zy/zyTlq/ZyTlqList.vue
index 19bd147..0ce72fe 100644
--- a/src/views/zy/zyTlq/ZyTlqList.vue
+++ b/src/views/zy/zyTlq/ZyTlqList.vue
@@ -98,7 +98,7 @@
* 发布
*/
function handleFabu(record) {
- defHttp.post({ url: '/zyTlq/zyTlq/edit', params: { id: record.id,sffb: "6" } }).then(res => {
+ defHttp.post({ url: '/zyTlq/zyTlq/edit', params: { id: record.id,sffb: "1" } }).then(res => {
total.value = 1;
pageNo.value = 0;
loadData(1);