页面优化
This commit is contained in:
@@ -172,7 +172,7 @@
|
|||||||
<el-form-item label="优先级" prop="weight">
|
<el-form-item label="优先级" prop="weight">
|
||||||
<el-input v-model="form.weight" placeholder="请输入数字(1第一优先,99最后优先)" />
|
<el-input v-model="form.weight" placeholder="请输入数字(1第一优先,99最后优先)" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="唯一占用:" prop="state">
|
<el-form-item label="项目状态" prop="state">
|
||||||
<el-radio-group v-model="form.state">
|
<el-radio-group v-model="form.state">
|
||||||
<el-radio :label="0">计划中</el-radio>
|
<el-radio :label="0">计划中</el-radio>
|
||||||
<el-radio :label="1">进行中</el-radio>
|
<el-radio :label="1">进行中</el-radio>
|
||||||
|
|||||||
@@ -57,6 +57,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="名称" align="center" prop="name" />
|
<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="content" /> -->
|
||||||
<el-table-column label="图片" align="center" prop="images" >
|
<el-table-column label="图片" align="center" prop="images" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -81,6 +83,12 @@
|
|||||||
<el-button type="success" v-if="!scope.row.solo">任意</el-button>
|
<el-button type="success" v-if="!scope.row.solo">任意</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="" align="center" prop="createTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
||||||
@@ -110,6 +118,13 @@
|
|||||||
<el-form-item label="资源名称:" prop="name">
|
<el-form-item label="资源名称:" prop="name">
|
||||||
<el-input v-model="form.name" placeholder="请输入" />
|
<el-input v-model="form.name" placeholder="请输入" />
|
||||||
</el-form-item>
|
</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="资源描述:">
|
<el-form-item label="资源描述:">
|
||||||
<editor v-model="form.content" :min-height="192"/>
|
<editor v-model="form.content" :min-height="192"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -299,12 +314,15 @@ export default {
|
|||||||
if (this.form.images == "") {
|
if (this.form.images == "") {
|
||||||
this.form.images = [];
|
this.form.images = [];
|
||||||
}else{
|
}else{
|
||||||
let imgArr = this.form.images.split(",")
|
let imgType = typeof(this.form.images);
|
||||||
this.form.images = imgArr;
|
if(imgType == "string"){
|
||||||
|
let imgArr = this.form.images.split(",");
|
||||||
|
this.form.images = imgArr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.form.images == undefined) {
|
if (this.form.images == undefined || this.form.images == "") {
|
||||||
this.form.images = [];
|
this.form.images = [];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -256,6 +256,14 @@
|
|||||||
<el-form-item label="优先级" prop="weight">
|
<el-form-item label="优先级" prop="weight">
|
||||||
<el-input v-model="form.weight" placeholder="请输入优先级" />
|
<el-input v-model="form.weight" placeholder="请输入优先级" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="任务状态" prop="status">
|
||||||
|
<el-radio-group v-model="form.status">
|
||||||
|
<el-radio :label="0">计划中</el-radio>
|
||||||
|
<el-radio :label="1">准备中 </el-radio>
|
||||||
|
<el-radio :label="2">已开始</el-radio>
|
||||||
|
<el-radio :label="4">完成</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
@@ -372,6 +380,7 @@ export default {
|
|||||||
this.getProjectList();
|
this.getProjectList();
|
||||||
this.getResource();
|
this.getResource();
|
||||||
this.getCpUserList();
|
this.getCpUserList();
|
||||||
|
// this.twoRescoure();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
startMethod(){
|
startMethod(){
|
||||||
@@ -382,7 +391,7 @@ export default {
|
|||||||
this.getCropList();
|
this.getCropList();
|
||||||
this.getTaskCateList();
|
this.getTaskCateList();
|
||||||
this.getAreasList();
|
this.getAreasList();
|
||||||
this.twoRescoure();
|
// this.twoRescoure();
|
||||||
},
|
},
|
||||||
executorPersonConvert(executorPerson){
|
executorPersonConvert(executorPerson){
|
||||||
let executorPersonName = "";
|
let executorPersonName = "";
|
||||||
@@ -476,7 +485,9 @@ export default {
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
console.log(111111111, res.data.list);
|
||||||
this.resourceList = res.data.list;
|
this.resourceList = res.data.list;
|
||||||
|
this.twoRescoure();
|
||||||
this.getList();
|
this.getList();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user