新增数据,开始安全巡检模块
This commit is contained in:
@@ -246,7 +246,6 @@ const submitForm = () => {
|
||||
|
||||
const sendForm = (str: string) => {
|
||||
form.value.problemImageUrl = str;
|
||||
form.value.villageId = Number(localStorage.getItem('villageid'));
|
||||
if (userid.value) {
|
||||
updateRepair(form.value).then((res) => {
|
||||
ElMessage.success('编辑成功');
|
||||
|
||||
@@ -118,7 +118,6 @@ init();
|
||||
const submitForm = () => {
|
||||
formRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
form.value.villageId = Number(localStorage.getItem('villageid'));
|
||||
if (!userid.value) {
|
||||
addRepairProject(form.value).then(() => {
|
||||
ElMessage.success('添加成功');
|
||||
@@ -136,7 +135,7 @@ const submitForm = () => {
|
||||
// 推出
|
||||
const cancelForm = () => {
|
||||
router.push({
|
||||
path: '/repair/repairProjectList'
|
||||
path: '/system/repairProjectList'
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -127,7 +127,6 @@ const data = reactive<PageData<RepairForm, RepairQuery>>({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
villageId: Number(localStorage.getItem('villageid')),
|
||||
houseId: undefined,
|
||||
maintenanceItemId: undefined,
|
||||
problem: undefined,
|
||||
|
||||
@@ -186,7 +186,6 @@ const initFormData: RepairProjectForm = {
|
||||
const data = reactive<PageData<RepairProjectForm, RepairProjectQuery>>({
|
||||
form: { ...initFormData },
|
||||
queryParams: {
|
||||
villageId: Number(localStorage.getItem('villageid')),
|
||||
projectName: undefined,
|
||||
parentId: undefined,
|
||||
projectType: undefined,
|
||||
@@ -259,14 +258,14 @@ const handleSelectionChange = (selection: RepairProjectVO[]) => {
|
||||
/** 新增按钮操作 */
|
||||
const handleAdd = () => {
|
||||
router.push({
|
||||
path: '/repair/addRepairProjectList'
|
||||
path: '/system/addRepairProjectList'
|
||||
});
|
||||
};
|
||||
|
||||
/** 修改按钮操作 */
|
||||
const handleUpdate = async (row?: RepairProjectVO) => {
|
||||
router.push({
|
||||
path: '/repair/addRepairProjectList',
|
||||
path: '/system/addRepairProjectList',
|
||||
query: {
|
||||
id: row.id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user