|
@@ -17,29 +17,50 @@
|
|
|
<p>详细地址:{{ PersonInfo.data.areaSelectName }}</p>
|
|
|
<p>发生时间:{{ PersonInfo.data.problemTime }}</p>
|
|
|
<p>截止时间:{{ PersonInfo.data.deadlineTime }}</p>
|
|
|
- <p>问题附件:<span style="color: #6892ff">活动申请书</span></p>
|
|
|
+ <p>
|
|
|
+ 问题附件:
|
|
|
+ <van-uploader>
|
|
|
+ <van-button>活动申请书</van-button>
|
|
|
+ </van-uploader>
|
|
|
+ </p>
|
|
|
</div>
|
|
|
<div class="content-bottom">
|
|
|
<p>处理结果:</p>
|
|
|
<div>
|
|
|
<form action="">
|
|
|
- <textarea name="" id="" cols="40" rows="5"></textarea>
|
|
|
+ <textarea
|
|
|
+ v-if="PersonInfo.data.disposeContent == ''"
|
|
|
+ v-model="PersonInfo.disposeContent"
|
|
|
+ name=""
|
|
|
+ id=""
|
|
|
+ cols="40"
|
|
|
+ rows="5"
|
|
|
+ ></textarea>
|
|
|
+ <textarea
|
|
|
+ v-if="PersonInfo.data.disposeContent != ''"
|
|
|
+ v-model="PersonInfo.data.disposeContent"
|
|
|
+ name=""
|
|
|
+ id=""
|
|
|
+ cols="40"
|
|
|
+ rows="5"
|
|
|
+ ></textarea>
|
|
|
</form>
|
|
|
</div>
|
|
|
<div style="margin-top: 15px">
|
|
|
处理证据资料:
|
|
|
<van-uploader>
|
|
|
- <van-button icon="plus" >点击上传</van-button>
|
|
|
+ <van-button icon="plus">点击上传</van-button>
|
|
|
</van-uploader>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <van-button type="primary">确认</van-button>
|
|
|
+ <van-button type="primary" @click="submit">确认</van-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { useRouter } from "vue-router";
|
|
|
import { onMounted, reactive, ref } from "vue";
|
|
|
+import ToBeDone from "@/api/toBeDone/toBeDone";
|
|
|
export default {
|
|
|
setup() {
|
|
|
const router = useRouter();
|
|
@@ -47,23 +68,50 @@ export default {
|
|
|
data: {},
|
|
|
createDepartment: {},
|
|
|
todoBy: {},
|
|
|
+ disposeContent: "",
|
|
|
});
|
|
|
//数据接收
|
|
|
onMounted(() => {
|
|
|
var item = JSON.parse(router.currentRoute.value.query.data);
|
|
|
+ // let itemId = item.id
|
|
|
+ console.log(item);
|
|
|
PersonInfo.data = item;
|
|
|
- console.log(PersonInfo.data);
|
|
|
PersonInfo.createDepartment = PersonInfo.data.createDepartment;
|
|
|
PersonInfo.todoBy = PersonInfo.data.todoBy;
|
|
|
+ // new ToBeDone().queryById(itemId).then((res)=>{
|
|
|
+
|
|
|
+ // })
|
|
|
});
|
|
|
//返回事件
|
|
|
const goback = () => {
|
|
|
history.back();
|
|
|
};
|
|
|
-
|
|
|
+ //待办反馈提交
|
|
|
+ const submit = () => {
|
|
|
+ if (
|
|
|
+ PersonInfo.data.assignState != "3" ||
|
|
|
+ PersonInfo.data.assignState != "4"
|
|
|
+ ) {
|
|
|
+ PersonInfo.data.disposeContent = PersonInfo.disposeContent;
|
|
|
+ PersonInfo.data.assignState = "3";
|
|
|
+ new ToBeDone().save(PersonInfo.data).then((res) => {
|
|
|
+ // console.log(PersonInfo.data);
|
|
|
+ // console.log("提交成功");
|
|
|
+ // console.log(res);
|
|
|
+ router.push({
|
|
|
+ path: "/toBeDone",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ router.push({
|
|
|
+ path:'/toBeDone'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ };
|
|
|
return {
|
|
|
goback,
|
|
|
PersonInfo,
|
|
|
+ submit,
|
|
|
};
|
|
|
},
|
|
|
};
|
|
@@ -133,7 +181,6 @@ html {
|
|
|
}
|
|
|
.content-bottom {
|
|
|
margin-top: 20px;
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
</style>
|