|
|
|
@ -256,7 +256,7 @@ |
|
|
|
|
<a-form-item label="教研室" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<j-select-depart |
|
|
|
|
userSelect="teachingandoffice" |
|
|
|
|
v-decorator="['teachingandoffice', { initialValue: '711ca4920cfc4d61923d87ae3b1cfa8c' }]" |
|
|
|
|
v-model="model.teachingandoffice" |
|
|
|
|
/> |
|
|
|
|
<!-- <j-select-depart |
|
|
|
|
userSelect="teachingandoffice" |
|
|
|
@ -270,6 +270,7 @@ |
|
|
|
|
<a-col :span="8"> |
|
|
|
|
<a-form-item label="审定人" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<j-select-user-by-dep |
|
|
|
|
:multi="fs" |
|
|
|
|
:value="model.verifier" |
|
|
|
|
userSelect="verifier" |
|
|
|
|
v-model="model.verifier" |
|
|
|
@ -403,7 +404,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { httpAction } from '@/api/manage' |
|
|
|
|
import { httpAction,getAction } from '@/api/manage' |
|
|
|
|
//import { JeecgListMixin } from './JeecgListMixin.js' |
|
|
|
|
import pick from 'lodash.pick' |
|
|
|
|
import JTreeSelect from '@/components/jeecg/JTreeSelect' |
|
|
|
@ -444,10 +445,10 @@ export default { |
|
|
|
|
category: 1, |
|
|
|
|
cooperativeEducation: 0, |
|
|
|
|
semester: '1', |
|
|
|
|
depid: '711ca4920cfc4d61923d87ae3b1cfa8c', |
|
|
|
|
majorid: '1296639081827090434', |
|
|
|
|
verifier: 'mladmin' |
|
|
|
|
|
|
|
|
|
depid: '', |
|
|
|
|
majorid: '', |
|
|
|
|
verifier: '', |
|
|
|
|
teachingandoffice:'' |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//修改 |
|
|
|
@ -487,6 +488,7 @@ export default { |
|
|
|
|
url: { |
|
|
|
|
add: '/course/seCourse/add', |
|
|
|
|
edit: '/course/seCourse/edit', |
|
|
|
|
dqyh: '/course/seCourse/dqyh', |
|
|
|
|
}, |
|
|
|
|
//修改 表单验证 正则表达式 |
|
|
|
|
validatorRules: { |
|
|
|
@ -623,11 +625,11 @@ export default { |
|
|
|
|
// ], |
|
|
|
|
// trigger: 'blur', |
|
|
|
|
// }, |
|
|
|
|
name: {//name与v-decorator中属性对应 |
|
|
|
|
// initialValue: "水",//初始化值,也就是默认值 |
|
|
|
|
rules: [{ required: true, message: '不能为空!' },//此处开启校验必填 |
|
|
|
|
// { validator: (rule, value, callback) => validateDuplicateValue('em_project_info', 'project_name', value, this.model.id, callback) },//此处开启唯一验证, |
|
|
|
|
// { pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号码!' },//此处配置正则表达式,手机号,可自己配置正则表达式 |
|
|
|
|
name: {//name与v-decorator中属性对应 |
|
|
|
|
// initialValue: "水",//初始化值,也就是默认值 |
|
|
|
|
rules: [{ required: true, message: '不能为空!' },//此处开启校验必填 |
|
|
|
|
// { validator: (rule, value, callback) => validateDuplicateValue('em_project_info', 'project_name', value, this.model.id, callback) },//此处开启唯一验证, |
|
|
|
|
// { pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号码!' },//此处配置正则表达式,手机号,可自己配置正则表达式 |
|
|
|
|
{ |
|
|
|
|
// pattern: /^(([1]?\\d)|20)$/, |
|
|
|
|
pattern: /^[^\\]{0,100}$/, |
|
|
|
@ -638,6 +640,16 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created () { |
|
|
|
|
getAction(this.url.dqyh).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.model.depid = res.result.depid; |
|
|
|
|
this.model.teachingandoffice = res.result.teachingandoffice; |
|
|
|
|
this.model.majorid = res.result.majorid; |
|
|
|
|
this.model.verifier = res.result.verifier; |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
let that = this |
|
|
|
|
that.$bus.$on('headleUser', ({ restle, userSelect }) => { |
|
|
|
|
if (restle && userSelect) that.$set(that.selectContent, userSelect, restle) |
|
|
|
|