提交 565a7b26 编写于 作者: 刘英杰's avatar 刘英杰

- 20240718更新

上级 7053bb4f
流水线 #27917 已通过 ,包含阶段
in 47 second
...@@ -72,3 +72,6 @@ _# 竞赛管理系统 ...@@ -72,3 +72,6 @@ _# 竞赛管理系统
- 赛事报名审批页和详情页增加专家字段 - 赛事报名审批页和详情页增加专家字段
- 所有我的流程,流程状态:“退回发起人”,可重新发起流程。 - 所有我的流程,流程状态:“退回发起人”,可重新发起流程。
- 新增事申请待办、已办、我的流程列表 - 新增事申请待办、已办、我的流程列表
- 20240531
- 放开赛事目录权限为所有用户;
- 专家列表编辑、删除,管理员鉴权;
.cyrIcon[data-v-86bc1f98]{color:#515a6e}.cyrIcon[data-v-86bc1f98]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-86bc1f98]:active{color:#3f485c}
\ No newline at end of file
[data-v-1ddb1816] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-1ddb1816] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-1ddb1816]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-1ddb1816]:hover{color:red;transform:scale(1.5)}[data-v-646029d0] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-646029d0] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-646029d0]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-646029d0]:hover{color:red;transform:scale(1.5)}.competitionClassIcon{display:flex;align-items:center;cursor:pointer}.competitionClassIcon:hover{transform:scale(1.5);color:red}.container{overflow-y:auto;width:100%;//min-height:987px;display:flex;align-content:center;justify-content:center;flex-wrap:wrap}.Atext{float:right;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.Atext:hover{transform:scale(1.2)} [data-v-5570dc2d] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-5570dc2d] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-5570dc2d]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-5570dc2d]:hover{color:red;transform:scale(1.5)}[data-v-646029d0] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-646029d0] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-646029d0]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-646029d0]:hover{color:red;transform:scale(1.5)}.competitionClassIcon{display:flex;align-items:center;cursor:pointer}.competitionClassIcon:hover{transform:scale(1.5);color:red}.container{overflow-y:auto;width:100%;//min-height:987px;display:flex;align-content:center;justify-content:center;flex-wrap:wrap}.Atext{float:right;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.Atext:hover{transform:scale(1.2)}
\ No newline at end of file \ No newline at end of file
.cyrIcon[data-v-abdeded2]{color:#515a6e}.cyrIcon[data-v-abdeded2]:hover{color:#757d8f;cursor:pointer}.cyrIcon[data-v-abdeded2]:active{color:#3f485c}
\ No newline at end of file
[data-v-435ef182] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-435ef182] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-435ef182]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-435ef182]:hover{color:red;transform:scale(1.5)}.competitionClassIcon{display:flex;align-items:center;cursor:pointer}.competitionClassIcon:hover{transform:scale(1.5);color:red}.container{overflow-y:auto;width:100%;//min-height:987px;display:flex;align-content:center;justify-content:center;flex-wrap:wrap}.Atext{margin-left:auto;margin-bottom:.7vw;margin-top:.7vw;font-size:16px} [data-v-84454e3a] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-84454e3a] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-84454e3a]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-84454e3a]:hover{color:red;transform:scale(1.5)}.competitionClassIcon{display:flex;align-items:center;cursor:pointer}.competitionClassIcon:hover{transform:scale(1.5);color:red}.container{overflow-y:auto;width:100%;//min-height:987px;display:flex;align-content:center;justify-content:center;flex-wrap:wrap}.Atext{margin-left:auto;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors.064c214c.css rel=stylesheet><link href=css/app.ad11fdf3.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.affefbbf.js></script><script src=js/app.b7b84ec3.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors.064c214c.css rel=stylesheet><link href=css/app.ad11fdf3.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.d0680bec.js></script><script src=js/app.52f35e52.js></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8843d118"],{"3e1e":function(t,e,a){"use strict";a("7732")},7732:function(t,e,a){},"8fff":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{title:"模板导入",width:"30%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:function(e){t.modal.ImportModal=!1}}},[t._v("取消")])]},proxy:!0}]),model:{value:t.modal.ImportModal,callback:function(e){t.$set(t.modal,"ImportModal",e)},expression:"modal.ImportModal"}},[a("Upload",{attrs:{"before-upload":t.dutyModelUpload,"on-error":t.dutyModelError,"on-success":t.dutyModelSuccess,"on-format-error":t.dutyModelFormatError,format:["xlsx"],multiple:!1,type:"drag",action:""}},[a("div",{staticStyle:{padding:"60px 0"}},[a("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"52"}}),a("p",[t._v("专家数据上传")])],1)])],1),a("Card",{ref:"card"},[a("SearchCondForm",{attrs:{searchCondList:t.searchCondList,labelWidth:120},on:{onSubmit:t.search,onReset:t.reset}}),a("Button",{staticClass:"buttonFocus",staticStyle:{"margin-right":"10px"},attrs:{icon:"md-add"},on:{click:t.add}},[t._v("新增专家")]),a("Button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"md-cloud-upload"},on:{click:function(e){t.modal.ImportModal=!0}}},[t._v("导入数据")]),a("Button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"md-cloud-download"},on:{click:t.importRecordFile}},[t._v("导出数据")]),a("Button",{attrs:{icon:"md-cloud-download"},on:{click:t.GetReportImportTemplate}},[t._v("下载模板")]),a("CTable",{attrs:{tableColumns:t.tableColumns.filter((function(t){return t.show})),tableData:t.tableData,tableLoading:t.tableLoading,tableSize:t.tableSize,dataCount:t.dataCount,pageIndex:t.params.page_index,pageSize:t.params.page_size},on:{rowDelete:t.rowDelete,rowDetails:t.rowDetails,rowEdit:t.rowEdit,onPageChange:t.onPageChange,onPageSizeChange:t.onPageSizeChange},scopedSlots:t._u([{key:"remark",fn:function(t){var e=t.row;return[a("Ellipsis",{attrs:{text:e.remark,height:40,tooltip:"",transfer:!0}})]}},{key:"job",fn:function(e){var i=e.row;return[a("Tag",{attrs:{size:"small",type:"blue"}},[t._v(t._s(i.job))])]}}])}),a("CEditModal",{ref:"ceditmodal",attrs:{formItem:t.formItem,formRule:t.formRule,loading:t.editModalLoading,formLabelWidth:100,width:800},on:{signRecord:t.signRecord,onSubmit:t.onSubmit,onClose:function(e){t.editModalshow=!1}},model:{value:t.editModalshow,callback:function(e){t.editModalshow=e},expression:"editModalshow"}})],1)],1)},n=[],o=(a("8e6e"),a("456d"),a("7f7f"),a("ade3")),r=(a("ac6a"),a("28a5"),a("84af")),d=a("ee00"),s=a("69dc"),l=(a("2ef0"),a("d02c")),c=a("61be");function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function u(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(Object(a),!0).forEach((function(e){Object(o["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var m={name:"list",components:{CTable:r["a"],CEditModal:d["a"],SearchCondForm:s["a"]},data:function(){return{signTimeLine:{show:!1,data:[]},eliminateSeats:{data:{},show:!1,formData:{id:"",content:"剔除座位"}},modal:{addEventsModal:!1,addeventLevel:!1,addEventCategory:!1,ImportModal:!1},searchCondList:[{id:"name",name:"专家名称",type:"input",show:!0,optList:[]}],params:{name:"",page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",align:"left",width:80,show:!0},{key:"dept_name",title:"学院",align:"left",minWidth:150,show:!0},{key:"competitionsubitem_name",title:"赛项",align:"left",minWidth:150,show:!0},{key:"name",title:"姓名",align:"left",minWidth:150,show:!0},{key:"specialty",title:"专业",align:"left",minWidth:150,show:!0},{key:"unit",title:"工作单位",align:"left",minWidth:150,show:!0},{key:"job",title:"职务",align:"left",minWidth:150,show:!0},{key:"phone",title:"联系方式",align:"left",minWidth:150,show:!0},{key:"email",title:"邮箱",align:"left",minWidth:150,show:!0},{slot:"remark",title:"备注",align:"left",minWidth:150,show:!0},{slot:"actionAndDetails",title:"操作",align:"center",minWidth:180,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,editModalshow:!1,editModalLoading:!1,formRule:{name:[{required:!0,message:"姓名不能为空",trigger:"blur"}]},formItem:[{id:"dept_id",name:"院系",type:"select",disabled:!1,require:!1,optList:[]},{id:"dept_name",name:"院系",type:"input",disabled:!1,require:!1,show:!1,optList:[]},{id:"competitionsubitem_name",name:"赛项",type:"input",disabled:!1,require:!1,optList:[]},{id:"name",name:"姓名",type:"input",disabled:!1,require:!1,optList:[]},{id:"specialty",name:"专业",type:"input",disabled:!1,require:!1,optList:[]},{id:"unit",name:"工作单位",type:"input",disabled:!1,require:!1,optList:[]},{id:"job",name:"职务",type:"input",disabled:!1,require:!1,optList:[]},{id:"phone",name:"联系方式",type:"input",disabled:!1,require:!1,optList:[]},{id:"email",name:"邮箱",type:"input",disabled:!1,require:!1,optList:[]},{id:"remark",name:"备注",type:"textarea",disabled:!1,require:!1,optList:[]}],defaultFormData:{name:"",dept_id:"",dept_name:"",competitionsubitem_name:"",specialty:"",unit:"",job:"",phone:"",email:"",remark:"",state:1},ptcModalShow:!1,ptcActiveId:"",ptcTableData:[],ptcTableLoading:!1,ptcDataCount:0,ptcParams:{activity_id:"",page_index:1,page_size:10},ptcAddModalShow:!1,ptcAddPsList:[],ptcAddPsSelectList:[],ptcAddPsParams:{user_type:0,keyword:""},eltModalShow:!1,eltModalLoading:!1,eltModalTitle:"",eltActiveId:"",eltTableData:[],trkModalShow:!1,trkModalLoading:!1,trkModalTitle:"",trkData:""}},computed:{ptcAddPsCal:function(){return function(t){var e=t.split("|");return"".concat(e[1]," ").concat(e[2])}},cmdTableDataCal:function(){var t=(this.cmdParams.page_index-1)*this.cmdParams.page_size,e=t+this.cmdParams.page_size;return this.cmdTableData.slice(t,e)},eltTableDataCal:function(){var t=(this.eltParams.page_index-1)*this.eltParams.page_size,e=t+this.eltParams.page_size;return this.eltTableData.slice(t,e)}},created:function(){},mounted:function(){var t=this;this.getData(),l["getApiUserInfoApiUserInfoGetDeptSeletct"]().then((function(e){t.formItem.forEach((function(a,i){"dept_id"===a.id&&(t.formItem[i].optList=e.response.map((function(t){return u(u({},t),{},{label:t.name,value:t.id})})))}))}))},methods:{onSubmit:function(t){var e=this;c["myEncapsulationFunction"]((function(){return l["postApiExpertExpertSave"](t).then((function(t){return 1===t.code&&(e.editModalshow=!1,e.getData()),t}))}))},handleShowPreview:function(t){this.$viewerApi({images:t.map((function(t){return url+t.path}))})},signRecord:function(t){var e=this;this.signTimeLine.show=!0,l["getApiRecordGetRecordTrackDetailsList"]({id:t}).then((function(t){e.signTimeLine.data=t.response.map((function(t){return u(u({},t),{},{color:["green","green","blue"][t.sign_state]})}))}))},search:function(t){var e=this;Object.keys(t).forEach((function(a){t[a]?e.params[a]=t[a]:e.params[a]=""})),this.onPageChange(1)},reset:function(){var t=this;this.searchCondList.forEach((function(e){t.params[e.id]=""})),this.onPageChange(1)},getData:function(){var t=this;this.tableLoading=!0,l["getApiExpertGetExpertList"](this.params).then((function(e){t.tableData=e.response.data,t.dataCount=e.response.data_count,t.tableLoading=!1})).finally((function(){t.tableLoading=!1}))},add:function(){this.editModalshow=!0,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增专家")},rowEdit:function(t){this.editModalshow=!0,this.$refs.ceditmodal.modalInit("edit",u(u({},this.defaultFormData),t),"编辑专家")},rowDetails:function(t){var e=this;this.editModalshow=!0,this.editModalLoading=!0,l["getApiExpertGetExpertInfo"]({id:t.id}).then((function(t){e.$refs.ceditmodal.modalDetailsInit(t.response,"name"),e.editModalLoading=!1}))},rowDelete:function(t){var e=this;c["myEncapsulationFunction"]((function(){return l["getApiExpertExpertDel"]({id:t.id}).then((function(t){return 1===t.code&&e.getData(),t}))}))},onPageChange:function(t){this.params.page_index=t,this.getData()},onPageSizeChange:function(t){this.params.page_size=t,1==this.params.page_index&&this.onPageChange(1)},GetReportImportTemplate:function(){c["myEncapsulationFunction"]((function(){return l["getApiExpertGetExpertImportTemplate"]({responseType:"blob"}).then((function(t){return c["blobFileDown"](t,"专家数据模版"),t}))}),!0,"正在导出模版中...")},importRecordFile:function(){var t=this;c["publicConfirm"]((function(){return c["myEncapsulationFunction"]((function(){return l["getApiExpertGetExpertExport"](t.params,{responseType:"blob"}).then((function(t){return c["blobFileDown"](t,"导出专家数据"),t}))}),!0,"正在导出中...")}),"是否确认导出记录数据文件")},dutyModelUpload:function(t){var e=this,a=new FormData;return a.append("file",t),c["myEncapsulationFunction"]((function(){return l["postApiExpertExpertImport"](a).then((function(t){return 1===t.code&&(e.modal.ImportModal=!1,e.getData()),t}))}),!0,"正在上传中..."),!1},dutyModelFormatError:function(t,e){this.$Message.error("文件格式错误!")},dutyModelSuccess:function(t,e,a){this.$Message.info(t.msg)},dutyModelError:function(t,e,a){}}},h=m,f=(a("3e1e"),a("2877")),g=Object(f["a"])(h,i,n,!1,null,"abdeded2",null);e["default"]=g.exports}}]);
\ No newline at end of file
...@@ -39,7 +39,15 @@ ...@@ -39,7 +39,15 @@
<a style="margin-left: 8px;color: red;">删除</a> <a style="margin-left: 8px;color: red;">删除</a>
</Poptip> </Poptip>
</template> </template>
<template slot-scope="{ row }" slot="specialistActionAndDetails">
<a @click="details(row)">详情</a>
<span v-if="getUserRole()">
<a @click="edit(row)" style="margin-left: 8px">编辑</a>
</span>
<Poptip confirm transfer title="是否确认删除?" @on-ok="del(row)">
<a style="margin-left: 8px;color: red;" v-if="getUserRole()">删除</a>
</Poptip>
</template>
<!-- 自定义插槽 --> <!-- 自定义插槽 -->
<template v-for="(_, slot) in $scopedSlots" v-slot:[slot]="scope"> <template v-for="(_, slot) in $scopedSlots" v-slot:[slot]="scope">
<slot :name="slot" v-bind="scope"></slot> <slot :name="slot" v-bind="scope"></slot>
......
...@@ -101,14 +101,12 @@ Vue.prototype.count1 = function () { ...@@ -101,14 +101,12 @@ Vue.prototype.count1 = function () {
} }
Vue.directive('textColor', (element, elementAttribute, curVnode, oldVnode) => { Vue.directive('textColor', (element, elementAttribute, curVnode, oldVnode) => {
//字体颜色 //字体颜色
element.style.color = '#1e93ff' element.style.color = '#1e93ff';
element.style.fontFamily = '黑体' element.style.fontFamily = '黑体';
}) })
Vue.directive('textFamily', (element, elementAttribute, curVnode, oldVnode) => { Vue.directive('textFamily', (element, elementAttribute, curVnode, oldVnode) => {
//字体颜色 //字体颜色
element.style.fontFamily = '黑体' element.style.fontFamily = '黑体'
}) })
Vue.directive('titleTextColor', (element, elementAttribute, curVnode, oldVnode) => { Vue.directive('titleTextColor', (element, elementAttribute, curVnode, oldVnode) => {
//字体颜色 //字体颜色
...@@ -128,7 +126,6 @@ Vue.prototype.buttonAuthorization = function (approvalValue, key) { ...@@ -128,7 +126,6 @@ Vue.prototype.buttonAuthorization = function (approvalValue, key) {
'studentGrandsOrTeacherWorkLoad': () => { 'studentGrandsOrTeacherWorkLoad': () => {
//学生补助或教师工作量 审批中或审批通过不能编辑 //学生补助或教师工作量 审批中或审批通过不能编辑
return approvalValue !== 1 && approvalValue !== 2 return approvalValue !== 1 && approvalValue !== 2
}, },
} }
return strategy[key]() return strategy[key]()
......
...@@ -6,7 +6,7 @@ export default { ...@@ -6,7 +6,7 @@ export default {
title: '赛事目录', title: '赛事目录',
header: 'home', header: 'home',
icon: 'md-list-box', icon: 'md-list-box',
auth: ['admin'],
children: [ children: [
// { // {
// path: `${pre}-directoryQuery`, // path: `${pre}-directoryQuery`,
......
...@@ -61,7 +61,14 @@ ...@@ -61,7 +61,14 @@
{key: 'email', title: '邮箱', align: 'left', minWidth: 150, show: true}, {key: 'email', title: '邮箱', align: 'left', minWidth: 150, show: true},
{slot: 'remark', title: '备注', align: 'left', minWidth: 150, show: true}, {slot: 'remark', title: '备注', align: 'left', minWidth: 150, show: true},
{slot: 'actionAndDetails', title: '操作', align: 'center', minWidth: 180, show: true, fixed: 'right'}, {
slot: 'specialistActionAndDetails',
title: '操作',
align: 'center',
minWidth: 180,
show: true,
fixed: 'right'
},
], ],
tableLoading: false, tableLoading: false,
...@@ -76,7 +83,25 @@ ...@@ -76,7 +83,25 @@
editModalLoading: false, editModalLoading: false,
formRule: { formRule: {
name: [ name: [
{required: true, message: '姓名不能为空', trigger: 'blur'} {required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
],
specialty: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
],
unit: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
],
job: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
],
phone: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
],
dept_id: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'change'}
],
competitionsubitem_name: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
], ],
}, },
// 新增编辑表单项 // 新增编辑表单项
...@@ -185,6 +210,7 @@ ...@@ -185,6 +210,7 @@
created() { created() {
}, },
mounted() { mounted() {
this.getData() this.getData()
api.getApiUserInfoApiUserInfoGetDeptSeletct().then(res => { api.getApiUserInfoApiUserInfoGetDeptSeletct().then(res => {
this.formItem.forEach((item, index) => { this.formItem.forEach((item, index) => {
......
...@@ -1639,16 +1639,25 @@ ...@@ -1639,16 +1639,25 @@
}, },
ruleValidatexx: { ruleValidatexx: {
name: [ name: [
{type: 'string', required: true, message: '该项不能为空', trigger: 'change'} {required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
],
specialty: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
], ],
unit: [ unit: [
{type: 'string', required: true, message: '该项不能为空', trigger: 'change'} {required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
], ],
job: [ job: [
{type: 'string', required: true, message: '该项不能为空', trigger: 'change'} {required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
], ],
phone: [ phone: [
{type: 'string', required: true, message: '该项不能为空', trigger: 'change'} {required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
],
dept_id: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'change'}
],
competitionsubitem_name: [
{required: true, type: 'string', message: '该项不能为空', trigger: 'blur'}
], ],
}, },
ruleValidate: { ruleValidate: {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或