|
@@ -31,6 +31,16 @@
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="项目" prop="project">
|
|
|
|
|
+ <el-select style="width: 220px" v-model="queryParams.project" placeholder="请选择项目" clearable size="small">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="dict in projectOptions"
|
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
@@ -94,6 +104,11 @@
|
|
|
<el-tag prop="status" v-for="(item, index) in typeOptions" v-if="scope.row.tempType==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
<el-tag prop="status" v-for="(item, index) in typeOptions" v-if="scope.row.tempType==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="项目" align="center" prop="project" >
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag prop="status" v-for="(item, index) in projectOptions" v-if="scope.row.project==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="status" >
|
|
<el-table-column label="状态" align="center" prop="status" >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" :type="scope.row.status==1?'success':'danger'" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" :type="scope.row.status==1?'success':'danger'" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
@@ -153,6 +168,11 @@
|
|
|
<el-radio v-for="dict in typeOptions" :label="dict.dictValue">{{dict.dictLabel}}</el-radio>
|
|
<el-radio v-for="dict in typeOptions" :label="dict.dictValue">{{dict.dictLabel}}</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="项目" prop="project">
|
|
|
|
|
+ <el-radio-group v-model="form.project">
|
|
|
|
|
+ <el-radio v-for="dict in projectOptions" :label="dict.dictValue">{{dict.dictLabel}}</el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="状态" prop="status">
|
|
<el-form-item label="状态" prop="status">
|
|
|
<el-radio-group v-model="form.status">
|
|
<el-radio-group v-model="form.status">
|
|
|
<el-radio v-for="dict in statusOptions" :label="dict.dictValue">{{dict.dictLabel}}</el-radio>
|
|
<el-radio v-for="dict in statusOptions" :label="dict.dictValue">{{dict.dictLabel}}</el-radio>
|
|
@@ -177,6 +197,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
typeOptions:[],
|
|
typeOptions:[],
|
|
|
statusOptions:[],
|
|
statusOptions:[],
|
|
|
|
|
+ projectOptions:[],
|
|
|
// 遮罩层
|
|
// 遮罩层
|
|
|
loading: true,
|
|
loading: true,
|
|
|
// 选中数组
|
|
// 选中数组
|
|
@@ -206,7 +227,8 @@ export default {
|
|
|
tempType: null,
|
|
tempType: null,
|
|
|
status: null,
|
|
status: null,
|
|
|
cateId: null,
|
|
cateId: null,
|
|
|
- isAudit:"0"
|
|
|
|
|
|
|
+ isAudit:"0",
|
|
|
|
|
+ project: null
|
|
|
},
|
|
},
|
|
|
// 表单参数
|
|
// 表单参数
|
|
|
form: {},
|
|
form: {},
|
|
@@ -227,6 +249,9 @@ export default {
|
|
|
status: [
|
|
status: [
|
|
|
{ required: true, message: "状态不能为空", trigger: "blur" }
|
|
{ required: true, message: "状态不能为空", trigger: "blur" }
|
|
|
],
|
|
],
|
|
|
|
|
+ project: [
|
|
|
|
|
+ { required: true, message: "项目不能为空", trigger: "blur" }
|
|
|
|
|
+ ],
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -237,6 +262,9 @@ export default {
|
|
|
this.getDicts("sys_company_sms_temp_type").then((response) => {
|
|
this.getDicts("sys_company_sms_temp_type").then((response) => {
|
|
|
this.typeOptions = response.data;
|
|
this.typeOptions = response.data;
|
|
|
});
|
|
});
|
|
|
|
|
+ this.getDicts("sys_course_project").then((response) => {
|
|
|
|
|
+ this.projectOptions = response.data;
|
|
|
|
|
+ });
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -284,7 +312,8 @@ export default {
|
|
|
createTime: null,
|
|
createTime: null,
|
|
|
updateTime: null,
|
|
updateTime: null,
|
|
|
status: "0",
|
|
status: "0",
|
|
|
- cateId: null
|
|
|
|
|
|
|
+ cateId: null,
|
|
|
|
|
+ project: null
|
|
|
};
|
|
};
|
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
|
},
|
|
},
|