|
@@ -58,9 +58,18 @@
|
|
|
v-model="form.systemName"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
- <el-option label="永天智慧电力平台" :value="1"></el-option>
|
|
|
+ <!-- <el-option label="永天智慧电力平台" :value="1"></el-option>
|
|
|
<el-option label="伍继智慧电力平台" :value="2"></el-option>
|
|
|
- <el-option label="电力运营管理平台" :value="3"></el-option>
|
|
|
+ <el-option label="电力运营管理平台" :value="3"></el-option> -->
|
|
|
+
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in getPlatformBoxList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.platformName"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+
|
|
|
+
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
@@ -102,7 +111,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { useStore } from 'vuex'
|
|
|
-import { defineComponent, ref, watchEffect } from 'vue'
|
|
|
+import { defineComponent, ref, watchEffect ,onMounted} from 'vue'
|
|
|
import * as api from '@/api/tenantManage/tenantUnit.js'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
// import { parseTime } from '@/utils'
|
|
@@ -127,6 +136,8 @@ export default defineComponent({
|
|
|
const form = ref({})
|
|
|
const formInfo = ref(null)
|
|
|
|
|
|
+ const getPlatformBoxList = ref([])
|
|
|
+
|
|
|
const roleValid = (rule, value, callback) => {
|
|
|
rule
|
|
|
if (value.length === 0) {
|
|
@@ -196,6 +207,9 @@ export default defineComponent({
|
|
|
form.value = props.itemInfo;
|
|
|
console.log('form.value')
|
|
|
console.log(form.value)
|
|
|
+
|
|
|
+ optionselect()
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// 关闭弹框
|
|
@@ -209,6 +223,20 @@ export default defineComponent({
|
|
|
formInfo.value.resetFields()
|
|
|
}
|
|
|
|
|
|
+ //角色下拉请求
|
|
|
+ function optionselect() {
|
|
|
+ api.getPlatformBoxList().then((requset) => {
|
|
|
+ if (requset.status === 'SUCCESS') {
|
|
|
+
|
|
|
+ getPlatformBoxList.value = requset.data
|
|
|
+ } else {
|
|
|
+ ElMessage.error(requset.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
watchEffect((fn, options) => {
|
|
|
fn, options
|
|
|
showDialog.value = props.show_Dialog
|
|
@@ -220,6 +248,10 @@ export default defineComponent({
|
|
|
return time.getTime() <= Date.now() - timeRange * 1
|
|
|
}
|
|
|
|
|
|
+ onMounted(() => {
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
return {
|
|
|
pickerEndDate,
|
|
|
roleValid,
|
|
@@ -234,6 +266,7 @@ export default defineComponent({
|
|
|
checked: true,
|
|
|
form,
|
|
|
formInfo,
|
|
|
+ getPlatformBoxList,
|
|
|
|
|
|
rules: {
|
|
|
tenantName: [
|