-
+
+ v-model.trim="formData.agencyId" :options="orgOptions" :props="orgOptionProps"
+ :show-all-levels="false" @change="handleChangeAgency" clearable>
-
-
-
+
+
+
+
+
-
-
+
-
-
+
-
-
+
-
至
-
@@ -89,6 +85,9 @@
+
+ {{ scope.row.eventNum }}
+
@@ -116,7 +115,10 @@
-
+
+
+
@@ -128,15 +130,41 @@ import { requestPost } from "@/js/dai/request";
import nextTick from "dai-js/tools/nextTick";
import { mapGetters } from "vuex";
import add from "./cpts/add.vue";
+import suggestionList from "./cpts/suggestionList.vue";
import axios from "axios";
-
+
export default {
components: {
- add
+ add,suggestionList
},
data() {
+
+ let orgOptionProps = {
+ emitPath: false,
+ multiple: false,
+ value: 'agencyId',
+ label: 'agencyName',
+ children: 'subAgencyList',
+ checkStrictly: true
+ }
return {
+ SpecialList:[],
+ formData: {
+ publicationTimeStart:"",
+ publicationTimeEnd:"",
+ agencyId: "",
+ clientType:"web",
+ typeCode:"",
+ subjectTitle:"",
+ subjectContent:"",
+ publicationPeople:"",
+ publicationTimeStart:"",
+ publicationTimeEnd:"",
+ publicationPeople:""
+ },
+ orgOptionProps,
+ showType:"zhuanti",
tableData: [
{
gridName: '人力资源部',
@@ -285,16 +313,7 @@ export default {
{label:'违章拉客',value:'0'},
{label:'违章停车',value:'1'}
],
- formData: {
- agencyId: "",
- clientType:"web",
- typeCode:"",
- subjectTitle:"",
- subjectContent:"",
- publicationPeople:"",
- publicationTimeStart:"",
- publicationTimeEnd:""
- },
+
cateOptions: [],
optionProps: {
multiple: true,
@@ -309,7 +328,7 @@ export default {
pageSize: window.localStorage.getItem("pageSize") || 20,
total: 1,
eventId: "",
-
+ optionDate:{},
searchH: 180,
eventDetailData: {},
@@ -344,12 +363,52 @@ export default {
mounted() {
this.user = this.$store.state.user;
this.agencyId = this.user.agencyId;
- // this.getOrgTreeList()
+ this.getOrgTreeList()
// this.getGridList()
this.getTableData();
// this.getCateOptions();
+ this.getSpecialList()
},
methods: {
+ //
+ getOrgTreeList () {
+ this.$http
+ .post('/gov/org/customeragency/agencygridtree', {})
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ } else {
+ this.orgOptions = []
+ this.orgOptions.push(res.data)
+ }
+ })
+ .catch(() => {
+ return this.$message.error('网络错误')
+ })
+ },
+ //获取征集领域字典
+ async getSpecialList() {
+ const url = "/sys/dict/data/dictlist";
+
+ const { data, code, msg } = await requestPost(url, {
+ dictType: "solicitation_fields",
+ });
+
+ if (code === 0) {
+ this.SpecialList = data || [];
+ } else {
+ this.$message.error(msg);
+ }
+ },
+ onClickOpinion(row,type){
+ console.log(row,type,"sdfkljdslf");
+ this.optionDate={},
+ this.optionDate=row
+
+ this.showType=type
+
+
+ },
handleSuperviseEvent(){
let message = "确认删除?";
this.$confirm(message, "提示", {