diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue
index 6062946..0663570 100644
--- a/src/views/modules/shequzhili/event/cpts/add.vue
+++ b/src/views/modules/shequzhili/event/cpts/add.vue
@@ -82,7 +82,21 @@
v-model="formData.idCard"
>
-
+
+
+
+
+
{
@@ -423,10 +419,13 @@ export default {
trigger: "blur",
},
],
- // idCard: [
- // { required: true, message: "身份证号不能为空", trigger: "blur" },
- // { required: true, validator: checkIdCard, trigger: "blur" },
- // ],
+ categoryList:[
+ {
+ required: true,
+ message: "事件分类不能为空",
+ trigger: "blur",
+ },
+ ],
sourceType: [
{
required: true,
@@ -465,7 +464,12 @@ export default {
};
},
},
- props: {},
+ props: {
+ source: {//展示来源:manage 管理平台 visiual 可视化平台
+ type: String,
+ default: 'manage'
+ }
+ },
watch: {
"formData.name": function (val) {
this.$emit("changeName", val);
@@ -503,6 +507,16 @@ export default {
},
methods: {
+ handleChangeCate(obj) {
+ this.selCateObj = obj
+ this.formData.categoryList = [];
+ let flag = JSON.stringify(obj) == '{}'
+ if(flag)
+ this.formData.categoryList = []
+ else
+ this.formData.categoryList.push(this.selCateObj);
+
+ },
async handleShowPersonList() {
if (this.formData.gridId) {
await this.handleChangeGrid();
@@ -565,19 +579,13 @@ export default {
},
async getCategoryList() {
const url = "/gov/issue/issueprojectcategorydict/list";
-
let params = {};
-
const { data, code, msg } = await requestPost(url, params);
-
if (code === 0) {
let treeDataNew = this.filterTree(data);
- // this.categrayList = data
- //组织级联数据
++this.iscascaderShow;
this.casOptions = [];
this.selCategoryArray = [];
-
this.casOptions = treeDataNew;
} else {
this.$message.error(msg);
diff --git a/src/views/modules/shequzhili/event/cpts/categoryArray.vue b/src/views/modules/shequzhili/event/cpts/categoryArray.vue
new file mode 100644
index 0000000..aca9042
--- /dev/null
+++ b/src/views/modules/shequzhili/event/cpts/categoryArray.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+ >
\ No newline at end of file
diff --git a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue
index 0eeceaa..560c075 100644
--- a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue
+++ b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue
@@ -5,7 +5,7 @@
:inline="false"
:model="formData"
:rules="dataRule">
-
@@ -19,7 +19,7 @@
:show-all-levels="false"
@change="handleChangeCate">
-
+ -->
暂不处理
回复
- 立项
+
diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue
index deb4447..539f37f 100644
--- a/src/views/modules/shequzhili/event/eventList.vue
+++ b/src/views/modules/shequzhili/event/eventList.vue
@@ -181,7 +181,7 @@
size="small"
>导出
-
+