修改
This commit is contained in:
parent
632f2a4ce2
commit
7b9fdcdc88
@ -1,111 +1,51 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="资讯标题" prop="infoTitle">
|
||||
<el-input
|
||||
v-model="queryParams.infoTitle"
|
||||
placeholder="请输入资讯标题"
|
||||
maxlength="100"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-input v-model="queryParams.infoTitle" placeholder="请输入资讯标题" maxlength="100" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="资讯分类" prop="infoCategoryId">
|
||||
<el-button
|
||||
type=""
|
||||
v-if="infoCategoryName == '请选择资讯分类'"
|
||||
@click="clickitem()"
|
||||
style="
|
||||
<el-button type="" v-if="infoCategoryName == '请选择资讯分类'" @click="clickitem()" style="
|
||||
width: 250px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
color: #c0c4cc;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ infoCategoryName }}</el-button
|
||||
>
|
||||
<el-button
|
||||
@click="clickitem()"
|
||||
type=""
|
||||
v-else
|
||||
style="
|
||||
">{{ infoCategoryName }}</el-button>
|
||||
<el-button @click="clickitem()" type="" v-else style="
|
||||
width: 250px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
padding-left: -10px;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ infoCategoryName }}</el-button
|
||||
>
|
||||
">{{ infoCategoryName }}</el-button>
|
||||
</el-form-item>
|
||||
<!-- </el-form-item> -->
|
||||
<el-form-item label="资讯编码" prop="infoCode">
|
||||
<el-input
|
||||
v-model="queryParams.infoCode"
|
||||
placeholder="请输入资讯编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-input v-model="queryParams.infoCode" placeholder="请输入资讯编码" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['manage:info:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['manage:info:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:info:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
||||
v-hasPermi="['manage:info:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:info:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||
v-hasPermi="['manage:info:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
@ -117,17 +57,10 @@
|
||||
v-hasPermi="['manage:info:export']"
|
||||
>导出</el-button>
|
||||
</el-col> -->
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="infoList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
|
||||
<el-table-column label="资讯标题" align="center" prop="infoTitle" />
|
||||
@ -136,113 +69,53 @@
|
||||
|
||||
<el-table-column label="资讯排序" align="center" prop="infoSort" />
|
||||
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['manage:info:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['manage:info:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['manage:info:edit']">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['manage:info:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList" />
|
||||
|
||||
<!-- 添加或修改资讯信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-width="140px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="140px" :inline="true">
|
||||
<el-form-item label="资讯标题" prop="infoTitle">
|
||||
<el-input
|
||||
v-model="form.infoTitle"
|
||||
maxlength="100"
|
||||
placeholder="请输入资讯标题"
|
||||
/>
|
||||
<el-input v-model="form.infoTitle" maxlength="100" placeholder="请输入资讯标题" />
|
||||
</el-form-item>
|
||||
<el-form-item label="资讯分类" prop="infoCategoryId">
|
||||
<el-button
|
||||
type=""
|
||||
v-if="form.infoCategoryName == '请选择资讯分类'"
|
||||
@click="clickinnerVisible()"
|
||||
style="
|
||||
<el-button type="" v-if="form.infoCategoryName == '请选择资讯分类'" @click="clickinnerVisible()" style="
|
||||
width: 250px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
color: #c0c4cc;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ form.infoCategoryName }}</el-button
|
||||
>
|
||||
<el-button
|
||||
@click="clickinnerVisible()"
|
||||
type=""
|
||||
v-else
|
||||
style="
|
||||
">{{ form.infoCategoryName }}</el-button>
|
||||
<el-button @click="clickinnerVisible()" type="" v-else style="
|
||||
width: 250px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
padding-left: -10px;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ form.infoCategoryName }}</el-button
|
||||
>
|
||||
">{{ form.infoCategoryName }}</el-button>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="资讯图标" prop="infoLargePictureUrl">
|
||||
<stationAcatar
|
||||
style="width: 208px"
|
||||
@imgUrl="imgUrl"
|
||||
:img="form.infoLargePictureUrl"
|
||||
:type="'infoMainThumbnailUrl'"
|
||||
/>
|
||||
<stationAcatar style="width: 208px" @imgUrl="imgUrl" :img="form.infoLargePictureUrl"
|
||||
:type="'infoMainThumbnailUrl'" />
|
||||
<!-- <el-input v-model="form.leadThumbnailUrl" placeholder="请输入资讯主缩略图地址" /> -->
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="显示顺序" prop="infoSort">
|
||||
<el-input
|
||||
v-model="form.infoSort"
|
||||
placeholder="请输入显示顺序"
|
||||
style="width: 250px"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="5"
|
||||
/>
|
||||
<el-input v-model="form.infoSort" placeholder="请输入显示顺序" style="width: 250px" type="number"
|
||||
oninput="value=value.replace(/[^\d]/g,'')" maxLength="5" />
|
||||
</el-form-item>
|
||||
<el-form-item label="资讯图文内容" prop="infoContent">
|
||||
<editor
|
||||
@imgs="imgs"
|
||||
maxlength="300"
|
||||
:min-height="102"
|
||||
placeholder="请输入资讯图文内容"
|
||||
style="width: 80%; margin-left: 18%; margin-top: -5%"
|
||||
v-model="form.infoContent"
|
||||
/>
|
||||
<editor @imgs="imgs" maxlength="300" :min-height="102" placeholder="请输入资讯图文内容"
|
||||
style="width: 80%; margin-left: 18%; margin-top: -5%" v-model="form.infoContent" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -251,92 +124,32 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 选择资讯 -->
|
||||
<el-dialog
|
||||
title="选择资讯"
|
||||
:visible.sync="innerVisible"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="innerVisiblecancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="informationqueryParams"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-form-item
|
||||
label="资讯分类编码"
|
||||
prop="infoCategoryCode"
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="informationqueryParams.infoCategoryCode"
|
||||
placeholder="请输入资讯分类编码"
|
||||
clearable
|
||||
/>
|
||||
<el-dialog title="选择资讯" :visible.sync="innerVisible" width="1000px" append-to-body
|
||||
:before-close="innerVisiblecancel">
|
||||
<el-form ref="queryForm" :model="informationqueryParams" label-width="80px" :inline="true">
|
||||
<el-form-item label="资讯分类编码" prop="infoCategoryCode" label-width="120">
|
||||
<el-input v-model="informationqueryParams.infoCategoryCode" placeholder="请输入资讯分类编码" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="资讯分类名称"
|
||||
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="informationqueryParams.infoCategoryName"
|
||||
placeholder="请输入资讯分类名称"
|
||||
clearable
|
||||
/>
|
||||
<el-form-item label="资讯分类名称" label-width="120">
|
||||
<el-input v-model="informationqueryParams.infoCategoryName" placeholder="请输入资讯分类名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="informationInfoinfo"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="addresetQuerylist"
|
||||
>重置</el-button
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
:data="infolist"
|
||||
@cell-dblclick="nurseclick"
|
||||
v-loading="loading"
|
||||
>
|
||||
<el-table :data="infolist" @cell-dblclick="nurseclick" v-loading="loading">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
style="width: 15px; height: 15px"
|
||||
v-if="form.infoCategoryId == scope.row.id"
|
||||
circle
|
||||
@click="nurseclick(scope.row)"
|
||||
></el-button>
|
||||
<el-button
|
||||
v-else
|
||||
style="width: 15px; height: 15px"
|
||||
circle
|
||||
@click="nurseclick(scope.row)"
|
||||
></el-button>
|
||||
<el-button type="primary" style="width: 15px; height: 15px" v-if="form.infoCategoryId == scope.row.id"
|
||||
circle @click="nurseclick(scope.row)"></el-button>
|
||||
<el-button v-else style="width: 15px; height: 15px" circle @click="nurseclick(scope.row)"></el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="infoCategoryCode"
|
||||
label="资讯分类编码"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column property="infoCategoryCode" label="资讯分类编码" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="infoCategoryName"
|
||||
label="资讯名称"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
<el-table-column property="infoCategoryName" label="资讯名称" align="center" :show-overflow-tooltip="true">
|
||||
</el-table-column>
|
||||
|
||||
<!-- <el-table-column
|
||||
@ -360,109 +173,40 @@
|
||||
>
|
||||
</el-table-column> -->
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total2 > 0"
|
||||
:total="total2"
|
||||
:page.sync="informationqueryParams.pageNum"
|
||||
:limit.sync="informationqueryParams.pageSize"
|
||||
@pagination="informationInfoinfo"
|
||||
/>
|
||||
<pagination v-show="total2 > 0" :total="total2" :page.sync="informationqueryParams.pageNum"
|
||||
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" />
|
||||
</el-dialog>
|
||||
<!-- 搜索选择资讯 -->
|
||||
<el-dialog
|
||||
title="选择资讯"
|
||||
:visible.sync="innerVisiblezx"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="innerVisiblecancelzx"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="informationqueryParams"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-form-item
|
||||
label="资讯分类编码"
|
||||
prop="infoCategoryCode"
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="informationqueryParams.infoCategoryCode"
|
||||
placeholder="请输入资讯分类编码"
|
||||
clearable
|
||||
/>
|
||||
<el-dialog title="选择资讯" :visible.sync="innerVisiblezx" width="1000px" append-to-body
|
||||
:before-close="innerVisiblecancelzx">
|
||||
<el-form ref="queryForm" :model="informationqueryParams" label-width="80px" :inline="true">
|
||||
<el-form-item label="资讯分类编码" prop="infoCategoryCode" label-width="120">
|
||||
<el-input v-model="informationqueryParams.infoCategoryCode" placeholder="请输入资讯分类编码" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="资讯分类名称"
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="informationqueryParams.infoCategoryName"
|
||||
placeholder="请输入资讯分类名称"
|
||||
clearable
|
||||
/>
|
||||
<el-form-item label="资讯分类名称" label-width="120">
|
||||
<el-input v-model="informationqueryParams.infoCategoryName" placeholder="请输入资讯分类名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="informationInfoinfo"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="addresetQuerylist"
|
||||
>重置</el-button
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
:data="infolist"
|
||||
@cell-dblclick="nurseclickzx"
|
||||
v-loading="loading"
|
||||
>
|
||||
<el-table :data="infolist" @cell-dblclick="nurseclickzx" v-loading="loading">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
style="width: 15px; height: 15px"
|
||||
v-if="queryParams.infoCategoryId == scope.row.id"
|
||||
circle
|
||||
@click="nurseclickzx(scope.row)"
|
||||
></el-button>
|
||||
<el-button
|
||||
v-else
|
||||
style="width: 15px; height: 15px"
|
||||
circle
|
||||
@click="nurseclickzx(scope.row)"
|
||||
></el-button>
|
||||
<el-button type="primary" style="width: 15px; height: 15px"
|
||||
v-if="queryParams.infoCategoryId == scope.row.id" circle @click="nurseclickzx(scope.row)"></el-button>
|
||||
<el-button v-else style="width: 15px; height: 15px" circle @click="nurseclickzx(scope.row)"></el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="infoCategoryCode"
|
||||
label="资讯分类编码"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column property="infoCategoryCode" label="资讯分类编码" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="infoCategoryName"
|
||||
label="资讯名称"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
<el-table-column property="infoCategoryName" label="资讯名称" align="center" :show-overflow-tooltip="true">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total2 > 0"
|
||||
:total="total2"
|
||||
:page.sync="informationqueryParams.pageNum"
|
||||
:limit.sync="informationqueryParams.pageSize"
|
||||
@pagination="informationInfoinfo"
|
||||
/>
|
||||
<pagination v-show="total2 > 0" :total="total2" :page.sync="informationqueryParams.pageNum"
|
||||
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
@ -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) {
|
||||
|
||||
@ -360,7 +360,7 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
style="width: 15px; height: 15px"
|
||||
v-if="form.departmentId == scope.row.departmentCode"
|
||||
v-if="form.departmentId == scope.row.id"
|
||||
circle
|
||||
@click="nurseclick(scope.row)"
|
||||
></el-button>
|
||||
@ -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 = '请选择病种';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user