| | |
| | | <div class="class_overview"> |
| | | <div style="float: left; width: 100%; height: 50px;"> |
| | | <span>请选择项目:</span> |
| | | <el-select v-model="value" placeholder="请选择" size="small"> |
| | | <el-select @change="selectChange_" v-model="value" placeholder="请选择" size="small"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | |
| | | <el-button type="primary" style="float: right;" @click="addProject">新建项目</el-button> |
| | | |
| | | </div> |
| | | <div style="float: left; margin-left: 1%; width: 69%; height: 80vh; "> |
| | |
| | | <div class="z_shadow" style="float: right; margin-right: 1%; width: 28%; height: 70vh; border: 1px solid #e4eef9;"></div> |
| | | |
| | | |
| | | <el-dialog @close="Cancel" width="70%" top="50px" :visible.sync="dialog_1" append-to-body> |
| | | <newProject @closeNewProject="closeNewProject"></newProject> |
| | | </el-dialog> |
| | | |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import newProject from '../components/popup/newProject.vue' |
| | | |
| | | |
| | | export default { |
| | | components: { |
| | | newProject |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | options: [ |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.initSelect(); |
| | | |
| | | let fileList1 = [ |
| | | {name: "文件名称1", type: "isfile", path: ""}, |
| | | {name: "文件名称2", type: "isfile", path: ""}, |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | initSelect() { |
| | | var me = this; |
| | | this.$axios.get("/api/scheme/all") |
| | | .then(data_ => { |
| | | console.log(data_); |
| | | if(data_.data.success){ |
| | | me.options = []; |
| | | var datas = data_.data.data; |
| | | datas.forEach(function(one){ |
| | | var item = { |
| | | value:one.id, |
| | | label:one.name |
| | | } |
| | | me.options.push(item); |
| | | }); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | }) |
| | | }, |
| | | file_click(file) { |
| | | if (file.type == 'isfiles') { |
| | | let fileList2 = [ |
| | |
| | | ]; |
| | | this.fileList = fileList2; |
| | | }, |
| | | addProject() { |
| | | this.dialog_1 = true; |
| | | |
| | | }, |
| | | |
| | | Cancel() { |
| | | |
| | | }, |
| | | closeNewProject() { |
| | | this.dialog_1 = false |
| | | }, |
| | | selectChange_(val) { |
| | | let url = "/api/scheme/getSchemeInfo/" + this.value; |
| | | this.$axios.get(url,{ |
| | | |
| | | }).then(data_ => { |
| | | console.log(data_); |
| | | // 图 |
| | | // 记录 |
| | | // 人员 |
| | | // 详情 |
| | | //目录 |
| | | }).catch(error =>{ |
| | | console.log(error); |
| | | }) |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |