| | |
| | | <template> |
| | | <basic-container class="desk1"> |
| | | <avue-crud :option="option" |
| | | <avue-crud |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | @on-load="onLoad" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | v-if="permission.notice_delete" |
| | | plain |
| | | @click="handleDelete">删 除 |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | <!-- v-if="permission.notice_delete" --> |
| | | </template> |
| | | <template slot-scope="{ row }" |
| | | slot="category"> |
| | | <template slot-scope="{ row }" slot="category"> |
| | | <el-tag>{{ row.categoryName }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" |
| | | slot="menu"> |
| | | <el-button :size="size" |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.notice_upload" |
| | | @click="handleUploadPage(row)">附件上传 |
| | | @click="handleUploadPage(row)" |
| | | >附件上传 |
| | | </el-button> |
| | | <!-- <el-button |
| | | v-if="!deptCategory" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getListPage, remove, update, add, getNotice, getPeopleList } from "@/api/desk/notice"; |
| | | import { |
| | | getListPage, |
| | | remove, |
| | | update, |
| | | add, |
| | | getNotice, |
| | | getPeopleList, |
| | | } from "@/api/desk/notice"; |
| | | import { getDept } from "@/api/system/dept"; |
| | | import { mapGetters } from "vuex"; |
| | | import { mapState } from 'vuex'; |
| | | import { mapState } from "vuex"; |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | }, |
| | | dataType: "number", |
| | | slot: true, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | defaultValue: "1", |
| | | prop: "category", |
| | | search: true, |
| | |
| | | }, |
| | | multiple: true, |
| | | // dataType: "number", |
| | | rules: [{ |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择接收人", |
| | | trigger: "blur" |
| | | }] |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "接收人", |
| | |
| | | return ids.join(","); |
| | | }, |
| | | ...mapState({ |
| | | userInfo: state => state.user.userInfo |
| | | }) |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | }, |
| | | mounted () { |
| | | this.getDeptInfo(this.userInfo.dept_id); |
| | | // this.getDeptInfo(this.userInfo.dept_id); |
| | | |
| | | getPeopleList({ deptId: this.userInfo.dept_id }).then(res => { |
| | | |
| | | getPeopleList({ deptId: this.userInfo.dept_id }).then((res) => { |
| | | const columnReceivedIds = this.findObject( |
| | | this.option.column, |
| | | "receivedIds" |
| | | ); |
| | | |
| | | console.log(columnReceivedIds, res.data.data, 6456) |
| | | columnReceivedIds.dicData = res.data.data |
| | | }) |
| | | |
| | | |
| | | console.log(columnReceivedIds, res.data.data, 6456); |
| | | columnReceivedIds.dicData = res.data.data; |
| | | }); |
| | | }, |
| | | methods: { |
| | | //获取当前用户部门信息 |
| | |
| | | deptCategory == 1 |
| | | ? (that.deptCategory = true) |
| | | : (that.deptCategory = false); |
| | | |
| | | }); |
| | | }, |
| | | //跳转到附件列表页面 |
| | |
| | | }); |
| | | }, |
| | | rowSave (row, done, loading) { |
| | | if (this.deptCategory) { |
| | | row.category = 1; |
| | | } else { |
| | | row.category = 2; |
| | | } |
| | | row['type'] = 1; |
| | | // if (this.deptCategory) { |
| | | // row.category = 1; |
| | | // } else { |
| | | // row.category = 2; |
| | | // } |
| | | row["type"] = 1; |
| | | row.deptId = this.deptId; |
| | | |
| | | row.receivedIds = row.receivedIds.toString() |
| | | row.receivedIds = row.receivedIds.toString(); |
| | | |
| | | add(row).then( |
| | | () => { |
| | |
| | | // } |
| | | row.deptId = this.deptId; |
| | | |
| | | row.receivedIds = row.receivedIds.toString() |
| | | row.receivedIds = row.receivedIds.toString(); |
| | | |
| | | update(row).then( |
| | | () => { |
| | |
| | | const { releaseTimeRange } = this.query; |
| | | params["jurisdiction"] = this.jurisdiction; |
| | | params["type"] = 1; |
| | | |
| | | |
| | | let values = { |
| | | ...params, |