|
@@ -25,11 +25,11 @@
|
|
|
placeholder="字典状态"
|
|
|
clearable
|
|
|
style="width: 200px">
|
|
|
- <el-option
|
|
|
- v-for="dict in sysStatusDicts"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="dict.dictValue"/>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in sysStatusDicts"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"/>
|
|
|
<!-- <el-option :key="0" label="正常" :value="0"/>-->
|
|
|
<!-- <el-option :key="1" label="停用" :value="1"/>-->
|
|
|
</el-select>
|
|
@@ -77,7 +77,7 @@
|
|
|
</el-descriptions>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="字典编号" prop="id" width="100"/>
|
|
|
+ <el-table-column label="字典编号" prop="id"/>
|
|
|
<el-table-column label="字典名称" prop="dictName"/>
|
|
|
<el-table-column label="字典类型" prop="dictType"/>
|
|
|
<el-table-column label="状态" align="center">
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
name: "dict",
|
|
|
data() {
|
|
|
return {
|
|
|
- sysStatusDicts:[],
|
|
|
+ sysStatusDicts: [],
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
// 字典表格数据
|
|
@@ -261,10 +261,10 @@ export default {
|
|
|
this.initData();
|
|
|
},
|
|
|
methods: {
|
|
|
- initData(){
|
|
|
+ initData() {
|
|
|
this.getList();
|
|
|
getDictData('sys_status').then(res => {
|
|
|
- this.sysStatusDicts=res.data
|
|
|
+ this.sysStatusDicts = res.data
|
|
|
})
|
|
|
},
|
|
|
/** 查询字典列表 */
|
|
@@ -368,6 +368,9 @@ export default {
|
|
|
}
|
|
|
this.form.dictDataList.push(child)
|
|
|
},
|
|
|
+ delDictData(index) {
|
|
|
+ this.form.dictDataList.splice(index, 1)
|
|
|
+ },
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|