物业之前,新工作台

This commit is contained in:
Zy
2026-04-16 21:03:35 +08:00
parent cf9a1f1585
commit 4184f1c55d
91 changed files with 1781 additions and 588 deletions

View File

@@ -32,7 +32,9 @@
<el-col :span="12">
<el-form-item label="是否发布" prop="publishStatus">
<el-radio-group v-model="form.publishStatus">
<el-radio v-for="dict in com_publish_status" :key="dict.value" :value="Number(dict.value)">{{ dict.label }}</el-radio>
<el-radio v-for="dict in com_publish_status" :key="dict.value" :value="Number(dict.value)">{{
dict.value === '0' ? dict.label : '发布'
}}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
@@ -65,7 +67,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { addComplaintType, getComplaintType, updateComplaintType } from '@/api/system/ComplainType';
import { addNotice, getNotice } from '@/api/system/NoticePc/index';
import { updateNotice } from '@/api/system/NoticePc';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -79,8 +80,8 @@ const form = ref({
'id': null,
'author': '',
'noticeTitle': '',
'urgencyLevel': '0',
'publishStatus': '1',
'urgencyLevel': 0,
'publishStatus': 1,
'noticeContent': ''
});
const rules = {
@@ -103,7 +104,6 @@ function init() {
...form.value,
...res.data
};
console.log(form.value);
});
}
@@ -116,6 +116,7 @@ if (route.query.id) {
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
form.value.villageId = Number(localStorage.getItem('villageid'));
if (userid.value) {
updateNotice(form.value).then(() => {
ElMessage.success('编辑成功');