|
@@ -50,6 +50,7 @@
|
|
:key="indexs"
|
|
:key="indexs"
|
|
:label="items.label"
|
|
:label="items.label"
|
|
:prop="items.prop"
|
|
:prop="items.prop"
|
|
|
|
+ :required="items.required"
|
|
>
|
|
>
|
|
<el-radio-group
|
|
<el-radio-group
|
|
v-if="items.scope === 'status'"
|
|
v-if="items.scope === 'status'"
|
|
@@ -241,6 +242,7 @@ export default {
|
|
{
|
|
{
|
|
label: "适用项目类型",
|
|
label: "适用项目类型",
|
|
scope: "certificate",
|
|
scope: "certificate",
|
|
|
|
+ required: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "",
|
|
label: "",
|
|
@@ -304,7 +306,7 @@ export default {
|
|
this.BQListApi();
|
|
this.BQListApi();
|
|
this.initOptions();
|
|
this.initOptions();
|
|
},
|
|
},
|
|
- activated(){
|
|
|
|
|
|
+ activated() {
|
|
this.search();
|
|
this.search();
|
|
this.BQListApi();
|
|
this.BQListApi();
|
|
this.initOptions();
|
|
this.initOptions();
|
|
@@ -457,6 +459,10 @@ export default {
|
|
submit(formName) {
|
|
submit(formName) {
|
|
this.$refs[formName].validate((valid) => {
|
|
this.$refs[formName].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ if (!this.cauType.length) {
|
|
|
|
+ this.$message.warning("请添加适用项目类型");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.rulesTableSumbit();
|
|
this.rulesTableSumbit();
|
|
} else {
|
|
} else {
|
|
return false;
|
|
return false;
|