新增文章
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "HCY",
|
"name": "EBTS",
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"description": "EBTS",
|
"description": "EBTS",
|
||||||
"author": "Clay",
|
"author": "Clay",
|
||||||
|
|||||||
@@ -25,6 +25,16 @@ export function getDicts(dictType) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 根据加密字典类型查询字典数据信息
|
||||||
|
export function getEncodeDicts(dictType) {
|
||||||
|
return request({
|
||||||
|
url: '/system/dict/data/encode/' + dictType,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 新增字典数据
|
// 新增字典数据
|
||||||
export function addData(data) {
|
export function addData(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import permission from './directive/permission'
|
|||||||
|
|
||||||
import './assets/icons' // icon
|
import './assets/icons' // icon
|
||||||
import './permission' // permission control
|
import './permission' // permission control
|
||||||
import { getDicts } from "@/api/system/dict/data";
|
import { getDicts,getEncodeDicts } from "@/api/system/dict/data";
|
||||||
import { getConfigKey } from "@/api/system/config";
|
import { getConfigKey } from "@/api/system/config";
|
||||||
import { parseTime, resetForm, addDateRange, addCreateDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/hcy";
|
import { parseTime, resetForm, addDateRange, addCreateDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/hcy";
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from "@/components/Pagination";
|
||||||
@@ -25,6 +25,7 @@ import RightToolbar from "@/components/RightToolbar"
|
|||||||
|
|
||||||
// 全局方法挂载
|
// 全局方法挂载
|
||||||
Vue.prototype.getDicts = getDicts
|
Vue.prototype.getDicts = getDicts
|
||||||
|
Vue.prototype.getEncodeDicts = getEncodeDicts
|
||||||
Vue.prototype.getConfigKey = getConfigKey
|
Vue.prototype.getConfigKey = getConfigKey
|
||||||
Vue.prototype.parseTime = parseTime
|
Vue.prototype.parseTime = parseTime
|
||||||
Vue.prototype.resetForm = resetForm
|
Vue.prototype.resetForm = resetForm
|
||||||
|
|||||||
@@ -75,9 +75,9 @@
|
|||||||
<el-select v-model="params.sistApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
<el-select v-model="params.sistApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in sistApproveOption"
|
v-for="dict in sistApproveOption"
|
||||||
:key="dict.user_id"
|
:key="dict.userId"
|
||||||
:label="dict.user_name"
|
:label="dict.userName"
|
||||||
:value="dict.user_id"
|
:value="dict.userId"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -102,9 +102,9 @@
|
|||||||
<el-select v-model="params.labApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
<el-select v-model="params.labApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in labApproveOption"
|
v-for="dict in labApproveOption"
|
||||||
:key="dict.user_id"
|
:key="dict.userId"
|
||||||
:label="dict.user_name"
|
:label="dict.userName"
|
||||||
:value="dict.user_id"
|
:value="dict.userId"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -231,7 +231,7 @@ export default {
|
|||||||
this.getDicts("article_site_type").then(response => {
|
this.getDicts("article_site_type").then(response => {
|
||||||
this.sitetypeOptions = response.data;
|
this.sitetypeOptions = response.data;
|
||||||
});
|
});
|
||||||
this.getDicts("article_type").then(response => {
|
this.getEncodeDicts("article_type").then(response => {
|
||||||
this.articleTypeOptions = response.data;
|
this.articleTypeOptions = response.data;
|
||||||
});
|
});
|
||||||
this.getDicts("is_top").then(response => {
|
this.getDicts("is_top").then(response => {
|
||||||
|
|||||||
Reference in New Issue
Block a user