|
@@ -95,6 +95,17 @@
|
|
|
</el-row>
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="24">
|
|
|
+ <el-form-item label="类型" prop="type">
|
|
|
+ <!-- <el-input v-model="ruleForm.type" placeholder="请输入类型"></el-input> -->
|
|
|
+ <el-select v-model="ruleForm.type" filterable placeholder="请选择类型" style="width: 100%" @change="getType">
|
|
|
+ <el-option v-for="item in dictionaries.TENANT_TYPE" :key="item.id" :value="item.dictChildValue" :label="item.dictChildLabel"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="描述" prop="describe">
|
|
|
<el-input type="textarea" v-model="ruleForm.describe" placeholder="请输入描述" maxlength="100" show-word-limit></el-input>
|
|
|
</el-form-item>
|
|
@@ -151,17 +162,7 @@
|
|
|
</el-switch>
|
|
|
<!-- <el-input v-model="ruleForm.state" placeholder="请输入状态" type="textarea"></el-input> -->
|
|
|
</el-form-item>
|
|
|
- <el-row :gutter="24">
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="类型" prop="type">
|
|
|
- <!-- <el-input v-model="ruleForm.type" placeholder="请输入类型"></el-input> -->
|
|
|
- <el-select v-model="ruleForm.type" filterable placeholder="请选择类型" style="width: 100%">
|
|
|
- <el-option v-for="item in dictionaries.TENANT_TYPE" :key="item.id" :value="item.dictChildValue" :label="item.dictChildLabel"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- </el-row>
|
|
|
+
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="close">取 消</el-button>
|
|
@@ -273,6 +274,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ getType(val){
|
|
|
+ this.getFunction(val)
|
|
|
+ },
|
|
|
//根据条件查询
|
|
|
getList2(){
|
|
|
this.queryParams.current=1
|
|
@@ -351,6 +355,7 @@ export default {
|
|
|
getFunction(val) {
|
|
|
this.$api.getFunctionList({type:val}).then(response => {
|
|
|
// console.log(response.data)
|
|
|
+ this.authority = []
|
|
|
this.authority = response.data
|
|
|
// this.tableData = response.data
|
|
|
// this.total=response.pageColumn.total
|