|
@@ -182,9 +182,12 @@
|
|
|
<span>{{ info?.file.naming_rule?.name }}</span>
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item :label="$t('global.File-Name')">
|
|
|
- <a-icon type="check-circle" style="color: green; margin: 0 5px" v-if="info?.file.title === autoName" />
|
|
|
- <a-icon type="close-circle" style="color: red; margin: 0 5px" v-else />
|
|
|
- <span :style="{ color: info?.file.title === autoName ? 'green' : 'red' }">{{ info?.file.title }}</span>
|
|
|
+ <template v-if="autoName">
|
|
|
+ <a-icon type="check-circle" style="color: green; margin: 0 5px" v-if=" info?.file.title === autoName" />
|
|
|
+ <a-icon type="close-circle" style="color: red; margin: 0 5px" v-else />
|
|
|
+ <span :style="{ color: info?.file.title === autoName ? 'green' : 'red' }">{{ info?.file.title }}</span>
|
|
|
+ </template>
|
|
|
+ <span v-else>{{ info?.file.title }}</span>
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item :label="$t('global.ReName')" v-if="autoName && info?.file.title !== autoName">
|
|
|
<a-icon type="check-circle" style="color: green; margin: 0 5px" />
|
|
@@ -433,6 +436,9 @@ export default {
|
|
|
if (this.info.file.title === this.autoName) {
|
|
|
return this.$message.error(this.$t('global.ReNameTip2'))
|
|
|
}
|
|
|
+ if(!this.autoName){
|
|
|
+ return this.$message.error(this.$t('global.ReNameTip3'))
|
|
|
+ }
|
|
|
const params = {
|
|
|
id: this.info.file.id,
|
|
|
title: this.autoName,
|