|
|
|
@ -57,6 +57,8 @@
|
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="名称" align="center" prop="name" /> |
|
|
|
|
<el-table-column label="单位" align="center" prop="unit" /> |
|
|
|
|
<el-table-column label="数量" align="center" prop="number" /> |
|
|
|
|
<!-- <el-table-column label="征文" align="center" prop="content" /> --> |
|
|
|
|
<el-table-column label="图片" align="center" prop="images" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -81,6 +83,12 @@
|
|
|
|
|
<el-button type="success" v-if="!scope.row.solo">任意</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="占用状态" align="center" prop="occupied" > |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="danger" v-if="scope.row.occupied">已被占用</el-button> |
|
|
|
|
<el-button type="success" v-if="!scope.row.occupied">未被占用</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="" align="center" prop="createTime" width="180"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span> |
|
|
|
@ -110,6 +118,13 @@
|
|
|
|
|
<el-form-item label="资源名称:" prop="name"> |
|
|
|
|
<el-input v-model="form.name" placeholder="请输入" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="单位" prop="unit"> |
|
|
|
|
<el-input v-model="form.unit" placeholder="请输入" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="数量" prop="number"> |
|
|
|
|
<el-input v-model="form.number" placeholder="请输入" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="资源描述:"> |
|
|
|
|
<editor v-model="form.content" :min-height="192"/> |
|
|
|
|
</el-form-item> |
|
|
|
@ -299,12 +314,15 @@ export default {
|
|
|
|
|
if (this.form.images == "") { |
|
|
|
|
this.form.images = []; |
|
|
|
|
}else{ |
|
|
|
|
let imgArr = this.form.images.split(",") |
|
|
|
|
this.form.images = imgArr; |
|
|
|
|
let imgType = typeof(this.form.images); |
|
|
|
|
if(imgType == "string"){ |
|
|
|
|
let imgArr = this.form.images.split(","); |
|
|
|
|
this.form.images = imgArr; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (this.form.images == undefined) { |
|
|
|
|
if (this.form.images == undefined || this.form.images == "") { |
|
|
|
|
this.form.images = []; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|