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