文章类别管理

This commit is contained in:
clay
2022-01-07 00:02:10 +08:00
parent a07de6ff90
commit c3e60cd54a
2 changed files with 8 additions and 8 deletions

View File

@@ -236,7 +236,6 @@ export default {
/** 查询字典数据列表 */
getList() {
this.loading = true;
this.queryParams.dictType='article_type';
listData(this.queryParams).then(response => {
this.dataList = response.rows;
this.total = response.total;
@@ -303,6 +302,7 @@ export default {
submitForm: function() {
this.$refs["form"].validate(valid => {
if (valid) {
this.form.dictType = 'article_type'
if (this.form.dictCode != undefined) {
updateData(this.form).then(response => {
this.msgSuccess("修改成功");

View File

@@ -34,7 +34,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:dict:add']"
v-hasPermi="['sist:dire:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
@@ -45,7 +45,7 @@
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:dict:edit']"
v-hasPermi="['sist:dire:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
@@ -56,7 +56,7 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:dict:remove']"
v-hasPermi="['sist:dire:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
@@ -66,7 +66,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:dict:export']"
v-hasPermi="['sist:dire:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -93,7 +93,7 @@
plain
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:dict:edit']"
v-hasPermi="['sist:dire:edit']"
>修改</el-button>
<el-button
size="mini"
@@ -101,7 +101,7 @@
plain
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:dict:remove']"
v-hasPermi="['sist:dire:remove']"
>删除</el-button>
</template>
</el-table-column>
@@ -210,7 +210,6 @@ export default {
/** 查询字典数据列表 */
getList() {
this.loading = true;
this.queryParams.dictType='dire_type';
listData(this.queryParams).then(response => {
this.dataList = response.rows;
this.total = response.total;
@@ -276,6 +275,7 @@ export default {
submitForm: function() {
this.$refs["form"].validate(valid => {
if (valid) {
this.form.dictType = 'dire_type'
if (this.form.dictCode != undefined) {
updateData(this.form).then(response => {
this.msgSuccess("修改成功");