diff --git a/src/views/manage/info/index.vue b/src/views/manage/info/index.vue index 9852a85..7ba1973 100644 --- a/src/views/manage/info/index.vue +++ b/src/views/manage/info/index.vue @@ -1,111 +1,51 @@ @@ -483,11 +227,11 @@ export default { return { - + innerVisible: false, innerVisiblezx: false, - imgs:'', - infoCategoryName:'请选择资讯分类', + imgs: '', + infoCategoryName: '请选择资讯分类', informationqueryParams: { pageNum: 1, pageSize: 10, @@ -519,8 +263,8 @@ export default { queryParams: { pageNum: 1, pageSize: 10, - infoCategoryName:"", - + infoCategoryName: "", + infoCategoryId: null, infoTitle: null, infoCode: null, @@ -586,20 +330,20 @@ export default { this.getList(); }, methods: { - // 新增按钮 - clickinnerVisible() { + // 新增按钮 + clickinnerVisible() { this.informationInfoinfo(); this.innerVisible = true; }, imgUrl(imgUrl) { - console.log(imgUrl,'imgUrl') + console.log(imgUrl, 'imgUrl') this.form.infoLargePictureUrl = imgUrl; }, // imgs(item) { // this.imgsurl.pictureUrlList.push(item); // }, - + innerVisiblecancel() { this.innerVisible = false; }, @@ -615,7 +359,7 @@ export default { informationTitle: "", infoCategoryName: "", - + }; this.getList(); }, @@ -687,18 +431,18 @@ export default { /** 搜索按钮操作 */ handleQuery() { - this.queryParams.pageNum= 1 + this.queryParams.pageNum = 1 this.getList(); }, /** 重置按钮操作 */ resetQuery() { this.resetForm("queryForm"); - this.queryParams= { + this.queryParams = { pageNum: 1, pageSize: 10, - infoCategoryName:null, - infoCategoryId:null, - + infoCategoryName: null, + infoCategoryId: null, + infoCategoryId: null, infoTitle: null, infoCode: null, @@ -714,7 +458,7 @@ export default { infoReviser: null, infoModifyTime: null } - this.infoCategoryName="请选择资讯分类" + this.infoCategoryName = "请选择资讯分类" this.getList(); @@ -731,7 +475,7 @@ export default { this.reset(); this.open = true; this.title = "添加资讯信息"; - this.form.infoCategoryName= "请选择资讯分类"; + this.form.infoCategoryName = "请选择资讯分类"; }, /** 修改按钮操作 */ @@ -746,8 +490,9 @@ export default { }, /** 提交按钮 */ submitForm() { - console.log(this.form,'this.form') - // return + if (this.form.infoSort) { + this.form.infoSort = Number(this.form.infoSort) + } this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { diff --git a/src/views/manage/template/index.vue b/src/views/manage/template/index.vue index 6b9aea1..2a81191 100644 --- a/src/views/manage/template/index.vue +++ b/src/views/manage/template/index.vue @@ -360,7 +360,7 @@ @@ -720,7 +720,7 @@ export default { }, // 科室名称圆点按钮 nurseclick(row) { - this.form.departmentId = row.departmentCode; + this.form.departmentId = row.id; this.departmentName = row.departmentName; this.form.diseaseTypeId = ''; this.diseaseTypeName = '请选择病种';