联调 模版下载 批量导入功能 修改云效bug
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
v-for="(item, index) in userStateList"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:disabled="item.label != '可研'"
|
||||
:disabled="item.disabled"
|
||||
:key="index"
|
||||
/>
|
||||
</el-select>
|
||||
@@ -586,25 +586,30 @@ const userTypeList: any = ref([
|
||||
}
|
||||
])
|
||||
//用户状态数组
|
||||
const userStateList = reactive([
|
||||
const userStateList = ref([
|
||||
{
|
||||
label: '可研',
|
||||
value: 0
|
||||
value: 0,
|
||||
disabled: false
|
||||
},
|
||||
{
|
||||
label: '建设',
|
||||
value: 1
|
||||
value: 1,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: '运行',
|
||||
value: 2
|
||||
value: 2,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
label: '退运',
|
||||
value: 3
|
||||
value: 3,
|
||||
disabled: true
|
||||
}
|
||||
])
|
||||
const title = ref('')
|
||||
|
||||
//获取非线性终端类型树形下拉
|
||||
const defaultProps = {
|
||||
children: 'children',
|
||||
@@ -623,7 +628,7 @@ const resetForm = () => {
|
||||
userType: 1, //用户性质 1
|
||||
city: areaOptionList[0].name, //所在地市 1
|
||||
responsibleDepartment: '', //归口管理部门 1
|
||||
userStatus: userStateList[0].value, //用户状态 1
|
||||
userStatus: userStateList.value[0].value, //用户状态 1
|
||||
projectName: '', //用户名称 1
|
||||
substation: '', //变电站 1
|
||||
voltageLevel: voltageLevelList[0].id, //电压等级 1
|
||||
@@ -967,7 +972,7 @@ const fileRaw = (row: any, key: string) => {
|
||||
]
|
||||
for (let k of list) {
|
||||
if (row[key][k] != null) {
|
||||
form.value[k] =
|
||||
form.value[k] =
|
||||
row[key][k].length == 0
|
||||
? []
|
||||
: [
|
||||
@@ -1351,6 +1356,7 @@ const confirmForm = (flag: boolean) => {
|
||||
// 过滤用户
|
||||
const filterUsers = (arr: any) => {
|
||||
control.value = false
|
||||
userStateList.value.map(item => (item.disabled = false))
|
||||
userTypeList.value = userTypeList.value.filter(item => !arr.includes(item.value))
|
||||
}
|
||||
defineExpose({ open, filterUsers })
|
||||
|
||||
Reference in New Issue
Block a user