Commit 441b25db by 林家欣

合并同事代码

parents 6634bacf b5f42ef4
......@@ -149,58 +149,58 @@
<script>
import { piclevelList } from '@/utils'
import Ueditor from "../temps/ueditor";
import Ueditor from '../temps/ueditor'
export default {
components: {
Ueditor,
Ueditor
},
props: ['classidList'],
data() {
data () {
return {
loading: false,
showInfo: false,
visible: false,
defaultProps: {
children: "children",
label: "label",
children: 'children',
label: 'label'
},
dataForm: {
id: 0,
title: "",
titleOld: "",
keyword: "",
brief: "",
author: "",
source: "",
levels: "",
directpath: "",
pic: "",
content: "",
showtime: "",
classid: "",
title: '',
titleOld: '',
keyword: '',
brief: '',
author: '',
source: '',
levels: '',
directpath: '',
pic: '',
content: '',
showtime: '',
classid: ''
},
dataRule: {
title: [{ required: true, message: "不能为空", trigger: "blur" }],
titleOld: [{ required: true, message: "不能为空", trigger: "blur" }],
keyword: [{ required: true, message: "不能为空", trigger: "blur" }],
brief: [{ required: true, message: "不能为空", trigger: "blur" }],
author: [{ required: true, message: "不能为空", trigger: "blur" }],
source: [{ required: true, message: "不能为空", trigger: "blur" }],
levels: [{ required: true, message: "不能为空", trigger: "blur" }],
directpath: [{ required: true, message: "不能为空", trigger: "blur" }],
pic: [{ required: true, message: "不能为空", trigger: "blur" }],
title: [{ required: true, message: '不能为空', trigger: 'blur' }],
titleOld: [{ required: true, message: '不能为空', trigger: 'blur' }],
keyword: [{ required: true, message: '不能为空', trigger: 'blur' }],
brief: [{ required: true, message: '不能为空', trigger: 'blur' }],
author: [{ required: true, message: '不能为空', trigger: 'blur' }],
source: [{ required: true, message: '不能为空', trigger: 'blur' }],
levels: [{ required: true, message: '不能为空', trigger: 'blur' }],
directpath: [{ required: true, message: '不能为空', trigger: 'blur' }],
pic: [{ required: true, message: '不能为空', trigger: 'blur' }],
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
classid: [{ required: true, message: "不能为空", trigger: "blur" }],
showtime: [{ required: true, message: "不能为空", trigger: "blur" }],
classid: [{ required: true, message: '不能为空', trigger: 'blur' }],
showtime: [{ required: true, message: '不能为空', trigger: 'blur' }]
},
imgUrl: new FormData(),
imgUrlStr: "",
imgUrlStr: '',
dialogVisible: false,
ueditor: {
value: "",
config: {},
value: '',
config: {}
},
piclevelList,
id: [],
......@@ -213,47 +213,47 @@ export default {
console.log(this.classidList);
},
methods: {
getSelectName(list, id) {
getSelectName (list, id) {
let arr = list.filter((item) => {
return item.id === id;
});
return arr[0].name;
return item.id === id
})
return arr[0].name
},
init(id, showInfo) {
console.log(id, 'id');
this.dataForm.id = id || 0;
this.visible = true;
this.showInfo = showInfo;
init (id, showInfo) {
console.log(id, 'id')
this.dataForm.id = id || 0
this.visible = true
this.showInfo = showInfo
this.$nextTick(() => {
this.clearInp();
this.clearInp()
if (this.dataForm.id) {
this.loading = true;
this.loading = true
this.$http({
url: this.$http.adornUrl(`/office/news/info/${this.dataForm.id}`),
method: "get",
params: this.$http.adornParams(),
method: 'get',
params: this.$http.adornParams()
}).then(({ data }) => {
this.loading = false;
this.loading = false
if (data && data.code === 0) {
this.dataForm = data.news;
this.imgUrlStr = data.news.pic;
this.dialogVisible = true;
this.ueditor.value = this.dataForm.content;
this.dataForm = data.news
this.imgUrlStr = data.news.pic
this.dialogVisible = true
this.ueditor.value = this.dataForm.content
}
});
})
}
});
})
},
// 表单提交
dataFormSubmit() {
this.$refs["dataForm"].validate((valid) => {
dataFormSubmit () {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.loading = true;
this.loading = true
this.$http({
url: this.$http.adornUrl(
`/office/news/${!this.dataForm.id ? "save" : "update"}`
`/office/news/${!this.dataForm.id ? 'save' : 'update'}`
),
method: "post",
method: 'post',
data: this.$http.adornData({
id: this.dataForm.id || undefined,
title: this.dataForm.title,
......@@ -267,79 +267,79 @@ export default {
pic: this.dataForm.pic,
content: this.dataForm.content,
classid: this.dataForm.classid,
showtime: this.dataForm.showtime,
}),
showtime: this.dataForm.showtime
})
}).then(({ data }) => {
this.loading = false;
this.loading = false
if (data && data.code === 0) {
this.$message({
message: "操作成功",
type: "success",
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false;
this.$emit("refreshDataList");
},
});
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg);
this.$message.error(data.msg)
}
});
})
}
});
})
},
// 上传之前校验
beforeAvatarUpload(file) {
const isJPG = file.type === "image/jpeg";
const isPNG = file.type === "image/png";
const isLt2M = file.size / 1024 / 1024 < 2;
beforeAvatarUpload (file) {
const isJPG = file.type === 'image/jpeg'
const isPNG = file.type === 'image/png'
const isLt2M = file.size / 1024 / 1024 < 2
if (!isJPG) {
if (!isPNG) {
this.$message.error("上传图片只能是 JPG, PNG 格式!");
this.$message.error('上传图片只能是 JPG, PNG 格式!')
}
}
if (!isLt2M) {
this.$message.error("上传头像图片大小不能超过 2MB!");
this.$message.error('上传头像图片大小不能超过 2MB!')
}
if (file) {
var windowURL = window.URL || window.webkitURL;
this.imgUrlStr = windowURL.createObjectURL(file);
this.dialogVisible = true;
this.imgUrl.append("file", file);
var windowURL = window.URL || window.webkitURL
this.imgUrlStr = windowURL.createObjectURL(file)
this.dialogVisible = true
this.imgUrl.append('file', file)
}
},
Upload() {
Upload () {
this.$http({
url: this.$http.adornUrl("/office/file/uploadFile"),
method: "post",
url: this.$http.adornUrl('/office/file/uploadFile'),
method: 'post',
data: this.imgUrl,
headers: {
"Content-Type": "multipart/form-data",
},
'Content-Type': 'multipart/form-data'
}
})
.then((res) => {
console.log(res);
this.dataForm.pic = res.data.data;
console.log(res)
this.dataForm.pic = res.data.data
})
.catch((err) => {
console.log(err);
});
console.log(err)
})
},
clearInp() {
this.$refs["dataForm"].resetFields();
this.imgUrlStr = "";
this.dialogVisible = false;
this.ueditor.value = "";
clearInp () {
this.$refs['dataForm'].resetFields()
this.imgUrlStr = ''
this.dialogVisible = false
this.ueditor.value = ''
},
// 更新父子组件内容
editorReady(instance) {
instance.setContent(this.dataForm.content);
instance.addListener("contentChange", () => {
this.dataForm.content = instance.getContent();
});
},
},
};
editorReady (instance) {
instance.setContent(this.dataForm.content)
instance.addListener('contentChange', () => {
this.dataForm.content = instance.getContent()
})
}
}
}
</script>
<style scoped>
/* .form-list{
......
......@@ -182,8 +182,8 @@
<script>
import { piclevelList } from '@/utils'
import AddOrUpdate from './news-add-or-update'
export default {
import AddOrUpdate from './news-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -220,7 +220,7 @@ import { piclevelList } from '@/utils'
label: '成功'
}
],
columnList:[],
columnList: [],
piclevelList,
updateDate: [],
releaseDate: []
......@@ -228,7 +228,7 @@ import { piclevelList } from '@/utils'
},
activated () {
this.getColumnList();
this.getColumnList()
this.getDataList()
},
methods: {
......@@ -236,11 +236,11 @@ import { piclevelList } from '@/utils'
getColumnList () {
this.$http({
url: this.$http.adornUrl('/office/news/columnList'),
method: 'get',
method: 'get'
}).then(({data}) => {
console.log(data, 'getColumnList');
console.log(data, 'getColumnList')
if (data && data.code === 0) {
this.columnList = data.data;
this.columnList = data.data
} else {
this.columnList = []
}
......@@ -248,8 +248,8 @@ import { piclevelList } from '@/utils'
},
// 获取数据列表
getDataList () {
console.log(this.releaseDate, 'this.releaseDate');
this.dataListLoading = true;
console.log(this.releaseDate, 'this.releaseDate')
this.dataListLoading = true
this.$http({
url: this.$http.adornUrl('/office/news/yylyList'),
method: 'post',
......@@ -370,5 +370,5 @@ import { piclevelList } from '@/utils'
}).catch(() => {})
}
}
}
}
</script>
......@@ -142,7 +142,7 @@
value: '',
config: {}
},
piclevelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
classidList: [],
cclassidList: [],
......
......@@ -31,9 +31,10 @@
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in piclevelList"
:key="item"
:label="item"
:value="item">
:key="item.value"
:label="item.name"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
......@@ -167,8 +168,9 @@
</template>
<script>
import AddOrUpdate from './announce-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './announce-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -213,7 +215,7 @@
label: '地方公告'
}
],
piclevelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
releaseDate: []
}
},
......@@ -349,5 +351,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -138,7 +138,7 @@
classnum: '',
title: '',
brief: '',
levels: 0,
levels: '',
directpath: '',
picIndexPath: '',
colorBackground: '',
......@@ -173,7 +173,7 @@
imgUrl: new FormData(),
imgUrlStr: '',
dialogVisible: false,
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
colorBackgroundList: [
{
label: '蓝色'
......
......@@ -19,18 +19,18 @@
<el-option
v-for="item in classnumList"
:key="item.value"
:label="item.label"
:value="item.label">
:label="item.name"
:value="item.name">
</el-option>
</el-select>
</el-form-item>
<el-form-item label='级别' prop='levels' >
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -159,8 +159,9 @@
</template>
<script>
import AddOrUpdate from './indexcarouselmanage-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './indexcarouselmanage-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -194,7 +195,7 @@
label: '成功'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
classnumList: [
{
label: '大轮播'
......@@ -338,7 +339,7 @@
}).catch(() => {})
}
}
}
}
</script>
<style scoped>
......
......@@ -191,7 +191,7 @@
value: '',
config: {}
},
piclevelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
classidList: [],
cclassidList: [],
......
......@@ -27,9 +27,9 @@
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in piclevelList"
:key="item"
:label="item"
:value="item">
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -173,8 +173,9 @@
</template>
<script>
import AddOrUpdate from './news-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './news-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -210,7 +211,7 @@
label: '成功'
}
],
piclevelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
updateDate: [],
releaseDate: []
}
......@@ -351,5 +352,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -177,7 +177,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
clanguageList: ['中文'],
id: [],
title: ''
......
......@@ -36,10 +36,10 @@
<el-form-item label='级别' prop='levels'>
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -210,8 +210,9 @@
</template>
<script>
import AddOrUpdate from './newsmovie-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './newsmovie-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -247,7 +248,7 @@
label: '成功'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
clanguageList: ['中文'],
updateDate: [],
releaseDate: []
......@@ -388,5 +389,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -161,7 +161,7 @@
value: '',
config: {}
},
piclevelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
newtmList: [
{
......
......@@ -17,10 +17,10 @@
<el-form-item label='级别' prop='levels'>
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -144,8 +144,9 @@
</template>
<script>
import AddOrUpdate from './news-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './news-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -179,7 +180,7 @@
label: '成功'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
releaseDate: []
}
},
......@@ -311,5 +312,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -106,7 +106,7 @@ export default {
jumppath: '',
showtime: ''
},
piclevelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
pictureTypeList: [
{
value: '1',
......
......@@ -33,10 +33,10 @@
<el-form-item label='级别' prop='pictureLevel'>
<el-select v-model="dataForm.pictureLevel" placeholder="请输入级别" clearable>
<el-option
v-for="item in pictureLevel"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -122,8 +122,9 @@
</template>
<script>
import AddOrUpdate from './picture-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './picture-add-or-update'
export default {
data () {
return {
addOrUpdateVisible: false,
......@@ -155,7 +156,7 @@
label: '成功'
}
],
pictureLevel: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
pictureTypeList: [
{
value: '1',
......@@ -304,13 +305,13 @@
}).catch(e => e)
}
}
}
}
</script>
<style scoped>
/*
.el-select-dropdown__item,.el-form-item__label{
font-size: 12px!important;
}
} */
/* .el-table .cell, .el-table th div {
padding-right: 0;
......
......@@ -161,7 +161,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
typeList: [
{
......
......@@ -153,7 +153,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
typeList: [],
title: ''
......
......@@ -154,7 +154,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
classidList: [],
cclassidList: [],
......
......@@ -26,10 +26,10 @@
<el-form-item label='级别' prop='levels'>
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -171,8 +171,9 @@
</template>
<script>
import AddOrUpdate from './center-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './center-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -207,7 +208,7 @@
label: '成功'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
updateDate: [],
releaseDate: []
}
......@@ -346,5 +347,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -153,7 +153,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
title: ''
}
......
......@@ -26,10 +26,10 @@
<el-form-item label='级别' prop='levels'>
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -168,8 +168,9 @@
</template>
<script>
import AddOrUpdate from './hotFlow-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './hotFlow-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -204,7 +205,7 @@
label: '成功'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
updateDate: [],
releaseDate: []
}
......@@ -342,5 +343,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -154,7 +154,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
classidList: [],
cclassidList: [],
......
......@@ -26,10 +26,10 @@
<el-form-item label='级别' prop='levels'>
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -171,8 +171,9 @@
</template>
<script>
import AddOrUpdate from './rules-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './rules-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -207,7 +208,7 @@
label: '成功'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
updateDate: [],
releaseDate: []
}
......@@ -345,5 +346,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -154,7 +154,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
classidList: [],
cclassidList: [],
......
......@@ -26,10 +26,10 @@
<el-form-item label='级别' prop='levels'>
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -169,8 +169,9 @@
</template>
<script>
import AddOrUpdate from './topicnews-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './topicnews-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -205,7 +206,7 @@
label: '成功'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
updateDate: [],
releaseDate: []
}
......@@ -343,5 +344,5 @@
}).catch(() => {})
}
}
}
}
</script>
......@@ -162,7 +162,7 @@
value: '',
config: {}
},
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
id: [],
typeList: [
{
......
......@@ -34,9 +34,9 @@
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in piclevelList"
:key="item"
:label="item"
:value="item">
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -162,8 +162,9 @@
</template>
<script>
import AddOrUpdate from './policy-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './policy-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -199,7 +200,7 @@
label: '成功'
}
],
piclevelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
piclevelList,
updateDate: [],
typeList: [
{
......@@ -346,5 +347,5 @@
}
}
}
}
</script>
......@@ -96,7 +96,7 @@
fileUrl: new FormData(),
fileUrlStr: '',
dialogVisible: false,
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
levelList: [1, 2, 3, 4, 5, 6, 7, 8, 9],
typeList: [
{
value: 1,
......
......@@ -7,10 +7,10 @@
<el-form-item label='级别' prop='levels' >
<el-select v-model="dataForm.levels" placeholder="请输入级别" clearable>
<el-option
v-for="item in levelList"
:key="item"
:label="item"
:value="item">
v-for="item in piclevelList"
:key="item.value"
:label="item.name"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
......@@ -107,8 +107,9 @@
</template>
<script>
import AddOrUpdate from './doc-add-or-update'
export default {
import { piclevelList } from '@/utils'
import AddOrUpdate from './doc-add-or-update'
export default {
components: {
AddOrUpdate
},
......@@ -118,7 +119,7 @@
dataForm: {
'title': '',
'category': '',
'levels': ''
'levels': null
},
dataList: [],
pageIndex: 1,
......@@ -136,7 +137,7 @@
label: '分支机构培训计划'
}
],
levelList: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
piclevelList
}
},
activated () {
......@@ -260,5 +261,5 @@
window.open(file, '_blank')
}
}
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment