ChannelEdit.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div id="ChannelEdit" v-loading="isLoging" style="width: 100%">
  3. <el-form ref="passwordForm" :rules="rules" status-icon label-width="80px">
  4. <!-- <el-form-item label="gbName" prop="gbName">-->
  5. <!-- <el-input v-model="form.gbName"></el-input>-->
  6. <!-- </el-form-item>-->
  7. <el-form-item>
  8. <div style="float: right;">
  9. <el-button type="primary" @click="onSubmit">保存</el-button>
  10. <el-button @click="close">取消</el-button>
  11. </div>
  12. </el-form-item>
  13. </el-form>
  14. </div>
  15. </template>
  16. <script>
  17. export default {
  18. name: "channelEdit",
  19. props: [ 'id',],
  20. computed: {},
  21. created() {
  22. // 获取完整信息
  23. // 国标类型特殊处理
  24. },
  25. data() {
  26. return {
  27. form: {},
  28. };
  29. },
  30. methods: {
  31. onSubmit: function () {
  32. },
  33. close: function () {
  34. },
  35. getChannel:function () {
  36. this.$axios({
  37. method: 'get',
  38. url: "/api/role/all"
  39. }).then((res) => {
  40. this.loading = true;
  41. if (res.data.code === 0) {
  42. this.options=res.data.data
  43. }
  44. }).catch((error) => {
  45. console.error(error)
  46. });
  47. }
  48. },
  49. };
  50. </script>