Commit 4aec8121 authored by 黄奎's avatar 黄奎

页面修改

parent c7884d55
...@@ -57,6 +57,10 @@ export function getMenuLevelList() { ...@@ -57,6 +57,10 @@ export function getMenuLevelList() {
*/ */
export function getDeptTierList() { export function getDeptTierList() {
var deptTierOpts = [{ var deptTierOpts = [{
label: '不限',
value: 0
},
{
label: '1级', label: '1级',
value: 1 value: 1
}, },
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="row wrap"> <div class="row wrap">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.SName" ref="SName" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.SName" ref="SName"
class="col-6 q-pr-lg q-pb-lg" label="校区名称" :rules="[val => !!val || '请填写校区名称']" /> class="col-6 q-pr-lg q-pb-lg" label="校区名称" :rules="[val => !!val || '请填写校区名称']" />
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.SAddress" ref="SAddress" <q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.SAddress" ref="SAddress"
class="col-6 q-pb-lg" label="校区地址" :rules="[val => !!val || '请填写校区地址']" /> class="col-6 q-pb-lg" label="校区地址" :rules="[val => !!val || '请填写校区地址']" />
<q-select class="col-6 q-pb-lg q-pr-lg" clearable filled stack-label use-input option-value="Id" <q-select class="col-6 q-pb-lg q-pr-lg" clearable filled stack-label use-input option-value="Id"
option-label="EmployeeName" v-model="objOption.ManagerId" ref="ManagerId" :options="EmployeeList" option-label="EmployeeName" v-model="objOption.ManagerId" ref="ManagerId" :options="EmployeeList"
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</q-select> </q-select>
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.SLinkTel" ref="SLinkTel" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.SLinkTel" ref="SLinkTel"
class="col-6 q-pb-lg" label="校区联系电话" :rules="[val => !!val || '请填写校区联系电话']" /> class="col-6 q-pb-lg" label="校区联系电话" :rules="[val => !!val || '请填写校区联系电话']" />
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.Remark" <q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.Remark"
class="col-6 q-pb-lg q-pr-lg" label="校区备注" /> class="col-6 q-pb-lg q-pr-lg" label="校区备注" />
<selectTree v-if="DeptList&&DeptList.length>0" :treeData='DeptList' :defaultArray="returnString" <selectTree v-if="DeptList&&DeptList.length>0" :treeData='DeptList' :defaultArray="returnString"
nodeKey="DeptId" :multiple="false" labelKey="DeptName" childrenKey="ChildList" tipText="上级部门" nodeKey="DeptId" :multiple="false" labelKey="DeptName" childrenKey="ChildList" tipText="上级部门"
...@@ -155,6 +155,10 @@ ...@@ -155,6 +155,10 @@
if (res.Code == 1) { if (res.Code == 1) {
var jsonData = res.Data; var jsonData = res.Data;
if (jsonData && jsonData.length > 0) { if (jsonData && jsonData.length > 0) {
jsonData.unshift({
Id: 0,
EmployeeName: "请选择"
});
this.AllemployeeList = JSON.parse(JSON.stringify(jsonData)); this.AllemployeeList = JSON.parse(JSON.stringify(jsonData));
this.EmployeeList = JSON.parse(JSON.stringify(jsonData));; this.EmployeeList = JSON.parse(JSON.stringify(jsonData));;
} }
......
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
<q-input filled stack-label maxlength="50" :dense="false" v-model="objOption.DeptTel" ref="DeptTel" <q-input filled stack-label maxlength="30" :dense="false" v-model="objOption.DeptTel" ref="DeptTel"
class="col-6 q-pr-lg q-pb-lg" label="部门电话" /> class="col-6 q-pr-lg q-pb-lg" label="部门电话" />
<q-input filled stack-label maxlength="50" :dense="false" v-model="objOption.DeptSort" ref="DeptSort" <q-input filled stack-label maxlength="10" :dense="false" v-model="objOption.DeptSort" ref="DeptSort"
class="col-6 q-pr-lg q-pb-lg" label="排序" /> class="col-6 q-pr-lg q-pb-lg" label="排序" />
<q-select filled stack-label option-value="value" option-label="label" v-model="objOption.IsCompany " <q-select filled stack-label option-value="value" option-label="label" v-model="objOption.IsCompany "
ref="DeptTier" :options="IsCompanyL" label="是否校区" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value ref="DeptTier" :options="IsCompanyL" label="是否校区" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
this.objOption.DeptTier = res.Data.DeptTier; this.objOption.DeptTier = res.Data.DeptTier;
this.objOption.School_Id = res.Data.School_Id; this.objOption.School_Id = res.Data.School_Id;
this.tempManager = res.Data.ManagerList; this.tempManager = res.Data.ManagerList;
this.tempPost=res.Data.ChoosePostList; this.tempPost = res.Data.ChoosePostList;
}) })
this.optionTitle = "修改部门信息" this.optionTitle = "修改部门信息"
} else { } else {
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
this.objOption.DeptTier = 0; this.objOption.DeptTier = 0;
this.objOption.School_Id = 0; this.objOption.School_Id = 0;
this.tempManager = []; this.tempManager = [];
this.tempPost=[]; this.tempPost = [];
} }
}, },
//关闭弹窗 //关闭弹窗
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
//去掉第一个字符 //去掉第一个字符
tempStr = tempStr.substr(1); tempStr = tempStr.substr(1);
} }
this.objOption.ChoosePostList=this.tempPost; this.objOption.ChoosePostList = this.tempPost;
this.objOption.ManagerIds = tempStr; this.objOption.ManagerIds = tempStr;
saveDeptInfo(this.objOption).then(res => { saveDeptInfo(this.objOption).then(res => {
this.saveLoading = false this.saveLoading = false
......
...@@ -15,16 +15,16 @@ ...@@ -15,16 +15,16 @@
<q-toggle size="md" label="固定用户中心" color="primary" :false-value="0" :true-value="1" <q-toggle size="md" label="固定用户中心" color="primary" :false-value="0" :true-value="1"
v-model="objOption.IsUserCenter" /> v-model="objOption.IsUserCenter" />
</div> </div>
<q-select class="col-6 q-pb-lg" v-model="objOption.MenuType" :options="MenuTypeOpts" emit-value map-options <q-select class="col-6 q-pr-lg" v-model="objOption.MenuType" :options="MenuTypeOpts" emit-value map-options
label="菜单类型" @input="queryMenuList()" /> label="菜单类型" @input="queryMenuList()" />
<q-select class="col-6 q-pb-lg" v-if="objOption.IsUserCenter==0" v-model="objOption.MenuLevel" :options="MenuLevelOpts" emit-value map-options <q-select class="col-6 q-pr-lg q-pb-lg" v-if="objOption.IsUserCenter==0" v-model="objOption.MenuLevel" :options="MenuLevelOpts" emit-value map-options
label="菜单等级" @input="queryMenuList()" /> label="菜单等级" @input="queryMenuList()" />
<q-select v-if="objOption.IsUserCenter==0" :option-value="(item) => item === null ? null : item.MenuId" option-label="MenuName" <q-select v-if="objOption.IsUserCenter==0" :option-value="(item) => item === null ? null : item.MenuId" option-label="MenuName"
v-model="objOption.ParentId" :options="MenuList" label="上级菜单" :dense="false" emit-value map-options v-model="objOption.ParentId" :options="MenuList" label="上级菜单" :dense="false" emit-value map-options
class="col-6 q-pb-lg" /> class="col-6 q-pr-lg" />
<q-input stack-label maxlength="50" :dense="false" v-model="objOption.MenuIcon" class="col-6 q-pr-lg q-pb-lg" <q-input stack-label maxlength="60" :dense="false" v-model="objOption.MenuIcon" class="col-6 q-pr-lg q-pb-lg"
label="图标" /> label="图标" />
<q-input filled stack-label maxlength="50" :dense="false" v-model="objOption.SortNum" <q-input filled stack-label maxlength="10" :dense="false" v-model="objOption.SortNum"
class="col-6 q-pr-lg q-pb-lg" label="排序" /> class="col-6 q-pr-lg q-pb-lg" label="排序" />
<div class="col-6 q-pr-lg q-pb-lg q-pt-lg"> <div class="col-6 q-pr-lg q-pb-lg q-pt-lg">
<q-toggle size="md" label="状态" color="primary" :false-value="1" :true-value="0" <q-toggle size="md" label="状态" color="primary" :false-value="1" :true-value="0"
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<div class="row wrap"> <div class="row wrap">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.FunctionName" ref="FunctionName" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.FunctionName" ref="FunctionName"
class="col-6 q-pr-lg q-pb-lg" label="功能名称" :rules="[val => !!val || '请填写功能名称']" /> class="col-6 q-pr-lg q-pb-lg" label="功能名称" :rules="[val => !!val || '请填写功能名称']" />
<q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.FunctionCode" ref="FunctionCode" <q-input filled stack-label maxlength="25" :dense="false" v-model="objOption.FunctionCode" ref="FunctionCode"
class="col-6 q-pr-lg q-pb-lg" label="功能编码" /> class="col-6 q-pr-lg q-pb-lg" label="功能编码" />
<q-input filled stack-label maxlength="200" :dense="false" v-model="objOption.Remarks" ref="Remarks" <q-input filled stack-label maxlength="100" :dense="false" v-model="objOption.Remarks" ref="Remarks"
class="col-6 q-pr-lg q-pb-lg" label="功能备注" /> class="col-6 q-pr-lg q-pb-lg" label="功能备注" />
<div class="col-6 q-pr-lg q-pb-lg q-pt-lg"> <div class="col-6 q-pr-lg q-pb-lg q-pt-lg">
<q-toggle size="md" label="状态" color="primary" :false-value="1" :true-value="0" <q-toggle size="md" label="状态" color="primary" :false-value="1" :true-value="0"
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
type: Object, type: Object,
default: null default: null
}, },
paramObj:{ paramObj: {
type:Number, type: String,
default:0 default: "0"
} }
}, },
data() { data() {
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<div class="text-caption q-mb-lg text-dark-6"> <div class="text-caption q-mb-lg text-dark-6">
<span class="role_Line"></span>角色信息</div> <span class="role_Line"></span>角色信息</div>
<div class="row wrap"> <div class="row wrap">
<q-input filled stack-label maxlength="50" :dense="false" v-model="objOption.RoleName" ref="RoleName" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.RoleName" ref="RoleName"
class="col-6 q-pr-lg q-pb-lg" label="角色名称" :rules="[val => !!val || '请填写角色名称']" /> class="col-6 q-pr-lg q-pb-lg" label="角色名称" :rules="[val => !!val || '请填写角色名称']" />
</div> </div>
</div> </div>
......
This diff is collapsed.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<div class="col"> <div class="col">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.DeptName" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.DeptName"
label="部门名称" /> label="部门名称" maxlength="20" />
</div> </div>
<div class="col"> <div class="col">
<q-select @input="resetSearch" filled stack-label option-value="value" option-label="label" <q-select @input="resetSearch" filled stack-label option-value="value" option-label="label"
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" class="col-6 q-pr-lg q-pr-lg" v-model="msg.MenuName" <q-input @change="resetSearch" clearable standout="bg-primary text-white" class="col-6 q-pr-lg q-pr-lg" v-model="msg.MenuName"
label="菜单名称" /> label="菜单名称" maxlength="20" @clear="resetSearch" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" class="col-6 q-pr-lg q-pr-lg" v-model="msg.MenuUrl" <q-input @change="resetSearch" clearable standout="bg-primary text-white" class="col-6 q-pr-lg q-pr-lg" v-model="msg.MenuUrl"
label="菜单地址" /> label="菜单地址" maxlength="20" @clear="resetSearch" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.MenuType" class="col-6 q-pr-lg q-pr-lg" :options="MenuTypeOpts" <q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.MenuType" class="col-6 q-pr-lg q-pr-lg" :options="MenuTypeOpts"
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import {
getMenuPage, getMenuPage,
......
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.PostName" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.PostName"
label="岗位名称" /> label="岗位名称" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.Status" :options="ShowOpts" <q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.Status" :options="ShowOpts"
emit-value map-options label="状态" /> emit-value map-options label="状态" />
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table"
......
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.RoleName" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.RoleName"
label="角色名称" /> label="角色名称" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.Status" :options="ShowOpts" <q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.Status" :options="ShowOpts"
emit-value map-options label="状态" /> emit-value map-options label="状态" />
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment